Chromium Code Reviews| Index: test/mjsunit/es6/iteration-syntax.js |
| diff --git a/test/mjsunit/es6/iteration-syntax.js b/test/mjsunit/es6/iteration-syntax.js |
| index c6a7d477bc747e3a2061f19179963e1ade60d200..64bcc2f8470750037c7ee7ccde579a1bbe2a5176 100644 |
| --- a/test/mjsunit/es6/iteration-syntax.js |
| +++ b/test/mjsunit/es6/iteration-syntax.js |
| @@ -66,6 +66,9 @@ StrictSyntaxError("function f() { for (x = 3 of y) { } }"); |
| StrictSyntaxError("function f() { for (var x = 3 of y) { } }"); |
| StrictSyntaxError("function f() { for (let x = 3 of y) { } }"); |
| +StrictSyntaxError("function f() { for (x of y, z) { } }"); |
|
adamk
2016/01/19 22:21:47
Rather than adding tests here (which limits you no
|
| +StrictSyntaxError("function f() { for (var x of y, z) { } }"); |
| +StrictSyntaxError("function f() { for (let x of y, z) { } }"); |
| // Alack, this appears to be valid. |
| function f() { for (of of y) { } } |