Generate tests

This commit is contained in:
Leo Balter 2019-08-14 15:29:42 -04:00
parent 39e25a8d06
commit c09563280d
127 changed files with 763 additions and 40 deletions

View File

@ -4,6 +4,7 @@
/*---
description: Abrupt completion when evaluating expression (Class expression, instance method)
esid: sec-runtime-semantics-classdefinitionevaluation
features: [class]
flags: [generated]
info: |
[...]
@ -12,6 +13,7 @@ info: |
i. Let status be the result of performing PropertyDefinitionEvaluation
for m with arguments proto and false.
12.2.6.7 Runtime Semantics: Evaluation
ComputedPropertyName : [ AssignmentExpression ]

View File

@ -4,6 +4,7 @@
/*---
description: Abrupt completion when coercing to property key value (Class expression, instance method)
esid: sec-runtime-semantics-classdefinitionevaluation
features: [class]
flags: [generated]
info: |
[...]
@ -12,6 +13,7 @@ info: |
i. Let status be the result of performing PropertyDefinitionEvaluation
for m with arguments proto and false.
12.2.6.7 Runtime Semantics: Evaluation
[...]

View File

@ -4,6 +4,7 @@
/*---
description: Abrupt completion when resolving reference value (Class expression, instance method)
esid: sec-runtime-semantics-classdefinitionevaluation
features: [class]
flags: [generated]
info: |
[...]
@ -12,6 +13,7 @@ info: |
i. Let status be the result of performing PropertyDefinitionEvaluation
for m with arguments proto and false.
12.2.6.7 Runtime Semantics: Evaluation
[...]

View File

@ -4,6 +4,7 @@
/*---
description: Computed values as accessor property names (AssignmentExpression) (Class expression, instance method)
esid: sec-runtime-semantics-classdefinitionevaluation
features: [class]
flags: [generated]
info: |
[...]
@ -12,6 +13,7 @@ info: |
i. Let status be the result of performing PropertyDefinitionEvaluation
for m with arguments proto and false.
12.2.6.7 Runtime Semantics: Evaluation
[...]

View File

@ -4,6 +4,7 @@
/*---
description: Computed values as accessor property names (numeric literal in binary notation) (Class expression, instance method)
esid: sec-runtime-semantics-classdefinitionevaluation
features: [class]
flags: [generated]
info: |
[...]
@ -12,6 +13,7 @@ info: |
i. Let status be the result of performing PropertyDefinitionEvaluation
for m with arguments proto and false.
12.2.6.7 Runtime Semantics: Evaluation
[...]

View File

@ -4,6 +4,7 @@
/*---
description: Computed values as accessor property names (numeric literal in exponent notation) (Class expression, instance method)
esid: sec-runtime-semantics-classdefinitionevaluation
features: [class]
flags: [generated]
info: |
[...]
@ -12,6 +13,7 @@ info: |
i. Let status be the result of performing PropertyDefinitionEvaluation
for m with arguments proto and false.
12.2.6.7 Runtime Semantics: Evaluation
[...]

View File

@ -4,6 +4,7 @@
/*---
description: Computed values as accessor property names (numeric literal in hexadecimal notation) (Class expression, instance method)
esid: sec-runtime-semantics-classdefinitionevaluation
features: [class]
flags: [generated]
info: |
[...]
@ -12,6 +13,7 @@ info: |
i. Let status be the result of performing PropertyDefinitionEvaluation
for m with arguments proto and false.
12.2.6.7 Runtime Semantics: Evaluation
[...]

View File

@ -4,6 +4,7 @@
/*---
description: Computed values as accessor property names (numeric literal with leading decimal point) (Class expression, instance method)
esid: sec-runtime-semantics-classdefinitionevaluation
features: [class]
flags: [generated]
info: |
[...]
@ -12,6 +13,7 @@ info: |
i. Let status be the result of performing PropertyDefinitionEvaluation
for m with arguments proto and false.
12.2.6.7 Runtime Semantics: Evaluation
[...]

View File

@ -4,6 +4,7 @@
/*---
description: Computed values as accessor property names (numeric literal with non-canonical representation) (Class expression, instance method)
esid: sec-runtime-semantics-classdefinitionevaluation
features: [class]
flags: [generated]
info: |
[...]
@ -12,6 +13,7 @@ info: |
i. Let status be the result of performing PropertyDefinitionEvaluation
for m with arguments proto and false.
12.2.6.7 Runtime Semantics: Evaluation
[...]

View File

@ -4,6 +4,7 @@
/*---
description: Computed values as accessor property names (numeric literal in octal notation) (Class expression, instance method)
esid: sec-runtime-semantics-classdefinitionevaluation
features: [class]
flags: [generated]
info: |
[...]
@ -12,6 +13,7 @@ info: |
i. Let status be the result of performing PropertyDefinitionEvaluation
for m with arguments proto and false.
12.2.6.7 Runtime Semantics: Evaluation
[...]

View File

@ -4,6 +4,7 @@
/*---
description: Computed values as accessor property names (numeric literal zero) (Class expression, instance method)
esid: sec-runtime-semantics-classdefinitionevaluation
features: [class]
flags: [generated]
info: |
[...]
@ -12,6 +13,7 @@ info: |
i. Let status be the result of performing PropertyDefinitionEvaluation
for m with arguments proto and false.
12.2.6.7 Runtime Semantics: Evaluation
[...]

View File

@ -4,6 +4,7 @@
/*---
description: Computed values as accessor property names (string literal containing a character escape sequence) (Class expression, instance method)
esid: sec-runtime-semantics-classdefinitionevaluation
features: [class]
flags: [generated]
info: |
[...]
@ -12,6 +13,7 @@ info: |
i. Let status be the result of performing PropertyDefinitionEvaluation
for m with arguments proto and false.
12.2.6.7 Runtime Semantics: Evaluation
[...]

View File

@ -0,0 +1,38 @@
// This file was procedurally generated from the following sources:
// - src/accessor-names/literal-string-default-escaped-ext.case
// - src/accessor-names/default/cls-expr-inst.template
/*---
description: Computed values as accessor property names (string literal 'default' w/ extended escape) (Class expression, instance method)
esid: sec-runtime-semantics-classdefinitionevaluation
features: [class]
flags: [generated]
info: |
[...]
21. For each ClassElement m in order from methods
a. If IsStatic of m is false, then
i. Let status be the result of performing PropertyDefinitionEvaluation
for m with arguments proto and false.
12.2.6.7 Runtime Semantics: Evaluation
[...]
ComputedPropertyName : [ AssignmentExpression ]
1. Let exprValue be the result of evaluating AssignmentExpression.
2. Let propName be ? GetValue(exprValue).
3. Return ? ToPropertyKey(propName).
---*/
var stringSet;
var C = class {
get 'def\u{61}ult'() { return 'get string'; }
set 'def\u{61}ult'(param) { stringSet = param; }
};
assert.sameValue(C.prototype['default'], 'get string');
C.prototype['default'] = 'set string';
assert.sameValue(stringSet, 'set string');

View File

@ -0,0 +1,38 @@
// This file was procedurally generated from the following sources:
// - src/accessor-names/literal-string-default-escaped.case
// - src/accessor-names/default/cls-expr-inst.template
/*---
description: Computed values as accessor property names (string literal 'default' escaped) (Class expression, instance method)
esid: sec-runtime-semantics-classdefinitionevaluation
features: [class]
flags: [generated]
info: |
[...]
21. For each ClassElement m in order from methods
a. If IsStatic of m is false, then
i. Let status be the result of performing PropertyDefinitionEvaluation
for m with arguments proto and false.
12.2.6.7 Runtime Semantics: Evaluation
[...]
ComputedPropertyName : [ AssignmentExpression ]
1. Let exprValue be the result of evaluating AssignmentExpression.
2. Let propName be ? GetValue(exprValue).
3. Return ? ToPropertyKey(propName).
---*/
var stringSet;
var C = class {
get 'def\u0061ult'() { return 'get string'; }
set 'def\u0061ult'(param) { stringSet = param; }
};
assert.sameValue(C.prototype['default'], 'get string');
C.prototype['default'] = 'set string';
assert.sameValue(stringSet, 'set string');

View File

@ -0,0 +1,38 @@
// This file was procedurally generated from the following sources:
// - src/accessor-names/literal-string-default.case
// - src/accessor-names/default/cls-expr-inst.template
/*---
description: Computed values as accessor property names (string literal 'default') (Class expression, instance method)
esid: sec-runtime-semantics-classdefinitionevaluation
features: [class]
flags: [generated]
info: |
[...]
21. For each ClassElement m in order from methods
a. If IsStatic of m is false, then
i. Let status be the result of performing PropertyDefinitionEvaluation
for m with arguments proto and false.
12.2.6.7 Runtime Semantics: Evaluation
[...]
ComputedPropertyName : [ AssignmentExpression ]
1. Let exprValue be the result of evaluating AssignmentExpression.
2. Let propName be ? GetValue(exprValue).
3. Return ? ToPropertyKey(propName).
---*/
var stringSet;
var C = class {
get 'default'() { return 'get string'; }
set 'default'(param) { stringSet = param; }
};
assert.sameValue(C.prototype['default'], 'get string');
C.prototype['default'] = 'set string';
assert.sameValue(stringSet, 'set string');

View File

@ -4,6 +4,7 @@
/*---
description: Computed values as accessor property names (string literal using double quotes) (Class expression, instance method)
esid: sec-runtime-semantics-classdefinitionevaluation
features: [class]
flags: [generated]
info: |
[...]
@ -12,6 +13,7 @@ info: |
i. Let status be the result of performing PropertyDefinitionEvaluation
for m with arguments proto and false.
12.2.6.7 Runtime Semantics: Evaluation
[...]

View File

@ -4,6 +4,7 @@
/*---
description: Computed values as accessor property names (string literal, the empty string) (Class expression, instance method)
esid: sec-runtime-semantics-classdefinitionevaluation
features: [class]
flags: [generated]
info: |
[...]
@ -12,6 +13,7 @@ info: |
i. Let status be the result of performing PropertyDefinitionEvaluation
for m with arguments proto and false.
12.2.6.7 Runtime Semantics: Evaluation
[...]

View File

@ -4,6 +4,7 @@
/*---
description: Computed values as accessor property names (string literal containing a hexadecimal escape sequence) (Class expression, instance method)
esid: sec-runtime-semantics-classdefinitionevaluation
features: [class]
flags: [generated]
info: |
[...]
@ -12,6 +13,7 @@ info: |
i. Let status be the result of performing PropertyDefinitionEvaluation
for m with arguments proto and false.
12.2.6.7 Runtime Semantics: Evaluation
[...]

View File

@ -4,6 +4,7 @@
/*---
description: Computed values as accessor property names (string literal containing LineContinuation) (Class expression, instance method)
esid: sec-runtime-semantics-classdefinitionevaluation
features: [class]
flags: [generated]
info: |
[...]
@ -12,6 +13,7 @@ info: |
i. Let status be the result of performing PropertyDefinitionEvaluation
for m with arguments proto and false.
12.2.6.7 Runtime Semantics: Evaluation
[...]

View File

@ -4,6 +4,7 @@
/*---
description: Computed values as accessor property names (string literal using single quotes) (Class expression, instance method)
esid: sec-runtime-semantics-classdefinitionevaluation
features: [class]
flags: [generated]
info: |
[...]
@ -12,6 +13,7 @@ info: |
i. Let status be the result of performing PropertyDefinitionEvaluation
for m with arguments proto and false.
12.2.6.7 Runtime Semantics: Evaluation
[...]

View File

@ -4,6 +4,7 @@
/*---
description: Computed values as accessor property names (string literal containing a Unicode escape sequence) (Class expression, instance method)
esid: sec-runtime-semantics-classdefinitionevaluation
features: [class]
flags: [generated]
info: |
[...]
@ -12,6 +13,7 @@ info: |
i. Let status be the result of performing PropertyDefinitionEvaluation
for m with arguments proto and false.
12.2.6.7 Runtime Semantics: Evaluation
[...]

View File

@ -4,6 +4,7 @@
/*---
description: Abrupt completion when evaluating expression (Class expression, static method)
esid: sec-runtime-semantics-classdefinitionevaluation
features: [class]
flags: [generated]
info: |
[...]
@ -14,6 +15,7 @@ info: |
a. Let status be the result of performing PropertyDefinitionEvaluation
for m with arguments F and false.
12.2.6.7 Runtime Semantics: Evaluation
ComputedPropertyName : [ AssignmentExpression ]

View File

@ -4,6 +4,7 @@
/*---
description: Abrupt completion when coercing to property key value (Class expression, static method)
esid: sec-runtime-semantics-classdefinitionevaluation
features: [class]
flags: [generated]
info: |
[...]
@ -14,6 +15,7 @@ info: |
a. Let status be the result of performing PropertyDefinitionEvaluation
for m with arguments F and false.
12.2.6.7 Runtime Semantics: Evaluation
[...]

View File

@ -4,6 +4,7 @@
/*---
description: Abrupt completion when resolving reference value (Class expression, static method)
esid: sec-runtime-semantics-classdefinitionevaluation
features: [class]
flags: [generated]
info: |
[...]
@ -14,6 +15,7 @@ info: |
a. Let status be the result of performing PropertyDefinitionEvaluation
for m with arguments F and false.
12.2.6.7 Runtime Semantics: Evaluation
[...]

View File

@ -4,6 +4,7 @@
/*---
description: Computed values as accessor property names (AssignmentExpression) (Class expression, static method)
esid: sec-runtime-semantics-classdefinitionevaluation
features: [class]
flags: [generated]
info: |
[...]
@ -14,6 +15,7 @@ info: |
a. Let status be the result of performing PropertyDefinitionEvaluation
for m with arguments F and false.
12.2.6.7 Runtime Semantics: Evaluation
[...]

View File

@ -4,6 +4,7 @@
/*---
description: Computed values as accessor property names (numeric literal in binary notation) (Class expression, static method)
esid: sec-runtime-semantics-classdefinitionevaluation
features: [class]
flags: [generated]
info: |
[...]
@ -14,6 +15,7 @@ info: |
a. Let status be the result of performing PropertyDefinitionEvaluation
for m with arguments F and false.
12.2.6.7 Runtime Semantics: Evaluation
[...]

View File

@ -4,6 +4,7 @@
/*---
description: Computed values as accessor property names (numeric literal in exponent notation) (Class expression, static method)
esid: sec-runtime-semantics-classdefinitionevaluation
features: [class]
flags: [generated]
info: |
[...]
@ -14,6 +15,7 @@ info: |
a. Let status be the result of performing PropertyDefinitionEvaluation
for m with arguments F and false.
12.2.6.7 Runtime Semantics: Evaluation
[...]

View File

@ -4,6 +4,7 @@
/*---
description: Computed values as accessor property names (numeric literal in hexadecimal notation) (Class expression, static method)
esid: sec-runtime-semantics-classdefinitionevaluation
features: [class]
flags: [generated]
info: |
[...]
@ -14,6 +15,7 @@ info: |
a. Let status be the result of performing PropertyDefinitionEvaluation
for m with arguments F and false.
12.2.6.7 Runtime Semantics: Evaluation
[...]

View File

@ -4,6 +4,7 @@
/*---
description: Computed values as accessor property names (numeric literal with leading decimal point) (Class expression, static method)
esid: sec-runtime-semantics-classdefinitionevaluation
features: [class]
flags: [generated]
info: |
[...]
@ -14,6 +15,7 @@ info: |
a. Let status be the result of performing PropertyDefinitionEvaluation
for m with arguments F and false.
12.2.6.7 Runtime Semantics: Evaluation
[...]

View File

@ -4,6 +4,7 @@
/*---
description: Computed values as accessor property names (numeric literal with non-canonical representation) (Class expression, static method)
esid: sec-runtime-semantics-classdefinitionevaluation
features: [class]
flags: [generated]
info: |
[...]
@ -14,6 +15,7 @@ info: |
a. Let status be the result of performing PropertyDefinitionEvaluation
for m with arguments F and false.
12.2.6.7 Runtime Semantics: Evaluation
[...]

View File

@ -4,6 +4,7 @@
/*---
description: Computed values as accessor property names (numeric literal in octal notation) (Class expression, static method)
esid: sec-runtime-semantics-classdefinitionevaluation
features: [class]
flags: [generated]
info: |
[...]
@ -14,6 +15,7 @@ info: |
a. Let status be the result of performing PropertyDefinitionEvaluation
for m with arguments F and false.
12.2.6.7 Runtime Semantics: Evaluation
[...]

View File

@ -4,6 +4,7 @@
/*---
description: Computed values as accessor property names (numeric literal zero) (Class expression, static method)
esid: sec-runtime-semantics-classdefinitionevaluation
features: [class]
flags: [generated]
info: |
[...]
@ -14,6 +15,7 @@ info: |
a. Let status be the result of performing PropertyDefinitionEvaluation
for m with arguments F and false.
12.2.6.7 Runtime Semantics: Evaluation
[...]

View File

@ -4,6 +4,7 @@
/*---
description: Computed values as accessor property names (string literal containing a character escape sequence) (Class expression, static method)
esid: sec-runtime-semantics-classdefinitionevaluation
features: [class]
flags: [generated]
info: |
[...]
@ -14,6 +15,7 @@ info: |
a. Let status be the result of performing PropertyDefinitionEvaluation
for m with arguments F and false.
12.2.6.7 Runtime Semantics: Evaluation
[...]

View File

@ -0,0 +1,40 @@
// This file was procedurally generated from the following sources:
// - src/accessor-names/literal-string-default-escaped-ext.case
// - src/accessor-names/default/cls-expr-static.template
/*---
description: Computed values as accessor property names (string literal 'default' w/ extended escape) (Class expression, static method)
esid: sec-runtime-semantics-classdefinitionevaluation
features: [class]
flags: [generated]
info: |
[...]
21. For each ClassElement m in order from methods
a. If IsStatic of m is false, then
[...]
b. Else,
a. Let status be the result of performing PropertyDefinitionEvaluation
for m with arguments F and false.
12.2.6.7 Runtime Semantics: Evaluation
[...]
ComputedPropertyName : [ AssignmentExpression ]
1. Let exprValue be the result of evaluating AssignmentExpression.
2. Let propName be ? GetValue(exprValue).
3. Return ? ToPropertyKey(propName).
---*/
var stringSet;
var C = class {
static get 'def\u{61}ult'() { return 'get string'; }
static set 'def\u{61}ult'(param) { stringSet = param; }
};
assert.sameValue(C['default'], 'get string');
C['default'] = 'set string';
assert.sameValue(stringSet, 'set string');

View File

@ -0,0 +1,40 @@
// This file was procedurally generated from the following sources:
// - src/accessor-names/literal-string-default-escaped.case
// - src/accessor-names/default/cls-expr-static.template
/*---
description: Computed values as accessor property names (string literal 'default' escaped) (Class expression, static method)
esid: sec-runtime-semantics-classdefinitionevaluation
features: [class]
flags: [generated]
info: |
[...]
21. For each ClassElement m in order from methods
a. If IsStatic of m is false, then
[...]
b. Else,
a. Let status be the result of performing PropertyDefinitionEvaluation
for m with arguments F and false.
12.2.6.7 Runtime Semantics: Evaluation
[...]
ComputedPropertyName : [ AssignmentExpression ]
1. Let exprValue be the result of evaluating AssignmentExpression.
2. Let propName be ? GetValue(exprValue).
3. Return ? ToPropertyKey(propName).
---*/
var stringSet;
var C = class {
static get 'def\u0061ult'() { return 'get string'; }
static set 'def\u0061ult'(param) { stringSet = param; }
};
assert.sameValue(C['default'], 'get string');
C['default'] = 'set string';
assert.sameValue(stringSet, 'set string');

View File

@ -0,0 +1,40 @@
// This file was procedurally generated from the following sources:
// - src/accessor-names/literal-string-default.case
// - src/accessor-names/default/cls-expr-static.template
/*---
description: Computed values as accessor property names (string literal 'default') (Class expression, static method)
esid: sec-runtime-semantics-classdefinitionevaluation
features: [class]
flags: [generated]
info: |
[...]
21. For each ClassElement m in order from methods
a. If IsStatic of m is false, then
[...]
b. Else,
a. Let status be the result of performing PropertyDefinitionEvaluation
for m with arguments F and false.
12.2.6.7 Runtime Semantics: Evaluation
[...]
ComputedPropertyName : [ AssignmentExpression ]
1. Let exprValue be the result of evaluating AssignmentExpression.
2. Let propName be ? GetValue(exprValue).
3. Return ? ToPropertyKey(propName).
---*/
var stringSet;
var C = class {
static get 'default'() { return 'get string'; }
static set 'default'(param) { stringSet = param; }
};
assert.sameValue(C['default'], 'get string');
C['default'] = 'set string';
assert.sameValue(stringSet, 'set string');

View File

@ -4,6 +4,7 @@
/*---
description: Computed values as accessor property names (string literal using double quotes) (Class expression, static method)
esid: sec-runtime-semantics-classdefinitionevaluation
features: [class]
flags: [generated]
info: |
[...]
@ -14,6 +15,7 @@ info: |
a. Let status be the result of performing PropertyDefinitionEvaluation
for m with arguments F and false.
12.2.6.7 Runtime Semantics: Evaluation
[...]

View File

@ -4,6 +4,7 @@
/*---
description: Computed values as accessor property names (string literal, the empty string) (Class expression, static method)
esid: sec-runtime-semantics-classdefinitionevaluation
features: [class]
flags: [generated]
info: |
[...]
@ -14,6 +15,7 @@ info: |
a. Let status be the result of performing PropertyDefinitionEvaluation
for m with arguments F and false.
12.2.6.7 Runtime Semantics: Evaluation
[...]

View File

@ -4,6 +4,7 @@
/*---
description: Computed values as accessor property names (string literal containing a hexadecimal escape sequence) (Class expression, static method)
esid: sec-runtime-semantics-classdefinitionevaluation
features: [class]
flags: [generated]
info: |
[...]
@ -14,6 +15,7 @@ info: |
a. Let status be the result of performing PropertyDefinitionEvaluation
for m with arguments F and false.
12.2.6.7 Runtime Semantics: Evaluation
[...]

View File

@ -4,6 +4,7 @@
/*---
description: Computed values as accessor property names (string literal containing LineContinuation) (Class expression, static method)
esid: sec-runtime-semantics-classdefinitionevaluation
features: [class]
flags: [generated]
info: |
[...]
@ -14,6 +15,7 @@ info: |
a. Let status be the result of performing PropertyDefinitionEvaluation
for m with arguments F and false.
12.2.6.7 Runtime Semantics: Evaluation
[...]

View File

@ -4,6 +4,7 @@
/*---
description: Computed values as accessor property names (string literal using single quotes) (Class expression, static method)
esid: sec-runtime-semantics-classdefinitionevaluation
features: [class]
flags: [generated]
info: |
[...]
@ -14,6 +15,7 @@ info: |
a. Let status be the result of performing PropertyDefinitionEvaluation
for m with arguments F and false.
12.2.6.7 Runtime Semantics: Evaluation
[...]

View File

@ -4,6 +4,7 @@
/*---
description: Computed values as accessor property names (string literal containing a Unicode escape sequence) (Class expression, static method)
esid: sec-runtime-semantics-classdefinitionevaluation
features: [class]
flags: [generated]
info: |
[...]
@ -14,6 +15,7 @@ info: |
a. Let status be the result of performing PropertyDefinitionEvaluation
for m with arguments F and false.
12.2.6.7 Runtime Semantics: Evaluation
[...]

View File

@ -3,7 +3,7 @@
// - src/accessor-names/private/cls-private-expr-inst.template
/*---
description: Private IdentifierName - ZWJ (Class expression, instance private method)
features: [class-methods-private]
features: [class, class-methods-private]
flags: [generated]
info: |
ClassElement :

View File

@ -3,7 +3,7 @@
// - src/accessor-names/private/cls-private-expr-inst.template
/*---
description: Private IdentifierName - ZWNJ (Class expression, instance private method)
features: [class-methods-private]
features: [class, class-methods-private]
flags: [generated]
info: |
ClassElement :

View File

@ -3,7 +3,7 @@
// - src/accessor-names/private/cls-private-expr-inst.template
/*---
description: Private IdentifierName - u2118 () (Class expression, instance private method)
features: [class-methods-private]
features: [class, class-methods-private]
flags: [generated]
info: |
ClassElement :

View File

@ -3,7 +3,7 @@
// - src/accessor-names/private/cls-private-expr-inst.template
/*---
description: Private IdentifierName - u6F (o) (Class expression, instance private method)
features: [class-methods-private]
features: [class, class-methods-private]
flags: [generated]
info: |
ClassElement :

View File

@ -3,7 +3,7 @@
// - src/accessor-names/private/cls-private-expr-inst.template
/*---
description: Private IdentifierName - ZWJ (Class expression, instance private method)
features: [class-methods-private]
features: [class, class-methods-private]
flags: [generated]
info: |
ClassElement :

View File

@ -3,7 +3,7 @@
// - src/accessor-names/private/cls-private-expr-inst.template
/*---
description: Private IdentifierName - ZWNJ (Class expression, instance private method)
features: [class-methods-private]
features: [class, class-methods-private]
flags: [generated]
info: |
ClassElement :

View File

@ -3,7 +3,7 @@
// - src/accessor-names/private/cls-private-expr-inst.template
/*---
description: Private IdentifierName - common (Class expression, instance private method)
features: [class-methods-private]
features: [class, class-methods-private]
flags: [generated]
info: |
ClassElement :

View File

@ -3,7 +3,7 @@
// - src/accessor-names/private/cls-private-expr-inst.template
/*---
description: Private IdentifierName - $ (Class expression, instance private method)
features: [class-methods-private]
features: [class, class-methods-private]
flags: [generated]
info: |
ClassElement :

View File

@ -3,7 +3,7 @@
// - src/accessor-names/private/cls-private-expr-inst.template
/*---
description: Private IdentifierName - (Class expression, instance private method)
features: [class-methods-private]
features: [class, class-methods-private]
flags: [generated]
info: |
ClassElement :

View File

@ -3,7 +3,7 @@
// - src/accessor-names/private/cls-private-expr-inst.template
/*---
description: Private IdentifierName - _ (Class expression, instance private method)
features: [class-methods-private]
features: [class, class-methods-private]
flags: [generated]
info: |
ClassElement :

View File

@ -3,7 +3,7 @@
// - src/accessor-names/private/cls-private-expr-static.template
/*---
description: Private IdentifierName - ZWJ (Class expression, static private method)
features: [class-static-methods-private]
features: [class, class-static-methods-private]
flags: [generated]
info: |
ClassElement :

View File

@ -3,7 +3,7 @@
// - src/accessor-names/private/cls-private-expr-static.template
/*---
description: Private IdentifierName - ZWNJ (Class expression, static private method)
features: [class-static-methods-private]
features: [class, class-static-methods-private]
flags: [generated]
info: |
ClassElement :

View File

@ -3,7 +3,7 @@
// - src/accessor-names/private/cls-private-expr-static.template
/*---
description: Private IdentifierName - u2118 () (Class expression, static private method)
features: [class-static-methods-private]
features: [class, class-static-methods-private]
flags: [generated]
info: |
ClassElement :

View File

@ -3,7 +3,7 @@
// - src/accessor-names/private/cls-private-expr-static.template
/*---
description: Private IdentifierName - u6F (o) (Class expression, static private method)
features: [class-static-methods-private]
features: [class, class-static-methods-private]
flags: [generated]
info: |
ClassElement :

View File

@ -3,7 +3,7 @@
// - src/accessor-names/private/cls-private-expr-static.template
/*---
description: Private IdentifierName - ZWJ (Class expression, static private method)
features: [class-static-methods-private]
features: [class, class-static-methods-private]
flags: [generated]
info: |
ClassElement :

View File

@ -3,7 +3,7 @@
// - src/accessor-names/private/cls-private-expr-static.template
/*---
description: Private IdentifierName - ZWNJ (Class expression, static private method)
features: [class-static-methods-private]
features: [class, class-static-methods-private]
flags: [generated]
info: |
ClassElement :

View File

@ -3,7 +3,7 @@
// - src/accessor-names/private/cls-private-expr-static.template
/*---
description: Private IdentifierName - common (Class expression, static private method)
features: [class-static-methods-private]
features: [class, class-static-methods-private]
flags: [generated]
info: |
ClassElement :

View File

@ -3,7 +3,7 @@
// - src/accessor-names/private/cls-private-expr-static.template
/*---
description: Private IdentifierName - $ (Class expression, static private method)
features: [class-static-methods-private]
features: [class, class-static-methods-private]
flags: [generated]
info: |
ClassElement :

View File

@ -3,7 +3,7 @@
// - src/accessor-names/private/cls-private-expr-static.template
/*---
description: Private IdentifierName - (Class expression, static private method)
features: [class-static-methods-private]
features: [class, class-static-methods-private]
flags: [generated]
info: |
ClassElement :

View File

@ -3,7 +3,7 @@
// - src/accessor-names/private/cls-private-expr-static.template
/*---
description: Private IdentifierName - _ (Class expression, static private method)
features: [class-static-methods-private]
features: [class, class-static-methods-private]
flags: [generated]
info: |
ClassElement :

View File

@ -0,0 +1,37 @@
// This file was procedurally generated from the following sources:
// - src/accessor-names/literal-string-default-escaped-ext.case
// - src/accessor-names/default/obj.template
/*---
description: Computed values as accessor property names (string literal 'default' w/ extended escape) (Object initializer)
esid: sec-object-initializer-runtime-semantics-evaluation
flags: [generated]
info: |
ObjectLiteral :
{ PropertyDefinitionList }
{ PropertyDefinitionList , }
1. Let obj be ObjectCreate(%ObjectPrototype%).
2. Let status be the result of performing PropertyDefinitionEvaluation of
PropertyDefinitionList with arguments obj and true.
12.2.6.7 Runtime Semantics: Evaluation
[...]
ComputedPropertyName : [ AssignmentExpression ]
1. Let exprValue be the result of evaluating AssignmentExpression.
2. Let propName be ? GetValue(exprValue).
3. Return ? ToPropertyKey(propName).
---*/
var stringSet;
var obj = {
get ['def\u{61}ult']() { return 'get string'; },
set ['def\u{61}ult'](param) { stringSet = param; }
};
assert.sameValue(obj['default'], 'get string');
obj['default'] = 'set string';
assert.sameValue(stringSet, 'set string');

View File

@ -0,0 +1,37 @@
// This file was procedurally generated from the following sources:
// - src/accessor-names/literal-string-default-escaped.case
// - src/accessor-names/default/obj.template
/*---
description: Computed values as accessor property names (string literal 'default' escaped) (Object initializer)
esid: sec-object-initializer-runtime-semantics-evaluation
flags: [generated]
info: |
ObjectLiteral :
{ PropertyDefinitionList }
{ PropertyDefinitionList , }
1. Let obj be ObjectCreate(%ObjectPrototype%).
2. Let status be the result of performing PropertyDefinitionEvaluation of
PropertyDefinitionList with arguments obj and true.
12.2.6.7 Runtime Semantics: Evaluation
[...]
ComputedPropertyName : [ AssignmentExpression ]
1. Let exprValue be the result of evaluating AssignmentExpression.
2. Let propName be ? GetValue(exprValue).
3. Return ? ToPropertyKey(propName).
---*/
var stringSet;
var obj = {
get ['def\u0061ult']() { return 'get string'; },
set ['def\u0061ult'](param) { stringSet = param; }
};
assert.sameValue(obj['default'], 'get string');
obj['default'] = 'set string';
assert.sameValue(stringSet, 'set string');

View File

@ -0,0 +1,37 @@
// This file was procedurally generated from the following sources:
// - src/accessor-names/literal-string-default.case
// - src/accessor-names/default/obj.template
/*---
description: Computed values as accessor property names (string literal 'default') (Object initializer)
esid: sec-object-initializer-runtime-semantics-evaluation
flags: [generated]
info: |
ObjectLiteral :
{ PropertyDefinitionList }
{ PropertyDefinitionList , }
1. Let obj be ObjectCreate(%ObjectPrototype%).
2. Let status be the result of performing PropertyDefinitionEvaluation of
PropertyDefinitionList with arguments obj and true.
12.2.6.7 Runtime Semantics: Evaluation
[...]
ComputedPropertyName : [ AssignmentExpression ]
1. Let exprValue be the result of evaluating AssignmentExpression.
2. Let propName be ? GetValue(exprValue).
3. Return ? ToPropertyKey(propName).
---*/
var stringSet;
var obj = {
get ['default']() { return 'get string'; },
set ['default'](param) { stringSet = param; }
};
assert.sameValue(obj['default'], 'get string');
obj['default'] = 'set string';
assert.sameValue(stringSet, 'set string');

View File

@ -4,6 +4,7 @@
/*---
description: Abrupt completion when evaluating expression (Class declaration, instance method)
esid: sec-runtime-semantics-classdefinitionevaluation
features: [class]
flags: [generated]
info: |
[...]
@ -12,6 +13,7 @@ info: |
i. Let status be the result of performing PropertyDefinitionEvaluation
for m with arguments proto and false.
12.2.6.7 Runtime Semantics: Evaluation
ComputedPropertyName : [ AssignmentExpression ]

View File

@ -4,6 +4,7 @@
/*---
description: Abrupt completion when coercing to property key value (Class declaration, instance method)
esid: sec-runtime-semantics-classdefinitionevaluation
features: [class]
flags: [generated]
info: |
[...]
@ -12,6 +13,7 @@ info: |
i. Let status be the result of performing PropertyDefinitionEvaluation
for m with arguments proto and false.
12.2.6.7 Runtime Semantics: Evaluation
[...]

View File

@ -4,6 +4,7 @@
/*---
description: Abrupt completion when resolving reference value (Class declaration, instance method)
esid: sec-runtime-semantics-classdefinitionevaluation
features: [class]
flags: [generated]
info: |
[...]
@ -12,6 +13,7 @@ info: |
i. Let status be the result of performing PropertyDefinitionEvaluation
for m with arguments proto and false.
12.2.6.7 Runtime Semantics: Evaluation
[...]

View File

@ -4,6 +4,7 @@
/*---
description: Computed values as accessor property names (AssignmentExpression) (Class declaration, instance method)
esid: sec-runtime-semantics-classdefinitionevaluation
features: [class]
flags: [generated]
info: |
[...]
@ -12,6 +13,7 @@ info: |
i. Let status be the result of performing PropertyDefinitionEvaluation
for m with arguments proto and false.
12.2.6.7 Runtime Semantics: Evaluation
[...]

View File

@ -4,6 +4,7 @@
/*---
description: Computed values as accessor property names (numeric literal in binary notation) (Class declaration, instance method)
esid: sec-runtime-semantics-classdefinitionevaluation
features: [class]
flags: [generated]
info: |
[...]
@ -12,6 +13,7 @@ info: |
i. Let status be the result of performing PropertyDefinitionEvaluation
for m with arguments proto and false.
12.2.6.7 Runtime Semantics: Evaluation
[...]

View File

@ -4,6 +4,7 @@
/*---
description: Computed values as accessor property names (numeric literal in exponent notation) (Class declaration, instance method)
esid: sec-runtime-semantics-classdefinitionevaluation
features: [class]
flags: [generated]
info: |
[...]
@ -12,6 +13,7 @@ info: |
i. Let status be the result of performing PropertyDefinitionEvaluation
for m with arguments proto and false.
12.2.6.7 Runtime Semantics: Evaluation
[...]

View File

@ -4,6 +4,7 @@
/*---
description: Computed values as accessor property names (numeric literal in hexadecimal notation) (Class declaration, instance method)
esid: sec-runtime-semantics-classdefinitionevaluation
features: [class]
flags: [generated]
info: |
[...]
@ -12,6 +13,7 @@ info: |
i. Let status be the result of performing PropertyDefinitionEvaluation
for m with arguments proto and false.
12.2.6.7 Runtime Semantics: Evaluation
[...]

View File

@ -4,6 +4,7 @@
/*---
description: Computed values as accessor property names (numeric literal with leading decimal point) (Class declaration, instance method)
esid: sec-runtime-semantics-classdefinitionevaluation
features: [class]
flags: [generated]
info: |
[...]
@ -12,6 +13,7 @@ info: |
i. Let status be the result of performing PropertyDefinitionEvaluation
for m with arguments proto and false.
12.2.6.7 Runtime Semantics: Evaluation
[...]

View File

@ -4,6 +4,7 @@
/*---
description: Computed values as accessor property names (numeric literal with non-canonical representation) (Class declaration, instance method)
esid: sec-runtime-semantics-classdefinitionevaluation
features: [class]
flags: [generated]
info: |
[...]
@ -12,6 +13,7 @@ info: |
i. Let status be the result of performing PropertyDefinitionEvaluation
for m with arguments proto and false.
12.2.6.7 Runtime Semantics: Evaluation
[...]

View File

@ -4,6 +4,7 @@
/*---
description: Computed values as accessor property names (numeric literal in octal notation) (Class declaration, instance method)
esid: sec-runtime-semantics-classdefinitionevaluation
features: [class]
flags: [generated]
info: |
[...]
@ -12,6 +13,7 @@ info: |
i. Let status be the result of performing PropertyDefinitionEvaluation
for m with arguments proto and false.
12.2.6.7 Runtime Semantics: Evaluation
[...]

View File

@ -4,6 +4,7 @@
/*---
description: Computed values as accessor property names (numeric literal zero) (Class declaration, instance method)
esid: sec-runtime-semantics-classdefinitionevaluation
features: [class]
flags: [generated]
info: |
[...]
@ -12,6 +13,7 @@ info: |
i. Let status be the result of performing PropertyDefinitionEvaluation
for m with arguments proto and false.
12.2.6.7 Runtime Semantics: Evaluation
[...]

View File

@ -4,6 +4,7 @@
/*---
description: Computed values as accessor property names (string literal containing a character escape sequence) (Class declaration, instance method)
esid: sec-runtime-semantics-classdefinitionevaluation
features: [class]
flags: [generated]
info: |
[...]
@ -12,6 +13,7 @@ info: |
i. Let status be the result of performing PropertyDefinitionEvaluation
for m with arguments proto and false.
12.2.6.7 Runtime Semantics: Evaluation
[...]

View File

@ -0,0 +1,38 @@
// This file was procedurally generated from the following sources:
// - src/accessor-names/literal-string-default-escaped-ext.case
// - src/accessor-names/default/cls-decl-inst.template
/*---
description: Computed values as accessor property names (string literal 'default' w/ extended escape) (Class declaration, instance method)
esid: sec-runtime-semantics-classdefinitionevaluation
features: [class]
flags: [generated]
info: |
[...]
21. For each ClassElement m in order from methods
a. If IsStatic of m is false, then
i. Let status be the result of performing PropertyDefinitionEvaluation
for m with arguments proto and false.
12.2.6.7 Runtime Semantics: Evaluation
[...]
ComputedPropertyName : [ AssignmentExpression ]
1. Let exprValue be the result of evaluating AssignmentExpression.
2. Let propName be ? GetValue(exprValue).
3. Return ? ToPropertyKey(propName).
---*/
var stringSet;
class C {
get 'def\u{61}ult'() { return 'get string'; }
set 'def\u{61}ult'(param) { stringSet = param; }
}
assert.sameValue(C.prototype['default'], 'get string');
C.prototype['default'] = 'set string';
assert.sameValue(stringSet, 'set string');

View File

@ -0,0 +1,38 @@
// This file was procedurally generated from the following sources:
// - src/accessor-names/literal-string-default-escaped.case
// - src/accessor-names/default/cls-decl-inst.template
/*---
description: Computed values as accessor property names (string literal 'default' escaped) (Class declaration, instance method)
esid: sec-runtime-semantics-classdefinitionevaluation
features: [class]
flags: [generated]
info: |
[...]
21. For each ClassElement m in order from methods
a. If IsStatic of m is false, then
i. Let status be the result of performing PropertyDefinitionEvaluation
for m with arguments proto and false.
12.2.6.7 Runtime Semantics: Evaluation
[...]
ComputedPropertyName : [ AssignmentExpression ]
1. Let exprValue be the result of evaluating AssignmentExpression.
2. Let propName be ? GetValue(exprValue).
3. Return ? ToPropertyKey(propName).
---*/
var stringSet;
class C {
get 'def\u0061ult'() { return 'get string'; }
set 'def\u0061ult'(param) { stringSet = param; }
}
assert.sameValue(C.prototype['default'], 'get string');
C.prototype['default'] = 'set string';
assert.sameValue(stringSet, 'set string');

View File

@ -0,0 +1,38 @@
// This file was procedurally generated from the following sources:
// - src/accessor-names/literal-string-default.case
// - src/accessor-names/default/cls-decl-inst.template
/*---
description: Computed values as accessor property names (string literal 'default') (Class declaration, instance method)
esid: sec-runtime-semantics-classdefinitionevaluation
features: [class]
flags: [generated]
info: |
[...]
21. For each ClassElement m in order from methods
a. If IsStatic of m is false, then
i. Let status be the result of performing PropertyDefinitionEvaluation
for m with arguments proto and false.
12.2.6.7 Runtime Semantics: Evaluation
[...]
ComputedPropertyName : [ AssignmentExpression ]
1. Let exprValue be the result of evaluating AssignmentExpression.
2. Let propName be ? GetValue(exprValue).
3. Return ? ToPropertyKey(propName).
---*/
var stringSet;
class C {
get 'default'() { return 'get string'; }
set 'default'(param) { stringSet = param; }
}
assert.sameValue(C.prototype['default'], 'get string');
C.prototype['default'] = 'set string';
assert.sameValue(stringSet, 'set string');

View File

@ -4,6 +4,7 @@
/*---
description: Computed values as accessor property names (string literal using double quotes) (Class declaration, instance method)
esid: sec-runtime-semantics-classdefinitionevaluation
features: [class]
flags: [generated]
info: |
[...]
@ -12,6 +13,7 @@ info: |
i. Let status be the result of performing PropertyDefinitionEvaluation
for m with arguments proto and false.
12.2.6.7 Runtime Semantics: Evaluation
[...]

View File

@ -4,6 +4,7 @@
/*---
description: Computed values as accessor property names (string literal, the empty string) (Class declaration, instance method)
esid: sec-runtime-semantics-classdefinitionevaluation
features: [class]
flags: [generated]
info: |
[...]
@ -12,6 +13,7 @@ info: |
i. Let status be the result of performing PropertyDefinitionEvaluation
for m with arguments proto and false.
12.2.6.7 Runtime Semantics: Evaluation
[...]

View File

@ -4,6 +4,7 @@
/*---
description: Computed values as accessor property names (string literal containing a hexadecimal escape sequence) (Class declaration, instance method)
esid: sec-runtime-semantics-classdefinitionevaluation
features: [class]
flags: [generated]
info: |
[...]
@ -12,6 +13,7 @@ info: |
i. Let status be the result of performing PropertyDefinitionEvaluation
for m with arguments proto and false.
12.2.6.7 Runtime Semantics: Evaluation
[...]

View File

@ -4,6 +4,7 @@
/*---
description: Computed values as accessor property names (string literal containing LineContinuation) (Class declaration, instance method)
esid: sec-runtime-semantics-classdefinitionevaluation
features: [class]
flags: [generated]
info: |
[...]
@ -12,6 +13,7 @@ info: |
i. Let status be the result of performing PropertyDefinitionEvaluation
for m with arguments proto and false.
12.2.6.7 Runtime Semantics: Evaluation
[...]

View File

@ -4,6 +4,7 @@
/*---
description: Computed values as accessor property names (string literal using single quotes) (Class declaration, instance method)
esid: sec-runtime-semantics-classdefinitionevaluation
features: [class]
flags: [generated]
info: |
[...]
@ -12,6 +13,7 @@ info: |
i. Let status be the result of performing PropertyDefinitionEvaluation
for m with arguments proto and false.
12.2.6.7 Runtime Semantics: Evaluation
[...]

View File

@ -4,6 +4,7 @@
/*---
description: Computed values as accessor property names (string literal containing a Unicode escape sequence) (Class declaration, instance method)
esid: sec-runtime-semantics-classdefinitionevaluation
features: [class]
flags: [generated]
info: |
[...]
@ -12,6 +13,7 @@ info: |
i. Let status be the result of performing PropertyDefinitionEvaluation
for m with arguments proto and false.
12.2.6.7 Runtime Semantics: Evaluation
[...]

View File

@ -4,6 +4,7 @@
/*---
description: Abrupt completion when evaluating expression (Class declaration, static method)
esid: sec-runtime-semantics-classdefinitionevaluation
features: [class]
flags: [generated]
info: |
[...]
@ -14,6 +15,7 @@ info: |
a. Let status be the result of performing PropertyDefinitionEvaluation
for m with arguments F and false.
12.2.6.7 Runtime Semantics: Evaluation
ComputedPropertyName : [ AssignmentExpression ]

View File

@ -4,6 +4,7 @@
/*---
description: Abrupt completion when coercing to property key value (Class declaration, static method)
esid: sec-runtime-semantics-classdefinitionevaluation
features: [class]
flags: [generated]
info: |
[...]
@ -14,6 +15,7 @@ info: |
a. Let status be the result of performing PropertyDefinitionEvaluation
for m with arguments F and false.
12.2.6.7 Runtime Semantics: Evaluation
[...]

View File

@ -4,6 +4,7 @@
/*---
description: Abrupt completion when resolving reference value (Class declaration, static method)
esid: sec-runtime-semantics-classdefinitionevaluation
features: [class]
flags: [generated]
info: |
[...]
@ -14,6 +15,7 @@ info: |
a. Let status be the result of performing PropertyDefinitionEvaluation
for m with arguments F and false.
12.2.6.7 Runtime Semantics: Evaluation
[...]

View File

@ -4,6 +4,7 @@
/*---
description: Computed values as accessor property names (AssignmentExpression) (Class declaration, static method)
esid: sec-runtime-semantics-classdefinitionevaluation
features: [class]
flags: [generated]
info: |
[...]
@ -14,6 +15,7 @@ info: |
a. Let status be the result of performing PropertyDefinitionEvaluation
for m with arguments F and false.
12.2.6.7 Runtime Semantics: Evaluation
[...]

View File

@ -4,6 +4,7 @@
/*---
description: Computed values as accessor property names (numeric literal in binary notation) (Class declaration, static method)
esid: sec-runtime-semantics-classdefinitionevaluation
features: [class]
flags: [generated]
info: |
[...]
@ -14,6 +15,7 @@ info: |
a. Let status be the result of performing PropertyDefinitionEvaluation
for m with arguments F and false.
12.2.6.7 Runtime Semantics: Evaluation
[...]

View File

@ -4,6 +4,7 @@
/*---
description: Computed values as accessor property names (numeric literal in exponent notation) (Class declaration, static method)
esid: sec-runtime-semantics-classdefinitionevaluation
features: [class]
flags: [generated]
info: |
[...]
@ -14,6 +15,7 @@ info: |
a. Let status be the result of performing PropertyDefinitionEvaluation
for m with arguments F and false.
12.2.6.7 Runtime Semantics: Evaluation
[...]

View File

@ -4,6 +4,7 @@
/*---
description: Computed values as accessor property names (numeric literal in hexadecimal notation) (Class declaration, static method)
esid: sec-runtime-semantics-classdefinitionevaluation
features: [class]
flags: [generated]
info: |
[...]
@ -14,6 +15,7 @@ info: |
a. Let status be the result of performing PropertyDefinitionEvaluation
for m with arguments F and false.
12.2.6.7 Runtime Semantics: Evaluation
[...]

View File

@ -4,6 +4,7 @@
/*---
description: Computed values as accessor property names (numeric literal with leading decimal point) (Class declaration, static method)
esid: sec-runtime-semantics-classdefinitionevaluation
features: [class]
flags: [generated]
info: |
[...]
@ -14,6 +15,7 @@ info: |
a. Let status be the result of performing PropertyDefinitionEvaluation
for m with arguments F and false.
12.2.6.7 Runtime Semantics: Evaluation
[...]

View File

@ -4,6 +4,7 @@
/*---
description: Computed values as accessor property names (numeric literal with non-canonical representation) (Class declaration, static method)
esid: sec-runtime-semantics-classdefinitionevaluation
features: [class]
flags: [generated]
info: |
[...]
@ -14,6 +15,7 @@ info: |
a. Let status be the result of performing PropertyDefinitionEvaluation
for m with arguments F and false.
12.2.6.7 Runtime Semantics: Evaluation
[...]

View File

@ -4,6 +4,7 @@
/*---
description: Computed values as accessor property names (numeric literal in octal notation) (Class declaration, static method)
esid: sec-runtime-semantics-classdefinitionevaluation
features: [class]
flags: [generated]
info: |
[...]
@ -14,6 +15,7 @@ info: |
a. Let status be the result of performing PropertyDefinitionEvaluation
for m with arguments F and false.
12.2.6.7 Runtime Semantics: Evaluation
[...]

View File

@ -4,6 +4,7 @@
/*---
description: Computed values as accessor property names (numeric literal zero) (Class declaration, static method)
esid: sec-runtime-semantics-classdefinitionevaluation
features: [class]
flags: [generated]
info: |
[...]
@ -14,6 +15,7 @@ info: |
a. Let status be the result of performing PropertyDefinitionEvaluation
for m with arguments F and false.
12.2.6.7 Runtime Semantics: Evaluation
[...]

View File

@ -4,6 +4,7 @@
/*---
description: Computed values as accessor property names (string literal containing a character escape sequence) (Class declaration, static method)
esid: sec-runtime-semantics-classdefinitionevaluation
features: [class]
flags: [generated]
info: |
[...]
@ -14,6 +15,7 @@ info: |
a. Let status be the result of performing PropertyDefinitionEvaluation
for m with arguments F and false.
12.2.6.7 Runtime Semantics: Evaluation
[...]

View File

@ -0,0 +1,40 @@
// This file was procedurally generated from the following sources:
// - src/accessor-names/literal-string-default-escaped-ext.case
// - src/accessor-names/default/cls-decl-static.template
/*---
description: Computed values as accessor property names (string literal 'default' w/ extended escape) (Class declaration, static method)
esid: sec-runtime-semantics-classdefinitionevaluation
features: [class]
flags: [generated]
info: |
[...]
21. For each ClassElement m in order from methods
a. If IsStatic of m is false, then
[...]
b. Else,
a. Let status be the result of performing PropertyDefinitionEvaluation
for m with arguments F and false.
12.2.6.7 Runtime Semantics: Evaluation
[...]
ComputedPropertyName : [ AssignmentExpression ]
1. Let exprValue be the result of evaluating AssignmentExpression.
2. Let propName be ? GetValue(exprValue).
3. Return ? ToPropertyKey(propName).
---*/
var stringSet;
class C {
static get 'def\u{61}ult'() { return 'get string'; }
static set 'def\u{61}ult'(param) { stringSet = param; }
}
assert.sameValue(C['default'], 'get string');
C['default'] = 'set string';
assert.sameValue(stringSet, 'set string');

View File

@ -0,0 +1,40 @@
// This file was procedurally generated from the following sources:
// - src/accessor-names/literal-string-default-escaped.case
// - src/accessor-names/default/cls-decl-static.template
/*---
description: Computed values as accessor property names (string literal 'default' escaped) (Class declaration, static method)
esid: sec-runtime-semantics-classdefinitionevaluation
features: [class]
flags: [generated]
info: |
[...]
21. For each ClassElement m in order from methods
a. If IsStatic of m is false, then
[...]
b. Else,
a. Let status be the result of performing PropertyDefinitionEvaluation
for m with arguments F and false.
12.2.6.7 Runtime Semantics: Evaluation
[...]
ComputedPropertyName : [ AssignmentExpression ]
1. Let exprValue be the result of evaluating AssignmentExpression.
2. Let propName be ? GetValue(exprValue).
3. Return ? ToPropertyKey(propName).
---*/
var stringSet;
class C {
static get 'def\u0061ult'() { return 'get string'; }
static set 'def\u0061ult'(param) { stringSet = param; }
}
assert.sameValue(C['default'], 'get string');
C['default'] = 'set string';
assert.sameValue(stringSet, 'set string');

Some files were not shown because too many files have changed in this diff Show More