Skip to content

Commit

Permalink
Normative: Fix incorrect call to MakeConstructor for async CreateDyna…
Browse files Browse the repository at this point in the history
…micFunction

Fixes #751.
  • Loading branch information
bterlson committed Dec 29, 2016
1 parent 98ec198 commit 023da9d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -23768,8 +23768,8 @@ <h1>Runtime Semantics: CreateDynamicFunction( _constructor_, _newTarget_, _kind_
1. If _kind_ is `"generator"`, then
1. Let _prototype_ be ObjectCreate(%GeneratorPrototype%).
1. Perform DefinePropertyOrThrow(_F_, `"prototype"`, PropertyDescriptor{[[Value]]: _prototype_, [[Writable]]: *true*, [[Enumerable]]: *false*, [[Configurable]]: *false*}).
1. Else, perform MakeConstructor(_F_).
1. NOTE: Async functions are not constructable and do not have a prototype property.
1. Else if _kind_ is `"normal"`, perform MakeConstructor(_F_).
1. NOTE: Async functions are not constructable and do not have a [[Construct]] slot or a `"prototype"` property.
1. Perform SetFunctionName(_F_, `"anonymous"`).
1. Return _F_.
</emu-alg>
Expand Down

0 comments on commit 023da9d

Please sign in to comment.