mirror of https://github.com/tc39/test262.git
Generate tests
This commit is contained in:
parent
ad98bcaf18
commit
ae4df81f6f
|
@ -0,0 +1,22 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/await-escaped.case
|
||||
// - src/identifier-names/default/member-expr.template
|
||||
/*---
|
||||
description: await is a valid identifier name, using escape (MemberExpression IdentifierName)
|
||||
esid: prod-PropertyDefinition
|
||||
flags: [generated]
|
||||
info: |
|
||||
MemberExpression:
|
||||
...
|
||||
MemberExpression . IdentifierName
|
||||
|
||||
Reserved Words
|
||||
|
||||
A reserved word is an IdentifierName that cannot be used as an Identifier.
|
||||
---*/
|
||||
|
||||
var obj = {};
|
||||
|
||||
obj.\u0061wait = 42;
|
||||
|
||||
assert.sameValue(obj['await'], 42, 'property exists');
|
|
@ -0,0 +1,22 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/break-escaped.case
|
||||
// - src/identifier-names/default/member-expr.template
|
||||
/*---
|
||||
description: break is a valid identifier name, using escape (MemberExpression IdentifierName)
|
||||
esid: prod-PropertyDefinition
|
||||
flags: [generated]
|
||||
info: |
|
||||
MemberExpression:
|
||||
...
|
||||
MemberExpression . IdentifierName
|
||||
|
||||
Reserved Words
|
||||
|
||||
A reserved word is an IdentifierName that cannot be used as an Identifier.
|
||||
---*/
|
||||
|
||||
var obj = {};
|
||||
|
||||
obj.bre\u0061k = 42;
|
||||
|
||||
assert.sameValue(obj['break'], 42, 'property exists');
|
|
@ -0,0 +1,22 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/case-escaped.case
|
||||
// - src/identifier-names/default/member-expr.template
|
||||
/*---
|
||||
description: case is a valid identifier name, using escape (MemberExpression IdentifierName)
|
||||
esid: prod-PropertyDefinition
|
||||
flags: [generated]
|
||||
info: |
|
||||
MemberExpression:
|
||||
...
|
||||
MemberExpression . IdentifierName
|
||||
|
||||
Reserved Words
|
||||
|
||||
A reserved word is an IdentifierName that cannot be used as an Identifier.
|
||||
---*/
|
||||
|
||||
var obj = {};
|
||||
|
||||
obj.c\u0061se = 42;
|
||||
|
||||
assert.sameValue(obj['case'], 42, 'property exists');
|
|
@ -0,0 +1,22 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/catch-escaped.case
|
||||
// - src/identifier-names/default/member-expr.template
|
||||
/*---
|
||||
description: catch is a valid identifier name, using escape (MemberExpression IdentifierName)
|
||||
esid: prod-PropertyDefinition
|
||||
flags: [generated]
|
||||
info: |
|
||||
MemberExpression:
|
||||
...
|
||||
MemberExpression . IdentifierName
|
||||
|
||||
Reserved Words
|
||||
|
||||
A reserved word is an IdentifierName that cannot be used as an Identifier.
|
||||
---*/
|
||||
|
||||
var obj = {};
|
||||
|
||||
obj.c\u0061tch = 42;
|
||||
|
||||
assert.sameValue(obj['catch'], 42, 'property exists');
|
|
@ -0,0 +1,22 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/class-escaped.case
|
||||
// - src/identifier-names/default/member-expr.template
|
||||
/*---
|
||||
description: class is a valid identifier name, using escape (MemberExpression IdentifierName)
|
||||
esid: prod-PropertyDefinition
|
||||
flags: [generated]
|
||||
info: |
|
||||
MemberExpression:
|
||||
...
|
||||
MemberExpression . IdentifierName
|
||||
|
||||
Reserved Words
|
||||
|
||||
A reserved word is an IdentifierName that cannot be used as an Identifier.
|
||||
---*/
|
||||
|
||||
var obj = {};
|
||||
|
||||
obj.cl\u0061ss = 42;
|
||||
|
||||
assert.sameValue(obj['class'], 42, 'property exists');
|
|
@ -0,0 +1,22 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/const-escaped.case
|
||||
// - src/identifier-names/default/member-expr.template
|
||||
/*---
|
||||
description: const is a valid identifier name, using escape (MemberExpression IdentifierName)
|
||||
esid: prod-PropertyDefinition
|
||||
flags: [generated]
|
||||
info: |
|
||||
MemberExpression:
|
||||
...
|
||||
MemberExpression . IdentifierName
|
||||
|
||||
Reserved Words
|
||||
|
||||
A reserved word is an IdentifierName that cannot be used as an Identifier.
|
||||
---*/
|
||||
|
||||
var obj = {};
|
||||
|
||||
obj.\u0063onst = 42;
|
||||
|
||||
assert.sameValue(obj['const'], 42, 'property exists');
|
|
@ -0,0 +1,22 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/continue-escaped.case
|
||||
// - src/identifier-names/default/member-expr.template
|
||||
/*---
|
||||
description: continue is a valid identifier name, using escape (MemberExpression IdentifierName)
|
||||
esid: prod-PropertyDefinition
|
||||
flags: [generated]
|
||||
info: |
|
||||
MemberExpression:
|
||||
...
|
||||
MemberExpression . IdentifierName
|
||||
|
||||
Reserved Words
|
||||
|
||||
A reserved word is an IdentifierName that cannot be used as an Identifier.
|
||||
---*/
|
||||
|
||||
var obj = {};
|
||||
|
||||
obj.\u0063ontinue = 42;
|
||||
|
||||
assert.sameValue(obj['continue'], 42, 'property exists');
|
|
@ -0,0 +1,22 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/debugger-escaped.case
|
||||
// - src/identifier-names/default/member-expr.template
|
||||
/*---
|
||||
description: debugger is a valid identifier name, using escape (MemberExpression IdentifierName)
|
||||
esid: prod-PropertyDefinition
|
||||
flags: [generated]
|
||||
info: |
|
||||
MemberExpression:
|
||||
...
|
||||
MemberExpression . IdentifierName
|
||||
|
||||
Reserved Words
|
||||
|
||||
A reserved word is an IdentifierName that cannot be used as an Identifier.
|
||||
---*/
|
||||
|
||||
var obj = {};
|
||||
|
||||
obj.\u0064ebugger = 42;
|
||||
|
||||
assert.sameValue(obj['debugger'], 42, 'property exists');
|
|
@ -0,0 +1,22 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/delete-escaped.case
|
||||
// - src/identifier-names/default/member-expr.template
|
||||
/*---
|
||||
description: delete is a valid identifier name, using escape (MemberExpression IdentifierName)
|
||||
esid: prod-PropertyDefinition
|
||||
flags: [generated]
|
||||
info: |
|
||||
MemberExpression:
|
||||
...
|
||||
MemberExpression . IdentifierName
|
||||
|
||||
Reserved Words
|
||||
|
||||
A reserved word is an IdentifierName that cannot be used as an Identifier.
|
||||
---*/
|
||||
|
||||
var obj = {};
|
||||
|
||||
obj.\u0064elete = 42;
|
||||
|
||||
assert.sameValue(obj['delete'], 42, 'property exists');
|
|
@ -0,0 +1,22 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/do-escaped.case
|
||||
// - src/identifier-names/default/member-expr.template
|
||||
/*---
|
||||
description: do is a valid identifier name, using escape (MemberExpression IdentifierName)
|
||||
esid: prod-PropertyDefinition
|
||||
flags: [generated]
|
||||
info: |
|
||||
MemberExpression:
|
||||
...
|
||||
MemberExpression . IdentifierName
|
||||
|
||||
Reserved Words
|
||||
|
||||
A reserved word is an IdentifierName that cannot be used as an Identifier.
|
||||
---*/
|
||||
|
||||
var obj = {};
|
||||
|
||||
obj.\u0064o = 42;
|
||||
|
||||
assert.sameValue(obj['do'], 42, 'property exists');
|
|
@ -0,0 +1,22 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/else-escaped.case
|
||||
// - src/identifier-names/default/member-expr.template
|
||||
/*---
|
||||
description: else is a valid identifier name, using escape (MemberExpression IdentifierName)
|
||||
esid: prod-PropertyDefinition
|
||||
flags: [generated]
|
||||
info: |
|
||||
MemberExpression:
|
||||
...
|
||||
MemberExpression . IdentifierName
|
||||
|
||||
Reserved Words
|
||||
|
||||
A reserved word is an IdentifierName that cannot be used as an Identifier.
|
||||
---*/
|
||||
|
||||
var obj = {};
|
||||
|
||||
obj.\u0065lse = 42;
|
||||
|
||||
assert.sameValue(obj['else'], 42, 'property exists');
|
|
@ -0,0 +1,22 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/enum-escaped.case
|
||||
// - src/identifier-names/default/member-expr.template
|
||||
/*---
|
||||
description: enum is a valid identifier name, using escape (MemberExpression IdentifierName)
|
||||
esid: prod-PropertyDefinition
|
||||
flags: [generated]
|
||||
info: |
|
||||
MemberExpression:
|
||||
...
|
||||
MemberExpression . IdentifierName
|
||||
|
||||
Reserved Words
|
||||
|
||||
A reserved word is an IdentifierName that cannot be used as an Identifier.
|
||||
---*/
|
||||
|
||||
var obj = {};
|
||||
|
||||
obj.\u0065num = 42;
|
||||
|
||||
assert.sameValue(obj['enum'], 42, 'property exists');
|
|
@ -0,0 +1,22 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/export-escaped.case
|
||||
// - src/identifier-names/default/member-expr.template
|
||||
/*---
|
||||
description: export is a valid identifier name, using escape (MemberExpression IdentifierName)
|
||||
esid: prod-PropertyDefinition
|
||||
flags: [generated]
|
||||
info: |
|
||||
MemberExpression:
|
||||
...
|
||||
MemberExpression . IdentifierName
|
||||
|
||||
Reserved Words
|
||||
|
||||
A reserved word is an IdentifierName that cannot be used as an Identifier.
|
||||
---*/
|
||||
|
||||
var obj = {};
|
||||
|
||||
obj.\u0065xport = 42;
|
||||
|
||||
assert.sameValue(obj['export'], 42, 'property exists');
|
|
@ -0,0 +1,22 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/extends-escaped-ext.case
|
||||
// - src/identifier-names/default/member-expr.template
|
||||
/*---
|
||||
description: extends is a valid identifier name, using extended escape (MemberExpression IdentifierName)
|
||||
esid: prod-PropertyDefinition
|
||||
flags: [generated]
|
||||
info: |
|
||||
MemberExpression:
|
||||
...
|
||||
MemberExpression . IdentifierName
|
||||
|
||||
Reserved Words
|
||||
|
||||
A reserved word is an IdentifierName that cannot be used as an Identifier.
|
||||
---*/
|
||||
|
||||
var obj = {};
|
||||
|
||||
obj.\u{65}xtends = 42;
|
||||
|
||||
assert.sameValue(obj['extends'], 42, 'property exists');
|
|
@ -0,0 +1,22 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/extends-escaped.case
|
||||
// - src/identifier-names/default/member-expr.template
|
||||
/*---
|
||||
description: extends is a valid identifier name, using escape (MemberExpression IdentifierName)
|
||||
esid: prod-PropertyDefinition
|
||||
flags: [generated]
|
||||
info: |
|
||||
MemberExpression:
|
||||
...
|
||||
MemberExpression . IdentifierName
|
||||
|
||||
Reserved Words
|
||||
|
||||
A reserved word is an IdentifierName that cannot be used as an Identifier.
|
||||
---*/
|
||||
|
||||
var obj = {};
|
||||
|
||||
obj.\u0065xtends = 42;
|
||||
|
||||
assert.sameValue(obj['extends'], 42, 'property exists');
|
|
@ -0,0 +1,22 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/extends.case
|
||||
// - src/identifier-names/default/member-expr.template
|
||||
/*---
|
||||
description: extends is a valid identifier name (MemberExpression IdentifierName)
|
||||
esid: prod-PropertyDefinition
|
||||
flags: [generated]
|
||||
info: |
|
||||
MemberExpression:
|
||||
...
|
||||
MemberExpression . IdentifierName
|
||||
|
||||
Reserved Words
|
||||
|
||||
A reserved word is an IdentifierName that cannot be used as an Identifier.
|
||||
---*/
|
||||
|
||||
var obj = {};
|
||||
|
||||
obj.extends = 42;
|
||||
|
||||
assert.sameValue(obj['extends'], 42, 'property exists');
|
|
@ -0,0 +1,22 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/finally-escaped.case
|
||||
// - src/identifier-names/default/member-expr.template
|
||||
/*---
|
||||
description: finally is a valid identifier name, using escape (MemberExpression IdentifierName)
|
||||
esid: prod-PropertyDefinition
|
||||
flags: [generated]
|
||||
info: |
|
||||
MemberExpression:
|
||||
...
|
||||
MemberExpression . IdentifierName
|
||||
|
||||
Reserved Words
|
||||
|
||||
A reserved word is an IdentifierName that cannot be used as an Identifier.
|
||||
---*/
|
||||
|
||||
var obj = {};
|
||||
|
||||
obj.\u0066inally = 42;
|
||||
|
||||
assert.sameValue(obj['finally'], 42, 'property exists');
|
|
@ -0,0 +1,22 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/for-escaped.case
|
||||
// - src/identifier-names/default/member-expr.template
|
||||
/*---
|
||||
description: for is a valid identifier name, using escape (MemberExpression IdentifierName)
|
||||
esid: prod-PropertyDefinition
|
||||
flags: [generated]
|
||||
info: |
|
||||
MemberExpression:
|
||||
...
|
||||
MemberExpression . IdentifierName
|
||||
|
||||
Reserved Words
|
||||
|
||||
A reserved word is an IdentifierName that cannot be used as an Identifier.
|
||||
---*/
|
||||
|
||||
var obj = {};
|
||||
|
||||
obj.\u0066or = 42;
|
||||
|
||||
assert.sameValue(obj['for'], 42, 'property exists');
|
|
@ -0,0 +1,22 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/function-escaped.case
|
||||
// - src/identifier-names/default/member-expr.template
|
||||
/*---
|
||||
description: function is a valid identifier name, using escape (MemberExpression IdentifierName)
|
||||
esid: prod-PropertyDefinition
|
||||
flags: [generated]
|
||||
info: |
|
||||
MemberExpression:
|
||||
...
|
||||
MemberExpression . IdentifierName
|
||||
|
||||
Reserved Words
|
||||
|
||||
A reserved word is an IdentifierName that cannot be used as an Identifier.
|
||||
---*/
|
||||
|
||||
var obj = {};
|
||||
|
||||
obj.\u0066unction = 42;
|
||||
|
||||
assert.sameValue(obj['function'], 42, 'property exists');
|
|
@ -0,0 +1,22 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/if-escaped.case
|
||||
// - src/identifier-names/default/member-expr.template
|
||||
/*---
|
||||
description: if is a valid identifier name, using escape (MemberExpression IdentifierName)
|
||||
esid: prod-PropertyDefinition
|
||||
flags: [generated]
|
||||
info: |
|
||||
MemberExpression:
|
||||
...
|
||||
MemberExpression . IdentifierName
|
||||
|
||||
Reserved Words
|
||||
|
||||
A reserved word is an IdentifierName that cannot be used as an Identifier.
|
||||
---*/
|
||||
|
||||
var obj = {};
|
||||
|
||||
obj.i\u0066 = 42;
|
||||
|
||||
assert.sameValue(obj['if'], 42, 'property exists');
|
|
@ -0,0 +1,22 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/implements-escaped.case
|
||||
// - src/identifier-names/default/member-expr.template
|
||||
/*---
|
||||
description: implements is a valid identifier name, using escape (MemberExpression IdentifierName)
|
||||
esid: prod-PropertyDefinition
|
||||
flags: [generated]
|
||||
info: |
|
||||
MemberExpression:
|
||||
...
|
||||
MemberExpression . IdentifierName
|
||||
|
||||
Reserved Words
|
||||
|
||||
A reserved word is an IdentifierName that cannot be used as an Identifier.
|
||||
---*/
|
||||
|
||||
var obj = {};
|
||||
|
||||
obj.\u0069mplements = 42;
|
||||
|
||||
assert.sameValue(obj['implements'], 42, 'property exists');
|
|
@ -0,0 +1,22 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/import-escaped.case
|
||||
// - src/identifier-names/default/member-expr.template
|
||||
/*---
|
||||
description: import is a valid identifier name, using escape (MemberExpression IdentifierName)
|
||||
esid: prod-PropertyDefinition
|
||||
flags: [generated]
|
||||
info: |
|
||||
MemberExpression:
|
||||
...
|
||||
MemberExpression . IdentifierName
|
||||
|
||||
Reserved Words
|
||||
|
||||
A reserved word is an IdentifierName that cannot be used as an Identifier.
|
||||
---*/
|
||||
|
||||
var obj = {};
|
||||
|
||||
obj.\u0069mport = 42;
|
||||
|
||||
assert.sameValue(obj['import'], 42, 'property exists');
|
|
@ -0,0 +1,22 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/in-escaped.case
|
||||
// - src/identifier-names/default/member-expr.template
|
||||
/*---
|
||||
description: in is a valid identifier name, using escape (MemberExpression IdentifierName)
|
||||
esid: prod-PropertyDefinition
|
||||
flags: [generated]
|
||||
info: |
|
||||
MemberExpression:
|
||||
...
|
||||
MemberExpression . IdentifierName
|
||||
|
||||
Reserved Words
|
||||
|
||||
A reserved word is an IdentifierName that cannot be used as an Identifier.
|
||||
---*/
|
||||
|
||||
var obj = {};
|
||||
|
||||
obj.\u0069n = 42;
|
||||
|
||||
assert.sameValue(obj['in'], 42, 'property exists');
|
|
@ -0,0 +1,22 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/instance-escaped.case
|
||||
// - src/identifier-names/default/member-expr.template
|
||||
/*---
|
||||
description: instance is a valid identifier name, using escape (MemberExpression IdentifierName)
|
||||
esid: prod-PropertyDefinition
|
||||
flags: [generated]
|
||||
info: |
|
||||
MemberExpression:
|
||||
...
|
||||
MemberExpression . IdentifierName
|
||||
|
||||
Reserved Words
|
||||
|
||||
A reserved word is an IdentifierName that cannot be used as an Identifier.
|
||||
---*/
|
||||
|
||||
var obj = {};
|
||||
|
||||
obj.\u0069nstance = 42;
|
||||
|
||||
assert.sameValue(obj['instance'], 42, 'property exists');
|
|
@ -0,0 +1,22 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/interface-escaped.case
|
||||
// - src/identifier-names/default/member-expr.template
|
||||
/*---
|
||||
description: interface is a valid identifier name, using escape (MemberExpression IdentifierName)
|
||||
esid: prod-PropertyDefinition
|
||||
flags: [generated]
|
||||
info: |
|
||||
MemberExpression:
|
||||
...
|
||||
MemberExpression . IdentifierName
|
||||
|
||||
Reserved Words
|
||||
|
||||
A reserved word is an IdentifierName that cannot be used as an Identifier.
|
||||
---*/
|
||||
|
||||
var obj = {};
|
||||
|
||||
obj.interf\u0061ce = 42;
|
||||
|
||||
assert.sameValue(obj['interface'], 42, 'property exists');
|
|
@ -0,0 +1,22 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/let-escaped.case
|
||||
// - src/identifier-names/default/member-expr.template
|
||||
/*---
|
||||
description: let is a valid identifier name, using escape (MemberExpression IdentifierName)
|
||||
esid: prod-PropertyDefinition
|
||||
flags: [generated]
|
||||
info: |
|
||||
MemberExpression:
|
||||
...
|
||||
MemberExpression . IdentifierName
|
||||
|
||||
Reserved Words
|
||||
|
||||
A reserved word is an IdentifierName that cannot be used as an Identifier.
|
||||
---*/
|
||||
|
||||
var obj = {};
|
||||
|
||||
obj.l\u0065t = 42;
|
||||
|
||||
assert.sameValue(obj['let'], 42, 'property exists');
|
|
@ -0,0 +1,22 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/new-escaped.case
|
||||
// - src/identifier-names/default/member-expr.template
|
||||
/*---
|
||||
description: new is a valid identifier name, using escape (MemberExpression IdentifierName)
|
||||
esid: prod-PropertyDefinition
|
||||
flags: [generated]
|
||||
info: |
|
||||
MemberExpression:
|
||||
...
|
||||
MemberExpression . IdentifierName
|
||||
|
||||
Reserved Words
|
||||
|
||||
A reserved word is an IdentifierName that cannot be used as an Identifier.
|
||||
---*/
|
||||
|
||||
var obj = {};
|
||||
|
||||
obj.n\u0065w = 42;
|
||||
|
||||
assert.sameValue(obj['new'], 42, 'property exists');
|
|
@ -0,0 +1,22 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/package-escaped.case
|
||||
// - src/identifier-names/default/member-expr.template
|
||||
/*---
|
||||
description: package is a valid identifier name, using escape (MemberExpression IdentifierName)
|
||||
esid: prod-PropertyDefinition
|
||||
flags: [generated]
|
||||
info: |
|
||||
MemberExpression:
|
||||
...
|
||||
MemberExpression . IdentifierName
|
||||
|
||||
Reserved Words
|
||||
|
||||
A reserved word is an IdentifierName that cannot be used as an Identifier.
|
||||
---*/
|
||||
|
||||
var obj = {};
|
||||
|
||||
obj.p\u0061ckage = 42;
|
||||
|
||||
assert.sameValue(obj['package'], 42, 'property exists');
|
|
@ -0,0 +1,22 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/private-escaped.case
|
||||
// - src/identifier-names/default/member-expr.template
|
||||
/*---
|
||||
description: private is a valid identifier name, using escape (MemberExpression IdentifierName)
|
||||
esid: prod-PropertyDefinition
|
||||
flags: [generated]
|
||||
info: |
|
||||
MemberExpression:
|
||||
...
|
||||
MemberExpression . IdentifierName
|
||||
|
||||
Reserved Words
|
||||
|
||||
A reserved word is an IdentifierName that cannot be used as an Identifier.
|
||||
---*/
|
||||
|
||||
var obj = {};
|
||||
|
||||
obj.privat\u0065 = 42;
|
||||
|
||||
assert.sameValue(obj['private'], 42, 'property exists');
|
|
@ -0,0 +1,22 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/protected-escaped.case
|
||||
// - src/identifier-names/default/member-expr.template
|
||||
/*---
|
||||
description: protected is a valid identifier name, using escape (MemberExpression IdentifierName)
|
||||
esid: prod-PropertyDefinition
|
||||
flags: [generated]
|
||||
info: |
|
||||
MemberExpression:
|
||||
...
|
||||
MemberExpression . IdentifierName
|
||||
|
||||
Reserved Words
|
||||
|
||||
A reserved word is an IdentifierName that cannot be used as an Identifier.
|
||||
---*/
|
||||
|
||||
var obj = {};
|
||||
|
||||
obj.prot\u0065cted = 42;
|
||||
|
||||
assert.sameValue(obj['protected'], 42, 'property exists');
|
|
@ -0,0 +1,22 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/public-escaped.case
|
||||
// - src/identifier-names/default/member-expr.template
|
||||
/*---
|
||||
description: public is a valid identifier name, using escape (MemberExpression IdentifierName)
|
||||
esid: prod-PropertyDefinition
|
||||
flags: [generated]
|
||||
info: |
|
||||
MemberExpression:
|
||||
...
|
||||
MemberExpression . IdentifierName
|
||||
|
||||
Reserved Words
|
||||
|
||||
A reserved word is an IdentifierName that cannot be used as an Identifier.
|
||||
---*/
|
||||
|
||||
var obj = {};
|
||||
|
||||
obj.pu\u0062lic = 42;
|
||||
|
||||
assert.sameValue(obj['public'], 42, 'property exists');
|
|
@ -0,0 +1,22 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/return-escaped.case
|
||||
// - src/identifier-names/default/member-expr.template
|
||||
/*---
|
||||
description: return is a valid identifier name, using escape (MemberExpression IdentifierName)
|
||||
esid: prod-PropertyDefinition
|
||||
flags: [generated]
|
||||
info: |
|
||||
MemberExpression:
|
||||
...
|
||||
MemberExpression . IdentifierName
|
||||
|
||||
Reserved Words
|
||||
|
||||
A reserved word is an IdentifierName that cannot be used as an Identifier.
|
||||
---*/
|
||||
|
||||
var obj = {};
|
||||
|
||||
obj.r\u0065turn = 42;
|
||||
|
||||
assert.sameValue(obj['return'], 42, 'property exists');
|
|
@ -0,0 +1,22 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/static-escaped.case
|
||||
// - src/identifier-names/default/member-expr.template
|
||||
/*---
|
||||
description: static is a valid identifier name, using escape (MemberExpression IdentifierName)
|
||||
esid: prod-PropertyDefinition
|
||||
flags: [generated]
|
||||
info: |
|
||||
MemberExpression:
|
||||
...
|
||||
MemberExpression . IdentifierName
|
||||
|
||||
Reserved Words
|
||||
|
||||
A reserved word is an IdentifierName that cannot be used as an Identifier.
|
||||
---*/
|
||||
|
||||
var obj = {};
|
||||
|
||||
obj.st\u0061tic = 42;
|
||||
|
||||
assert.sameValue(obj['static'], 42, 'property exists');
|
|
@ -0,0 +1,22 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/super-escaped.case
|
||||
// - src/identifier-names/default/member-expr.template
|
||||
/*---
|
||||
description: super is a valid identifier name, using escape (MemberExpression IdentifierName)
|
||||
esid: prod-PropertyDefinition
|
||||
flags: [generated]
|
||||
info: |
|
||||
MemberExpression:
|
||||
...
|
||||
MemberExpression . IdentifierName
|
||||
|
||||
Reserved Words
|
||||
|
||||
A reserved word is an IdentifierName that cannot be used as an Identifier.
|
||||
---*/
|
||||
|
||||
var obj = {};
|
||||
|
||||
obj.s\u0065per = 42;
|
||||
|
||||
assert.sameValue(obj['super'], 42, 'property exists');
|
|
@ -0,0 +1,22 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/switch-escaped.case
|
||||
// - src/identifier-names/default/member-expr.template
|
||||
/*---
|
||||
description: switch is a valid identifier name, using escape (MemberExpression IdentifierName)
|
||||
esid: prod-PropertyDefinition
|
||||
flags: [generated]
|
||||
info: |
|
||||
MemberExpression:
|
||||
...
|
||||
MemberExpression . IdentifierName
|
||||
|
||||
Reserved Words
|
||||
|
||||
A reserved word is an IdentifierName that cannot be used as an Identifier.
|
||||
---*/
|
||||
|
||||
var obj = {};
|
||||
|
||||
obj.sw\u0069tch = 42;
|
||||
|
||||
assert.sameValue(obj['switch'], 42, 'property exists');
|
|
@ -0,0 +1,22 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/this-escaped.case
|
||||
// - src/identifier-names/default/member-expr.template
|
||||
/*---
|
||||
description: this is a valid identifier name, using escape (MemberExpression IdentifierName)
|
||||
esid: prod-PropertyDefinition
|
||||
flags: [generated]
|
||||
info: |
|
||||
MemberExpression:
|
||||
...
|
||||
MemberExpression . IdentifierName
|
||||
|
||||
Reserved Words
|
||||
|
||||
A reserved word is an IdentifierName that cannot be used as an Identifier.
|
||||
---*/
|
||||
|
||||
var obj = {};
|
||||
|
||||
obj.th\u0069s = 42;
|
||||
|
||||
assert.sameValue(obj['this'], 42, 'property exists');
|
|
@ -0,0 +1,22 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/throw-escaped.case
|
||||
// - src/identifier-names/default/member-expr.template
|
||||
/*---
|
||||
description: throw is a valid identifier name, using escape (MemberExpression IdentifierName)
|
||||
esid: prod-PropertyDefinition
|
||||
flags: [generated]
|
||||
info: |
|
||||
MemberExpression:
|
||||
...
|
||||
MemberExpression . IdentifierName
|
||||
|
||||
Reserved Words
|
||||
|
||||
A reserved word is an IdentifierName that cannot be used as an Identifier.
|
||||
---*/
|
||||
|
||||
var obj = {};
|
||||
|
||||
obj.t\u0068row = 42;
|
||||
|
||||
assert.sameValue(obj['throw'], 42, 'property exists');
|
|
@ -0,0 +1,22 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/try-escaped.case
|
||||
// - src/identifier-names/default/member-expr.template
|
||||
/*---
|
||||
description: try is a valid identifier name, using escape (MemberExpression IdentifierName)
|
||||
esid: prod-PropertyDefinition
|
||||
flags: [generated]
|
||||
info: |
|
||||
MemberExpression:
|
||||
...
|
||||
MemberExpression . IdentifierName
|
||||
|
||||
Reserved Words
|
||||
|
||||
A reserved word is an IdentifierName that cannot be used as an Identifier.
|
||||
---*/
|
||||
|
||||
var obj = {};
|
||||
|
||||
obj.tr\u0079 = 42;
|
||||
|
||||
assert.sameValue(obj['try'], 42, 'property exists');
|
|
@ -0,0 +1,22 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/typeof-escaped.case
|
||||
// - src/identifier-names/default/member-expr.template
|
||||
/*---
|
||||
description: typeof is a valid identifier name, using escape (MemberExpression IdentifierName)
|
||||
esid: prod-PropertyDefinition
|
||||
flags: [generated]
|
||||
info: |
|
||||
MemberExpression:
|
||||
...
|
||||
MemberExpression . IdentifierName
|
||||
|
||||
Reserved Words
|
||||
|
||||
A reserved word is an IdentifierName that cannot be used as an Identifier.
|
||||
---*/
|
||||
|
||||
var obj = {};
|
||||
|
||||
obj.t\u0068peof = 42;
|
||||
|
||||
assert.sameValue(obj['typeof'], 42, 'property exists');
|
|
@ -0,0 +1,22 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/var-escaped.case
|
||||
// - src/identifier-names/default/member-expr.template
|
||||
/*---
|
||||
description: var is a valid identifier name, using escape (MemberExpression IdentifierName)
|
||||
esid: prod-PropertyDefinition
|
||||
flags: [generated]
|
||||
info: |
|
||||
MemberExpression:
|
||||
...
|
||||
MemberExpression . IdentifierName
|
||||
|
||||
Reserved Words
|
||||
|
||||
A reserved word is an IdentifierName that cannot be used as an Identifier.
|
||||
---*/
|
||||
|
||||
var obj = {};
|
||||
|
||||
obj.v\u0061r = 42;
|
||||
|
||||
assert.sameValue(obj['var'], 42, 'property exists');
|
|
@ -0,0 +1,22 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/void-escaped.case
|
||||
// - src/identifier-names/default/member-expr.template
|
||||
/*---
|
||||
description: void is a valid identifier name, using escape (MemberExpression IdentifierName)
|
||||
esid: prod-PropertyDefinition
|
||||
flags: [generated]
|
||||
info: |
|
||||
MemberExpression:
|
||||
...
|
||||
MemberExpression . IdentifierName
|
||||
|
||||
Reserved Words
|
||||
|
||||
A reserved word is an IdentifierName that cannot be used as an Identifier.
|
||||
---*/
|
||||
|
||||
var obj = {};
|
||||
|
||||
obj.voi\u0064 = 42;
|
||||
|
||||
assert.sameValue(obj['void'], 42, 'property exists');
|
|
@ -0,0 +1,22 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/while-escaped.case
|
||||
// - src/identifier-names/default/member-expr.template
|
||||
/*---
|
||||
description: while is a valid identifier name, using escape (MemberExpression IdentifierName)
|
||||
esid: prod-PropertyDefinition
|
||||
flags: [generated]
|
||||
info: |
|
||||
MemberExpression:
|
||||
...
|
||||
MemberExpression . IdentifierName
|
||||
|
||||
Reserved Words
|
||||
|
||||
A reserved word is an IdentifierName that cannot be used as an Identifier.
|
||||
---*/
|
||||
|
||||
var obj = {};
|
||||
|
||||
obj.whil\u0065 = 42;
|
||||
|
||||
assert.sameValue(obj['while'], 42, 'property exists');
|
|
@ -0,0 +1,22 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/with-escaped.case
|
||||
// - src/identifier-names/default/member-expr.template
|
||||
/*---
|
||||
description: with is a valid identifier name, using escape (MemberExpression IdentifierName)
|
||||
esid: prod-PropertyDefinition
|
||||
flags: [generated]
|
||||
info: |
|
||||
MemberExpression:
|
||||
...
|
||||
MemberExpression . IdentifierName
|
||||
|
||||
Reserved Words
|
||||
|
||||
A reserved word is an IdentifierName that cannot be used as an Identifier.
|
||||
---*/
|
||||
|
||||
var obj = {};
|
||||
|
||||
obj.w\u0069th = 42;
|
||||
|
||||
assert.sameValue(obj['with'], 42, 'property exists');
|
|
@ -0,0 +1,22 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/yield-escaped.case
|
||||
// - src/identifier-names/default/member-expr.template
|
||||
/*---
|
||||
description: yield is a valid identifier name, using escape (MemberExpression IdentifierName)
|
||||
esid: prod-PropertyDefinition
|
||||
flags: [generated]
|
||||
info: |
|
||||
MemberExpression:
|
||||
...
|
||||
MemberExpression . IdentifierName
|
||||
|
||||
Reserved Words
|
||||
|
||||
A reserved word is an IdentifierName that cannot be used as an Identifier.
|
||||
---*/
|
||||
|
||||
var obj = {};
|
||||
|
||||
obj.y\u0069eld = 42;
|
||||
|
||||
assert.sameValue(obj['yield'], 42, 'property exists');
|
|
@ -0,0 +1,46 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/await-escaped.case
|
||||
// - src/identifier-names/default/class-expression-method-def.template
|
||||
/*---
|
||||
description: await is a valid identifier name, using escape (MethodDefinition)
|
||||
esid: prod-PropertyDefinition
|
||||
features: [class]
|
||||
flags: [generated]
|
||||
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 C = class {
|
||||
\u0061wait() { return 42; }
|
||||
}
|
||||
|
||||
var obj = new C();
|
||||
|
||||
assert.sameValue(obj['await'](), 42, 'property exists');
|
|
@ -0,0 +1,46 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/break-escaped.case
|
||||
// - src/identifier-names/default/class-expression-method-def.template
|
||||
/*---
|
||||
description: break is a valid identifier name, using escape (MethodDefinition)
|
||||
esid: prod-PropertyDefinition
|
||||
features: [class]
|
||||
flags: [generated]
|
||||
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 C = class {
|
||||
bre\u0061k() { return 42; }
|
||||
}
|
||||
|
||||
var obj = new C();
|
||||
|
||||
assert.sameValue(obj['break'](), 42, 'property exists');
|
|
@ -0,0 +1,46 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/case-escaped.case
|
||||
// - src/identifier-names/default/class-expression-method-def.template
|
||||
/*---
|
||||
description: case is a valid identifier name, using escape (MethodDefinition)
|
||||
esid: prod-PropertyDefinition
|
||||
features: [class]
|
||||
flags: [generated]
|
||||
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 C = class {
|
||||
c\u0061se() { return 42; }
|
||||
}
|
||||
|
||||
var obj = new C();
|
||||
|
||||
assert.sameValue(obj['case'](), 42, 'property exists');
|
|
@ -0,0 +1,46 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/catch-escaped.case
|
||||
// - src/identifier-names/default/class-expression-method-def.template
|
||||
/*---
|
||||
description: catch is a valid identifier name, using escape (MethodDefinition)
|
||||
esid: prod-PropertyDefinition
|
||||
features: [class]
|
||||
flags: [generated]
|
||||
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 C = class {
|
||||
c\u0061tch() { return 42; }
|
||||
}
|
||||
|
||||
var obj = new C();
|
||||
|
||||
assert.sameValue(obj['catch'](), 42, 'property exists');
|
|
@ -0,0 +1,46 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/class-escaped.case
|
||||
// - src/identifier-names/default/class-expression-method-def.template
|
||||
/*---
|
||||
description: class is a valid identifier name, using escape (MethodDefinition)
|
||||
esid: prod-PropertyDefinition
|
||||
features: [class]
|
||||
flags: [generated]
|
||||
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 C = class {
|
||||
cl\u0061ss() { return 42; }
|
||||
}
|
||||
|
||||
var obj = new C();
|
||||
|
||||
assert.sameValue(obj['class'](), 42, 'property exists');
|
|
@ -0,0 +1,46 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/const-escaped.case
|
||||
// - src/identifier-names/default/class-expression-method-def.template
|
||||
/*---
|
||||
description: const is a valid identifier name, using escape (MethodDefinition)
|
||||
esid: prod-PropertyDefinition
|
||||
features: [class]
|
||||
flags: [generated]
|
||||
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 C = class {
|
||||
\u0063onst() { return 42; }
|
||||
}
|
||||
|
||||
var obj = new C();
|
||||
|
||||
assert.sameValue(obj['const'](), 42, 'property exists');
|
|
@ -0,0 +1,46 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/continue-escaped.case
|
||||
// - src/identifier-names/default/class-expression-method-def.template
|
||||
/*---
|
||||
description: continue is a valid identifier name, using escape (MethodDefinition)
|
||||
esid: prod-PropertyDefinition
|
||||
features: [class]
|
||||
flags: [generated]
|
||||
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 C = class {
|
||||
\u0063ontinue() { return 42; }
|
||||
}
|
||||
|
||||
var obj = new C();
|
||||
|
||||
assert.sameValue(obj['continue'](), 42, 'property exists');
|
|
@ -0,0 +1,46 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/debugger-escaped.case
|
||||
// - src/identifier-names/default/class-expression-method-def.template
|
||||
/*---
|
||||
description: debugger is a valid identifier name, using escape (MethodDefinition)
|
||||
esid: prod-PropertyDefinition
|
||||
features: [class]
|
||||
flags: [generated]
|
||||
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 C = class {
|
||||
\u0064ebugger() { return 42; }
|
||||
}
|
||||
|
||||
var obj = new C();
|
||||
|
||||
assert.sameValue(obj['debugger'](), 42, 'property exists');
|
|
@ -0,0 +1,46 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/delete-escaped.case
|
||||
// - src/identifier-names/default/class-expression-method-def.template
|
||||
/*---
|
||||
description: delete is a valid identifier name, using escape (MethodDefinition)
|
||||
esid: prod-PropertyDefinition
|
||||
features: [class]
|
||||
flags: [generated]
|
||||
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 C = class {
|
||||
\u0064elete() { return 42; }
|
||||
}
|
||||
|
||||
var obj = new C();
|
||||
|
||||
assert.sameValue(obj['delete'](), 42, 'property exists');
|
|
@ -0,0 +1,46 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/do-escaped.case
|
||||
// - src/identifier-names/default/class-expression-method-def.template
|
||||
/*---
|
||||
description: do is a valid identifier name, using escape (MethodDefinition)
|
||||
esid: prod-PropertyDefinition
|
||||
features: [class]
|
||||
flags: [generated]
|
||||
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 C = class {
|
||||
\u0064o() { return 42; }
|
||||
}
|
||||
|
||||
var obj = new C();
|
||||
|
||||
assert.sameValue(obj['do'](), 42, 'property exists');
|
|
@ -0,0 +1,46 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/else-escaped.case
|
||||
// - src/identifier-names/default/class-expression-method-def.template
|
||||
/*---
|
||||
description: else is a valid identifier name, using escape (MethodDefinition)
|
||||
esid: prod-PropertyDefinition
|
||||
features: [class]
|
||||
flags: [generated]
|
||||
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 C = class {
|
||||
\u0065lse() { return 42; }
|
||||
}
|
||||
|
||||
var obj = new C();
|
||||
|
||||
assert.sameValue(obj['else'](), 42, 'property exists');
|
|
@ -0,0 +1,46 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/enum-escaped.case
|
||||
// - src/identifier-names/default/class-expression-method-def.template
|
||||
/*---
|
||||
description: enum is a valid identifier name, using escape (MethodDefinition)
|
||||
esid: prod-PropertyDefinition
|
||||
features: [class]
|
||||
flags: [generated]
|
||||
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 C = class {
|
||||
\u0065num() { return 42; }
|
||||
}
|
||||
|
||||
var obj = new C();
|
||||
|
||||
assert.sameValue(obj['enum'](), 42, 'property exists');
|
|
@ -0,0 +1,46 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/export-escaped.case
|
||||
// - src/identifier-names/default/class-expression-method-def.template
|
||||
/*---
|
||||
description: export is a valid identifier name, using escape (MethodDefinition)
|
||||
esid: prod-PropertyDefinition
|
||||
features: [class]
|
||||
flags: [generated]
|
||||
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 C = class {
|
||||
\u0065xport() { return 42; }
|
||||
}
|
||||
|
||||
var obj = new C();
|
||||
|
||||
assert.sameValue(obj['export'](), 42, 'property exists');
|
|
@ -0,0 +1,46 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/extends-escaped-ext.case
|
||||
// - src/identifier-names/default/class-expression-method-def.template
|
||||
/*---
|
||||
description: extends is a valid identifier name, using extended escape (MethodDefinition)
|
||||
esid: prod-PropertyDefinition
|
||||
features: [class]
|
||||
flags: [generated]
|
||||
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 C = class {
|
||||
\u{65}xtends() { return 42; }
|
||||
}
|
||||
|
||||
var obj = new C();
|
||||
|
||||
assert.sameValue(obj['extends'](), 42, 'property exists');
|
|
@ -0,0 +1,46 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/extends-escaped.case
|
||||
// - src/identifier-names/default/class-expression-method-def.template
|
||||
/*---
|
||||
description: extends is a valid identifier name, using escape (MethodDefinition)
|
||||
esid: prod-PropertyDefinition
|
||||
features: [class]
|
||||
flags: [generated]
|
||||
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 C = class {
|
||||
\u0065xtends() { return 42; }
|
||||
}
|
||||
|
||||
var obj = new C();
|
||||
|
||||
assert.sameValue(obj['extends'](), 42, 'property exists');
|
|
@ -0,0 +1,46 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/extends.case
|
||||
// - src/identifier-names/default/class-expression-method-def.template
|
||||
/*---
|
||||
description: extends is a valid identifier name (MethodDefinition)
|
||||
esid: prod-PropertyDefinition
|
||||
features: [class]
|
||||
flags: [generated]
|
||||
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 C = class {
|
||||
extends() { return 42; }
|
||||
}
|
||||
|
||||
var obj = new C();
|
||||
|
||||
assert.sameValue(obj['extends'](), 42, 'property exists');
|
|
@ -0,0 +1,46 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/finally-escaped.case
|
||||
// - src/identifier-names/default/class-expression-method-def.template
|
||||
/*---
|
||||
description: finally is a valid identifier name, using escape (MethodDefinition)
|
||||
esid: prod-PropertyDefinition
|
||||
features: [class]
|
||||
flags: [generated]
|
||||
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 C = class {
|
||||
\u0066inally() { return 42; }
|
||||
}
|
||||
|
||||
var obj = new C();
|
||||
|
||||
assert.sameValue(obj['finally'](), 42, 'property exists');
|
|
@ -0,0 +1,46 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/for-escaped.case
|
||||
// - src/identifier-names/default/class-expression-method-def.template
|
||||
/*---
|
||||
description: for is a valid identifier name, using escape (MethodDefinition)
|
||||
esid: prod-PropertyDefinition
|
||||
features: [class]
|
||||
flags: [generated]
|
||||
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 C = class {
|
||||
\u0066or() { return 42; }
|
||||
}
|
||||
|
||||
var obj = new C();
|
||||
|
||||
assert.sameValue(obj['for'](), 42, 'property exists');
|
|
@ -0,0 +1,46 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/function-escaped.case
|
||||
// - src/identifier-names/default/class-expression-method-def.template
|
||||
/*---
|
||||
description: function is a valid identifier name, using escape (MethodDefinition)
|
||||
esid: prod-PropertyDefinition
|
||||
features: [class]
|
||||
flags: [generated]
|
||||
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 C = class {
|
||||
\u0066unction() { return 42; }
|
||||
}
|
||||
|
||||
var obj = new C();
|
||||
|
||||
assert.sameValue(obj['function'](), 42, 'property exists');
|
|
@ -0,0 +1,46 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/if-escaped.case
|
||||
// - src/identifier-names/default/class-expression-method-def.template
|
||||
/*---
|
||||
description: if is a valid identifier name, using escape (MethodDefinition)
|
||||
esid: prod-PropertyDefinition
|
||||
features: [class]
|
||||
flags: [generated]
|
||||
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 C = class {
|
||||
i\u0066() { return 42; }
|
||||
}
|
||||
|
||||
var obj = new C();
|
||||
|
||||
assert.sameValue(obj['if'](), 42, 'property exists');
|
|
@ -0,0 +1,46 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/implements-escaped.case
|
||||
// - src/identifier-names/default/class-expression-method-def.template
|
||||
/*---
|
||||
description: implements is a valid identifier name, using escape (MethodDefinition)
|
||||
esid: prod-PropertyDefinition
|
||||
features: [class]
|
||||
flags: [generated]
|
||||
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 C = class {
|
||||
\u0069mplements() { return 42; }
|
||||
}
|
||||
|
||||
var obj = new C();
|
||||
|
||||
assert.sameValue(obj['implements'](), 42, 'property exists');
|
|
@ -0,0 +1,46 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/import-escaped.case
|
||||
// - src/identifier-names/default/class-expression-method-def.template
|
||||
/*---
|
||||
description: import is a valid identifier name, using escape (MethodDefinition)
|
||||
esid: prod-PropertyDefinition
|
||||
features: [class]
|
||||
flags: [generated]
|
||||
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 C = class {
|
||||
\u0069mport() { return 42; }
|
||||
}
|
||||
|
||||
var obj = new C();
|
||||
|
||||
assert.sameValue(obj['import'](), 42, 'property exists');
|
|
@ -0,0 +1,46 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/in-escaped.case
|
||||
// - src/identifier-names/default/class-expression-method-def.template
|
||||
/*---
|
||||
description: in is a valid identifier name, using escape (MethodDefinition)
|
||||
esid: prod-PropertyDefinition
|
||||
features: [class]
|
||||
flags: [generated]
|
||||
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 C = class {
|
||||
\u0069n() { return 42; }
|
||||
}
|
||||
|
||||
var obj = new C();
|
||||
|
||||
assert.sameValue(obj['in'](), 42, 'property exists');
|
|
@ -0,0 +1,46 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/instance-escaped.case
|
||||
// - src/identifier-names/default/class-expression-method-def.template
|
||||
/*---
|
||||
description: instance is a valid identifier name, using escape (MethodDefinition)
|
||||
esid: prod-PropertyDefinition
|
||||
features: [class]
|
||||
flags: [generated]
|
||||
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 C = class {
|
||||
\u0069nstance() { return 42; }
|
||||
}
|
||||
|
||||
var obj = new C();
|
||||
|
||||
assert.sameValue(obj['instance'](), 42, 'property exists');
|
|
@ -0,0 +1,46 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/interface-escaped.case
|
||||
// - src/identifier-names/default/class-expression-method-def.template
|
||||
/*---
|
||||
description: interface is a valid identifier name, using escape (MethodDefinition)
|
||||
esid: prod-PropertyDefinition
|
||||
features: [class]
|
||||
flags: [generated]
|
||||
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 C = class {
|
||||
interf\u0061ce() { return 42; }
|
||||
}
|
||||
|
||||
var obj = new C();
|
||||
|
||||
assert.sameValue(obj['interface'](), 42, 'property exists');
|
|
@ -0,0 +1,46 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/let-escaped.case
|
||||
// - src/identifier-names/default/class-expression-method-def.template
|
||||
/*---
|
||||
description: let is a valid identifier name, using escape (MethodDefinition)
|
||||
esid: prod-PropertyDefinition
|
||||
features: [class]
|
||||
flags: [generated]
|
||||
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 C = class {
|
||||
l\u0065t() { return 42; }
|
||||
}
|
||||
|
||||
var obj = new C();
|
||||
|
||||
assert.sameValue(obj['let'](), 42, 'property exists');
|
|
@ -0,0 +1,46 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/new-escaped.case
|
||||
// - src/identifier-names/default/class-expression-method-def.template
|
||||
/*---
|
||||
description: new is a valid identifier name, using escape (MethodDefinition)
|
||||
esid: prod-PropertyDefinition
|
||||
features: [class]
|
||||
flags: [generated]
|
||||
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 C = class {
|
||||
n\u0065w() { return 42; }
|
||||
}
|
||||
|
||||
var obj = new C();
|
||||
|
||||
assert.sameValue(obj['new'](), 42, 'property exists');
|
|
@ -0,0 +1,46 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/package-escaped.case
|
||||
// - src/identifier-names/default/class-expression-method-def.template
|
||||
/*---
|
||||
description: package is a valid identifier name, using escape (MethodDefinition)
|
||||
esid: prod-PropertyDefinition
|
||||
features: [class]
|
||||
flags: [generated]
|
||||
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 C = class {
|
||||
p\u0061ckage() { return 42; }
|
||||
}
|
||||
|
||||
var obj = new C();
|
||||
|
||||
assert.sameValue(obj['package'](), 42, 'property exists');
|
|
@ -0,0 +1,46 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/private-escaped.case
|
||||
// - src/identifier-names/default/class-expression-method-def.template
|
||||
/*---
|
||||
description: private is a valid identifier name, using escape (MethodDefinition)
|
||||
esid: prod-PropertyDefinition
|
||||
features: [class]
|
||||
flags: [generated]
|
||||
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 C = class {
|
||||
privat\u0065() { return 42; }
|
||||
}
|
||||
|
||||
var obj = new C();
|
||||
|
||||
assert.sameValue(obj['private'](), 42, 'property exists');
|
|
@ -0,0 +1,46 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/protected-escaped.case
|
||||
// - src/identifier-names/default/class-expression-method-def.template
|
||||
/*---
|
||||
description: protected is a valid identifier name, using escape (MethodDefinition)
|
||||
esid: prod-PropertyDefinition
|
||||
features: [class]
|
||||
flags: [generated]
|
||||
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 C = class {
|
||||
prot\u0065cted() { return 42; }
|
||||
}
|
||||
|
||||
var obj = new C();
|
||||
|
||||
assert.sameValue(obj['protected'](), 42, 'property exists');
|
|
@ -0,0 +1,46 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/public-escaped.case
|
||||
// - src/identifier-names/default/class-expression-method-def.template
|
||||
/*---
|
||||
description: public is a valid identifier name, using escape (MethodDefinition)
|
||||
esid: prod-PropertyDefinition
|
||||
features: [class]
|
||||
flags: [generated]
|
||||
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 C = class {
|
||||
pu\u0062lic() { return 42; }
|
||||
}
|
||||
|
||||
var obj = new C();
|
||||
|
||||
assert.sameValue(obj['public'](), 42, 'property exists');
|
|
@ -0,0 +1,46 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/return-escaped.case
|
||||
// - src/identifier-names/default/class-expression-method-def.template
|
||||
/*---
|
||||
description: return is a valid identifier name, using escape (MethodDefinition)
|
||||
esid: prod-PropertyDefinition
|
||||
features: [class]
|
||||
flags: [generated]
|
||||
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 C = class {
|
||||
r\u0065turn() { return 42; }
|
||||
}
|
||||
|
||||
var obj = new C();
|
||||
|
||||
assert.sameValue(obj['return'](), 42, 'property exists');
|
|
@ -0,0 +1,46 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/static-escaped.case
|
||||
// - src/identifier-names/default/class-expression-method-def.template
|
||||
/*---
|
||||
description: static is a valid identifier name, using escape (MethodDefinition)
|
||||
esid: prod-PropertyDefinition
|
||||
features: [class]
|
||||
flags: [generated]
|
||||
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 C = class {
|
||||
st\u0061tic() { return 42; }
|
||||
}
|
||||
|
||||
var obj = new C();
|
||||
|
||||
assert.sameValue(obj['static'](), 42, 'property exists');
|
|
@ -0,0 +1,46 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/super-escaped.case
|
||||
// - src/identifier-names/default/class-expression-method-def.template
|
||||
/*---
|
||||
description: super is a valid identifier name, using escape (MethodDefinition)
|
||||
esid: prod-PropertyDefinition
|
||||
features: [class]
|
||||
flags: [generated]
|
||||
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 C = class {
|
||||
s\u0065per() { return 42; }
|
||||
}
|
||||
|
||||
var obj = new C();
|
||||
|
||||
assert.sameValue(obj['super'](), 42, 'property exists');
|
|
@ -0,0 +1,46 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/switch-escaped.case
|
||||
// - src/identifier-names/default/class-expression-method-def.template
|
||||
/*---
|
||||
description: switch is a valid identifier name, using escape (MethodDefinition)
|
||||
esid: prod-PropertyDefinition
|
||||
features: [class]
|
||||
flags: [generated]
|
||||
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 C = class {
|
||||
sw\u0069tch() { return 42; }
|
||||
}
|
||||
|
||||
var obj = new C();
|
||||
|
||||
assert.sameValue(obj['switch'](), 42, 'property exists');
|
|
@ -0,0 +1,46 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/this-escaped.case
|
||||
// - src/identifier-names/default/class-expression-method-def.template
|
||||
/*---
|
||||
description: this is a valid identifier name, using escape (MethodDefinition)
|
||||
esid: prod-PropertyDefinition
|
||||
features: [class]
|
||||
flags: [generated]
|
||||
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 C = class {
|
||||
th\u0069s() { return 42; }
|
||||
}
|
||||
|
||||
var obj = new C();
|
||||
|
||||
assert.sameValue(obj['this'](), 42, 'property exists');
|
|
@ -0,0 +1,46 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/throw-escaped.case
|
||||
// - src/identifier-names/default/class-expression-method-def.template
|
||||
/*---
|
||||
description: throw is a valid identifier name, using escape (MethodDefinition)
|
||||
esid: prod-PropertyDefinition
|
||||
features: [class]
|
||||
flags: [generated]
|
||||
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 C = class {
|
||||
t\u0068row() { return 42; }
|
||||
}
|
||||
|
||||
var obj = new C();
|
||||
|
||||
assert.sameValue(obj['throw'](), 42, 'property exists');
|
|
@ -0,0 +1,46 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/try-escaped.case
|
||||
// - src/identifier-names/default/class-expression-method-def.template
|
||||
/*---
|
||||
description: try is a valid identifier name, using escape (MethodDefinition)
|
||||
esid: prod-PropertyDefinition
|
||||
features: [class]
|
||||
flags: [generated]
|
||||
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 C = class {
|
||||
tr\u0079() { return 42; }
|
||||
}
|
||||
|
||||
var obj = new C();
|
||||
|
||||
assert.sameValue(obj['try'](), 42, 'property exists');
|
|
@ -0,0 +1,46 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/typeof-escaped.case
|
||||
// - src/identifier-names/default/class-expression-method-def.template
|
||||
/*---
|
||||
description: typeof is a valid identifier name, using escape (MethodDefinition)
|
||||
esid: prod-PropertyDefinition
|
||||
features: [class]
|
||||
flags: [generated]
|
||||
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 C = class {
|
||||
t\u0068peof() { return 42; }
|
||||
}
|
||||
|
||||
var obj = new C();
|
||||
|
||||
assert.sameValue(obj['typeof'](), 42, 'property exists');
|
|
@ -0,0 +1,46 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/var-escaped.case
|
||||
// - src/identifier-names/default/class-expression-method-def.template
|
||||
/*---
|
||||
description: var is a valid identifier name, using escape (MethodDefinition)
|
||||
esid: prod-PropertyDefinition
|
||||
features: [class]
|
||||
flags: [generated]
|
||||
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 C = class {
|
||||
v\u0061r() { return 42; }
|
||||
}
|
||||
|
||||
var obj = new C();
|
||||
|
||||
assert.sameValue(obj['var'](), 42, 'property exists');
|
|
@ -0,0 +1,46 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/void-escaped.case
|
||||
// - src/identifier-names/default/class-expression-method-def.template
|
||||
/*---
|
||||
description: void is a valid identifier name, using escape (MethodDefinition)
|
||||
esid: prod-PropertyDefinition
|
||||
features: [class]
|
||||
flags: [generated]
|
||||
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 C = class {
|
||||
voi\u0064() { return 42; }
|
||||
}
|
||||
|
||||
var obj = new C();
|
||||
|
||||
assert.sameValue(obj['void'](), 42, 'property exists');
|
|
@ -0,0 +1,46 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/while-escaped.case
|
||||
// - src/identifier-names/default/class-expression-method-def.template
|
||||
/*---
|
||||
description: while is a valid identifier name, using escape (MethodDefinition)
|
||||
esid: prod-PropertyDefinition
|
||||
features: [class]
|
||||
flags: [generated]
|
||||
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 C = class {
|
||||
whil\u0065() { return 42; }
|
||||
}
|
||||
|
||||
var obj = new C();
|
||||
|
||||
assert.sameValue(obj['while'](), 42, 'property exists');
|
|
@ -0,0 +1,46 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/with-escaped.case
|
||||
// - src/identifier-names/default/class-expression-method-def.template
|
||||
/*---
|
||||
description: with is a valid identifier name, using escape (MethodDefinition)
|
||||
esid: prod-PropertyDefinition
|
||||
features: [class]
|
||||
flags: [generated]
|
||||
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 C = class {
|
||||
w\u0069th() { return 42; }
|
||||
}
|
||||
|
||||
var obj = new C();
|
||||
|
||||
assert.sameValue(obj['with'](), 42, 'property exists');
|
|
@ -0,0 +1,46 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/yield-escaped.case
|
||||
// - src/identifier-names/default/class-expression-method-def.template
|
||||
/*---
|
||||
description: yield is a valid identifier name, using escape (MethodDefinition)
|
||||
esid: prod-PropertyDefinition
|
||||
features: [class]
|
||||
flags: [generated]
|
||||
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 C = class {
|
||||
y\u0069eld() { return 42; }
|
||||
}
|
||||
|
||||
var obj = new C();
|
||||
|
||||
assert.sameValue(obj['yield'](), 42, 'property exists');
|
|
@ -0,0 +1,42 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/await-escaped.case
|
||||
// - src/identifier-names/default/obj-method-definition.template
|
||||
/*---
|
||||
description: await is a valid identifier name, using escape (MethodDefinition)
|
||||
esid: prod-PropertyDefinition
|
||||
flags: [generated]
|
||||
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 = {
|
||||
\u0061wait() { return 42; }
|
||||
};
|
||||
|
||||
assert.sameValue(obj['await'](), 42, 'property exists');
|
|
@ -0,0 +1,42 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/break-escaped.case
|
||||
// - src/identifier-names/default/obj-method-definition.template
|
||||
/*---
|
||||
description: break is a valid identifier name, using escape (MethodDefinition)
|
||||
esid: prod-PropertyDefinition
|
||||
flags: [generated]
|
||||
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 = {
|
||||
bre\u0061k() { return 42; }
|
||||
};
|
||||
|
||||
assert.sameValue(obj['break'](), 42, 'property exists');
|
|
@ -0,0 +1,42 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/case-escaped.case
|
||||
// - src/identifier-names/default/obj-method-definition.template
|
||||
/*---
|
||||
description: case is a valid identifier name, using escape (MethodDefinition)
|
||||
esid: prod-PropertyDefinition
|
||||
flags: [generated]
|
||||
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 = {
|
||||
c\u0061se() { return 42; }
|
||||
};
|
||||
|
||||
assert.sameValue(obj['case'](), 42, 'property exists');
|
|
@ -0,0 +1,42 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/catch-escaped.case
|
||||
// - src/identifier-names/default/obj-method-definition.template
|
||||
/*---
|
||||
description: catch is a valid identifier name, using escape (MethodDefinition)
|
||||
esid: prod-PropertyDefinition
|
||||
flags: [generated]
|
||||
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 = {
|
||||
c\u0061tch() { return 42; }
|
||||
};
|
||||
|
||||
assert.sameValue(obj['catch'](), 42, 'property exists');
|
|
@ -0,0 +1,42 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/class-escaped.case
|
||||
// - src/identifier-names/default/obj-method-definition.template
|
||||
/*---
|
||||
description: class is a valid identifier name, using escape (MethodDefinition)
|
||||
esid: prod-PropertyDefinition
|
||||
flags: [generated]
|
||||
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 = {
|
||||
cl\u0061ss() { return 42; }
|
||||
};
|
||||
|
||||
assert.sameValue(obj['class'](), 42, 'property exists');
|
|
@ -0,0 +1,42 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/const-escaped.case
|
||||
// - src/identifier-names/default/obj-method-definition.template
|
||||
/*---
|
||||
description: const is a valid identifier name, using escape (MethodDefinition)
|
||||
esid: prod-PropertyDefinition
|
||||
flags: [generated]
|
||||
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 = {
|
||||
\u0063onst() { return 42; }
|
||||
};
|
||||
|
||||
assert.sameValue(obj['const'](), 42, 'property exists');
|
|
@ -0,0 +1,42 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/continue-escaped.case
|
||||
// - src/identifier-names/default/obj-method-definition.template
|
||||
/*---
|
||||
description: continue is a valid identifier name, using escape (MethodDefinition)
|
||||
esid: prod-PropertyDefinition
|
||||
flags: [generated]
|
||||
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 = {
|
||||
\u0063ontinue() { return 42; }
|
||||
};
|
||||
|
||||
assert.sameValue(obj['continue'](), 42, 'property exists');
|
|
@ -0,0 +1,42 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/debugger-escaped.case
|
||||
// - src/identifier-names/default/obj-method-definition.template
|
||||
/*---
|
||||
description: debugger is a valid identifier name, using escape (MethodDefinition)
|
||||
esid: prod-PropertyDefinition
|
||||
flags: [generated]
|
||||
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 = {
|
||||
\u0064ebugger() { return 42; }
|
||||
};
|
||||
|
||||
assert.sameValue(obj['debugger'](), 42, 'property exists');
|
|
@ -0,0 +1,42 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/delete-escaped.case
|
||||
// - src/identifier-names/default/obj-method-definition.template
|
||||
/*---
|
||||
description: delete is a valid identifier name, using escape (MethodDefinition)
|
||||
esid: prod-PropertyDefinition
|
||||
flags: [generated]
|
||||
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 = {
|
||||
\u0064elete() { return 42; }
|
||||
};
|
||||
|
||||
assert.sameValue(obj['delete'](), 42, 'property exists');
|
|
@ -0,0 +1,42 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/do-escaped.case
|
||||
// - src/identifier-names/default/obj-method-definition.template
|
||||
/*---
|
||||
description: do is a valid identifier name, using escape (MethodDefinition)
|
||||
esid: prod-PropertyDefinition
|
||||
flags: [generated]
|
||||
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 = {
|
||||
\u0064o() { return 42; }
|
||||
};
|
||||
|
||||
assert.sameValue(obj['do'](), 42, 'property exists');
|
|
@ -0,0 +1,42 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/else-escaped.case
|
||||
// - src/identifier-names/default/obj-method-definition.template
|
||||
/*---
|
||||
description: else is a valid identifier name, using escape (MethodDefinition)
|
||||
esid: prod-PropertyDefinition
|
||||
flags: [generated]
|
||||
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 = {
|
||||
\u0065lse() { return 42; }
|
||||
};
|
||||
|
||||
assert.sameValue(obj['else'](), 42, 'property exists');
|
|
@ -0,0 +1,42 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/enum-escaped.case
|
||||
// - src/identifier-names/default/obj-method-definition.template
|
||||
/*---
|
||||
description: enum is a valid identifier name, using escape (MethodDefinition)
|
||||
esid: prod-PropertyDefinition
|
||||
flags: [generated]
|
||||
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 = {
|
||||
\u0065num() { return 42; }
|
||||
};
|
||||
|
||||
assert.sameValue(obj['enum'](), 42, 'property exists');
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue