archives

« Bugzilla Issues Index

#3176 — 13.6.4.5, 13.14.4 BindingInitialization: Add implicit ToObject instead of throwing TypeError?


13.6.4.5 Runtime Semantics: BindingInitialization, step 1:

13.14.4 Runtime Semantics: BindingInitialization

`var [a] = "abc"` is now allowed, but `for (var [a] of ["abc"]) ;` is still an error. Change step 1 to call ToObject?


fixed in rev28 editor's draft


fixed in rev28