summaryrefslogtreecommitdiff
path: root/src/dstr-assignment/array-rest-nested-array-invalid.case
diff options
context:
space:
mode:
Diffstat (limited to 'src/dstr-assignment/array-rest-nested-array-invalid.case')
-rw-r--r--src/dstr-assignment/array-rest-nested-array-invalid.case18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/dstr-assignment/array-rest-nested-array-invalid.case b/src/dstr-assignment/array-rest-nested-array-invalid.case
new file mode 100644
index 000000000..08eff54e2
--- /dev/null
+++ b/src/dstr-assignment/array-rest-nested-array-invalid.case
@@ -0,0 +1,18 @@
+// Copyright (C) 2015 the V8 project authors. All rights reserved.
+// This code is governed by the BSD license found in the LICENSE file.
+
+/*---
+desc: >
+ It is a Syntax Error if LeftHandSideExpression is either an ObjectLiteral
+ or an ArrayLiteral and if the lexical token sequence matched by
+ LeftHandSideExpression cannot be parsed with no tokens left over using
+ AssignmentPattern as the goal symbol.
+template: syntax
+es6id: 12.14.5.1
+negative: SyntaxError
+---*/
+
+//- elems
+[...[(x, y)]]
+//- vals
+[[]]