mirror of https://github.com/tc39/test262.git
41 lines
991 B
JavaScript
41 lines
991 B
JavaScript
|
// This file was procedurally generated from the following sources:
|
||
|
// - src/identifier-names/else-escaped.case
|
||
|
// - src/identifier-names/default/obj-assignment-identifier.template
|
||
|
/*---
|
||
|
description: else is a valid identifier name, using escape (IdentiferReference in ObjectAssignmentPattern cannot be a ReservedWord)
|
||
|
esid: prod-AssignmentPattern
|
||
|
features: [destructuring-assignment]
|
||
|
flags: [generated]
|
||
|
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 = { \u0065lse } = { else: 42 };
|