blob: 7398cf2fa892b51fbe3db9f06ea072ffd908cb16 [file] [log] [blame]
keith_miller@apple.combcc77f22016-07-15 06:03:25 +00001// This file was procedurally generated from the following sources:
2// - src/dstr-assignment/array-rest-nested-obj-invalid.case
3// - src/dstr-assignment/syntax/assignment-expr.template
4/*---
5description: 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. (AssignmentExpression)
6esid: sec-variable-statement-runtime-semantics-evaluation
7es6id: 13.3.2.4
8features: [destructuring-binding]
9flags: [generated]
10negative: SyntaxError
11info: |
12 VariableDeclaration : BindingPattern Initializer
13
14 1. Let rhs be the result of evaluating Initializer.
15 2. Let rval be GetValue(rhs).
16 3. ReturnIfAbrupt(rval).
17 4. Return the result of performing BindingInitialization for
18 BindingPattern passing rval and undefined as arguments.
19---*/
20
210, [...{ get x() {} }] = [[]];