@@ -12569,13 +12569,12 @@ <h1>Runtime Semantics: Evaluation</h1>
12569
12569
1. Let _evalText_ be the first element of _argList_.
12570
12570
1. If the source code matching this |CallExpression| is strict mode code, let _strictCaller_ be *true*. Otherwise let _strictCaller_ be *false*.
12571
12571
1. Let _evalRealm_ be the current Realm Record.
12572
- 1. Perform ? HostEnsureCanCompileStrings(_evalRealm_, _evalRealm_).
12573
12572
1. Return ? PerformEval(_evalText_, _evalRealm_, _strictCaller_, *true*).
12574
12573
1. Let _thisCall_ be this |CallExpression|.
12575
12574
1. Let _tailCall_ be IsInTailPosition(_thisCall_).
12576
12575
1. Return ? EvaluateCall(_func_, _ref_, _arguments_, _tailCall_).
12577
12576
</emu-alg>
12578
- <p>A |CallExpression| evaluation that executes step 6.a.vii is a <dfn>direct eval</dfn>.</p>
12577
+ <p>A |CallExpression| evaluation that executes step 6.a.vi is a <dfn>direct eval</dfn>.</p>
12579
12578
<emu-grammar>CallExpression : CallExpression Arguments</emu-grammar>
12580
12579
<emu-alg>
12581
12580
1. Let _ref_ be the result of evaluating |CallExpression|.
@@ -23417,17 +23416,17 @@ <h1>eval ( _x_ )</h1>
23417
23416
1. Assert: The execution context stack has at least two elements.
23418
23417
1. Let _callerContext_ be the second to top element of the execution context stack.
23419
23418
1. Let _callerRealm_ be _callerContext_'s Realm.
23420
- 1. Let _calleeRealm_ be the current Realm Record.
23421
- 1. Perform ? HostEnsureCanCompileStrings(_callerRealm_, _calleeRealm_).
23422
- 1. Return ? PerformEval(_x_, _calleeRealm_, *false*, *false*).
23419
+ 1. Return ? PerformEval(_x_, _callerRealm_, *false*, *false*).
23423
23420
</emu-alg>
23424
23421
23425
23422
<emu-clause id="sec-performeval" aoid="PerformEval">
23426
- <h1>Runtime Semantics: PerformEval ( _x_, _evalRealm_ , _strictCaller_, _direct_ )</h1>
23427
- <p>The abstract operation PerformEval with arguments _x_, _evalRealm_ , _strictCaller_, and _direct_ performs the following steps:</p>
23423
+ <h1>Runtime Semantics: PerformEval ( _x_, _callerRealm_ , _strictCaller_, _direct_ )</h1>
23424
+ <p>The abstract operation PerformEval with arguments _x_, _callerRealm_ , _strictCaller_, and _direct_ performs the following steps:</p>
23428
23425
<emu-alg>
23429
23426
1. Assert: If _direct_ is *false*, then _strictCaller_ is also *false*.
23430
23427
1. If Type(_x_) is not String, return _x_.
23428
+ 1. Let _evalRealm_ be the current Realm Record.
23429
+ 1. Perform ? HostEnsureCanCompileStrings(_callerRealm_, _evalRealm_).
23431
23430
1. Let _thisEnvRec_ be ! GetThisEnvironment().
23432
23431
1. If _thisEnvRec_ is a function Environment Record, then
23433
23432
1. Let _F_ be _thisEnvRec_.[[FunctionObject]].
0 commit comments