Skip to content

Commit

Permalink
Throw an error if the value passed to addInitializer is not callable
Browse files Browse the repository at this point in the history
  • Loading branch information
pzuraq committed Mar 7, 2023
1 parent 1f42b91 commit a2b63dd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -24262,6 +24262,7 @@ <h1>
<emu-alg>
1. Let _addInitializerClosure_ be a new Abstract Closure with parameters (_initializer_) that captures _initializers_ and _decorationState_ and performs the following steps when called:
1. If _decorationState_.[[Finished]] is *true*, throw a *TypeError* exception.
1. If IsCallable(_initializer_) is *false*, throw a *TypeError* exception.
1. Append _initializer_ to _initializers_.
1. Return *undefined*.
1. Return CreateBuiltinFunction(_addInitializerClosure_, 1, *""*, « »).
Expand Down

0 comments on commit a2b63dd

Please sign in to comment.