Skip to content

Commit

Permalink
Fixing constructor realm test properly
Browse files Browse the repository at this point in the history
  • Loading branch information
tmbrbr committed Aug 9, 2023
1 parent beeea36 commit 48c020e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// |reftest| skip -- Type comparison not valid with tainting
// Copyright (C) 2016 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
Expand Down
6 changes: 0 additions & 6 deletions js/src/vm/Interpreter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -575,12 +575,6 @@ bool js::InternalCallOrConstruct(JSContext* cx, const CallArgs& args,
if (!fun->isSelfHostedOrIntrinsic() && fun->isInterpreted())
MarkTaintedFunctionArguments(cx, fun, args);

if (construct != CONSTRUCT && fun->isClassConstructor()) {
JS_ReportErrorNumberASCII(cx, GetErrorMessage, nullptr,
JSMSG_CANT_CALL_CLASS_CONSTRUCTOR);
return false;
}

if (fun->isNativeFun()) {
MOZ_ASSERT_IF(construct, !fun->isConstructor());
JSNative native = fun->native();
Expand Down

0 comments on commit 48c020e

Please sign in to comment.