test262/test/language/expressions/assignment/dstr/syntax-error-ident-ref-stat...

41 lines
1.0 KiB
JavaScript

// This file was procedurally generated from the following sources:
// - src/identifier-names/static-escaped.case
// - src/identifier-names/future-reserved-words/obj-assignment-identifier.template
/*---
description: static is a valid identifier name, using escape (IdentiferReference in ObjectAssignmentPattern cannot be a ReservedWord)
esid: prod-AssignmentPattern
features: [destructuring-assignment]
flags: [generated, onlyStrict]
negative:
phase: parse
type: SyntaxError
info: |
AssignmentPattern:
ObjectAssignmentPattern
ObjectAssignmentPattern:
{ AssignmentPropertyList }
AssignmentPropertyList:
AssignmentProperty
AssignmentPropertyList , AssignmentProperty
AssignmentProperty:
IdentifierReference Initializer_opt
PropertyName : AssignmentElement
IdentifierReference:
Identifier
[~Yield]yield
[~Await]await
Identifier:
IdentifierName but not ReservedWord
---*/
$DONOTEVALUATE();
var x = { st\u0061tic } = { static: 42 };