On 2015/08/19 00:40:33, adamk wrote:
Haven't dug in yet, but to your issue with 'let []': I suspect you're just
testing in sloppy mode. Here are my results with this patched in:

$ d8 --harmony-destructuring -e 'let [x] = [42]; print(x)'
unnamed:1: ReferenceError: let is not defined
let [x] = [1]; print(x)
^
ReferenceError: let is not defined
     at unnamed:1:1

$ d8 --harmony-destructuring -e '"use strict"; let [x] = [42]; print(x)'
42

$ d8 --harmony-destructuring --harmony-sloppy --harmony-sloppy-let -e 'let [x]
=
[42]; print(x)'
42

No, it's actual test cases in the tree. The thing it breaks on mostly is
rest/spread elements, which it runs into during ParsePrimaryExpression(). It is possible it's broken upstream, but i haven't tested on master, so i assume it's
this code that broke it.

https://codereview.chromium.org/1301523004/

--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to