Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/language/expressions/assignment/dstr-array-elem-nested-array-yield-ident-invalid.js

raw
1 // This file was procedurally generated from the following sources:
2 // - src/dstr-assignment/array-elem-nested-array-yield-ident-invalid.case
3 // - src/dstr-assignment/syntax/assignment-expr.template
4 /*---
5 description: When a `yield` token appears within the DestructuringAssignmentTarget of a nested destructuring assignment outside of strict mode, it behaves as an IdentifierReference. (AssignmentExpression)
6 esid: sec-variable-statement-runtime-semantics-evaluation
7 es6id: 13.3.2.4
8 features: [destructuring-binding]
9 flags: [generated, onlyStrict]
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[yield]]] = [[]];