Skip to content

Commit

Permalink
Remove [[SourceText]] from async functions
Browse files Browse the repository at this point in the history
  • Loading branch information
anba committed Jan 23, 2017
1 parent f582071 commit cd1fa44
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -19443,7 +19443,6 @@ <h1>Runtime Semantics: InstantiateFunctionObject</h1>
2. Let _name_ be StringValue of |BindingIdentifier|.
3. Let _F_ be ! AsyncFunctionCreate(~Normal~, |FormalParameters|, |AsyncFunctionBody|, _scope_, _strict_).
4. Perform ! SetFunctionName(_F_, _name_).
1. Set _F_.[[SourceText]] to the source text matched by |AsyncFunctionDeclaration|.
5. Return _F_.
</emu-alg>
<emu-grammar>
Expand All @@ -19453,7 +19452,6 @@ <h1>Runtime Semantics: InstantiateFunctionObject</h1>
1. If the function code for |AsyncFunctionDeclaration| is strict mode code, let _strict_ be *true*. Otherwise, let _strict_ be *false*.
2. Let _F_ be ! AsyncFunctionCreate(~Normal~, |FormalParameters|, |AsyncFunctionBody|, _scope_, _strict_).
3. Perform ! SetFunctionName(_F_, `"default"`).
1. Set _F_.[[SourceText]] to the source text matched by |AsyncFunctionDeclaration|.
4. Return _F_.
</emu-alg>
</emu-clause>
Expand Down Expand Up @@ -19489,7 +19487,6 @@ <h1>Runtime Semantics: PropertyDefinitionEvaluation</h1>
1. Let _closure_ be ! AsyncFunctionCreate(~Method~, |UniqueFormalParameters|, |AsyncFunctionBody|, _scope_, _strict_).
1. Perform ! MakeMethod(_closure_, _object_).
1. Perform ! SetFunctionName(_closure_, _propKey_).
1. Set _closure_.[[SourceText]] to the source text matched by |AsyncMethod|.
1. Let _desc_ be the PropertyDescriptor{[[Value]]: _closure_, [[Writable]]: *true*, [[Enumerable]]: _enumerable_, [[Configurable]]: *true*}.
1. Return ? DefinePropertyOrThrow(_object_, _propKey_, _desc_).
</emu-alg>
Expand Down Expand Up @@ -19517,7 +19514,6 @@ <h1>Runtime Semantics: Evaluation</h1>
1. If the function code for |AsyncFunctionExpression| is strict mode code, let _strict_ be *true*. Otherwise let _strict_ be *false*.
1. Let _scope_ be the LexicalEnvironment of the running execution context.
1. Let _closure_ be ! AsyncFunctionCreate(~Normal~, |FormalParameters|, |AsyncFunctionBody|, _scope_, _strict_).
1. Set _closure_.[[SourceText]] to the source text matched by |AsyncFunctionExpression|.
1. Return _closure_.
</emu-alg>

Expand All @@ -19532,7 +19528,6 @@ <h1>Runtime Semantics: Evaluation</h1>
1. Let _name_ be StringValue of |BindingIdentifier|.
1. Perform ! _envRec_.CreateImmutableBinding(_name_).
1. Let _closure_ be ! AsyncFunctionCreate(~Normal~, |FormalParameters|, |AsyncFunctionBody|, _funcEnv_, _strict_).
1. Set _closure_.[[SourceText]] to the source text matched by |AsyncFunctionExpression|.
1. Perform ! SetFunctionName(_closure_, _name_).
1. Perform ! _envRec_.InitializeBinding(_name_, _closure_).
1. Return _closure_.
Expand Down Expand Up @@ -19782,7 +19777,6 @@ <h1>Runtime Semantics: Evaluation</h1>
2. Let _scope_ be the LexicalEnvironment of the running execution context.
3. Let _parameters_ be |AsyncArrowBindingIdentifier|.
4. Let _closure_ be ! AsyncFunctionCreate(~Arrow~, _parameters_, |AsyncConciseBody|, _scope_, _strict_).
1. Set _closure_.[[SourceText]] to the source text matched by |AsyncArrowFunction|.
5. Return _closure_.
</emu-alg>
<emu-grammar>
Expand All @@ -19794,7 +19788,6 @@ <h1>Runtime Semantics: Evaluation</h1>
3. Let _head_ be CoveredAsyncArrowHead of |CoverCallExpressionAndAsyncArrowHead|.
4. Let _parameters_ be the |ArrowFormalParameters| of _head_.
5. Let _closure_ be ! AsyncFunctionCreate(~Arrow~, _parameters_, |AsyncConciseBody|, _scope_, _strict_).
1. Set _closure_.[[SourceText]] to the source text matched by |AsyncArrowFunction|.
6. Return _closure_.
</emu-alg>
</emu-clause>
Expand Down

0 comments on commit cd1fa44

Please sign in to comment.