Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/language/expressions/assignment/dstr-obj-id-identifier-yield-ident-invalid.js

raw
1 // This file was procedurally generated from the following sources:
2 // - src/dstr-assignment/obj-id-identifier-yield-ident-invalid.case
3 // - src/dstr-assignment/syntax/assignment-expr.template
4 /*---
5 description: yield is not a valid IdentifierReference in an AssignmentProperty within strict mode code. (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, { yield } = {};