mirror of https://github.com/tc39/test262.git
Generate tests
This commit is contained in:
parent
cf32265765
commit
4d06dbc7eb
|
@ -0,0 +1,22 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/default-escaped-ext.case
|
||||
// - src/identifier-names/default/member-expr.template
|
||||
/*---
|
||||
description: default 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.def\u{61}ult = 42;
|
||||
|
||||
assert.sameValue(obj['default'], 42, 'property exists');
|
|
@ -0,0 +1,22 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/default-escaped.case
|
||||
// - src/identifier-names/default/member-expr.template
|
||||
/*---
|
||||
description: default 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.def\u0061ult = 42;
|
||||
|
||||
assert.sameValue(obj['default'], 42, 'property exists');
|
|
@ -0,0 +1,22 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/default.case
|
||||
// - src/identifier-names/default/member-expr.template
|
||||
/*---
|
||||
description: default 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.default = 42;
|
||||
|
||||
assert.sameValue(obj['default'], 42, 'property exists');
|
|
@ -0,0 +1,46 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/default-escaped-ext.case
|
||||
// - src/identifier-names/default/class-expression-method-def.template
|
||||
/*---
|
||||
description: default 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 {
|
||||
def\u{61}ult() { return 42; }
|
||||
}
|
||||
|
||||
var obj = new C();
|
||||
|
||||
assert.sameValue(obj['default'](), 42, 'property exists');
|
|
@ -0,0 +1,46 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/default-escaped.case
|
||||
// - src/identifier-names/default/class-expression-method-def.template
|
||||
/*---
|
||||
description: default 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 {
|
||||
def\u0061ult() { return 42; }
|
||||
}
|
||||
|
||||
var obj = new C();
|
||||
|
||||
assert.sameValue(obj['default'](), 42, 'property exists');
|
|
@ -0,0 +1,46 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/default.case
|
||||
// - src/identifier-names/default/class-expression-method-def.template
|
||||
/*---
|
||||
description: default 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 {
|
||||
default() { return 42; }
|
||||
}
|
||||
|
||||
var obj = new C();
|
||||
|
||||
assert.sameValue(obj['default'](), 42, 'property exists');
|
|
@ -0,0 +1,42 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/default-escaped-ext.case
|
||||
// - src/identifier-names/default/obj-method-definition.template
|
||||
/*---
|
||||
description: default is a valid identifier name, using extended 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 = {
|
||||
def\u{61}ult() { return 42; }
|
||||
};
|
||||
|
||||
assert.sameValue(obj['default'](), 42, 'property exists');
|
|
@ -0,0 +1,42 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/default-escaped.case
|
||||
// - src/identifier-names/default/obj-method-definition.template
|
||||
/*---
|
||||
description: default 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 = {
|
||||
def\u0061ult() { return 42; }
|
||||
};
|
||||
|
||||
assert.sameValue(obj['default'](), 42, 'property exists');
|
|
@ -0,0 +1,42 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/default.case
|
||||
// - src/identifier-names/default/obj-method-definition.template
|
||||
/*---
|
||||
description: default is a valid identifier name (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 = {
|
||||
default() { return 42; }
|
||||
};
|
||||
|
||||
assert.sameValue(obj['default'](), 42, 'property exists');
|
|
@ -0,0 +1,41 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/default-escaped-ext.case
|
||||
// - src/identifier-names/default/obj-prop-name.template
|
||||
/*---
|
||||
description: default is a valid identifier name, using extended escape (PropertyName)
|
||||
esid: prod-PropertyDefinition
|
||||
flags: [generated]
|
||||
info: |
|
||||
ObjectLiteral :
|
||||
{ PropertyDefinitionList }
|
||||
{ PropertyDefinitionList , }
|
||||
|
||||
PropertyDefinitionList:
|
||||
PropertyDefinition
|
||||
PropertyDefinitionList , PropertyDefinition
|
||||
|
||||
PropertyDefinition:
|
||||
IdentifierReference
|
||||
PropertyName : AssignmentExpression
|
||||
MethodDefinition
|
||||
... AssignmentExpression
|
||||
...
|
||||
|
||||
PropertyName:
|
||||
LiteralPropertyName
|
||||
...
|
||||
|
||||
LiteralPropertyName:
|
||||
IdentifierName
|
||||
...
|
||||
|
||||
Reserved Words
|
||||
|
||||
A reserved word is an IdentifierName that cannot be used as an Identifier.
|
||||
---*/
|
||||
|
||||
var obj = {
|
||||
def\u{61}ult: 42
|
||||
};
|
||||
|
||||
assert.sameValue(obj['default'], 42, 'property exists');
|
|
@ -0,0 +1,41 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/default-escaped.case
|
||||
// - src/identifier-names/default/obj-prop-name.template
|
||||
/*---
|
||||
description: default is a valid identifier name, using escape (PropertyName)
|
||||
esid: prod-PropertyDefinition
|
||||
flags: [generated]
|
||||
info: |
|
||||
ObjectLiteral :
|
||||
{ PropertyDefinitionList }
|
||||
{ PropertyDefinitionList , }
|
||||
|
||||
PropertyDefinitionList:
|
||||
PropertyDefinition
|
||||
PropertyDefinitionList , PropertyDefinition
|
||||
|
||||
PropertyDefinition:
|
||||
IdentifierReference
|
||||
PropertyName : AssignmentExpression
|
||||
MethodDefinition
|
||||
... AssignmentExpression
|
||||
...
|
||||
|
||||
PropertyName:
|
||||
LiteralPropertyName
|
||||
...
|
||||
|
||||
LiteralPropertyName:
|
||||
IdentifierName
|
||||
...
|
||||
|
||||
Reserved Words
|
||||
|
||||
A reserved word is an IdentifierName that cannot be used as an Identifier.
|
||||
---*/
|
||||
|
||||
var obj = {
|
||||
def\u0061ult: 42
|
||||
};
|
||||
|
||||
assert.sameValue(obj['default'], 42, 'property exists');
|
|
@ -0,0 +1,41 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/default.case
|
||||
// - src/identifier-names/default/obj-prop-name.template
|
||||
/*---
|
||||
description: default is a valid identifier name (PropertyName)
|
||||
esid: prod-PropertyDefinition
|
||||
flags: [generated]
|
||||
info: |
|
||||
ObjectLiteral :
|
||||
{ PropertyDefinitionList }
|
||||
{ PropertyDefinitionList , }
|
||||
|
||||
PropertyDefinitionList:
|
||||
PropertyDefinition
|
||||
PropertyDefinitionList , PropertyDefinition
|
||||
|
||||
PropertyDefinition:
|
||||
IdentifierReference
|
||||
PropertyName : AssignmentExpression
|
||||
MethodDefinition
|
||||
... AssignmentExpression
|
||||
...
|
||||
|
||||
PropertyName:
|
||||
LiteralPropertyName
|
||||
...
|
||||
|
||||
LiteralPropertyName:
|
||||
IdentifierName
|
||||
...
|
||||
|
||||
Reserved Words
|
||||
|
||||
A reserved word is an IdentifierName that cannot be used as an Identifier.
|
||||
---*/
|
||||
|
||||
var obj = {
|
||||
default: 42
|
||||
};
|
||||
|
||||
assert.sameValue(obj['default'], 42, 'property exists');
|
|
@ -0,0 +1,46 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/default-escaped-ext.case
|
||||
// - src/identifier-names/default/class-statement-method-def.template
|
||||
/*---
|
||||
description: default 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.
|
||||
|
||||
---*/
|
||||
|
||||
|
||||
class C {
|
||||
def\u{61}ult() { return 42; }
|
||||
}
|
||||
|
||||
var obj = new C();
|
||||
|
||||
assert.sameValue(obj['default'](), 42, 'property exists');
|
|
@ -0,0 +1,46 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/default-escaped.case
|
||||
// - src/identifier-names/default/class-statement-method-def.template
|
||||
/*---
|
||||
description: default 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.
|
||||
|
||||
---*/
|
||||
|
||||
|
||||
class C {
|
||||
def\u0061ult() { return 42; }
|
||||
}
|
||||
|
||||
var obj = new C();
|
||||
|
||||
assert.sameValue(obj['default'](), 42, 'property exists');
|
|
@ -0,0 +1,46 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/identifier-names/default.case
|
||||
// - src/identifier-names/default/class-statement-method-def.template
|
||||
/*---
|
||||
description: default 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.
|
||||
|
||||
---*/
|
||||
|
||||
|
||||
class C {
|
||||
default() { return 42; }
|
||||
}
|
||||
|
||||
var obj = new C();
|
||||
|
||||
assert.sameValue(obj['default'](), 42, 'property exists');
|
Loading…
Reference in New Issue