mirror of
https://github.com/tc39/test262.git
synced 2025-07-29 00:44:32 +02:00
Merge pull request #2295 from leobalter/2285/default-escaped
Add tests for valid identifier names also listed as reserved words
This commit is contained in:
commit
40dca6ef33
12
src/identifier-names/break-escaped.case
Normal file
12
src/identifier-names/break-escaped.case
Normal file
@ -0,0 +1,12 @@
|
||||
// Copyright (C) 2019 Leo Balter. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
desc: break is a valid identifier name, using escape
|
||||
template: default
|
||||
---*/
|
||||
|
||||
//- declareWith
|
||||
bre\u0061k
|
||||
//- referenceWith
|
||||
break
|
12
src/identifier-names/case-escaped.case
Normal file
12
src/identifier-names/case-escaped.case
Normal file
@ -0,0 +1,12 @@
|
||||
// Copyright (C) 2019 Leo Balter. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
desc: case is a valid identifier name, using escape
|
||||
template: default
|
||||
---*/
|
||||
|
||||
//- declareWith
|
||||
c\u0061se
|
||||
//- referenceWith
|
||||
case
|
12
src/identifier-names/catch-escaped.case
Normal file
12
src/identifier-names/catch-escaped.case
Normal file
@ -0,0 +1,12 @@
|
||||
// Copyright (C) 2019 Leo Balter. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
desc: catch is a valid identifier name, using escape
|
||||
template: default
|
||||
---*/
|
||||
|
||||
//- declareWith
|
||||
c\u0061tch
|
||||
//- referenceWith
|
||||
catch
|
12
src/identifier-names/class-escaped.case
Normal file
12
src/identifier-names/class-escaped.case
Normal file
@ -0,0 +1,12 @@
|
||||
// Copyright (C) 2019 Leo Balter. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
desc: class is a valid identifier name, using escape
|
||||
template: default
|
||||
---*/
|
||||
|
||||
//- declareWith
|
||||
cl\u0061ss
|
||||
//- referenceWith
|
||||
class
|
12
src/identifier-names/const-escaped.case
Normal file
12
src/identifier-names/const-escaped.case
Normal file
@ -0,0 +1,12 @@
|
||||
// Copyright (C) 2019 Leo Balter. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
desc: const is a valid identifier name, using escape
|
||||
template: default
|
||||
---*/
|
||||
|
||||
//- declareWith
|
||||
\u0063onst
|
||||
//- referenceWith
|
||||
const
|
12
src/identifier-names/continue-escaped.case
Normal file
12
src/identifier-names/continue-escaped.case
Normal file
@ -0,0 +1,12 @@
|
||||
// Copyright (C) 2019 Leo Balter. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
desc: continue is a valid identifier name, using escape
|
||||
template: default
|
||||
---*/
|
||||
|
||||
//- declareWith
|
||||
\u0063ontinue
|
||||
//- referenceWith
|
||||
continue
|
12
src/identifier-names/debugger-escaped.case
Normal file
12
src/identifier-names/debugger-escaped.case
Normal file
@ -0,0 +1,12 @@
|
||||
// Copyright (C) 2019 Leo Balter. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
desc: debugger is a valid identifier name, using escape
|
||||
template: default
|
||||
---*/
|
||||
|
||||
//- declareWith
|
||||
\u0064ebugger
|
||||
//- referenceWith
|
||||
debugger
|
12
src/identifier-names/default-escaped-ext.case
Normal file
12
src/identifier-names/default-escaped-ext.case
Normal file
@ -0,0 +1,12 @@
|
||||
// Copyright (C) 2019 Leo Balter. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
desc: default is a valid identifier name, using extended escape
|
||||
template: default
|
||||
---*/
|
||||
|
||||
//- declareWith
|
||||
def\u{61}ult
|
||||
//- referenceWith
|
||||
default
|
12
src/identifier-names/default-escaped.case
Normal file
12
src/identifier-names/default-escaped.case
Normal file
@ -0,0 +1,12 @@
|
||||
// Copyright (C) 2019 Leo Balter. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
desc: default is a valid identifier name, using escape
|
||||
template: default
|
||||
---*/
|
||||
|
||||
//- declareWith
|
||||
def\u0061ult
|
||||
//- referenceWith
|
||||
default
|
12
src/identifier-names/default.case
Normal file
12
src/identifier-names/default.case
Normal file
@ -0,0 +1,12 @@
|
||||
// Copyright (C) 2019 Leo Balter. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
desc: default is a valid identifier name
|
||||
template: default
|
||||
---*/
|
||||
|
||||
//- declareWith
|
||||
default
|
||||
//- referenceWith
|
||||
default
|
@ -0,0 +1,38 @@
|
||||
// Copyright (C) 2019 Leo Balter. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
path: language/expressions/arrow-function/dstr/syntax-error-ident-ref-
|
||||
name: IdentiferReference in ObjectAssignmentPattern (Arrow Function) cannot be a ReservedWord
|
||||
esid: prod-AssignmentPattern
|
||||
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
|
||||
negative:
|
||||
phase: parse
|
||||
type: SyntaxError
|
||||
features: [arrow-function, destructuring-assignment]
|
||||
---*/
|
||||
|
||||
$DONOTEVALUATE();
|
||||
|
||||
var x = ({ /*{ declareWith }*/ }) => {};
|
@ -0,0 +1,44 @@
|
||||
// Copyright (C) 2019 Leo Balter. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
path: language/expressions/class/ident-name-method-def-
|
||||
name: MethodDefinition
|
||||
esid: prod-PropertyDefinition
|
||||
info: |
|
||||
ObjectLiteral :
|
||||
{ PropertyDefinitionList }
|
||||
{ PropertyDefinitionList , }
|
||||
|
||||
PropertyDefinitionList:
|
||||
PropertyDefinition
|
||||
PropertyDefinitionList , PropertyDefinition
|
||||
|
||||
PropertyDefinition:
|
||||
MethodDefinition
|
||||
...
|
||||
|
||||
MethodDefinition:
|
||||
PropertyName ( UniqueFormalParameters ){ FunctionBody }
|
||||
|
||||
PropertyName:
|
||||
LiteralPropertyName
|
||||
...
|
||||
|
||||
LiteralPropertyName:
|
||||
IdentifierName
|
||||
...
|
||||
|
||||
Reserved Words
|
||||
|
||||
A reserved word is an IdentifierName that cannot be used as an Identifier.
|
||||
features: [class]
|
||||
---*/
|
||||
|
||||
var C = class {
|
||||
/*{ declareWith }*/() { return 42; }
|
||||
}
|
||||
|
||||
var obj = new C();
|
||||
|
||||
assert.sameValue(obj['/*{ referenceWith }*/'](), 42, 'property exists');
|
@ -0,0 +1,44 @@
|
||||
// Copyright (C) 2019 Leo Balter. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
path: language/statements/class/ident-name-method-def-
|
||||
name: MethodDefinition
|
||||
esid: prod-PropertyDefinition
|
||||
info: |
|
||||
ObjectLiteral :
|
||||
{ PropertyDefinitionList }
|
||||
{ PropertyDefinitionList , }
|
||||
|
||||
PropertyDefinitionList:
|
||||
PropertyDefinition
|
||||
PropertyDefinitionList , PropertyDefinition
|
||||
|
||||
PropertyDefinition:
|
||||
MethodDefinition
|
||||
...
|
||||
|
||||
MethodDefinition:
|
||||
PropertyName ( UniqueFormalParameters ){ FunctionBody }
|
||||
|
||||
PropertyName:
|
||||
LiteralPropertyName
|
||||
...
|
||||
|
||||
LiteralPropertyName:
|
||||
IdentifierName
|
||||
...
|
||||
|
||||
Reserved Words
|
||||
|
||||
A reserved word is an IdentifierName that cannot be used as an Identifier.
|
||||
features: [class]
|
||||
---*/
|
||||
|
||||
class C {
|
||||
/*{ declareWith }*/() { return 42; }
|
||||
}
|
||||
|
||||
var obj = new C();
|
||||
|
||||
assert.sameValue(obj['/*{ referenceWith }*/'](), 42, 'property exists');
|
38
src/identifier-names/default/covered-obj-prop-name.template
Normal file
38
src/identifier-names/default/covered-obj-prop-name.template
Normal file
@ -0,0 +1,38 @@
|
||||
// Copyright (C) 2019 Leo Balter. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
/*---
|
||||
path: language/expressions/object/covered-ident-name-prop-name-literal-
|
||||
name: PropertyName in a CoverParenthesizedExpressionAndArrowParameterList
|
||||
esid: prod-PropertyDefinition
|
||||
info: |
|
||||
ObjectLiteral :
|
||||
{ PropertyDefinitionList }
|
||||
{ PropertyDefinitionList , }
|
||||
|
||||
PropertyDefinitionList:
|
||||
PropertyDefinition
|
||||
PropertyDefinitionList , PropertyDefinition
|
||||
|
||||
PropertyDefinition:
|
||||
IdentifierReference
|
||||
PropertyName : AssignmentExpression
|
||||
MethodDefinition
|
||||
... AssignmentExpression
|
||||
...
|
||||
|
||||
PropertyName:
|
||||
LiteralPropertyName
|
||||
...
|
||||
|
||||
LiteralPropertyName:
|
||||
IdentifierName
|
||||
...
|
||||
|
||||
Reserved Words
|
||||
|
||||
A reserved word is an IdentifierName that cannot be used as an Identifier.
|
||||
---*/
|
||||
|
||||
var obj = ({ /*{ declareWith }*/: 42 });
|
||||
|
||||
assert.sameValue(obj['/*{ referenceWith }*/'], 42, 'property exists');
|
21
src/identifier-names/default/member-expr.template
Normal file
21
src/identifier-names/default/member-expr.template
Normal file
@ -0,0 +1,21 @@
|
||||
// Copyright (C) 2019 Leo Balter. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
/*---
|
||||
path: language/expressions/assignment/member-expr-ident-name-
|
||||
name: MemberExpression IdentifierName
|
||||
esid: prod-PropertyDefinition
|
||||
info: |
|
||||
MemberExpression:
|
||||
...
|
||||
MemberExpression . IdentifierName
|
||||
|
||||
Reserved Words
|
||||
|
||||
A reserved word is an IdentifierName that cannot be used as an Identifier.
|
||||
---*/
|
||||
|
||||
var obj = {};
|
||||
|
||||
obj./*{ declareWith }*/ = 42;
|
||||
|
||||
assert.sameValue(obj['/*{ referenceWith }*/'], 42, 'property exists');
|
@ -0,0 +1,38 @@
|
||||
// Copyright (C) 2019 Leo Balter. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
path: language/expressions/assignment/dstr/syntax-error-ident-ref-
|
||||
name: IdentiferReference in ObjectAssignmentPattern cannot be a ReservedWord
|
||||
esid: prod-AssignmentPattern
|
||||
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
|
||||
negative:
|
||||
phase: parse
|
||||
type: SyntaxError
|
||||
features: [destructuring-assignment]
|
||||
---*/
|
||||
|
||||
$DONOTEVALUATE();
|
||||
|
||||
var x = { /*{ declareWith }*/ } = { /*{ referenceWith }*/: 42 };
|
@ -0,0 +1,41 @@
|
||||
// Copyright (C) 2019 Leo Balter. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
path: language/expressions/assignment/dstr/ident-name-prop-name-literal-
|
||||
name: PropertyName of an ObjectAssignmentPattern
|
||||
esid: prod-AssignmentPattern
|
||||
info: |
|
||||
AssignmentPattern:
|
||||
ObjectAssignmentPattern
|
||||
|
||||
ObjectAssignmentPattern:
|
||||
{ AssignmentPropertyList }
|
||||
|
||||
AssignmentPropertyList:
|
||||
AssignmentProperty
|
||||
AssignmentPropertyList , AssignmentProperty
|
||||
|
||||
AssignmentProperty:
|
||||
IdentifierReference Initializer_opt
|
||||
PropertyName : AssignmentElement
|
||||
|
||||
PropertyName:
|
||||
LiteralPropertyName
|
||||
...
|
||||
|
||||
LiteralPropertyName:
|
||||
IdentifierName
|
||||
...
|
||||
|
||||
Reserved Words
|
||||
|
||||
A reserved word is an IdentifierName that cannot be used as an Identifier.
|
||||
features: [destructuring-assignment]
|
||||
flags: [noStrict]
|
||||
---*/
|
||||
|
||||
var y = { /*{ declareWith }*/: x } = { /*{ referenceWith }*/: 42 };
|
||||
|
||||
assert.sameValue(x, 42, 'property exists');
|
||||
assert.sameValue(y['/*{ referenceWith }*/'], 42, 'assignment successful');
|
41
src/identifier-names/default/obj-method-definition.template
Normal file
41
src/identifier-names/default/obj-method-definition.template
Normal file
@ -0,0 +1,41 @@
|
||||
// Copyright (C) 2019 Leo Balter. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
path: language/expressions/object/ident-name-method-def-
|
||||
name: MethodDefinition
|
||||
esid: prod-PropertyDefinition
|
||||
info: |
|
||||
ObjectLiteral :
|
||||
{ PropertyDefinitionList }
|
||||
{ PropertyDefinitionList , }
|
||||
|
||||
PropertyDefinitionList:
|
||||
PropertyDefinition
|
||||
PropertyDefinitionList , PropertyDefinition
|
||||
|
||||
PropertyDefinition:
|
||||
MethodDefinition
|
||||
...
|
||||
|
||||
MethodDefinition:
|
||||
PropertyName ( UniqueFormalParameters ){ FunctionBody }
|
||||
|
||||
PropertyName:
|
||||
LiteralPropertyName
|
||||
...
|
||||
|
||||
LiteralPropertyName:
|
||||
IdentifierName
|
||||
...
|
||||
|
||||
Reserved Words
|
||||
|
||||
A reserved word is an IdentifierName that cannot be used as an Identifier.
|
||||
---*/
|
||||
|
||||
var obj = {
|
||||
/*{ declareWith }*/() { return 42; }
|
||||
};
|
||||
|
||||
assert.sameValue(obj['/*{ referenceWith }*/'](), 42, 'property exists');
|
40
src/identifier-names/default/obj-prop-name.template
Normal file
40
src/identifier-names/default/obj-prop-name.template
Normal file
@ -0,0 +1,40 @@
|
||||
// Copyright (C) 2019 Leo Balter. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
/*---
|
||||
path: language/expressions/object/ident-name-prop-name-literal-
|
||||
name: PropertyName
|
||||
esid: prod-PropertyDefinition
|
||||
info: |
|
||||
ObjectLiteral :
|
||||
{ PropertyDefinitionList }
|
||||
{ PropertyDefinitionList , }
|
||||
|
||||
PropertyDefinitionList:
|
||||
PropertyDefinition
|
||||
PropertyDefinitionList , PropertyDefinition
|
||||
|
||||
PropertyDefinition:
|
||||
IdentifierReference
|
||||
PropertyName : AssignmentExpression
|
||||
MethodDefinition
|
||||
... AssignmentExpression
|
||||
...
|
||||
|
||||
PropertyName:
|
||||
LiteralPropertyName
|
||||
...
|
||||
|
||||
LiteralPropertyName:
|
||||
IdentifierName
|
||||
...
|
||||
|
||||
Reserved Words
|
||||
|
||||
A reserved word is an IdentifierName that cannot be used as an Identifier.
|
||||
---*/
|
||||
|
||||
var obj = {
|
||||
/*{ declareWith }*/: 42
|
||||
};
|
||||
|
||||
assert.sameValue(obj['/*{ referenceWith }*/'], 42, 'property exists');
|
12
src/identifier-names/delete-escaped.case
Normal file
12
src/identifier-names/delete-escaped.case
Normal file
@ -0,0 +1,12 @@
|
||||
// Copyright (C) 2019 Leo Balter. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
desc: delete is a valid identifier name, using escape
|
||||
template: default
|
||||
---*/
|
||||
|
||||
//- declareWith
|
||||
\u0064elete
|
||||
//- referenceWith
|
||||
delete
|
12
src/identifier-names/do-escaped.case
Normal file
12
src/identifier-names/do-escaped.case
Normal file
@ -0,0 +1,12 @@
|
||||
// Copyright (C) 2019 Leo Balter. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
desc: do is a valid identifier name, using escape
|
||||
template: default
|
||||
---*/
|
||||
|
||||
//- declareWith
|
||||
\u0064o
|
||||
//- referenceWith
|
||||
do
|
12
src/identifier-names/else-escaped.case
Normal file
12
src/identifier-names/else-escaped.case
Normal file
@ -0,0 +1,12 @@
|
||||
// Copyright (C) 2019 Leo Balter. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
desc: else is a valid identifier name, using escape
|
||||
template: default
|
||||
---*/
|
||||
|
||||
//- declareWith
|
||||
\u0065lse
|
||||
//- referenceWith
|
||||
else
|
12
src/identifier-names/enum-escaped.case
Normal file
12
src/identifier-names/enum-escaped.case
Normal file
@ -0,0 +1,12 @@
|
||||
// Copyright (C) 2019 Leo Balter. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
desc: enum is a valid identifier name, using escape
|
||||
template: default
|
||||
---*/
|
||||
|
||||
//- declareWith
|
||||
\u0065num
|
||||
//- referenceWith
|
||||
enum
|
12
src/identifier-names/export-escaped.case
Normal file
12
src/identifier-names/export-escaped.case
Normal file
@ -0,0 +1,12 @@
|
||||
// Copyright (C) 2019 Leo Balter. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
desc: export is a valid identifier name, using escape
|
||||
template: default
|
||||
---*/
|
||||
|
||||
//- declareWith
|
||||
\u0065xport
|
||||
//- referenceWith
|
||||
export
|
12
src/identifier-names/extends-escaped-ext.case
Normal file
12
src/identifier-names/extends-escaped-ext.case
Normal file
@ -0,0 +1,12 @@
|
||||
// Copyright (C) 2019 Leo Balter. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
desc: extends is a valid identifier name, using extended escape
|
||||
template: default
|
||||
---*/
|
||||
|
||||
//- declareWith
|
||||
\u{65}xtends
|
||||
//- referenceWith
|
||||
extends
|
12
src/identifier-names/extends-escaped.case
Normal file
12
src/identifier-names/extends-escaped.case
Normal file
@ -0,0 +1,12 @@
|
||||
// Copyright (C) 2019 Leo Balter. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
desc: extends is a valid identifier name, using escape
|
||||
template: default
|
||||
---*/
|
||||
|
||||
//- declareWith
|
||||
\u0065xtends
|
||||
//- referenceWith
|
||||
extends
|
12
src/identifier-names/extends.case
Normal file
12
src/identifier-names/extends.case
Normal file
@ -0,0 +1,12 @@
|
||||
// Copyright (C) 2019 Leo Balter. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
desc: extends is a valid identifier name
|
||||
template: default
|
||||
---*/
|
||||
|
||||
//- declareWith
|
||||
extends
|
||||
//- referenceWith
|
||||
extends
|
12
src/identifier-names/finally-escaped.case
Normal file
12
src/identifier-names/finally-escaped.case
Normal file
@ -0,0 +1,12 @@
|
||||
// Copyright (C) 2019 Leo Balter. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
desc: finally is a valid identifier name, using escape
|
||||
template: default
|
||||
---*/
|
||||
|
||||
//- declareWith
|
||||
\u0066inally
|
||||
//- referenceWith
|
||||
finally
|
12
src/identifier-names/for-escaped.case
Normal file
12
src/identifier-names/for-escaped.case
Normal file
@ -0,0 +1,12 @@
|
||||
// Copyright (C) 2019 Leo Balter. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
desc: for is a valid identifier name, using escape
|
||||
template: default
|
||||
---*/
|
||||
|
||||
//- declareWith
|
||||
\u0066or
|
||||
//- referenceWith
|
||||
for
|
12
src/identifier-names/function-escaped.case
Normal file
12
src/identifier-names/function-escaped.case
Normal file
@ -0,0 +1,12 @@
|
||||
// Copyright (C) 2019 Leo Balter. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
desc: function is a valid identifier name, using escape
|
||||
template: default
|
||||
---*/
|
||||
|
||||
//- declareWith
|
||||
\u0066unction
|
||||
//- referenceWith
|
||||
function
|
@ -0,0 +1,39 @@
|
||||
// Copyright (C) 2019 Leo Balter. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
path: language/expressions/arrow-function/dstr/syntax-error-ident-ref-
|
||||
name: IdentiferReference in ObjectAssignmentPattern (Arrow Function) cannot be a ReservedWord
|
||||
esid: prod-AssignmentPattern
|
||||
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
|
||||
negative:
|
||||
phase: parse
|
||||
type: SyntaxError
|
||||
features: [arrow-function, destructuring-assignment]
|
||||
flags: [onlyStrict]
|
||||
---*/
|
||||
|
||||
$DONOTEVALUATE();
|
||||
|
||||
var x = ({ /*{ declareWith }*/ }) => {};
|
@ -0,0 +1,44 @@
|
||||
// Copyright (C) 2019 Leo Balter. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
path: language/expressions/class/ident-name-method-def-
|
||||
name: MethodDefinition
|
||||
esid: prod-PropertyDefinition
|
||||
info: |
|
||||
ObjectLiteral :
|
||||
{ PropertyDefinitionList }
|
||||
{ PropertyDefinitionList , }
|
||||
|
||||
PropertyDefinitionList:
|
||||
PropertyDefinition
|
||||
PropertyDefinitionList , PropertyDefinition
|
||||
|
||||
PropertyDefinition:
|
||||
MethodDefinition
|
||||
...
|
||||
|
||||
MethodDefinition:
|
||||
PropertyName ( UniqueFormalParameters ){ FunctionBody }
|
||||
|
||||
PropertyName:
|
||||
LiteralPropertyName
|
||||
...
|
||||
|
||||
LiteralPropertyName:
|
||||
IdentifierName
|
||||
...
|
||||
|
||||
Reserved Words
|
||||
|
||||
A reserved word is an IdentifierName that cannot be used as an Identifier.
|
||||
features: [class]
|
||||
---*/
|
||||
|
||||
var C = class {
|
||||
/*{ declareWith }*/() { return 42; }
|
||||
}
|
||||
|
||||
var obj = new C();
|
||||
|
||||
assert.sameValue(obj['/*{ referenceWith }*/'](), 42, 'property exists');
|
@ -0,0 +1,44 @@
|
||||
// Copyright (C) 2019 Leo Balter. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
path: language/statements/class/ident-name-method-def-
|
||||
name: MethodDefinition
|
||||
esid: prod-PropertyDefinition
|
||||
info: |
|
||||
ObjectLiteral :
|
||||
{ PropertyDefinitionList }
|
||||
{ PropertyDefinitionList , }
|
||||
|
||||
PropertyDefinitionList:
|
||||
PropertyDefinition
|
||||
PropertyDefinitionList , PropertyDefinition
|
||||
|
||||
PropertyDefinition:
|
||||
MethodDefinition
|
||||
...
|
||||
|
||||
MethodDefinition:
|
||||
PropertyName ( UniqueFormalParameters ){ FunctionBody }
|
||||
|
||||
PropertyName:
|
||||
LiteralPropertyName
|
||||
...
|
||||
|
||||
LiteralPropertyName:
|
||||
IdentifierName
|
||||
...
|
||||
|
||||
Reserved Words
|
||||
|
||||
A reserved word is an IdentifierName that cannot be used as an Identifier.
|
||||
features: [class]
|
||||
---*/
|
||||
|
||||
class C {
|
||||
/*{ declareWith }*/() { return 42; }
|
||||
}
|
||||
|
||||
var obj = new C();
|
||||
|
||||
assert.sameValue(obj['/*{ referenceWith }*/'](), 42, 'property exists');
|
@ -0,0 +1,38 @@
|
||||
// Copyright (C) 2019 Leo Balter. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
/*---
|
||||
path: language/expressions/object/covered-ident-name-prop-name-literal-
|
||||
name: PropertyName in a CoverParenthesizedExpressionAndArrowParameterList
|
||||
esid: prod-PropertyDefinition
|
||||
info: |
|
||||
ObjectLiteral :
|
||||
{ PropertyDefinitionList }
|
||||
{ PropertyDefinitionList , }
|
||||
|
||||
PropertyDefinitionList:
|
||||
PropertyDefinition
|
||||
PropertyDefinitionList , PropertyDefinition
|
||||
|
||||
PropertyDefinition:
|
||||
IdentifierReference
|
||||
PropertyName : AssignmentExpression
|
||||
MethodDefinition
|
||||
... AssignmentExpression
|
||||
...
|
||||
|
||||
PropertyName:
|
||||
LiteralPropertyName
|
||||
...
|
||||
|
||||
LiteralPropertyName:
|
||||
IdentifierName
|
||||
...
|
||||
|
||||
Reserved Words
|
||||
|
||||
A reserved word is an IdentifierName that cannot be used as an Identifier.
|
||||
---*/
|
||||
|
||||
var obj = ({ /*{ declareWith }*/: 42 });
|
||||
|
||||
assert.sameValue(obj['/*{ referenceWith }*/'], 42, 'property exists');
|
@ -0,0 +1,21 @@
|
||||
// Copyright (C) 2019 Leo Balter. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
/*---
|
||||
path: language/expressions/assignment/member-expr-ident-name-
|
||||
name: MemberExpression IdentifierName
|
||||
esid: prod-PropertyDefinition
|
||||
info: |
|
||||
MemberExpression:
|
||||
...
|
||||
MemberExpression . IdentifierName
|
||||
|
||||
Reserved Words
|
||||
|
||||
A reserved word is an IdentifierName that cannot be used as an Identifier.
|
||||
---*/
|
||||
|
||||
var obj = {};
|
||||
|
||||
obj./*{ declareWith }*/ = 42;
|
||||
|
||||
assert.sameValue(obj['/*{ referenceWith }*/'], 42, 'property exists');
|
@ -0,0 +1,39 @@
|
||||
// Copyright (C) 2019 Leo Balter. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
path: language/expressions/assignment/dstr/syntax-error-ident-ref-
|
||||
name: IdentiferReference in ObjectAssignmentPattern cannot be a ReservedWord
|
||||
esid: prod-AssignmentPattern
|
||||
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
|
||||
negative:
|
||||
phase: parse
|
||||
type: SyntaxError
|
||||
flags: [onlyStrict]
|
||||
features: [destructuring-assignment]
|
||||
---*/
|
||||
|
||||
$DONOTEVALUATE();
|
||||
|
||||
var x = { /*{ declareWith }*/ } = { /*{ referenceWith }*/: 42 };
|
@ -0,0 +1,41 @@
|
||||
// Copyright (C) 2019 Leo Balter. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
path: language/expressions/assignment/dstr/ident-name-prop-name-literal-
|
||||
name: PropertyName of an ObjectAssignmentPattern
|
||||
esid: prod-AssignmentPattern
|
||||
info: |
|
||||
AssignmentPattern:
|
||||
ObjectAssignmentPattern
|
||||
|
||||
ObjectAssignmentPattern:
|
||||
{ AssignmentPropertyList }
|
||||
|
||||
AssignmentPropertyList:
|
||||
AssignmentProperty
|
||||
AssignmentPropertyList , AssignmentProperty
|
||||
|
||||
AssignmentProperty:
|
||||
IdentifierReference Initializer_opt
|
||||
PropertyName : AssignmentElement
|
||||
|
||||
PropertyName:
|
||||
LiteralPropertyName
|
||||
...
|
||||
|
||||
LiteralPropertyName:
|
||||
IdentifierName
|
||||
...
|
||||
|
||||
Reserved Words
|
||||
|
||||
A reserved word is an IdentifierName that cannot be used as an Identifier.
|
||||
features: [destructuring-assignment]
|
||||
flags: [noStrict]
|
||||
---*/
|
||||
|
||||
var y = { /*{ declareWith }*/: x } = { /*{ referenceWith }*/: 42 };
|
||||
|
||||
assert.sameValue(x, 42, 'property exists');
|
||||
assert.sameValue(y['/*{ referenceWith }*/'], 42, 'assignment successful');
|
@ -0,0 +1,41 @@
|
||||
// Copyright (C) 2019 Leo Balter. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
path: language/expressions/object/ident-name-method-def-
|
||||
name: MethodDefinition
|
||||
esid: prod-PropertyDefinition
|
||||
info: |
|
||||
ObjectLiteral :
|
||||
{ PropertyDefinitionList }
|
||||
{ PropertyDefinitionList , }
|
||||
|
||||
PropertyDefinitionList:
|
||||
PropertyDefinition
|
||||
PropertyDefinitionList , PropertyDefinition
|
||||
|
||||
PropertyDefinition:
|
||||
MethodDefinition
|
||||
...
|
||||
|
||||
MethodDefinition:
|
||||
PropertyName ( UniqueFormalParameters ){ FunctionBody }
|
||||
|
||||
PropertyName:
|
||||
LiteralPropertyName
|
||||
...
|
||||
|
||||
LiteralPropertyName:
|
||||
IdentifierName
|
||||
...
|
||||
|
||||
Reserved Words
|
||||
|
||||
A reserved word is an IdentifierName that cannot be used as an Identifier.
|
||||
---*/
|
||||
|
||||
var obj = {
|
||||
/*{ declareWith }*/() { return 42; }
|
||||
};
|
||||
|
||||
assert.sameValue(obj['/*{ referenceWith }*/'](), 42, 'property exists');
|
@ -0,0 +1,40 @@
|
||||
// Copyright (C) 2019 Leo Balter. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
/*---
|
||||
path: language/expressions/object/ident-name-prop-name-literal-
|
||||
name: PropertyName
|
||||
esid: prod-PropertyDefinition
|
||||
info: |
|
||||
ObjectLiteral :
|
||||
{ PropertyDefinitionList }
|
||||
{ PropertyDefinitionList , }
|
||||
|
||||
PropertyDefinitionList:
|
||||
PropertyDefinition
|
||||
PropertyDefinitionList , PropertyDefinition
|
||||
|
||||
PropertyDefinition:
|
||||
IdentifierReference
|
||||
PropertyName : AssignmentExpression
|
||||
MethodDefinition
|
||||
... AssignmentExpression
|
||||
...
|
||||
|
||||
PropertyName:
|
||||
LiteralPropertyName
|
||||
...
|
||||
|
||||
LiteralPropertyName:
|
||||
IdentifierName
|
||||
...
|
||||
|
||||
Reserved Words
|
||||
|
||||
A reserved word is an IdentifierName that cannot be used as an Identifier.
|
||||
---*/
|
||||
|
||||
var obj = {
|
||||
/*{ declareWith }*/: 42
|
||||
};
|
||||
|
||||
assert.sameValue(obj['/*{ referenceWith }*/'], 42, 'property exists');
|
12
src/identifier-names/if-escaped.case
Normal file
12
src/identifier-names/if-escaped.case
Normal file
@ -0,0 +1,12 @@
|
||||
// Copyright (C) 2019 Leo Balter. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
desc: if is a valid identifier name, using escape
|
||||
template: default
|
||||
---*/
|
||||
|
||||
//- declareWith
|
||||
i\u0066
|
||||
//- referenceWith
|
||||
if
|
12
src/identifier-names/implements-escaped.case
Normal file
12
src/identifier-names/implements-escaped.case
Normal file
@ -0,0 +1,12 @@
|
||||
// Copyright (C) 2019 Leo Balter. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
desc: implements is a valid identifier name, using escape
|
||||
template: future-reserved-words
|
||||
---*/
|
||||
|
||||
//- declareWith
|
||||
\u0069mplements
|
||||
//- referenceWith
|
||||
implements
|
12
src/identifier-names/import-escaped.case
Normal file
12
src/identifier-names/import-escaped.case
Normal file
@ -0,0 +1,12 @@
|
||||
// Copyright (C) 2019 Leo Balter. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
desc: import is a valid identifier name, using escape
|
||||
template: default
|
||||
---*/
|
||||
|
||||
//- declareWith
|
||||
\u0069mport
|
||||
//- referenceWith
|
||||
import
|
12
src/identifier-names/in-escaped.case
Normal file
12
src/identifier-names/in-escaped.case
Normal file
@ -0,0 +1,12 @@
|
||||
// Copyright (C) 2019 Leo Balter. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
desc: in is a valid identifier name, using escape
|
||||
template: default
|
||||
---*/
|
||||
|
||||
//- declareWith
|
||||
\u0069n
|
||||
//- referenceWith
|
||||
in
|
12
src/identifier-names/instanceof-escaped.case
Normal file
12
src/identifier-names/instanceof-escaped.case
Normal file
@ -0,0 +1,12 @@
|
||||
// Copyright (C) 2019 Leo Balter. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
desc: instanceof is a valid identifier name, using escape
|
||||
template: default
|
||||
---*/
|
||||
|
||||
//- declareWith
|
||||
\u0069nstanceof
|
||||
//- referenceWith
|
||||
instanceof
|
12
src/identifier-names/interface-escaped.case
Normal file
12
src/identifier-names/interface-escaped.case
Normal file
@ -0,0 +1,12 @@
|
||||
// Copyright (C) 2019 Leo Balter. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
desc: interface is a valid identifier name, using escape
|
||||
template: future-reserved-words
|
||||
---*/
|
||||
|
||||
//- declareWith
|
||||
interf\u0061ce
|
||||
//- referenceWith
|
||||
interface
|
12
src/identifier-names/let-escaped.case
Normal file
12
src/identifier-names/let-escaped.case
Normal file
@ -0,0 +1,12 @@
|
||||
// Copyright (C) 2019 Leo Balter. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
desc: let is a valid identifier name, using escape
|
||||
template: future-reserved-words
|
||||
---*/
|
||||
|
||||
//- declareWith
|
||||
l\u0065t
|
||||
//- referenceWith
|
||||
let
|
12
src/identifier-names/new-escaped.case
Normal file
12
src/identifier-names/new-escaped.case
Normal file
@ -0,0 +1,12 @@
|
||||
// Copyright (C) 2019 Leo Balter. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
desc: new is a valid identifier name, using escape
|
||||
template: default
|
||||
---*/
|
||||
|
||||
//- declareWith
|
||||
n\u0065w
|
||||
//- referenceWith
|
||||
new
|
12
src/identifier-names/package-escaped.case
Normal file
12
src/identifier-names/package-escaped.case
Normal file
@ -0,0 +1,12 @@
|
||||
// Copyright (C) 2019 Leo Balter. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
desc: package is a valid identifier name, using escape
|
||||
template: future-reserved-words
|
||||
---*/
|
||||
|
||||
//- declareWith
|
||||
p\u0061ckage
|
||||
//- referenceWith
|
||||
package
|
12
src/identifier-names/private-escaped.case
Normal file
12
src/identifier-names/private-escaped.case
Normal file
@ -0,0 +1,12 @@
|
||||
// Copyright (C) 2019 Leo Balter. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
desc: private is a valid identifier name, using escape
|
||||
template: future-reserved-words
|
||||
---*/
|
||||
|
||||
//- declareWith
|
||||
privat\u0065
|
||||
//- referenceWith
|
||||
private
|
12
src/identifier-names/protected-escaped.case
Normal file
12
src/identifier-names/protected-escaped.case
Normal file
@ -0,0 +1,12 @@
|
||||
// Copyright (C) 2019 Leo Balter. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
desc: protected is a valid identifier name, using escape
|
||||
template: future-reserved-words
|
||||
---*/
|
||||
|
||||
//- declareWith
|
||||
prot\u0065cted
|
||||
//- referenceWith
|
||||
protected
|
12
src/identifier-names/public-escaped.case
Normal file
12
src/identifier-names/public-escaped.case
Normal file
@ -0,0 +1,12 @@
|
||||
// Copyright (C) 2019 Leo Balter. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
desc: public is a valid identifier name, using escape
|
||||
template: future-reserved-words
|
||||
---*/
|
||||
|
||||
//- declareWith
|
||||
pu\u0062lic
|
||||
//- referenceWith
|
||||
public
|
12
src/identifier-names/return-escaped.case
Normal file
12
src/identifier-names/return-escaped.case
Normal file
@ -0,0 +1,12 @@
|
||||
// Copyright (C) 2019 Leo Balter. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
desc: return is a valid identifier name, using escape
|
||||
template: default
|
||||
---*/
|
||||
|
||||
//- declareWith
|
||||
r\u0065turn
|
||||
//- referenceWith
|
||||
return
|
12
src/identifier-names/static-escaped.case
Normal file
12
src/identifier-names/static-escaped.case
Normal file
@ -0,0 +1,12 @@
|
||||
// Copyright (C) 2019 Leo Balter. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
desc: static is a valid identifier name, using escape
|
||||
template: future-reserved-words
|
||||
---*/
|
||||
|
||||
//- declareWith
|
||||
st\u0061tic
|
||||
//- referenceWith
|
||||
static
|
12
src/identifier-names/super-escaped.case
Normal file
12
src/identifier-names/super-escaped.case
Normal file
@ -0,0 +1,12 @@
|
||||
// Copyright (C) 2019 Leo Balter. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
desc: super is a valid identifier name, using escape
|
||||
template: default
|
||||
---*/
|
||||
|
||||
//- declareWith
|
||||
sup\u0065r
|
||||
//- referenceWith
|
||||
super
|
12
src/identifier-names/switch-escaped.case
Normal file
12
src/identifier-names/switch-escaped.case
Normal file
@ -0,0 +1,12 @@
|
||||
// Copyright (C) 2019 Leo Balter. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
desc: switch is a valid identifier name, using escape
|
||||
template: default
|
||||
---*/
|
||||
|
||||
//- declareWith
|
||||
sw\u0069tch
|
||||
//- referenceWith
|
||||
switch
|
12
src/identifier-names/this-escaped.case
Normal file
12
src/identifier-names/this-escaped.case
Normal file
@ -0,0 +1,12 @@
|
||||
// Copyright (C) 2019 Leo Balter. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
desc: this is a valid identifier name, using escape
|
||||
template: default
|
||||
---*/
|
||||
|
||||
//- declareWith
|
||||
th\u0069s
|
||||
//- referenceWith
|
||||
this
|
12
src/identifier-names/throw-escaped.case
Normal file
12
src/identifier-names/throw-escaped.case
Normal file
@ -0,0 +1,12 @@
|
||||
// Copyright (C) 2019 Leo Balter. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
desc: throw is a valid identifier name, using escape
|
||||
template: default
|
||||
---*/
|
||||
|
||||
//- declareWith
|
||||
t\u0068row
|
||||
//- referenceWith
|
||||
throw
|
12
src/identifier-names/try-escaped.case
Normal file
12
src/identifier-names/try-escaped.case
Normal file
@ -0,0 +1,12 @@
|
||||
// Copyright (C) 2019 Leo Balter. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
desc: try is a valid identifier name, using escape
|
||||
template: default
|
||||
---*/
|
||||
|
||||
//- declareWith
|
||||
tr\u0079
|
||||
//- referenceWith
|
||||
try
|
12
src/identifier-names/typeof-escaped.case
Normal file
12
src/identifier-names/typeof-escaped.case
Normal file
@ -0,0 +1,12 @@
|
||||
// Copyright (C) 2019 Leo Balter. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
desc: typeof is a valid identifier name, using escape
|
||||
template: default
|
||||
---*/
|
||||
|
||||
//- declareWith
|
||||
typ\u0065of
|
||||
//- referenceWith
|
||||
typeof
|
12
src/identifier-names/var-escaped.case
Normal file
12
src/identifier-names/var-escaped.case
Normal file
@ -0,0 +1,12 @@
|
||||
// Copyright (C) 2019 Leo Balter. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
desc: var is a valid identifier name, using escape
|
||||
template: default
|
||||
---*/
|
||||
|
||||
//- declareWith
|
||||
v\u0061r
|
||||
//- referenceWith
|
||||
var
|
12
src/identifier-names/void-escaped.case
Normal file
12
src/identifier-names/void-escaped.case
Normal file
@ -0,0 +1,12 @@
|
||||
// Copyright (C) 2019 Leo Balter. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
desc: void is a valid identifier name, using escape
|
||||
template: default
|
||||
---*/
|
||||
|
||||
//- declareWith
|
||||
voi\u0064
|
||||
//- referenceWith
|
||||
void
|
12
src/identifier-names/while-escaped.case
Normal file
12
src/identifier-names/while-escaped.case
Normal file
@ -0,0 +1,12 @@
|
||||
// Copyright (C) 2019 Leo Balter. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
desc: while is a valid identifier name, using escape
|
||||
template: default
|
||||
---*/
|
||||
|
||||
//- declareWith
|
||||
whil\u0065
|
||||
//- referenceWith
|
||||
while
|
12
src/identifier-names/with-escaped.case
Normal file
12
src/identifier-names/with-escaped.case
Normal file
@ -0,0 +1,12 @@
|
||||
// Copyright (C) 2019 Leo Balter. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
desc: with is a valid identifier name, using escape
|
||||
template: default
|
||||
---*/
|
||||
|
||||
//- declareWith
|
||||
w\u0069th
|
||||
//- referenceWith
|
||||
with
|
@ -0,0 +1,40 @@
|
||||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/break-escaped.case
|
||||
// - src/identifier-names/default/arrow-fn-assignment-identifier.template
|
||||
/*---
|
||||
description: break is a valid identifier name, using escape (IdentiferReference in ObjectAssignmentPattern (Arrow Function) cannot be a ReservedWord)
|
||||
esid: prod-AssignmentPattern
|
||||
features: [arrow-function, 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 = ({ bre\u0061k }) => {};
|
@ -0,0 +1,40 @@
|
||||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/case-escaped.case
|
||||
// - src/identifier-names/default/arrow-fn-assignment-identifier.template
|
||||
/*---
|
||||
description: case is a valid identifier name, using escape (IdentiferReference in ObjectAssignmentPattern (Arrow Function) cannot be a ReservedWord)
|
||||
esid: prod-AssignmentPattern
|
||||
features: [arrow-function, 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 = ({ c\u0061se }) => {};
|
@ -0,0 +1,40 @@
|
||||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/catch-escaped.case
|
||||
// - src/identifier-names/default/arrow-fn-assignment-identifier.template
|
||||
/*---
|
||||
description: catch is a valid identifier name, using escape (IdentiferReference in ObjectAssignmentPattern (Arrow Function) cannot be a ReservedWord)
|
||||
esid: prod-AssignmentPattern
|
||||
features: [arrow-function, 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 = ({ c\u0061tch }) => {};
|
@ -0,0 +1,40 @@
|
||||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/class-escaped.case
|
||||
// - src/identifier-names/default/arrow-fn-assignment-identifier.template
|
||||
/*---
|
||||
description: class is a valid identifier name, using escape (IdentiferReference in ObjectAssignmentPattern (Arrow Function) cannot be a ReservedWord)
|
||||
esid: prod-AssignmentPattern
|
||||
features: [arrow-function, 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 = ({ cl\u0061ss }) => {};
|
@ -0,0 +1,40 @@
|
||||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/const-escaped.case
|
||||
// - src/identifier-names/default/arrow-fn-assignment-identifier.template
|
||||
/*---
|
||||
description: const is a valid identifier name, using escape (IdentiferReference in ObjectAssignmentPattern (Arrow Function) cannot be a ReservedWord)
|
||||
esid: prod-AssignmentPattern
|
||||
features: [arrow-function, 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 = ({ \u0063onst }) => {};
|
@ -0,0 +1,40 @@
|
||||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/continue-escaped.case
|
||||
// - src/identifier-names/default/arrow-fn-assignment-identifier.template
|
||||
/*---
|
||||
description: continue is a valid identifier name, using escape (IdentiferReference in ObjectAssignmentPattern (Arrow Function) cannot be a ReservedWord)
|
||||
esid: prod-AssignmentPattern
|
||||
features: [arrow-function, 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 = ({ \u0063ontinue }) => {};
|
@ -0,0 +1,40 @@
|
||||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/debugger-escaped.case
|
||||
// - src/identifier-names/default/arrow-fn-assignment-identifier.template
|
||||
/*---
|
||||
description: debugger is a valid identifier name, using escape (IdentiferReference in ObjectAssignmentPattern (Arrow Function) cannot be a ReservedWord)
|
||||
esid: prod-AssignmentPattern
|
||||
features: [arrow-function, 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 = ({ \u0064ebugger }) => {};
|
@ -0,0 +1,40 @@
|
||||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/default-escaped-ext.case
|
||||
// - src/identifier-names/default/arrow-fn-assignment-identifier.template
|
||||
/*---
|
||||
description: default is a valid identifier name, using extended escape (IdentiferReference in ObjectAssignmentPattern (Arrow Function) cannot be a ReservedWord)
|
||||
esid: prod-AssignmentPattern
|
||||
features: [arrow-function, 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 = ({ def\u{61}ult }) => {};
|
@ -0,0 +1,40 @@
|
||||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/default-escaped.case
|
||||
// - src/identifier-names/default/arrow-fn-assignment-identifier.template
|
||||
/*---
|
||||
description: default is a valid identifier name, using escape (IdentiferReference in ObjectAssignmentPattern (Arrow Function) cannot be a ReservedWord)
|
||||
esid: prod-AssignmentPattern
|
||||
features: [arrow-function, 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 = ({ def\u0061ult }) => {};
|
@ -0,0 +1,40 @@
|
||||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/default.case
|
||||
// - src/identifier-names/default/arrow-fn-assignment-identifier.template
|
||||
/*---
|
||||
description: default is a valid identifier name (IdentiferReference in ObjectAssignmentPattern (Arrow Function) cannot be a ReservedWord)
|
||||
esid: prod-AssignmentPattern
|
||||
features: [arrow-function, 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 = ({ default }) => {};
|
@ -0,0 +1,40 @@
|
||||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/delete-escaped.case
|
||||
// - src/identifier-names/default/arrow-fn-assignment-identifier.template
|
||||
/*---
|
||||
description: delete is a valid identifier name, using escape (IdentiferReference in ObjectAssignmentPattern (Arrow Function) cannot be a ReservedWord)
|
||||
esid: prod-AssignmentPattern
|
||||
features: [arrow-function, 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 = ({ \u0064elete }) => {};
|
@ -0,0 +1,40 @@
|
||||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/do-escaped.case
|
||||
// - src/identifier-names/default/arrow-fn-assignment-identifier.template
|
||||
/*---
|
||||
description: do is a valid identifier name, using escape (IdentiferReference in ObjectAssignmentPattern (Arrow Function) cannot be a ReservedWord)
|
||||
esid: prod-AssignmentPattern
|
||||
features: [arrow-function, 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 = ({ \u0064o }) => {};
|
@ -0,0 +1,40 @@
|
||||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/else-escaped.case
|
||||
// - src/identifier-names/default/arrow-fn-assignment-identifier.template
|
||||
/*---
|
||||
description: else is a valid identifier name, using escape (IdentiferReference in ObjectAssignmentPattern (Arrow Function) cannot be a ReservedWord)
|
||||
esid: prod-AssignmentPattern
|
||||
features: [arrow-function, 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 }) => {};
|
@ -0,0 +1,40 @@
|
||||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/enum-escaped.case
|
||||
// - src/identifier-names/default/arrow-fn-assignment-identifier.template
|
||||
/*---
|
||||
description: enum is a valid identifier name, using escape (IdentiferReference in ObjectAssignmentPattern (Arrow Function) cannot be a ReservedWord)
|
||||
esid: prod-AssignmentPattern
|
||||
features: [arrow-function, 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 = ({ \u0065num }) => {};
|
@ -0,0 +1,40 @@
|
||||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/export-escaped.case
|
||||
// - src/identifier-names/default/arrow-fn-assignment-identifier.template
|
||||
/*---
|
||||
description: export is a valid identifier name, using escape (IdentiferReference in ObjectAssignmentPattern (Arrow Function) cannot be a ReservedWord)
|
||||
esid: prod-AssignmentPattern
|
||||
features: [arrow-function, 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 = ({ \u0065xport }) => {};
|
@ -0,0 +1,40 @@
|
||||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/extends-escaped-ext.case
|
||||
// - src/identifier-names/default/arrow-fn-assignment-identifier.template
|
||||
/*---
|
||||
description: extends is a valid identifier name, using extended escape (IdentiferReference in ObjectAssignmentPattern (Arrow Function) cannot be a ReservedWord)
|
||||
esid: prod-AssignmentPattern
|
||||
features: [arrow-function, 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 = ({ \u{65}xtends }) => {};
|
@ -0,0 +1,40 @@
|
||||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/extends-escaped.case
|
||||
// - src/identifier-names/default/arrow-fn-assignment-identifier.template
|
||||
/*---
|
||||
description: extends is a valid identifier name, using escape (IdentiferReference in ObjectAssignmentPattern (Arrow Function) cannot be a ReservedWord)
|
||||
esid: prod-AssignmentPattern
|
||||
features: [arrow-function, 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 = ({ \u0065xtends }) => {};
|
@ -0,0 +1,40 @@
|
||||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/extends.case
|
||||
// - src/identifier-names/default/arrow-fn-assignment-identifier.template
|
||||
/*---
|
||||
description: extends is a valid identifier name (IdentiferReference in ObjectAssignmentPattern (Arrow Function) cannot be a ReservedWord)
|
||||
esid: prod-AssignmentPattern
|
||||
features: [arrow-function, 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 = ({ extends }) => {};
|
@ -0,0 +1,40 @@
|
||||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/finally-escaped.case
|
||||
// - src/identifier-names/default/arrow-fn-assignment-identifier.template
|
||||
/*---
|
||||
description: finally is a valid identifier name, using escape (IdentiferReference in ObjectAssignmentPattern (Arrow Function) cannot be a ReservedWord)
|
||||
esid: prod-AssignmentPattern
|
||||
features: [arrow-function, 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 = ({ \u0066inally }) => {};
|
@ -0,0 +1,40 @@
|
||||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/for-escaped.case
|
||||
// - src/identifier-names/default/arrow-fn-assignment-identifier.template
|
||||
/*---
|
||||
description: for is a valid identifier name, using escape (IdentiferReference in ObjectAssignmentPattern (Arrow Function) cannot be a ReservedWord)
|
||||
esid: prod-AssignmentPattern
|
||||
features: [arrow-function, 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 = ({ \u0066or }) => {};
|
@ -0,0 +1,40 @@
|
||||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/function-escaped.case
|
||||
// - src/identifier-names/default/arrow-fn-assignment-identifier.template
|
||||
/*---
|
||||
description: function is a valid identifier name, using escape (IdentiferReference in ObjectAssignmentPattern (Arrow Function) cannot be a ReservedWord)
|
||||
esid: prod-AssignmentPattern
|
||||
features: [arrow-function, 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 = ({ \u0066unction }) => {};
|
@ -0,0 +1,40 @@
|
||||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/if-escaped.case
|
||||
// - src/identifier-names/default/arrow-fn-assignment-identifier.template
|
||||
/*---
|
||||
description: if is a valid identifier name, using escape (IdentiferReference in ObjectAssignmentPattern (Arrow Function) cannot be a ReservedWord)
|
||||
esid: prod-AssignmentPattern
|
||||
features: [arrow-function, 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 = ({ i\u0066 }) => {};
|
@ -0,0 +1,40 @@
|
||||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/implements-escaped.case
|
||||
// - src/identifier-names/future-reserved-words/arrow-fn-assignment-identifier.template
|
||||
/*---
|
||||
description: implements is a valid identifier name, using escape (IdentiferReference in ObjectAssignmentPattern (Arrow Function) cannot be a ReservedWord)
|
||||
esid: prod-AssignmentPattern
|
||||
features: [arrow-function, 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 = ({ \u0069mplements }) => {};
|
@ -0,0 +1,40 @@
|
||||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/import-escaped.case
|
||||
// - src/identifier-names/default/arrow-fn-assignment-identifier.template
|
||||
/*---
|
||||
description: import is a valid identifier name, using escape (IdentiferReference in ObjectAssignmentPattern (Arrow Function) cannot be a ReservedWord)
|
||||
esid: prod-AssignmentPattern
|
||||
features: [arrow-function, 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 = ({ \u0069mport }) => {};
|
@ -0,0 +1,40 @@
|
||||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/in-escaped.case
|
||||
// - src/identifier-names/default/arrow-fn-assignment-identifier.template
|
||||
/*---
|
||||
description: in is a valid identifier name, using escape (IdentiferReference in ObjectAssignmentPattern (Arrow Function) cannot be a ReservedWord)
|
||||
esid: prod-AssignmentPattern
|
||||
features: [arrow-function, 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 = ({ \u0069n }) => {};
|
@ -0,0 +1,40 @@
|
||||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/instanceof-escaped.case
|
||||
// - src/identifier-names/default/arrow-fn-assignment-identifier.template
|
||||
/*---
|
||||
description: instanceof is a valid identifier name, using escape (IdentiferReference in ObjectAssignmentPattern (Arrow Function) cannot be a ReservedWord)
|
||||
esid: prod-AssignmentPattern
|
||||
features: [arrow-function, 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 = ({ \u0069nstanceof }) => {};
|
@ -0,0 +1,40 @@
|
||||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/interface-escaped.case
|
||||
// - src/identifier-names/future-reserved-words/arrow-fn-assignment-identifier.template
|
||||
/*---
|
||||
description: interface is a valid identifier name, using escape (IdentiferReference in ObjectAssignmentPattern (Arrow Function) cannot be a ReservedWord)
|
||||
esid: prod-AssignmentPattern
|
||||
features: [arrow-function, 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 = ({ interf\u0061ce }) => {};
|
@ -0,0 +1,40 @@
|
||||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/let-escaped.case
|
||||
// - src/identifier-names/future-reserved-words/arrow-fn-assignment-identifier.template
|
||||
/*---
|
||||
description: let is a valid identifier name, using escape (IdentiferReference in ObjectAssignmentPattern (Arrow Function) cannot be a ReservedWord)
|
||||
esid: prod-AssignmentPattern
|
||||
features: [arrow-function, 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 = ({ l\u0065t }) => {};
|
@ -0,0 +1,40 @@
|
||||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/new-escaped.case
|
||||
// - src/identifier-names/default/arrow-fn-assignment-identifier.template
|
||||
/*---
|
||||
description: new is a valid identifier name, using escape (IdentiferReference in ObjectAssignmentPattern (Arrow Function) cannot be a ReservedWord)
|
||||
esid: prod-AssignmentPattern
|
||||
features: [arrow-function, 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 = ({ n\u0065w }) => {};
|
@ -0,0 +1,40 @@
|
||||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/package-escaped.case
|
||||
// - src/identifier-names/future-reserved-words/arrow-fn-assignment-identifier.template
|
||||
/*---
|
||||
description: package is a valid identifier name, using escape (IdentiferReference in ObjectAssignmentPattern (Arrow Function) cannot be a ReservedWord)
|
||||
esid: prod-AssignmentPattern
|
||||
features: [arrow-function, 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 = ({ p\u0061ckage }) => {};
|
@ -0,0 +1,40 @@
|
||||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/private-escaped.case
|
||||
// - src/identifier-names/future-reserved-words/arrow-fn-assignment-identifier.template
|
||||
/*---
|
||||
description: private is a valid identifier name, using escape (IdentiferReference in ObjectAssignmentPattern (Arrow Function) cannot be a ReservedWord)
|
||||
esid: prod-AssignmentPattern
|
||||
features: [arrow-function, 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 = ({ privat\u0065 }) => {};
|
@ -0,0 +1,40 @@
|
||||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/protected-escaped.case
|
||||
// - src/identifier-names/future-reserved-words/arrow-fn-assignment-identifier.template
|
||||
/*---
|
||||
description: protected is a valid identifier name, using escape (IdentiferReference in ObjectAssignmentPattern (Arrow Function) cannot be a ReservedWord)
|
||||
esid: prod-AssignmentPattern
|
||||
features: [arrow-function, 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 = ({ prot\u0065cted }) => {};
|
@ -0,0 +1,40 @@
|
||||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/public-escaped.case
|
||||
// - src/identifier-names/future-reserved-words/arrow-fn-assignment-identifier.template
|
||||
/*---
|
||||
description: public is a valid identifier name, using escape (IdentiferReference in ObjectAssignmentPattern (Arrow Function) cannot be a ReservedWord)
|
||||
esid: prod-AssignmentPattern
|
||||
features: [arrow-function, 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 = ({ pu\u0062lic }) => {};
|
@ -0,0 +1,40 @@
|
||||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/return-escaped.case
|
||||
// - src/identifier-names/default/arrow-fn-assignment-identifier.template
|
||||
/*---
|
||||
description: return is a valid identifier name, using escape (IdentiferReference in ObjectAssignmentPattern (Arrow Function) cannot be a ReservedWord)
|
||||
esid: prod-AssignmentPattern
|
||||
features: [arrow-function, 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 = ({ r\u0065turn }) => {};
|
@ -0,0 +1,40 @@
|
||||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/static-escaped.case
|
||||
// - src/identifier-names/future-reserved-words/arrow-fn-assignment-identifier.template
|
||||
/*---
|
||||
description: static is a valid identifier name, using escape (IdentiferReference in ObjectAssignmentPattern (Arrow Function) cannot be a ReservedWord)
|
||||
esid: prod-AssignmentPattern
|
||||
features: [arrow-function, 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 }) => {};
|
@ -0,0 +1,40 @@
|
||||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/super-escaped.case
|
||||
// - src/identifier-names/default/arrow-fn-assignment-identifier.template
|
||||
/*---
|
||||
description: super is a valid identifier name, using escape (IdentiferReference in ObjectAssignmentPattern (Arrow Function) cannot be a ReservedWord)
|
||||
esid: prod-AssignmentPattern
|
||||
features: [arrow-function, 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 = ({ sup\u0065r }) => {};
|
@ -0,0 +1,40 @@
|
||||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/switch-escaped.case
|
||||
// - src/identifier-names/default/arrow-fn-assignment-identifier.template
|
||||
/*---
|
||||
description: switch is a valid identifier name, using escape (IdentiferReference in ObjectAssignmentPattern (Arrow Function) cannot be a ReservedWord)
|
||||
esid: prod-AssignmentPattern
|
||||
features: [arrow-function, 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 = ({ sw\u0069tch }) => {};
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user