Skip to content

Commit

Permalink
remove GetDirectiveContext; fix setting function slots
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelficarra committed Nov 26, 2019
1 parent 56ed2fc commit 19687c8
Showing 1 changed file with 10 additions and 20 deletions.
30 changes: 10 additions & 20 deletions spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -7459,22 +7459,6 @@ <h1>GetThisEnvironment ( )</h1>
</emu-note>
</emu-clause>

<emu-clause id="sec-getdirectivecontext" aoid="GetDirectiveContext">
<h1>GetDirectiveContext ( )</h1>
<p>The abstract operation GetDirectiveContext finds within the execution context stack the nearest applicable parse node that may contain a directive prologue. GetDirectiveContext performs the following steps:</p>
<emu-alg>
1. Let _ec_ be the running execution context.
1. If _ec_ is *null*, return *null*.
1. Let _func_ be _ec_'s Function.
1. If _func_ is *null*, return *null*.
1. If _func_ has an [[ECMAScriptCode]] slot, return _func_.[[ECMAScriptCode]].
1. Let _scriptOrModule_ be _ec_'s ScriptOrModule.
1. If _scriptOrModule_ is *null*, return *null*.
1. If _scriptOrModule_ has an [[ECMAScriptCode]] slot, return _scriptOrModule_.[[ECMAScriptCode]].
1. Return *null*.
</emu-alg>
</emu-clause>

<emu-clause id="sec-resolvethisbinding" aoid="ResolveThisBinding">
<h1>ResolveThisBinding ( )</h1>
<p>The abstract operation ResolveThisBinding determines the binding of the keyword `this` using the LexicalEnvironment of the running execution context. ResolveThisBinding performs the following steps:</p>
Expand Down Expand Up @@ -8538,10 +8522,16 @@ <h1>FunctionInitialize ( _F_, _kind_, _ParameterList_, _Body_, _Scope_ )</h1>
1. If the source text matching _Body_ is strict mode code, let _Strict_ be *true*; else let _Strict_ be *false*.
1. Set _F_.[[OmittedFromStackTraces]] to OmittedFromStackTraces of _Body_.
1. Set _F_.[[ImplementationHidden]] to ImplementationHidden of _Body_.
1. Let _directiveContext_ be GetDirectiveContext().
1. If _directiveContext_ is not *null*,
1. If _F_.[[OmittedFromStackTraces]] is *false*, set _F_.[[OmittedFromStackTraces]] to OmittedFromStackTraces of _directiveContext_.
1. If _F_.[[ImplementationHidden]] is *false*, set _F_.[[ImplementationHidden]] to ImplementationHidden of _directiveContext_.
1. Let _ec_ be the running execution context.
1. If _ec_ is not *null*,
1. Let _runningFunc_ be _ec_'s Function.
1. If _runningFunc_ is not *null*,
1. If _F_.[[OmittedFromStackTraces]] is *false*, set _F_.[[OmittedFromStackTraces]] to _runningFunc_.[[OmittedFromStackTraces]].
1. If _F_.[[ImplementationHidden]] is *false*, set _F_.[[ImplementationHidden]] to _runningFunc_.[[ImplementationHidden]].
1. Let _scriptOrModule_ be _ec_'s ScriptOrModule.
1. If _scriptOrModule_ is not *null*,
1. If _F_.[[OmittedFromStackTraces]] is *false*, set _F_.[[OmittedFromStackTraces]] to OmittedFromStackTraces of _scriptOrModule_.[[ECMAScriptCode]].
1. If _F_.[[ImplementationHidden]] is *false*, set _F_.[[ImplementationHidden]] to ImplementationHidden of _scriptOrModule_.[[ECMAScriptCode]].
1. Set _F_.[[Strict]] to _Strict_.
1. Set _F_.[[Environment]] to _Scope_.
1. Set _F_.[[FormalParameters]] to _ParameterList_.
Expand Down

0 comments on commit 19687c8

Please sign in to comment.