Skip to content
This repository has been archived by the owner on Jan 25, 2022. It is now read-only.

Commit

Permalink
Normative: Disallow binding patterns of arrays or objects
Browse files Browse the repository at this point in the history
This was the consensus recorded in the minutes for the May 2017 TC39
meeting, following bug #43
  • Loading branch information
littledan committed Jun 15, 2017
1 parent ccc47d8 commit f152f9c
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions Spec.html
Expand Up @@ -83,7 +83,6 @@ <h2>Syntax</h2>
<ins class="block">
BindingRestProperty[Yield, Await] :
`...` BindingIdentifier[?Yield, ?Await]
`...` BindingPattern[?Yield, ?Await]
</ins>
</emu-grammar>

Expand Down Expand Up @@ -280,14 +279,6 @@ <h1>Runtime Semantics: RestBindingInitialization</h1>
1. If _environment_ is *undefined*, return PutValue(_lhs_, _restObj_).
1. Return InitializeReferencedBinding(_lhs_, _restObj_).
</emu-alg>

<emu-grammar>BindingRestProperty : `...` BindingPattern</emu-grammar>
<emu-alg>
1. Let _restObj_ be ObjectCreate(%ObjectPrototype%).
1. Let _assignStatus_ be CopyDataProperties(_restObj_, _value_, _excludedNames_).
1. ReturnIfAbrupt(_assignStatus_).
1. Return the result of performing BindingInitialization of |BindingPattern| with _restObj_ and _environment_ as the arguments.
</emu-alg>
</emu-clause>
</ins>
</emu-clause>
Expand Down

0 comments on commit f152f9c

Please sign in to comment.