Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/language/expressions/assignment/dstr-array-rest-elision-invalid.js

raw
1 // This file was procedurally generated from the following sources:
2 // - src/dstr-assignment/array-rest-elision-invalid.case
3 // - src/dstr-assignment/syntax/assignment-expr.template
4 /*---
5 description: ArrayAssignmentPattern may not include elisions following an AssignmentRestElement in a AssignmentElementList. (AssignmentExpression)
6 esid: sec-variable-statement-runtime-semantics-evaluation
7 es6id: 13.3.2.4
8 features: [destructuring-binding]
9 flags: [generated]
10 negative:
11 phase: parse
12 type: SyntaxError
13 info: |
14 VariableDeclaration : BindingPattern Initializer
15
16 1. Let rhs be the result of evaluating Initializer.
17 2. Let rval be GetValue(rhs).
18 3. ReturnIfAbrupt(rval).
19 4. Return the result of performing BindingInitialization for
20 BindingPattern passing rval and undefined as arguments.
21 ---*/
22 throw "Test262: This statement should not be evaluated.";
23
24 0, [...x,] = [];