Skip to content

Commit

Permalink
Set decorationState.[[Finished]] to true when decorator throws
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolo-ribaudo committed Feb 8, 2024
1 parent 59003ed commit 7886cc8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -24741,8 +24741,9 @@ <h1>
1. Set _value_ to OrdinaryObjectCreate(%Object.prototype%).
1. Perform ! CreateDataPropertyOrThrow(_value_, *"get"*, _elementRecord_.[[Get]]).
1. Perform ! CreateDataPropertyOrThrow(_value_, *"set"*, _elementRecord_.[[Set]]).
1. Let _newValue_ be ? Call(_decorator_, _decoratorReceiver_, « _value_, _context_ »).
1. Let _newValue_ be Completion(Call(_decorator_, _decoratorReceiver_, « _value_, _context_ »)).
1. Set _decorationState_.[[Finished]] to *true*.
1. ReturnIfAbrupt(_newValue_).
1. If _kind_ is ~field~, then
1. If IsCallable(_newValue_) is *true*, prepend _newValue_ to _elementRecord_.[[Initializers]].
1. Else if _newValue_ is not *undefined*, throw a *TypeError* exception.
Expand Down

0 comments on commit 7886cc8

Please sign in to comment.