Skip to content

Commit

Permalink
Remove callerRealm from HostEnsureCanCompileStrings
Browse files Browse the repository at this point in the history
  • Loading branch information
Antonio Sartori committed Feb 21, 2022
1 parent cf7145e commit debebd0
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -19023,8 +19023,7 @@ <h1>Runtime Semantics: Evaluation</h1>
1. If _argList_ has no elements, return *undefined*.
1. Let _evalArg_ be the first element of _argList_.
1. If the source text matched by this |CallExpression| is strict mode code, let _strictCaller_ be *true*. Otherwise let _strictCaller_ be *false*.
1. Let _evalRealm_ be the current Realm Record.
1. [id="step-callexpression-evaluation-direct-eval"] Return ? PerformEval(_evalArg_, _evalRealm_, _strictCaller_, *true*).
1. [id="step-callexpression-evaluation-direct-eval"] Return ? PerformEval(_evalArg_, _strictCaller_, *true*).
1. Let _thisCall_ be this |CallExpression|.
1. Let _tailCall_ be IsInTailPosition(_thisCall_).
1. Return ? EvaluateCall(_func_, _ref_, _arguments_, _tailCall_).
Expand Down Expand Up @@ -28564,15 +28563,13 @@ <h1>eval ( _x_ )</h1>
<emu-alg>
1. Assert: The execution context stack has at least two elements.
1. Let _callerContext_ be the second to top element of the execution context stack.
1. Let _callerRealm_ be _callerContext_'s Realm.
1. Return ? PerformEval(_x_, _callerRealm_, *false*, *false*).
1. Return ? PerformEval(_x_, *false*, *false*).
</emu-alg>

<emu-clause id="sec-performeval" type="abstract operation" oldids="sec-performeval-rules-outside-functions,sec-performeval-rules-outside-methods,sec-performeval-rules-outside-constructors">
<h1>
PerformEval (
_x_: unknown,
_callerRealm_: unknown,
_strictCaller_: unknown,
_direct_: unknown,
)
Expand All @@ -28583,7 +28580,7 @@ <h1>
1. Assert: If _direct_ is *false*, then _strictCaller_ is also *false*.
1. If Type(_x_) is not String, return _x_.
1. Let _evalRealm_ be the current Realm Record.
1. Perform ? HostEnsureCanCompileStrings(_callerRealm_, _evalRealm_).
1. Perform ? HostEnsureCanCompileStrings(_evalRealm_).
1. Let _inFunction_ be *false*.
1. Let _inMethod_ be *false*.
1. Let _inDerivedConstructor_ be *false*.
Expand Down Expand Up @@ -28645,7 +28642,6 @@ <h1>
<emu-clause id="sec-hostensurecancompilestrings" type="host-defined abstract operation">
<h1>
HostEnsureCanCompileStrings (
_callerRealm_: a Realm Record,
_calleeRealm_: a Realm Record,
)
</h1>
Expand Down Expand Up @@ -29865,9 +29861,8 @@ <h1>
<emu-alg>
1. Assert: The execution context stack has at least two elements.
1. Let _callerContext_ be the second to top element of the execution context stack.
1. Let _callerRealm_ be _callerContext_'s Realm.
1. Let _calleeRealm_ be the current Realm Record.
1. Perform ? HostEnsureCanCompileStrings(_callerRealm_, _calleeRealm_).
1. Perform ? HostEnsureCanCompileStrings(_calleeRealm_).
1. If _newTarget_ is *undefined*, set _newTarget_ to _constructor_.
1. If _kind_ is ~normal~, then
1. Let _prefix_ be *"function"*.
Expand Down

0 comments on commit debebd0

Please sign in to comment.