mirror of https://github.com/tc39/test262.git
Generate tests
This commit is contained in:
parent
b3869474c5
commit
331a3964d5
|
@ -22,23 +22,23 @@ info: |
|
|||
PropertyName
|
||||
PrivateName
|
||||
|
||||
PrivateName::
|
||||
PrivateName ::
|
||||
# IdentifierName
|
||||
|
||||
IdentifierName::
|
||||
IdentifierName ::
|
||||
IdentifierStart
|
||||
IdentifierName IdentifierPart
|
||||
|
||||
IdentifierStart::
|
||||
IdentifierStart ::
|
||||
UnicodeIDStart
|
||||
$
|
||||
_
|
||||
\UnicodeEscapeSequence
|
||||
\ UnicodeEscapeSequence
|
||||
|
||||
IdentifierPart::
|
||||
UnicodeIDContinue
|
||||
$
|
||||
\UnicodeEscapeSequence
|
||||
\ UnicodeEscapeSequence
|
||||
<ZWNJ> <ZWJ>
|
||||
|
||||
UnicodeIDStart::
|
||||
|
|
|
@ -27,20 +27,20 @@ info: |
|
|||
LiteralPropertyName :
|
||||
IdentifierName
|
||||
|
||||
IdentifierName::
|
||||
IdentifierName ::
|
||||
IdentifierStart
|
||||
IdentifierName IdentifierPart
|
||||
|
||||
IdentifierStart::
|
||||
IdentifierStart ::
|
||||
UnicodeIDStart
|
||||
$
|
||||
_
|
||||
\UnicodeEscapeSequence
|
||||
\ UnicodeEscapeSequence
|
||||
|
||||
IdentifierPart::
|
||||
UnicodeIDContinue
|
||||
$
|
||||
\UnicodeEscapeSequence
|
||||
\ UnicodeEscapeSequence
|
||||
<ZWNJ> <ZWJ>
|
||||
|
||||
UnicodeIDStart::
|
||||
|
|
|
@ -27,20 +27,20 @@ info: |
|
|||
LiteralPropertyName :
|
||||
IdentifierName
|
||||
|
||||
IdentifierName::
|
||||
IdentifierName ::
|
||||
IdentifierStart
|
||||
IdentifierName IdentifierPart
|
||||
|
||||
IdentifierStart::
|
||||
IdentifierStart ::
|
||||
UnicodeIDStart
|
||||
$
|
||||
_
|
||||
\UnicodeEscapeSequence
|
||||
\ UnicodeEscapeSequence
|
||||
|
||||
IdentifierPart::
|
||||
UnicodeIDContinue
|
||||
$
|
||||
\UnicodeEscapeSequence
|
||||
\ UnicodeEscapeSequence
|
||||
<ZWNJ> <ZWJ>
|
||||
|
||||
UnicodeIDStart::
|
||||
|
|
|
@ -22,23 +22,23 @@ info: |
|
|||
PropertyName
|
||||
PrivateName
|
||||
|
||||
PrivateName::
|
||||
PrivateName ::
|
||||
# IdentifierName
|
||||
|
||||
IdentifierName::
|
||||
IdentifierName ::
|
||||
IdentifierStart
|
||||
IdentifierName IdentifierPart
|
||||
|
||||
IdentifierStart::
|
||||
IdentifierStart ::
|
||||
UnicodeIDStart
|
||||
$
|
||||
_
|
||||
\UnicodeEscapeSequence
|
||||
\ UnicodeEscapeSequence
|
||||
|
||||
IdentifierPart::
|
||||
UnicodeIDContinue
|
||||
$
|
||||
\UnicodeEscapeSequence
|
||||
\ UnicodeEscapeSequence
|
||||
<ZWNJ> <ZWJ>
|
||||
|
||||
UnicodeIDStart::
|
||||
|
|
|
@ -22,23 +22,23 @@ info: |
|
|||
PropertyName
|
||||
PrivateName
|
||||
|
||||
PrivateName::
|
||||
PrivateName ::
|
||||
# IdentifierName
|
||||
|
||||
IdentifierName::
|
||||
IdentifierName ::
|
||||
IdentifierStart
|
||||
IdentifierName IdentifierPart
|
||||
|
||||
IdentifierStart::
|
||||
IdentifierStart ::
|
||||
UnicodeIDStart
|
||||
$
|
||||
_
|
||||
\UnicodeEscapeSequence
|
||||
\ UnicodeEscapeSequence
|
||||
|
||||
IdentifierPart::
|
||||
UnicodeIDContinue
|
||||
$
|
||||
\UnicodeEscapeSequence
|
||||
\ UnicodeEscapeSequence
|
||||
<ZWNJ> <ZWJ>
|
||||
|
||||
UnicodeIDStart::
|
||||
|
|
|
@ -22,23 +22,23 @@ info: |
|
|||
PropertyName
|
||||
PrivateName
|
||||
|
||||
PrivateName::
|
||||
PrivateName ::
|
||||
# IdentifierName
|
||||
|
||||
IdentifierName::
|
||||
IdentifierName ::
|
||||
IdentifierStart
|
||||
IdentifierName IdentifierPart
|
||||
|
||||
IdentifierStart::
|
||||
IdentifierStart ::
|
||||
UnicodeIDStart
|
||||
$
|
||||
_
|
||||
\UnicodeEscapeSequence
|
||||
\ UnicodeEscapeSequence
|
||||
|
||||
IdentifierPart::
|
||||
UnicodeIDContinue
|
||||
$
|
||||
\UnicodeEscapeSequence
|
||||
\ UnicodeEscapeSequence
|
||||
<ZWNJ> <ZWJ>
|
||||
|
||||
UnicodeIDStart::
|
||||
|
|
|
@ -22,23 +22,23 @@ info: |
|
|||
PropertyName
|
||||
PrivateName
|
||||
|
||||
PrivateName::
|
||||
PrivateName ::
|
||||
# IdentifierName
|
||||
|
||||
IdentifierName::
|
||||
IdentifierName ::
|
||||
IdentifierStart
|
||||
IdentifierName IdentifierPart
|
||||
|
||||
IdentifierStart::
|
||||
IdentifierStart ::
|
||||
UnicodeIDStart
|
||||
$
|
||||
_
|
||||
\UnicodeEscapeSequence
|
||||
\ UnicodeEscapeSequence
|
||||
|
||||
IdentifierPart::
|
||||
UnicodeIDContinue
|
||||
$
|
||||
\UnicodeEscapeSequence
|
||||
\ UnicodeEscapeSequence
|
||||
<ZWNJ> <ZWJ>
|
||||
|
||||
UnicodeIDStart::
|
||||
|
|
|
@ -0,0 +1,131 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/class-fields/rs-static-async-generator-method-privatename-identifier-alt.case
|
||||
// - src/class-fields/productions/cls-expr-after-same-line-gen.template
|
||||
/*---
|
||||
description: Valid Static AsyncGeneratorMethod PrivateName (field definitions after a generator in the same line)
|
||||
esid: prod-FieldDefinition
|
||||
features: [class-static-methods-private, generators, class, class-fields-public]
|
||||
flags: [generated, async]
|
||||
includes: [propertyHelper.js]
|
||||
info: |
|
||||
|
||||
ClassElement :
|
||||
MethodDefinition
|
||||
static MethodDefinition
|
||||
FieldDefinition ;
|
||||
static FieldDefinition ;
|
||||
;
|
||||
|
||||
MethodDefinition :
|
||||
AsyncGeneratorMethod
|
||||
|
||||
AsyncGeneratorMethod :
|
||||
async [no LineTerminator here] * ClassElementName ( UniqueFormalParameters){ AsyncGeneratorBody }
|
||||
|
||||
ClassElementName :
|
||||
PropertyName
|
||||
PrivateName
|
||||
|
||||
PrivateName ::
|
||||
# IdentifierName
|
||||
|
||||
IdentifierName ::
|
||||
IdentifierStart
|
||||
IdentifierName IdentifierPart
|
||||
|
||||
IdentifierStart ::
|
||||
UnicodeIDStart
|
||||
$
|
||||
_
|
||||
\ UnicodeEscapeSequence
|
||||
|
||||
IdentifierPart::
|
||||
UnicodeIDContinue
|
||||
$
|
||||
\ UnicodeEscapeSequence
|
||||
<ZWNJ> <ZWJ>
|
||||
|
||||
UnicodeIDStart::
|
||||
any Unicode code point with the Unicode property "ID_Start"
|
||||
|
||||
UnicodeIDContinue::
|
||||
any Unicode code point with the Unicode property "ID_Continue"
|
||||
|
||||
|
||||
NOTE 3
|
||||
The sets of code points with Unicode properties "ID_Start" and
|
||||
"ID_Continue" include, respectively, the code points with Unicode
|
||||
properties "Other_ID_Start" and "Other_ID_Continue".
|
||||
|
||||
---*/
|
||||
|
||||
|
||||
var C = class {
|
||||
*m() { return 42; } static async #$(value) {
|
||||
yield await value;
|
||||
}
|
||||
static async #_(value) {
|
||||
yield await value;
|
||||
}
|
||||
static async #o(value) {
|
||||
yield await value;
|
||||
}
|
||||
static async #℘(value) {
|
||||
yield await value;
|
||||
}
|
||||
static async #ZW__NJ(value) {
|
||||
yield await value;
|
||||
}
|
||||
static async #ZW__J(value) {
|
||||
yield await value;
|
||||
};
|
||||
static async $(value) {
|
||||
yield * await this.#$(value);
|
||||
}
|
||||
static async _(value) {
|
||||
yield * await this.#_(value);
|
||||
}
|
||||
static async o(value) {
|
||||
yield * await this.#o(value);
|
||||
}
|
||||
static async ℘(value) { // DO NOT CHANGE THE NAME OF THIS FIELD
|
||||
yield * await this.#℘(value);
|
||||
}
|
||||
static async ZW__NJ(value) { // DO NOT CHANGE THE NAME OF THIS FIELD
|
||||
yield * await this.#ZW__NJ(value);
|
||||
}
|
||||
static async ZW__J(value) { // DO NOT CHANGE THE NAME OF THIS FIELD
|
||||
yield * await this.#ZW__J(value);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
var c = new C();
|
||||
|
||||
assert.sameValue(c.m().next().value, 42);
|
||||
assert.sameValue(Object.hasOwnProperty.call(c, "m"), false);
|
||||
assert.sameValue(c.m, C.prototype.m);
|
||||
|
||||
verifyProperty(C.prototype, "m", {
|
||||
enumerable: false,
|
||||
configurable: true,
|
||||
writable: true,
|
||||
});
|
||||
|
||||
Promise.all([
|
||||
C.$(1).next(),
|
||||
C._(1).next(),
|
||||
C.o(1).next(),
|
||||
C.℘(1).next(), // DO NOT CHANGE THE NAME OF THIS FIELD
|
||||
C.ZW__NJ(1).next(), // DO NOT CHANGE THE NAME OF THIS FIELD
|
||||
C.ZW__J(1).next(), // DO NOT CHANGE THE NAME OF THIS FIELD
|
||||
]).then(results => {
|
||||
|
||||
assert.sameValue(results[0].value, 1);
|
||||
assert.sameValue(results[1].value, 1);
|
||||
assert.sameValue(results[2].value, 1);
|
||||
assert.sameValue(results[3].value, 1);
|
||||
assert.sameValue(results[4].value, 1);
|
||||
assert.sameValue(results[5].value, 1);
|
||||
|
||||
}, $DONE).then($DONE, $DONE);
|
|
@ -0,0 +1,132 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/class-fields/rs-static-async-generator-method-privatename-identifier.case
|
||||
// - src/class-fields/productions/cls-expr-after-same-line-gen.template
|
||||
/*---
|
||||
description: Valid Static AsyncGeneratorMethod PrivateName (field definitions after a generator in the same line)
|
||||
esid: prod-FieldDefinition
|
||||
features: [class-static-methods-private, generators, class, class-fields-public]
|
||||
flags: [generated, async]
|
||||
includes: [propertyHelper.js]
|
||||
info: |
|
||||
|
||||
ClassElement :
|
||||
MethodDefinition
|
||||
static MethodDefinition
|
||||
FieldDefinition ;
|
||||
static FieldDefinition ;
|
||||
;
|
||||
|
||||
MethodDefinition :
|
||||
AsyncGeneratorMethod
|
||||
|
||||
AsyncGeneratorMethod :
|
||||
async [no LineTerminator here] * ClassElementName ( UniqueFormalParameters){ AsyncGeneratorBody }
|
||||
|
||||
ClassElementName :
|
||||
PropertyName
|
||||
PrivateName
|
||||
|
||||
PrivateName ::
|
||||
# IdentifierName
|
||||
|
||||
IdentifierName ::
|
||||
IdentifierStart
|
||||
IdentifierName IdentifierPart
|
||||
|
||||
IdentifierStart ::
|
||||
UnicodeIDStart
|
||||
$
|
||||
_
|
||||
\ UnicodeEscapeSequence
|
||||
|
||||
IdentifierPart::
|
||||
UnicodeIDContinue
|
||||
$
|
||||
\ UnicodeEscapeSequence
|
||||
<ZWNJ> <ZWJ>
|
||||
|
||||
UnicodeIDStart::
|
||||
any Unicode code point with the Unicode property "ID_Start"
|
||||
|
||||
UnicodeIDContinue::
|
||||
any Unicode code point with the Unicode property "ID_Continue"
|
||||
|
||||
|
||||
NOTE 3
|
||||
The sets of code points with Unicode properties "ID_Start" and
|
||||
"ID_Continue" include, respectively, the code points with Unicode
|
||||
properties "Other_ID_Start" and "Other_ID_Continue".
|
||||
|
||||
---*/
|
||||
|
||||
|
||||
var C = class {
|
||||
*m() { return 42; } static async * #$(value) {
|
||||
yield await value;
|
||||
}
|
||||
static async * #_(value) {
|
||||
yield await value;
|
||||
}
|
||||
static async * #\u{6F}(value) {
|
||||
yield await value;
|
||||
}
|
||||
static async * #\u2118(value) {
|
||||
yield await value;
|
||||
}
|
||||
static async * #ZW_\u200C_NJ(value) {
|
||||
yield await value;
|
||||
}
|
||||
static async * #ZW_\u200D_J(value) {
|
||||
yield await value;
|
||||
};
|
||||
static async * $(value) {
|
||||
yield * await this.#$(value);
|
||||
}
|
||||
static async * _(value) {
|
||||
yield * await this.#_(value);
|
||||
}
|
||||
static async * \u{6F}(value) {
|
||||
yield * await this.#\u{6F}(value);
|
||||
}
|
||||
static async * \u2118(value) {
|
||||
yield * await this.#\u2118(value);
|
||||
}
|
||||
static async * ZW_\u200C_NJ(value) {
|
||||
yield * await this.#ZW_\u200C_NJ(value);
|
||||
}
|
||||
static async * ZW_\u200D_J(value) {
|
||||
yield * await this.#ZW_\u200D_J(value);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
var c = new C();
|
||||
|
||||
assert.sameValue(c.m().next().value, 42);
|
||||
assert.sameValue(Object.hasOwnProperty.call(c, "m"), false);
|
||||
assert.sameValue(c.m, C.prototype.m);
|
||||
|
||||
verifyProperty(C.prototype, "m", {
|
||||
enumerable: false,
|
||||
configurable: true,
|
||||
writable: true,
|
||||
});
|
||||
|
||||
Promise.all([
|
||||
C.$(1).next(),
|
||||
C._(1).next(),
|
||||
C.\u{6F}(1).next(),
|
||||
C.\u2118(1).next(),
|
||||
C.ZW_\u200C_NJ(1).next(),
|
||||
C.ZW_\u200D_J(1).next(),
|
||||
]).then(results => {
|
||||
|
||||
assert.sameValue(results[0].value, 1);
|
||||
assert.sameValue(results[1].value, 1);
|
||||
assert.sameValue(results[2].value, 1);
|
||||
assert.sameValue(results[3].value, 1);
|
||||
assert.sameValue(results[4].value, 1);
|
||||
assert.sameValue(results[5].value, 1);
|
||||
|
||||
}, $DONE).then($DONE, $DONE);
|
||||
|
|
@ -0,0 +1,131 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/class-fields/rs-static-async-method-privatename-identifier-alt.case
|
||||
// - src/class-fields/productions/cls-expr-after-same-line-gen.template
|
||||
/*---
|
||||
description: Valid Static AsyncMethod PrivateName (field definitions after a generator in the same line)
|
||||
esid: prod-FieldDefinition
|
||||
features: [class-static-methods-private, generators, class, class-fields-public]
|
||||
flags: [generated, async]
|
||||
includes: [propertyHelper.js]
|
||||
info: |
|
||||
|
||||
ClassElement :
|
||||
MethodDefinition
|
||||
static MethodDefinition
|
||||
FieldDefinition ;
|
||||
static FieldDefinition ;
|
||||
;
|
||||
|
||||
MethodDefinition :
|
||||
AsyncMethod
|
||||
|
||||
AsyncMethod :
|
||||
async [no LineTerminator here] ClassElementName ( UniqueFormalParameters ){ AsyncFunctionBody }
|
||||
|
||||
ClassElementName :
|
||||
PropertyName
|
||||
PrivateName
|
||||
|
||||
PrivateName ::
|
||||
# IdentifierName
|
||||
|
||||
IdentifierName ::
|
||||
IdentifierStart
|
||||
IdentifierName IdentifierPart
|
||||
|
||||
IdentifierStart ::
|
||||
UnicodeIDStart
|
||||
$
|
||||
_
|
||||
\ UnicodeEscapeSequence
|
||||
|
||||
IdentifierPart::
|
||||
UnicodeIDContinue
|
||||
$
|
||||
\ UnicodeEscapeSequence
|
||||
<ZWNJ> <ZWJ>
|
||||
|
||||
UnicodeIDStart::
|
||||
any Unicode code point with the Unicode property "ID_Start"
|
||||
|
||||
UnicodeIDContinue::
|
||||
any Unicode code point with the Unicode property "ID_Continue"
|
||||
|
||||
|
||||
NOTE 3
|
||||
The sets of code points with Unicode properties "ID_Start" and
|
||||
"ID_Continue" include, respectively, the code points with Unicode
|
||||
properties "Other_ID_Start" and "Other_ID_Continue".
|
||||
|
||||
---*/
|
||||
|
||||
|
||||
var C = class {
|
||||
*m() { return 42; } static async #$(value) {
|
||||
return await value;
|
||||
}
|
||||
static async #_(value) {
|
||||
return await value;
|
||||
}
|
||||
static async #o(value) {
|
||||
return await value;
|
||||
}
|
||||
static async #℘(value) {
|
||||
return await value;
|
||||
}
|
||||
static async #ZW__NJ(value) {
|
||||
return await value;
|
||||
}
|
||||
static async #ZW__J(value) {
|
||||
return await value;
|
||||
};
|
||||
static async $(value) {
|
||||
return await this.#$(value);
|
||||
}
|
||||
static async _(value) {
|
||||
return await this.#_(value);
|
||||
}
|
||||
static async o(value) {
|
||||
return await this.#o(value);
|
||||
}
|
||||
static async ℘(value) { // DO NOT CHANGE THE NAME OF THIS FIELD
|
||||
return await this.#℘(value);
|
||||
}
|
||||
static async ZW__NJ(value) { // DO NOT CHANGE THE NAME OF THIS FIELD
|
||||
return await this.#ZW__NJ(value);
|
||||
}
|
||||
static async ZW__J(value) { // DO NOT CHANGE THE NAME OF THIS FIELD
|
||||
return await this.#ZW__J(value);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
var c = new C();
|
||||
|
||||
assert.sameValue(c.m().next().value, 42);
|
||||
assert.sameValue(Object.hasOwnProperty.call(c, "m"), false);
|
||||
assert.sameValue(c.m, C.prototype.m);
|
||||
|
||||
verifyProperty(C.prototype, "m", {
|
||||
enumerable: false,
|
||||
configurable: true,
|
||||
writable: true,
|
||||
});
|
||||
|
||||
Promise.all([
|
||||
C.$(1),
|
||||
C._(1),
|
||||
C.o(1),
|
||||
C.℘(1), // DO NOT CHANGE THE NAME OF THIS FIELD
|
||||
C.ZW__NJ(1), // DO NOT CHANGE THE NAME OF THIS FIELD
|
||||
C.ZW__J(1), // DO NOT CHANGE THE NAME OF THIS FIELD
|
||||
]).then(results => {
|
||||
|
||||
assert.sameValue(results[0], 1);
|
||||
assert.sameValue(results[1], 1);
|
||||
assert.sameValue(results[2], 1);
|
||||
assert.sameValue(results[3], 1);
|
||||
assert.sameValue(results[4], 1);
|
||||
assert.sameValue(results[5], 1);
|
||||
|
||||
}, $DONE).then($DONE, $DONE);
|
|
@ -0,0 +1,132 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/class-fields/rs-static-async-method-privatename-identifier.case
|
||||
// - src/class-fields/productions/cls-expr-after-same-line-gen.template
|
||||
/*---
|
||||
description: Valid Static AsyncMethod PrivateName (field definitions after a generator in the same line)
|
||||
esid: prod-FieldDefinition
|
||||
features: [class-static-methods-private, generators, class, class-fields-public]
|
||||
flags: [generated, async]
|
||||
includes: [propertyHelper.js]
|
||||
info: |
|
||||
|
||||
ClassElement :
|
||||
MethodDefinition
|
||||
static MethodDefinition
|
||||
FieldDefinition ;
|
||||
static FieldDefinition ;
|
||||
;
|
||||
|
||||
MethodDefinition :
|
||||
AsyncMethod
|
||||
|
||||
AsyncMethod :
|
||||
async [no LineTerminator here] ClassElementName ( UniqueFormalParameters ){ AsyncFunctionBody }
|
||||
|
||||
ClassElementName :
|
||||
PropertyName
|
||||
PrivateName
|
||||
|
||||
PrivateName ::
|
||||
# IdentifierName
|
||||
|
||||
IdentifierName ::
|
||||
IdentifierStart
|
||||
IdentifierName IdentifierPart
|
||||
|
||||
IdentifierStart ::
|
||||
UnicodeIDStart
|
||||
$
|
||||
_
|
||||
\ UnicodeEscapeSequence
|
||||
|
||||
IdentifierPart::
|
||||
UnicodeIDContinue
|
||||
$
|
||||
\ UnicodeEscapeSequence
|
||||
<ZWNJ> <ZWJ>
|
||||
|
||||
UnicodeIDStart::
|
||||
any Unicode code point with the Unicode property "ID_Start"
|
||||
|
||||
UnicodeIDContinue::
|
||||
any Unicode code point with the Unicode property "ID_Continue"
|
||||
|
||||
|
||||
NOTE 3
|
||||
The sets of code points with Unicode properties "ID_Start" and
|
||||
"ID_Continue" include, respectively, the code points with Unicode
|
||||
properties "Other_ID_Start" and "Other_ID_Continue".
|
||||
|
||||
---*/
|
||||
|
||||
|
||||
var C = class {
|
||||
*m() { return 42; } static async #$(value) {
|
||||
return await value;
|
||||
}
|
||||
static async #_(value) {
|
||||
return await value;
|
||||
}
|
||||
static async #\u{6F}(value) {
|
||||
return await value;
|
||||
}
|
||||
static async #\u2118(value) {
|
||||
return await value;
|
||||
}
|
||||
static async #ZW_\u200C_NJ(value) {
|
||||
return await value;
|
||||
}
|
||||
static async #ZW_\u200D_J(value) {
|
||||
return await value;
|
||||
};
|
||||
static async $(value) {
|
||||
return await this.#$(value);
|
||||
}
|
||||
static async _(value) {
|
||||
return await this.#_(value);
|
||||
}
|
||||
static async \u{6F}(value) {
|
||||
return await this.#\u{6F}(value);
|
||||
}
|
||||
static async \u2118(value) {
|
||||
return await this.#\u2118(value);
|
||||
}
|
||||
static async ZW_\u200C_NJ(value) {
|
||||
return await this.#ZW_\u200C_NJ(value);
|
||||
}
|
||||
static async ZW_\u200D_J(value) {
|
||||
return await this.#ZW_\u200D_J(value);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
var c = new C();
|
||||
|
||||
assert.sameValue(c.m().next().value, 42);
|
||||
assert.sameValue(Object.hasOwnProperty.call(c, "m"), false);
|
||||
assert.sameValue(c.m, C.prototype.m);
|
||||
|
||||
verifyProperty(C.prototype, "m", {
|
||||
enumerable: false,
|
||||
configurable: true,
|
||||
writable: true,
|
||||
});
|
||||
|
||||
Promise.all([
|
||||
C.$(1),
|
||||
C._(1),
|
||||
C.\u{6F}(1),
|
||||
C.\u2118(1),
|
||||
C.ZW_\u200C_NJ(1),
|
||||
C.ZW_\u200D_J(1),
|
||||
]).then(results => {
|
||||
|
||||
assert.sameValue(results[0], 1);
|
||||
assert.sameValue(results[1], 1);
|
||||
assert.sameValue(results[2], 1);
|
||||
assert.sameValue(results[3], 1);
|
||||
assert.sameValue(results[4], 1);
|
||||
assert.sameValue(results[5], 1);
|
||||
|
||||
}, $DONE).then($DONE, $DONE);
|
||||
|
|
@ -0,0 +1,120 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/class-fields/rs-static-generator-method-privatename-identifier-alt.case
|
||||
// - src/class-fields/productions/cls-expr-after-same-line-gen.template
|
||||
/*---
|
||||
description: Valid Static GeneratorMethod PrivateName (field definitions after a generator in the same line)
|
||||
esid: prod-FieldDefinition
|
||||
features: [class-static-methods-private, generators, class, class-fields-public]
|
||||
flags: [generated]
|
||||
includes: [propertyHelper.js]
|
||||
info: |
|
||||
|
||||
ClassElement :
|
||||
MethodDefinition
|
||||
static MethodDefinition
|
||||
FieldDefinition ;
|
||||
static FieldDefinition ;
|
||||
;
|
||||
|
||||
MethodDefinition :
|
||||
GeneratorMethod
|
||||
|
||||
GeneratorMethod :
|
||||
* ClassElementName ( UniqueFormalParameters ){ GeneratorBody }
|
||||
|
||||
ClassElementName :
|
||||
PropertyName
|
||||
PrivateName
|
||||
|
||||
PrivateName ::
|
||||
# IdentifierName
|
||||
|
||||
IdentifierName ::
|
||||
IdentifierStart
|
||||
IdentifierName IdentifierPart
|
||||
|
||||
IdentifierStart ::
|
||||
UnicodeIDStart
|
||||
$
|
||||
_
|
||||
\ UnicodeEscapeSequence
|
||||
|
||||
IdentifierPart::
|
||||
UnicodeIDContinue
|
||||
$
|
||||
\ UnicodeEscapeSequence
|
||||
<ZWNJ> <ZWJ>
|
||||
|
||||
UnicodeIDStart::
|
||||
any Unicode code point with the Unicode property "ID_Start"
|
||||
|
||||
UnicodeIDContinue::
|
||||
any Unicode code point with the Unicode property "ID_Continue"
|
||||
|
||||
|
||||
NOTE 3
|
||||
The sets of code points with Unicode properties "ID_Start" and
|
||||
"ID_Continue" include, respectively, the code points with Unicode
|
||||
properties "Other_ID_Start" and "Other_ID_Continue".
|
||||
|
||||
---*/
|
||||
|
||||
|
||||
var C = class {
|
||||
*m() { return 42; } static * #$(value) {
|
||||
yield value;
|
||||
}
|
||||
static * #_(value) {
|
||||
yield value;
|
||||
}
|
||||
static * #o(value) {
|
||||
yield value;
|
||||
}
|
||||
static * #℘(value) {
|
||||
yield value;
|
||||
}
|
||||
static * #ZW__NJ(value) {
|
||||
yield value;
|
||||
}
|
||||
static * #ZW__J(value) {
|
||||
yield value;
|
||||
};
|
||||
static * $(value) {
|
||||
yield this.#$(value);
|
||||
}
|
||||
static * _(value) {
|
||||
yield this.#_(value);
|
||||
}
|
||||
static * o(value) {
|
||||
yield this.#o(value);
|
||||
}
|
||||
static * ℘(value) { // DO NOT CHANGE THE NAME OF THIS FIELD
|
||||
yield this.#℘(value);
|
||||
}
|
||||
static * ZW__NJ(value) { // DO NOT CHANGE THE NAME OF THIS FIELD
|
||||
yield this.#ZW__NJ(value);
|
||||
}
|
||||
static * ZW__J(value) { // DO NOT CHANGE THE NAME OF THIS FIELD
|
||||
yield this.#ZW__J(value);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
var c = new C();
|
||||
|
||||
assert.sameValue(c.m().next().value, 42);
|
||||
assert.sameValue(Object.hasOwnProperty.call(c, "m"), false);
|
||||
assert.sameValue(c.m, C.prototype.m);
|
||||
|
||||
verifyProperty(C.prototype, "m", {
|
||||
enumerable: false,
|
||||
configurable: true,
|
||||
writable: true,
|
||||
});
|
||||
|
||||
assert.sameValue(C.$(1).next().value, 1);
|
||||
assert.sameValue(C._(1).next().value, 1);
|
||||
assert.sameValue(C.o(1).next().value, 1);
|
||||
assert.sameValue(C.℘(1).next().value, 1);
|
||||
assert.sameValue(C.ZW__NJ(1).next().value, 1);
|
||||
assert.sameValue(C.ZW__J(1).next().value, 1);
|
|
@ -0,0 +1,121 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/class-fields/rs-static-generator-method-privatename-identifier.case
|
||||
// - src/class-fields/productions/cls-expr-after-same-line-gen.template
|
||||
/*---
|
||||
description: Valid Static GeneratorMethod PrivateName (field definitions after a generator in the same line)
|
||||
esid: prod-FieldDefinition
|
||||
features: [class-static-methods-private, generators, class, class-fields-public]
|
||||
flags: [generated]
|
||||
includes: [propertyHelper.js]
|
||||
info: |
|
||||
|
||||
ClassElement :
|
||||
MethodDefinition
|
||||
static MethodDefinition
|
||||
FieldDefinition ;
|
||||
static FieldDefinition ;
|
||||
;
|
||||
|
||||
MethodDefinition :
|
||||
GeneratorMethod
|
||||
|
||||
GeneratorMethod :
|
||||
* ClassElementName ( UniqueFormalParameters ){ GeneratorBody }
|
||||
|
||||
ClassElementName :
|
||||
PropertyName
|
||||
PrivateName
|
||||
|
||||
PrivateName ::
|
||||
# IdentifierName
|
||||
|
||||
IdentifierName ::
|
||||
IdentifierStart
|
||||
IdentifierName IdentifierPart
|
||||
|
||||
IdentifierStart ::
|
||||
UnicodeIDStart
|
||||
$
|
||||
_
|
||||
\ UnicodeEscapeSequence
|
||||
|
||||
IdentifierPart::
|
||||
UnicodeIDContinue
|
||||
$
|
||||
\ UnicodeEscapeSequence
|
||||
<ZWNJ> <ZWJ>
|
||||
|
||||
UnicodeIDStart::
|
||||
any Unicode code point with the Unicode property "ID_Start"
|
||||
|
||||
UnicodeIDContinue::
|
||||
any Unicode code point with the Unicode property "ID_Continue"
|
||||
|
||||
|
||||
NOTE 3
|
||||
The sets of code points with Unicode properties "ID_Start" and
|
||||
"ID_Continue" include, respectively, the code points with Unicode
|
||||
properties "Other_ID_Start" and "Other_ID_Continue".
|
||||
|
||||
---*/
|
||||
|
||||
|
||||
var C = class {
|
||||
*m() { return 42; } static * #$(value) {
|
||||
yield value;
|
||||
}
|
||||
static * #_(value) {
|
||||
yield value;
|
||||
}
|
||||
static * #\u{6F}(value) {
|
||||
yield value;
|
||||
}
|
||||
static * #\u2118(value) {
|
||||
yield value;
|
||||
}
|
||||
static * #ZW_\u200C_NJ(value) {
|
||||
yield value;
|
||||
}
|
||||
static * #ZW_\u200D_J(value) {
|
||||
yield value;
|
||||
};
|
||||
static * $(value) {
|
||||
yield this.#$(value);
|
||||
}
|
||||
static * _(value) {
|
||||
yield this.#_(value);
|
||||
}
|
||||
static * \u{6F}(value) {
|
||||
yield this.#\u{6F}(value);
|
||||
}
|
||||
static * \u2118(value) {
|
||||
yield this.#\u2118(value);
|
||||
}
|
||||
static * ZW_\u200C_NJ(value) {
|
||||
yield this.#ZW_\u200C_NJ(value);
|
||||
}
|
||||
static * ZW_\u200D_J(value) {
|
||||
yield this.#ZW_\u200D_J(value);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
var c = new C();
|
||||
|
||||
assert.sameValue(c.m().next().value, 42);
|
||||
assert.sameValue(Object.hasOwnProperty.call(c, "m"), false);
|
||||
assert.sameValue(c.m, C.prototype.m);
|
||||
|
||||
verifyProperty(C.prototype, "m", {
|
||||
enumerable: false,
|
||||
configurable: true,
|
||||
writable: true,
|
||||
});
|
||||
|
||||
assert.sameValue(C.$(1).next().value, 1);
|
||||
assert.sameValue(C._(1).next().value, 1);
|
||||
assert.sameValue(C.\u{6F}(1).next().value, 1);
|
||||
assert.sameValue(C.\u2118(1).next().value, 1);
|
||||
assert.sameValue(C.ZW_\u200C_NJ(1).next().value, 1);
|
||||
assert.sameValue(C.ZW_\u200D_J(1).next().value, 1);
|
||||
|
|
@ -4,7 +4,7 @@
|
|||
/*---
|
||||
description: Valid Static Method PrivateName (field definitions after a generator in the same line)
|
||||
esid: prod-FieldDefinition
|
||||
features: [class-static-fields-private, generators, class, class-fields-public]
|
||||
features: [class-static-methods-private, generators, class, class-fields-public]
|
||||
flags: [generated]
|
||||
includes: [propertyHelper.js]
|
||||
info: |
|
||||
|
@ -16,30 +16,30 @@ info: |
|
|||
static FieldDefinition ;
|
||||
;
|
||||
|
||||
FieldDefinition :
|
||||
ClassElementName Initializer _opt
|
||||
MethodDefinition :
|
||||
ClassElementName ( UniqueFormalParameters ){ FunctionBody }
|
||||
|
||||
ClassElementName :
|
||||
PropertyName
|
||||
PrivateName
|
||||
|
||||
PrivateName::
|
||||
PrivateName ::
|
||||
# IdentifierName
|
||||
|
||||
IdentifierName::
|
||||
IdentifierName ::
|
||||
IdentifierStart
|
||||
IdentifierName IdentifierPart
|
||||
|
||||
IdentifierStart::
|
||||
IdentifierStart ::
|
||||
UnicodeIDStart
|
||||
$
|
||||
_
|
||||
\UnicodeEscapeSequence
|
||||
\ UnicodeEscapeSequence
|
||||
|
||||
IdentifierPart::
|
||||
UnicodeIDContinue
|
||||
$
|
||||
\UnicodeEscapeSequence
|
||||
\ UnicodeEscapeSequence
|
||||
<ZWNJ> <ZWJ>
|
||||
|
||||
UnicodeIDStart::
|
||||
|
@ -59,27 +59,21 @@ info: |
|
|||
|
||||
var C = class {
|
||||
*m() { return 42; } static #$(value) {
|
||||
this.$ = value;
|
||||
return value;
|
||||
}
|
||||
static #_(value) {
|
||||
this.#stored = value;
|
||||
return value;
|
||||
}
|
||||
static #o(value) {
|
||||
this.#stored = value;
|
||||
return value;
|
||||
}
|
||||
static #℘(value) {
|
||||
this.#stored = value;
|
||||
return value;
|
||||
}
|
||||
static #ZW__NJ(value) {
|
||||
this.#stored = value;
|
||||
return value;
|
||||
}
|
||||
static #ZW__J(value) {
|
||||
this.#stored = value;
|
||||
return value;
|
||||
};
|
||||
static $(value) {
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
/*---
|
||||
description: Valid Static Method PrivateName (field definitions after a generator in the same line)
|
||||
esid: prod-FieldDefinition
|
||||
features: [class-static-fields-private, generators, class, class-fields-public]
|
||||
features: [class-static-methods-private, generators, class, class-fields-public]
|
||||
flags: [generated]
|
||||
includes: [propertyHelper.js]
|
||||
info: |
|
||||
|
@ -16,30 +16,30 @@ info: |
|
|||
static FieldDefinition ;
|
||||
;
|
||||
|
||||
FieldDefinition :
|
||||
ClassElementName Initializer _opt
|
||||
MethodDefinition :
|
||||
ClassElementName ( UniqueFormalParameters ){ FunctionBody }
|
||||
|
||||
ClassElementName :
|
||||
PropertyName
|
||||
PrivateName
|
||||
|
||||
PrivateName::
|
||||
PrivateName ::
|
||||
# IdentifierName
|
||||
|
||||
IdentifierName::
|
||||
IdentifierName ::
|
||||
IdentifierStart
|
||||
IdentifierName IdentifierPart
|
||||
|
||||
IdentifierStart::
|
||||
IdentifierStart ::
|
||||
UnicodeIDStart
|
||||
$
|
||||
_
|
||||
\UnicodeEscapeSequence
|
||||
\ UnicodeEscapeSequence
|
||||
|
||||
IdentifierPart::
|
||||
UnicodeIDContinue
|
||||
$
|
||||
\UnicodeEscapeSequence
|
||||
\ UnicodeEscapeSequence
|
||||
<ZWNJ> <ZWJ>
|
||||
|
||||
UnicodeIDStart::
|
||||
|
|
|
@ -0,0 +1,106 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/class-fields/rs-static-privatename-identifier-alt-by-classname.case
|
||||
// - src/class-fields/productions/cls-expr-after-same-line-gen.template
|
||||
/*---
|
||||
description: Valid Static PrivateName (field definitions after a generator in the same line)
|
||||
esid: prod-FieldDefinition
|
||||
features: [class-static-fields-private, generators, class, class-fields-public]
|
||||
flags: [generated]
|
||||
includes: [propertyHelper.js]
|
||||
info: |
|
||||
|
||||
ClassElement :
|
||||
MethodDefinition
|
||||
static MethodDefinition
|
||||
FieldDefinition ;
|
||||
static FieldDefinition ;
|
||||
;
|
||||
|
||||
FieldDefinition :
|
||||
ClassElementName Initializer _opt
|
||||
|
||||
ClassElementName :
|
||||
PropertyName
|
||||
PrivateName
|
||||
|
||||
PrivateName ::
|
||||
# IdentifierName
|
||||
|
||||
IdentifierName ::
|
||||
IdentifierStart
|
||||
IdentifierName IdentifierPart
|
||||
|
||||
IdentifierStart ::
|
||||
UnicodeIDStart
|
||||
$
|
||||
_
|
||||
\ UnicodeEscapeSequence
|
||||
|
||||
IdentifierPart::
|
||||
UnicodeIDContinue
|
||||
$
|
||||
\ UnicodeEscapeSequence
|
||||
<ZWNJ> <ZWJ>
|
||||
|
||||
UnicodeIDStart::
|
||||
any Unicode code point with the Unicode property "ID_Start"
|
||||
|
||||
UnicodeIDContinue::
|
||||
any Unicode code point with the Unicode property "ID_Continue"
|
||||
|
||||
|
||||
NOTE 3
|
||||
The sets of code points with Unicode properties "ID_Start" and
|
||||
"ID_Continue" include, respectively, the code points with Unicode
|
||||
properties "Other_ID_Start" and "Other_ID_Continue".
|
||||
|
||||
---*/
|
||||
|
||||
|
||||
var C = class {
|
||||
*m() { return 42; } static #$; static #_; static #\u{6F}; static #℘; static #ZW__NJ; static #ZW__J;
|
||||
static $(value) {
|
||||
C.#$ = value;
|
||||
return C.#$;
|
||||
}
|
||||
static _(value) {
|
||||
C.#_ = value;
|
||||
return C.#_;
|
||||
}
|
||||
static o(value) {
|
||||
C.#\u{6F} = value;
|
||||
return C.#\u{6F};
|
||||
}
|
||||
static ℘(value) { // DO NOT CHANGE THE NAME OF THIS FIELD
|
||||
C.#℘ = value;
|
||||
return C.#℘;
|
||||
}
|
||||
static ZW__NJ(value) { // DO NOT CHANGE THE NAME OF THIS FIELD
|
||||
C.#ZW__NJ = value;
|
||||
return C.#ZW__NJ;
|
||||
}
|
||||
static ZW__J(value) { // DO NOT CHANGE THE NAME OF THIS FIELD
|
||||
C.#ZW__J = value;
|
||||
return C.#ZW__J;
|
||||
}
|
||||
}
|
||||
|
||||
var c = new C();
|
||||
|
||||
assert.sameValue(c.m().next().value, 42);
|
||||
assert.sameValue(Object.hasOwnProperty.call(c, "m"), false);
|
||||
assert.sameValue(c.m, C.prototype.m);
|
||||
|
||||
verifyProperty(C.prototype, "m", {
|
||||
enumerable: false,
|
||||
configurable: true,
|
||||
writable: true,
|
||||
});
|
||||
|
||||
assert.sameValue(C.$(1), 1);
|
||||
assert.sameValue(C._(1), 1);
|
||||
assert.sameValue(C.o(1), 1);
|
||||
assert.sameValue(C.℘(1), 1); // DO NOT CHANGE THE NAME OF THIS FIELD
|
||||
assert.sameValue(C.ZW__NJ(1), 1); // DO NOT CHANGE THE NAME OF THIS FIELD
|
||||
assert.sameValue(C.ZW__J(1), 1); // DO NOT CHANGE THE NAME OF THIS FIELD
|
||||
|
|
@ -23,23 +23,23 @@ info: |
|
|||
PropertyName
|
||||
PrivateName
|
||||
|
||||
PrivateName::
|
||||
PrivateName ::
|
||||
# IdentifierName
|
||||
|
||||
IdentifierName::
|
||||
IdentifierName ::
|
||||
IdentifierStart
|
||||
IdentifierName IdentifierPart
|
||||
|
||||
IdentifierStart::
|
||||
IdentifierStart ::
|
||||
UnicodeIDStart
|
||||
$
|
||||
_
|
||||
\UnicodeEscapeSequence
|
||||
\ UnicodeEscapeSequence
|
||||
|
||||
IdentifierPart::
|
||||
UnicodeIDContinue
|
||||
$
|
||||
\UnicodeEscapeSequence
|
||||
\ UnicodeEscapeSequence
|
||||
<ZWNJ> <ZWJ>
|
||||
|
||||
UnicodeIDStart::
|
||||
|
|
|
@ -0,0 +1,106 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/class-fields/rs-static-privatename-identifier-by-classname.case
|
||||
// - src/class-fields/productions/cls-expr-after-same-line-gen.template
|
||||
/*---
|
||||
description: Valid Static PrivateName (field definitions after a generator in the same line)
|
||||
esid: prod-FieldDefinition
|
||||
features: [class-static-fields-private, generators, class, class-fields-public]
|
||||
flags: [generated]
|
||||
includes: [propertyHelper.js]
|
||||
info: |
|
||||
|
||||
ClassElement :
|
||||
MethodDefinition
|
||||
static MethodDefinition
|
||||
FieldDefinition ;
|
||||
static FieldDefinition ;
|
||||
;
|
||||
|
||||
FieldDefinition :
|
||||
ClassElementName Initializer _opt
|
||||
|
||||
ClassElementName :
|
||||
PropertyName
|
||||
PrivateName
|
||||
|
||||
PrivateName ::
|
||||
# IdentifierName
|
||||
|
||||
IdentifierName ::
|
||||
IdentifierStart
|
||||
IdentifierName IdentifierPart
|
||||
|
||||
IdentifierStart ::
|
||||
UnicodeIDStart
|
||||
$
|
||||
_
|
||||
\ UnicodeEscapeSequence
|
||||
|
||||
IdentifierPart::
|
||||
UnicodeIDContinue
|
||||
$
|
||||
\ UnicodeEscapeSequence
|
||||
<ZWNJ> <ZWJ>
|
||||
|
||||
UnicodeIDStart::
|
||||
any Unicode code point with the Unicode property "ID_Start"
|
||||
|
||||
UnicodeIDContinue::
|
||||
any Unicode code point with the Unicode property "ID_Continue"
|
||||
|
||||
|
||||
NOTE 3
|
||||
The sets of code points with Unicode properties "ID_Start" and
|
||||
"ID_Continue" include, respectively, the code points with Unicode
|
||||
properties "Other_ID_Start" and "Other_ID_Continue".
|
||||
|
||||
---*/
|
||||
|
||||
|
||||
var C = class {
|
||||
*m() { return 42; } static #$; static #_; static #\u{6F}; static #\u2118; static #ZW_\u200C_NJ; static #ZW_\u200D_J;
|
||||
static $(value) {
|
||||
C.#$ = value;
|
||||
return C.#$;
|
||||
}
|
||||
static _(value) {
|
||||
C.#_ = value;
|
||||
return C.#_;
|
||||
}
|
||||
static \u{6F}(value) {
|
||||
C.#\u{6F} = value;
|
||||
return C.#\u{6F};
|
||||
}
|
||||
static \u2118(value) {
|
||||
C.#\u2118 = value;
|
||||
return C.#\u2118;
|
||||
}
|
||||
static ZW_\u200C_NJ(value) {
|
||||
C.#ZW_\u200C_NJ = value;
|
||||
return C.#ZW_\u200C_NJ;
|
||||
}
|
||||
static ZW_\u200D_J(value) {
|
||||
C.#ZW_\u200D_J = value;
|
||||
return C.#ZW_\u200D_J;
|
||||
}
|
||||
}
|
||||
|
||||
var c = new C();
|
||||
|
||||
assert.sameValue(c.m().next().value, 42);
|
||||
assert.sameValue(Object.hasOwnProperty.call(c, "m"), false);
|
||||
assert.sameValue(c.m, C.prototype.m);
|
||||
|
||||
verifyProperty(C.prototype, "m", {
|
||||
enumerable: false,
|
||||
configurable: true,
|
||||
writable: true,
|
||||
});
|
||||
|
||||
assert.sameValue(C.$(1), 1);
|
||||
assert.sameValue(C._(1), 1);
|
||||
assert.sameValue(C.\u{6F}(1), 1);
|
||||
assert.sameValue(C.\u2118(1), 1);
|
||||
assert.sameValue(C.ZW_\u200C_NJ(1), 1);
|
||||
assert.sameValue(C.ZW_\u200D_J(1), 1);
|
||||
|
|
@ -0,0 +1,100 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/class-fields/rs-static-privatename-identifier-initializer-alt-by-classname.case
|
||||
// - src/class-fields/productions/cls-expr-after-same-line-gen.template
|
||||
/*---
|
||||
description: Valid Static PrivateName (field definitions after a generator in the same line)
|
||||
esid: prod-FieldDefinition
|
||||
features: [class-static-fields-private, generators, class, class-fields-public]
|
||||
flags: [generated]
|
||||
includes: [propertyHelper.js]
|
||||
info: |
|
||||
|
||||
ClassElement :
|
||||
MethodDefinition
|
||||
static MethodDefinition
|
||||
FieldDefinition ;
|
||||
static FieldDefinition ;
|
||||
;
|
||||
|
||||
FieldDefinition :
|
||||
ClassElementName Initializer _opt
|
||||
|
||||
ClassElementName :
|
||||
PropertyName
|
||||
PrivateName
|
||||
|
||||
PrivateName ::
|
||||
# IdentifierName
|
||||
|
||||
IdentifierName ::
|
||||
IdentifierStart
|
||||
IdentifierName IdentifierPart
|
||||
|
||||
IdentifierStart ::
|
||||
UnicodeIDStart
|
||||
$
|
||||
_
|
||||
\ UnicodeEscapeSequence
|
||||
|
||||
IdentifierPart::
|
||||
UnicodeIDContinue
|
||||
$
|
||||
\ UnicodeEscapeSequence
|
||||
<ZWNJ> <ZWJ>
|
||||
|
||||
UnicodeIDStart::
|
||||
any Unicode code point with the Unicode property "ID_Start"
|
||||
|
||||
UnicodeIDContinue::
|
||||
any Unicode code point with the Unicode property "ID_Continue"
|
||||
|
||||
|
||||
NOTE 3
|
||||
The sets of code points with Unicode properties "ID_Start" and
|
||||
"ID_Continue" include, respectively, the code points with Unicode
|
||||
properties "Other_ID_Start" and "Other_ID_Continue".
|
||||
|
||||
---*/
|
||||
|
||||
|
||||
var C = class {
|
||||
*m() { return 42; } static #$ = 1; static #_ = 1; static #\u{6F} = 1; static #℘ = 1; static #ZW__NJ = 1; static #ZW__J = 1;
|
||||
static $() {
|
||||
return C.#$;
|
||||
}
|
||||
static _() {
|
||||
return C.#_;
|
||||
}
|
||||
static \u{6F}() {
|
||||
return C.#\u{6F};
|
||||
}
|
||||
static ℘() {
|
||||
return C.#℘;
|
||||
}
|
||||
static ZW__NJ() {
|
||||
return C.#ZW__NJ;
|
||||
}
|
||||
static ZW__J() {
|
||||
return C.#ZW__J;
|
||||
}
|
||||
}
|
||||
|
||||
var c = new C();
|
||||
|
||||
assert.sameValue(c.m().next().value, 42);
|
||||
assert.sameValue(Object.hasOwnProperty.call(c, "m"), false);
|
||||
assert.sameValue(c.m, C.prototype.m);
|
||||
|
||||
verifyProperty(C.prototype, "m", {
|
||||
enumerable: false,
|
||||
configurable: true,
|
||||
writable: true,
|
||||
});
|
||||
|
||||
assert.sameValue(C.$(), 1);
|
||||
assert.sameValue(C._(), 1);
|
||||
assert.sameValue(C.\u{6F}(), 1);
|
||||
assert.sameValue(C.℘(), 1);
|
||||
assert.sameValue(C.ZW__NJ(), 1);
|
||||
assert.sameValue(C.ZW__J(), 1);
|
||||
|
|
@ -23,23 +23,23 @@ info: |
|
|||
PropertyName
|
||||
PrivateName
|
||||
|
||||
PrivateName::
|
||||
PrivateName ::
|
||||
# IdentifierName
|
||||
|
||||
IdentifierName::
|
||||
IdentifierName ::
|
||||
IdentifierStart
|
||||
IdentifierName IdentifierPart
|
||||
|
||||
IdentifierStart::
|
||||
IdentifierStart ::
|
||||
UnicodeIDStart
|
||||
$
|
||||
_
|
||||
\UnicodeEscapeSequence
|
||||
\ UnicodeEscapeSequence
|
||||
|
||||
IdentifierPart::
|
||||
UnicodeIDContinue
|
||||
$
|
||||
\UnicodeEscapeSequence
|
||||
\ UnicodeEscapeSequence
|
||||
<ZWNJ> <ZWJ>
|
||||
|
||||
UnicodeIDStart::
|
||||
|
|
|
@ -23,23 +23,23 @@ info: |
|
|||
PropertyName
|
||||
PrivateName
|
||||
|
||||
PrivateName::
|
||||
PrivateName ::
|
||||
# IdentifierName
|
||||
|
||||
IdentifierName::
|
||||
IdentifierName ::
|
||||
IdentifierStart
|
||||
IdentifierName IdentifierPart
|
||||
|
||||
IdentifierStart::
|
||||
IdentifierStart ::
|
||||
UnicodeIDStart
|
||||
$
|
||||
_
|
||||
\UnicodeEscapeSequence
|
||||
\ UnicodeEscapeSequence
|
||||
|
||||
IdentifierPart::
|
||||
UnicodeIDContinue
|
||||
$
|
||||
\UnicodeEscapeSequence
|
||||
\ UnicodeEscapeSequence
|
||||
<ZWNJ> <ZWJ>
|
||||
|
||||
UnicodeIDStart::
|
||||
|
|
|
@ -23,23 +23,23 @@ info: |
|
|||
PropertyName
|
||||
PrivateName
|
||||
|
||||
PrivateName::
|
||||
PrivateName ::
|
||||
# IdentifierName
|
||||
|
||||
IdentifierName::
|
||||
IdentifierName ::
|
||||
IdentifierStart
|
||||
IdentifierName IdentifierPart
|
||||
|
||||
IdentifierStart::
|
||||
IdentifierStart ::
|
||||
UnicodeIDStart
|
||||
$
|
||||
_
|
||||
\UnicodeEscapeSequence
|
||||
\ UnicodeEscapeSequence
|
||||
|
||||
IdentifierPart::
|
||||
UnicodeIDContinue
|
||||
$
|
||||
\UnicodeEscapeSequence
|
||||
\ UnicodeEscapeSequence
|
||||
<ZWNJ> <ZWJ>
|
||||
|
||||
UnicodeIDStart::
|
||||
|
|
|
@ -22,23 +22,23 @@ info: |
|
|||
PropertyName
|
||||
PrivateName
|
||||
|
||||
PrivateName::
|
||||
PrivateName ::
|
||||
# IdentifierName
|
||||
|
||||
IdentifierName::
|
||||
IdentifierName ::
|
||||
IdentifierStart
|
||||
IdentifierName IdentifierPart
|
||||
|
||||
IdentifierStart::
|
||||
IdentifierStart ::
|
||||
UnicodeIDStart
|
||||
$
|
||||
_
|
||||
\UnicodeEscapeSequence
|
||||
\ UnicodeEscapeSequence
|
||||
|
||||
IdentifierPart::
|
||||
UnicodeIDContinue
|
||||
$
|
||||
\UnicodeEscapeSequence
|
||||
\ UnicodeEscapeSequence
|
||||
<ZWNJ> <ZWJ>
|
||||
|
||||
UnicodeIDStart::
|
||||
|
|
|
@ -27,20 +27,20 @@ info: |
|
|||
LiteralPropertyName :
|
||||
IdentifierName
|
||||
|
||||
IdentifierName::
|
||||
IdentifierName ::
|
||||
IdentifierStart
|
||||
IdentifierName IdentifierPart
|
||||
|
||||
IdentifierStart::
|
||||
IdentifierStart ::
|
||||
UnicodeIDStart
|
||||
$
|
||||
_
|
||||
\UnicodeEscapeSequence
|
||||
\ UnicodeEscapeSequence
|
||||
|
||||
IdentifierPart::
|
||||
UnicodeIDContinue
|
||||
$
|
||||
\UnicodeEscapeSequence
|
||||
\ UnicodeEscapeSequence
|
||||
<ZWNJ> <ZWJ>
|
||||
|
||||
UnicodeIDStart::
|
||||
|
|
|
@ -27,20 +27,20 @@ info: |
|
|||
LiteralPropertyName :
|
||||
IdentifierName
|
||||
|
||||
IdentifierName::
|
||||
IdentifierName ::
|
||||
IdentifierStart
|
||||
IdentifierName IdentifierPart
|
||||
|
||||
IdentifierStart::
|
||||
IdentifierStart ::
|
||||
UnicodeIDStart
|
||||
$
|
||||
_
|
||||
\UnicodeEscapeSequence
|
||||
\ UnicodeEscapeSequence
|
||||
|
||||
IdentifierPart::
|
||||
UnicodeIDContinue
|
||||
$
|
||||
\UnicodeEscapeSequence
|
||||
\ UnicodeEscapeSequence
|
||||
<ZWNJ> <ZWJ>
|
||||
|
||||
UnicodeIDStart::
|
||||
|
|
|
@ -22,23 +22,23 @@ info: |
|
|||
PropertyName
|
||||
PrivateName
|
||||
|
||||
PrivateName::
|
||||
PrivateName ::
|
||||
# IdentifierName
|
||||
|
||||
IdentifierName::
|
||||
IdentifierName ::
|
||||
IdentifierStart
|
||||
IdentifierName IdentifierPart
|
||||
|
||||
IdentifierStart::
|
||||
IdentifierStart ::
|
||||
UnicodeIDStart
|
||||
$
|
||||
_
|
||||
\UnicodeEscapeSequence
|
||||
\ UnicodeEscapeSequence
|
||||
|
||||
IdentifierPart::
|
||||
UnicodeIDContinue
|
||||
$
|
||||
\UnicodeEscapeSequence
|
||||
\ UnicodeEscapeSequence
|
||||
<ZWNJ> <ZWJ>
|
||||
|
||||
UnicodeIDStart::
|
||||
|
|
|
@ -22,23 +22,23 @@ info: |
|
|||
PropertyName
|
||||
PrivateName
|
||||
|
||||
PrivateName::
|
||||
PrivateName ::
|
||||
# IdentifierName
|
||||
|
||||
IdentifierName::
|
||||
IdentifierName ::
|
||||
IdentifierStart
|
||||
IdentifierName IdentifierPart
|
||||
|
||||
IdentifierStart::
|
||||
IdentifierStart ::
|
||||
UnicodeIDStart
|
||||
$
|
||||
_
|
||||
\UnicodeEscapeSequence
|
||||
\ UnicodeEscapeSequence
|
||||
|
||||
IdentifierPart::
|
||||
UnicodeIDContinue
|
||||
$
|
||||
\UnicodeEscapeSequence
|
||||
\ UnicodeEscapeSequence
|
||||
<ZWNJ> <ZWJ>
|
||||
|
||||
UnicodeIDStart::
|
||||
|
|
|
@ -22,23 +22,23 @@ info: |
|
|||
PropertyName
|
||||
PrivateName
|
||||
|
||||
PrivateName::
|
||||
PrivateName ::
|
||||
# IdentifierName
|
||||
|
||||
IdentifierName::
|
||||
IdentifierName ::
|
||||
IdentifierStart
|
||||
IdentifierName IdentifierPart
|
||||
|
||||
IdentifierStart::
|
||||
IdentifierStart ::
|
||||
UnicodeIDStart
|
||||
$
|
||||
_
|
||||
\UnicodeEscapeSequence
|
||||
\ UnicodeEscapeSequence
|
||||
|
||||
IdentifierPart::
|
||||
UnicodeIDContinue
|
||||
$
|
||||
\UnicodeEscapeSequence
|
||||
\ UnicodeEscapeSequence
|
||||
<ZWNJ> <ZWJ>
|
||||
|
||||
UnicodeIDStart::
|
||||
|
|
|
@ -22,23 +22,23 @@ info: |
|
|||
PropertyName
|
||||
PrivateName
|
||||
|
||||
PrivateName::
|
||||
PrivateName ::
|
||||
# IdentifierName
|
||||
|
||||
IdentifierName::
|
||||
IdentifierName ::
|
||||
IdentifierStart
|
||||
IdentifierName IdentifierPart
|
||||
|
||||
IdentifierStart::
|
||||
IdentifierStart ::
|
||||
UnicodeIDStart
|
||||
$
|
||||
_
|
||||
\UnicodeEscapeSequence
|
||||
\ UnicodeEscapeSequence
|
||||
|
||||
IdentifierPart::
|
||||
UnicodeIDContinue
|
||||
$
|
||||
\UnicodeEscapeSequence
|
||||
\ UnicodeEscapeSequence
|
||||
<ZWNJ> <ZWJ>
|
||||
|
||||
UnicodeIDStart::
|
||||
|
|
|
@ -0,0 +1,131 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/class-fields/rs-static-async-generator-method-privatename-identifier-alt.case
|
||||
// - src/class-fields/productions/cls-expr-after-same-line-method.template
|
||||
/*---
|
||||
description: Valid Static AsyncGeneratorMethod PrivateName (field definitions after a method in the same line)
|
||||
esid: prod-FieldDefinition
|
||||
features: [class-static-methods-private, class, class-fields-public]
|
||||
flags: [generated, async]
|
||||
includes: [propertyHelper.js]
|
||||
info: |
|
||||
|
||||
ClassElement :
|
||||
MethodDefinition
|
||||
static MethodDefinition
|
||||
FieldDefinition ;
|
||||
static FieldDefinition ;
|
||||
;
|
||||
|
||||
MethodDefinition :
|
||||
AsyncGeneratorMethod
|
||||
|
||||
AsyncGeneratorMethod :
|
||||
async [no LineTerminator here] * ClassElementName ( UniqueFormalParameters){ AsyncGeneratorBody }
|
||||
|
||||
ClassElementName :
|
||||
PropertyName
|
||||
PrivateName
|
||||
|
||||
PrivateName ::
|
||||
# IdentifierName
|
||||
|
||||
IdentifierName ::
|
||||
IdentifierStart
|
||||
IdentifierName IdentifierPart
|
||||
|
||||
IdentifierStart ::
|
||||
UnicodeIDStart
|
||||
$
|
||||
_
|
||||
\ UnicodeEscapeSequence
|
||||
|
||||
IdentifierPart::
|
||||
UnicodeIDContinue
|
||||
$
|
||||
\ UnicodeEscapeSequence
|
||||
<ZWNJ> <ZWJ>
|
||||
|
||||
UnicodeIDStart::
|
||||
any Unicode code point with the Unicode property "ID_Start"
|
||||
|
||||
UnicodeIDContinue::
|
||||
any Unicode code point with the Unicode property "ID_Continue"
|
||||
|
||||
|
||||
NOTE 3
|
||||
The sets of code points with Unicode properties "ID_Start" and
|
||||
"ID_Continue" include, respectively, the code points with Unicode
|
||||
properties "Other_ID_Start" and "Other_ID_Continue".
|
||||
|
||||
---*/
|
||||
|
||||
|
||||
var C = class {
|
||||
m() { return 42; } static async #$(value) {
|
||||
yield await value;
|
||||
}
|
||||
static async #_(value) {
|
||||
yield await value;
|
||||
}
|
||||
static async #o(value) {
|
||||
yield await value;
|
||||
}
|
||||
static async #℘(value) {
|
||||
yield await value;
|
||||
}
|
||||
static async #ZW__NJ(value) {
|
||||
yield await value;
|
||||
}
|
||||
static async #ZW__J(value) {
|
||||
yield await value;
|
||||
};
|
||||
static async $(value) {
|
||||
yield * await this.#$(value);
|
||||
}
|
||||
static async _(value) {
|
||||
yield * await this.#_(value);
|
||||
}
|
||||
static async o(value) {
|
||||
yield * await this.#o(value);
|
||||
}
|
||||
static async ℘(value) { // DO NOT CHANGE THE NAME OF THIS FIELD
|
||||
yield * await this.#℘(value);
|
||||
}
|
||||
static async ZW__NJ(value) { // DO NOT CHANGE THE NAME OF THIS FIELD
|
||||
yield * await this.#ZW__NJ(value);
|
||||
}
|
||||
static async ZW__J(value) { // DO NOT CHANGE THE NAME OF THIS FIELD
|
||||
yield * await this.#ZW__J(value);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
var c = new C();
|
||||
|
||||
assert.sameValue(c.m(), 42);
|
||||
assert.sameValue(Object.hasOwnProperty.call(c, "m"), false);
|
||||
assert.sameValue(c.m, C.prototype.m);
|
||||
|
||||
verifyProperty(C.prototype, "m", {
|
||||
enumerable: false,
|
||||
configurable: true,
|
||||
writable: true,
|
||||
});
|
||||
|
||||
Promise.all([
|
||||
C.$(1).next(),
|
||||
C._(1).next(),
|
||||
C.o(1).next(),
|
||||
C.℘(1).next(), // DO NOT CHANGE THE NAME OF THIS FIELD
|
||||
C.ZW__NJ(1).next(), // DO NOT CHANGE THE NAME OF THIS FIELD
|
||||
C.ZW__J(1).next(), // DO NOT CHANGE THE NAME OF THIS FIELD
|
||||
]).then(results => {
|
||||
|
||||
assert.sameValue(results[0].value, 1);
|
||||
assert.sameValue(results[1].value, 1);
|
||||
assert.sameValue(results[2].value, 1);
|
||||
assert.sameValue(results[3].value, 1);
|
||||
assert.sameValue(results[4].value, 1);
|
||||
assert.sameValue(results[5].value, 1);
|
||||
|
||||
}, $DONE).then($DONE, $DONE);
|
|
@ -0,0 +1,132 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/class-fields/rs-static-async-generator-method-privatename-identifier.case
|
||||
// - src/class-fields/productions/cls-expr-after-same-line-method.template
|
||||
/*---
|
||||
description: Valid Static AsyncGeneratorMethod PrivateName (field definitions after a method in the same line)
|
||||
esid: prod-FieldDefinition
|
||||
features: [class-static-methods-private, class, class-fields-public]
|
||||
flags: [generated, async]
|
||||
includes: [propertyHelper.js]
|
||||
info: |
|
||||
|
||||
ClassElement :
|
||||
MethodDefinition
|
||||
static MethodDefinition
|
||||
FieldDefinition ;
|
||||
static FieldDefinition ;
|
||||
;
|
||||
|
||||
MethodDefinition :
|
||||
AsyncGeneratorMethod
|
||||
|
||||
AsyncGeneratorMethod :
|
||||
async [no LineTerminator here] * ClassElementName ( UniqueFormalParameters){ AsyncGeneratorBody }
|
||||
|
||||
ClassElementName :
|
||||
PropertyName
|
||||
PrivateName
|
||||
|
||||
PrivateName ::
|
||||
# IdentifierName
|
||||
|
||||
IdentifierName ::
|
||||
IdentifierStart
|
||||
IdentifierName IdentifierPart
|
||||
|
||||
IdentifierStart ::
|
||||
UnicodeIDStart
|
||||
$
|
||||
_
|
||||
\ UnicodeEscapeSequence
|
||||
|
||||
IdentifierPart::
|
||||
UnicodeIDContinue
|
||||
$
|
||||
\ UnicodeEscapeSequence
|
||||
<ZWNJ> <ZWJ>
|
||||
|
||||
UnicodeIDStart::
|
||||
any Unicode code point with the Unicode property "ID_Start"
|
||||
|
||||
UnicodeIDContinue::
|
||||
any Unicode code point with the Unicode property "ID_Continue"
|
||||
|
||||
|
||||
NOTE 3
|
||||
The sets of code points with Unicode properties "ID_Start" and
|
||||
"ID_Continue" include, respectively, the code points with Unicode
|
||||
properties "Other_ID_Start" and "Other_ID_Continue".
|
||||
|
||||
---*/
|
||||
|
||||
|
||||
var C = class {
|
||||
m() { return 42; } static async * #$(value) {
|
||||
yield await value;
|
||||
}
|
||||
static async * #_(value) {
|
||||
yield await value;
|
||||
}
|
||||
static async * #\u{6F}(value) {
|
||||
yield await value;
|
||||
}
|
||||
static async * #\u2118(value) {
|
||||
yield await value;
|
||||
}
|
||||
static async * #ZW_\u200C_NJ(value) {
|
||||
yield await value;
|
||||
}
|
||||
static async * #ZW_\u200D_J(value) {
|
||||
yield await value;
|
||||
};
|
||||
static async * $(value) {
|
||||
yield * await this.#$(value);
|
||||
}
|
||||
static async * _(value) {
|
||||
yield * await this.#_(value);
|
||||
}
|
||||
static async * \u{6F}(value) {
|
||||
yield * await this.#\u{6F}(value);
|
||||
}
|
||||
static async * \u2118(value) {
|
||||
yield * await this.#\u2118(value);
|
||||
}
|
||||
static async * ZW_\u200C_NJ(value) {
|
||||
yield * await this.#ZW_\u200C_NJ(value);
|
||||
}
|
||||
static async * ZW_\u200D_J(value) {
|
||||
yield * await this.#ZW_\u200D_J(value);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
var c = new C();
|
||||
|
||||
assert.sameValue(c.m(), 42);
|
||||
assert.sameValue(Object.hasOwnProperty.call(c, "m"), false);
|
||||
assert.sameValue(c.m, C.prototype.m);
|
||||
|
||||
verifyProperty(C.prototype, "m", {
|
||||
enumerable: false,
|
||||
configurable: true,
|
||||
writable: true,
|
||||
});
|
||||
|
||||
Promise.all([
|
||||
C.$(1).next(),
|
||||
C._(1).next(),
|
||||
C.\u{6F}(1).next(),
|
||||
C.\u2118(1).next(),
|
||||
C.ZW_\u200C_NJ(1).next(),
|
||||
C.ZW_\u200D_J(1).next(),
|
||||
]).then(results => {
|
||||
|
||||
assert.sameValue(results[0].value, 1);
|
||||
assert.sameValue(results[1].value, 1);
|
||||
assert.sameValue(results[2].value, 1);
|
||||
assert.sameValue(results[3].value, 1);
|
||||
assert.sameValue(results[4].value, 1);
|
||||
assert.sameValue(results[5].value, 1);
|
||||
|
||||
}, $DONE).then($DONE, $DONE);
|
||||
|
|
@ -0,0 +1,131 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/class-fields/rs-static-async-method-privatename-identifier-alt.case
|
||||
// - src/class-fields/productions/cls-expr-after-same-line-method.template
|
||||
/*---
|
||||
description: Valid Static AsyncMethod PrivateName (field definitions after a method in the same line)
|
||||
esid: prod-FieldDefinition
|
||||
features: [class-static-methods-private, class, class-fields-public]
|
||||
flags: [generated, async]
|
||||
includes: [propertyHelper.js]
|
||||
info: |
|
||||
|
||||
ClassElement :
|
||||
MethodDefinition
|
||||
static MethodDefinition
|
||||
FieldDefinition ;
|
||||
static FieldDefinition ;
|
||||
;
|
||||
|
||||
MethodDefinition :
|
||||
AsyncMethod
|
||||
|
||||
AsyncMethod :
|
||||
async [no LineTerminator here] ClassElementName ( UniqueFormalParameters ){ AsyncFunctionBody }
|
||||
|
||||
ClassElementName :
|
||||
PropertyName
|
||||
PrivateName
|
||||
|
||||
PrivateName ::
|
||||
# IdentifierName
|
||||
|
||||
IdentifierName ::
|
||||
IdentifierStart
|
||||
IdentifierName IdentifierPart
|
||||
|
||||
IdentifierStart ::
|
||||
UnicodeIDStart
|
||||
$
|
||||
_
|
||||
\ UnicodeEscapeSequence
|
||||
|
||||
IdentifierPart::
|
||||
UnicodeIDContinue
|
||||
$
|
||||
\ UnicodeEscapeSequence
|
||||
<ZWNJ> <ZWJ>
|
||||
|
||||
UnicodeIDStart::
|
||||
any Unicode code point with the Unicode property "ID_Start"
|
||||
|
||||
UnicodeIDContinue::
|
||||
any Unicode code point with the Unicode property "ID_Continue"
|
||||
|
||||
|
||||
NOTE 3
|
||||
The sets of code points with Unicode properties "ID_Start" and
|
||||
"ID_Continue" include, respectively, the code points with Unicode
|
||||
properties "Other_ID_Start" and "Other_ID_Continue".
|
||||
|
||||
---*/
|
||||
|
||||
|
||||
var C = class {
|
||||
m() { return 42; } static async #$(value) {
|
||||
return await value;
|
||||
}
|
||||
static async #_(value) {
|
||||
return await value;
|
||||
}
|
||||
static async #o(value) {
|
||||
return await value;
|
||||
}
|
||||
static async #℘(value) {
|
||||
return await value;
|
||||
}
|
||||
static async #ZW__NJ(value) {
|
||||
return await value;
|
||||
}
|
||||
static async #ZW__J(value) {
|
||||
return await value;
|
||||
};
|
||||
static async $(value) {
|
||||
return await this.#$(value);
|
||||
}
|
||||
static async _(value) {
|
||||
return await this.#_(value);
|
||||
}
|
||||
static async o(value) {
|
||||
return await this.#o(value);
|
||||
}
|
||||
static async ℘(value) { // DO NOT CHANGE THE NAME OF THIS FIELD
|
||||
return await this.#℘(value);
|
||||
}
|
||||
static async ZW__NJ(value) { // DO NOT CHANGE THE NAME OF THIS FIELD
|
||||
return await this.#ZW__NJ(value);
|
||||
}
|
||||
static async ZW__J(value) { // DO NOT CHANGE THE NAME OF THIS FIELD
|
||||
return await this.#ZW__J(value);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
var c = new C();
|
||||
|
||||
assert.sameValue(c.m(), 42);
|
||||
assert.sameValue(Object.hasOwnProperty.call(c, "m"), false);
|
||||
assert.sameValue(c.m, C.prototype.m);
|
||||
|
||||
verifyProperty(C.prototype, "m", {
|
||||
enumerable: false,
|
||||
configurable: true,
|
||||
writable: true,
|
||||
});
|
||||
|
||||
Promise.all([
|
||||
C.$(1),
|
||||
C._(1),
|
||||
C.o(1),
|
||||
C.℘(1), // DO NOT CHANGE THE NAME OF THIS FIELD
|
||||
C.ZW__NJ(1), // DO NOT CHANGE THE NAME OF THIS FIELD
|
||||
C.ZW__J(1), // DO NOT CHANGE THE NAME OF THIS FIELD
|
||||
]).then(results => {
|
||||
|
||||
assert.sameValue(results[0], 1);
|
||||
assert.sameValue(results[1], 1);
|
||||
assert.sameValue(results[2], 1);
|
||||
assert.sameValue(results[3], 1);
|
||||
assert.sameValue(results[4], 1);
|
||||
assert.sameValue(results[5], 1);
|
||||
|
||||
}, $DONE).then($DONE, $DONE);
|
|
@ -0,0 +1,132 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/class-fields/rs-static-async-method-privatename-identifier.case
|
||||
// - src/class-fields/productions/cls-expr-after-same-line-method.template
|
||||
/*---
|
||||
description: Valid Static AsyncMethod PrivateName (field definitions after a method in the same line)
|
||||
esid: prod-FieldDefinition
|
||||
features: [class-static-methods-private, class, class-fields-public]
|
||||
flags: [generated, async]
|
||||
includes: [propertyHelper.js]
|
||||
info: |
|
||||
|
||||
ClassElement :
|
||||
MethodDefinition
|
||||
static MethodDefinition
|
||||
FieldDefinition ;
|
||||
static FieldDefinition ;
|
||||
;
|
||||
|
||||
MethodDefinition :
|
||||
AsyncMethod
|
||||
|
||||
AsyncMethod :
|
||||
async [no LineTerminator here] ClassElementName ( UniqueFormalParameters ){ AsyncFunctionBody }
|
||||
|
||||
ClassElementName :
|
||||
PropertyName
|
||||
PrivateName
|
||||
|
||||
PrivateName ::
|
||||
# IdentifierName
|
||||
|
||||
IdentifierName ::
|
||||
IdentifierStart
|
||||
IdentifierName IdentifierPart
|
||||
|
||||
IdentifierStart ::
|
||||
UnicodeIDStart
|
||||
$
|
||||
_
|
||||
\ UnicodeEscapeSequence
|
||||
|
||||
IdentifierPart::
|
||||
UnicodeIDContinue
|
||||
$
|
||||
\ UnicodeEscapeSequence
|
||||
<ZWNJ> <ZWJ>
|
||||
|
||||
UnicodeIDStart::
|
||||
any Unicode code point with the Unicode property "ID_Start"
|
||||
|
||||
UnicodeIDContinue::
|
||||
any Unicode code point with the Unicode property "ID_Continue"
|
||||
|
||||
|
||||
NOTE 3
|
||||
The sets of code points with Unicode properties "ID_Start" and
|
||||
"ID_Continue" include, respectively, the code points with Unicode
|
||||
properties "Other_ID_Start" and "Other_ID_Continue".
|
||||
|
||||
---*/
|
||||
|
||||
|
||||
var C = class {
|
||||
m() { return 42; } static async #$(value) {
|
||||
return await value;
|
||||
}
|
||||
static async #_(value) {
|
||||
return await value;
|
||||
}
|
||||
static async #\u{6F}(value) {
|
||||
return await value;
|
||||
}
|
||||
static async #\u2118(value) {
|
||||
return await value;
|
||||
}
|
||||
static async #ZW_\u200C_NJ(value) {
|
||||
return await value;
|
||||
}
|
||||
static async #ZW_\u200D_J(value) {
|
||||
return await value;
|
||||
};
|
||||
static async $(value) {
|
||||
return await this.#$(value);
|
||||
}
|
||||
static async _(value) {
|
||||
return await this.#_(value);
|
||||
}
|
||||
static async \u{6F}(value) {
|
||||
return await this.#\u{6F}(value);
|
||||
}
|
||||
static async \u2118(value) {
|
||||
return await this.#\u2118(value);
|
||||
}
|
||||
static async ZW_\u200C_NJ(value) {
|
||||
return await this.#ZW_\u200C_NJ(value);
|
||||
}
|
||||
static async ZW_\u200D_J(value) {
|
||||
return await this.#ZW_\u200D_J(value);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
var c = new C();
|
||||
|
||||
assert.sameValue(c.m(), 42);
|
||||
assert.sameValue(Object.hasOwnProperty.call(c, "m"), false);
|
||||
assert.sameValue(c.m, C.prototype.m);
|
||||
|
||||
verifyProperty(C.prototype, "m", {
|
||||
enumerable: false,
|
||||
configurable: true,
|
||||
writable: true,
|
||||
});
|
||||
|
||||
Promise.all([
|
||||
C.$(1),
|
||||
C._(1),
|
||||
C.\u{6F}(1),
|
||||
C.\u2118(1),
|
||||
C.ZW_\u200C_NJ(1),
|
||||
C.ZW_\u200D_J(1),
|
||||
]).then(results => {
|
||||
|
||||
assert.sameValue(results[0], 1);
|
||||
assert.sameValue(results[1], 1);
|
||||
assert.sameValue(results[2], 1);
|
||||
assert.sameValue(results[3], 1);
|
||||
assert.sameValue(results[4], 1);
|
||||
assert.sameValue(results[5], 1);
|
||||
|
||||
}, $DONE).then($DONE, $DONE);
|
||||
|
|
@ -0,0 +1,120 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/class-fields/rs-static-generator-method-privatename-identifier-alt.case
|
||||
// - src/class-fields/productions/cls-expr-after-same-line-method.template
|
||||
/*---
|
||||
description: Valid Static GeneratorMethod PrivateName (field definitions after a method in the same line)
|
||||
esid: prod-FieldDefinition
|
||||
features: [class-static-methods-private, class, class-fields-public]
|
||||
flags: [generated]
|
||||
includes: [propertyHelper.js]
|
||||
info: |
|
||||
|
||||
ClassElement :
|
||||
MethodDefinition
|
||||
static MethodDefinition
|
||||
FieldDefinition ;
|
||||
static FieldDefinition ;
|
||||
;
|
||||
|
||||
MethodDefinition :
|
||||
GeneratorMethod
|
||||
|
||||
GeneratorMethod :
|
||||
* ClassElementName ( UniqueFormalParameters ){ GeneratorBody }
|
||||
|
||||
ClassElementName :
|
||||
PropertyName
|
||||
PrivateName
|
||||
|
||||
PrivateName ::
|
||||
# IdentifierName
|
||||
|
||||
IdentifierName ::
|
||||
IdentifierStart
|
||||
IdentifierName IdentifierPart
|
||||
|
||||
IdentifierStart ::
|
||||
UnicodeIDStart
|
||||
$
|
||||
_
|
||||
\ UnicodeEscapeSequence
|
||||
|
||||
IdentifierPart::
|
||||
UnicodeIDContinue
|
||||
$
|
||||
\ UnicodeEscapeSequence
|
||||
<ZWNJ> <ZWJ>
|
||||
|
||||
UnicodeIDStart::
|
||||
any Unicode code point with the Unicode property "ID_Start"
|
||||
|
||||
UnicodeIDContinue::
|
||||
any Unicode code point with the Unicode property "ID_Continue"
|
||||
|
||||
|
||||
NOTE 3
|
||||
The sets of code points with Unicode properties "ID_Start" and
|
||||
"ID_Continue" include, respectively, the code points with Unicode
|
||||
properties "Other_ID_Start" and "Other_ID_Continue".
|
||||
|
||||
---*/
|
||||
|
||||
|
||||
var C = class {
|
||||
m() { return 42; } static * #$(value) {
|
||||
yield value;
|
||||
}
|
||||
static * #_(value) {
|
||||
yield value;
|
||||
}
|
||||
static * #o(value) {
|
||||
yield value;
|
||||
}
|
||||
static * #℘(value) {
|
||||
yield value;
|
||||
}
|
||||
static * #ZW__NJ(value) {
|
||||
yield value;
|
||||
}
|
||||
static * #ZW__J(value) {
|
||||
yield value;
|
||||
};
|
||||
static * $(value) {
|
||||
yield this.#$(value);
|
||||
}
|
||||
static * _(value) {
|
||||
yield this.#_(value);
|
||||
}
|
||||
static * o(value) {
|
||||
yield this.#o(value);
|
||||
}
|
||||
static * ℘(value) { // DO NOT CHANGE THE NAME OF THIS FIELD
|
||||
yield this.#℘(value);
|
||||
}
|
||||
static * ZW__NJ(value) { // DO NOT CHANGE THE NAME OF THIS FIELD
|
||||
yield this.#ZW__NJ(value);
|
||||
}
|
||||
static * ZW__J(value) { // DO NOT CHANGE THE NAME OF THIS FIELD
|
||||
yield this.#ZW__J(value);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
var c = new C();
|
||||
|
||||
assert.sameValue(c.m(), 42);
|
||||
assert.sameValue(Object.hasOwnProperty.call(c, "m"), false);
|
||||
assert.sameValue(c.m, C.prototype.m);
|
||||
|
||||
verifyProperty(C.prototype, "m", {
|
||||
enumerable: false,
|
||||
configurable: true,
|
||||
writable: true,
|
||||
});
|
||||
|
||||
assert.sameValue(C.$(1).next().value, 1);
|
||||
assert.sameValue(C._(1).next().value, 1);
|
||||
assert.sameValue(C.o(1).next().value, 1);
|
||||
assert.sameValue(C.℘(1).next().value, 1);
|
||||
assert.sameValue(C.ZW__NJ(1).next().value, 1);
|
||||
assert.sameValue(C.ZW__J(1).next().value, 1);
|
|
@ -0,0 +1,121 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/class-fields/rs-static-generator-method-privatename-identifier.case
|
||||
// - src/class-fields/productions/cls-expr-after-same-line-method.template
|
||||
/*---
|
||||
description: Valid Static GeneratorMethod PrivateName (field definitions after a method in the same line)
|
||||
esid: prod-FieldDefinition
|
||||
features: [class-static-methods-private, class, class-fields-public]
|
||||
flags: [generated]
|
||||
includes: [propertyHelper.js]
|
||||
info: |
|
||||
|
||||
ClassElement :
|
||||
MethodDefinition
|
||||
static MethodDefinition
|
||||
FieldDefinition ;
|
||||
static FieldDefinition ;
|
||||
;
|
||||
|
||||
MethodDefinition :
|
||||
GeneratorMethod
|
||||
|
||||
GeneratorMethod :
|
||||
* ClassElementName ( UniqueFormalParameters ){ GeneratorBody }
|
||||
|
||||
ClassElementName :
|
||||
PropertyName
|
||||
PrivateName
|
||||
|
||||
PrivateName ::
|
||||
# IdentifierName
|
||||
|
||||
IdentifierName ::
|
||||
IdentifierStart
|
||||
IdentifierName IdentifierPart
|
||||
|
||||
IdentifierStart ::
|
||||
UnicodeIDStart
|
||||
$
|
||||
_
|
||||
\ UnicodeEscapeSequence
|
||||
|
||||
IdentifierPart::
|
||||
UnicodeIDContinue
|
||||
$
|
||||
\ UnicodeEscapeSequence
|
||||
<ZWNJ> <ZWJ>
|
||||
|
||||
UnicodeIDStart::
|
||||
any Unicode code point with the Unicode property "ID_Start"
|
||||
|
||||
UnicodeIDContinue::
|
||||
any Unicode code point with the Unicode property "ID_Continue"
|
||||
|
||||
|
||||
NOTE 3
|
||||
The sets of code points with Unicode properties "ID_Start" and
|
||||
"ID_Continue" include, respectively, the code points with Unicode
|
||||
properties "Other_ID_Start" and "Other_ID_Continue".
|
||||
|
||||
---*/
|
||||
|
||||
|
||||
var C = class {
|
||||
m() { return 42; } static * #$(value) {
|
||||
yield value;
|
||||
}
|
||||
static * #_(value) {
|
||||
yield value;
|
||||
}
|
||||
static * #\u{6F}(value) {
|
||||
yield value;
|
||||
}
|
||||
static * #\u2118(value) {
|
||||
yield value;
|
||||
}
|
||||
static * #ZW_\u200C_NJ(value) {
|
||||
yield value;
|
||||
}
|
||||
static * #ZW_\u200D_J(value) {
|
||||
yield value;
|
||||
};
|
||||
static * $(value) {
|
||||
yield this.#$(value);
|
||||
}
|
||||
static * _(value) {
|
||||
yield this.#_(value);
|
||||
}
|
||||
static * \u{6F}(value) {
|
||||
yield this.#\u{6F}(value);
|
||||
}
|
||||
static * \u2118(value) {
|
||||
yield this.#\u2118(value);
|
||||
}
|
||||
static * ZW_\u200C_NJ(value) {
|
||||
yield this.#ZW_\u200C_NJ(value);
|
||||
}
|
||||
static * ZW_\u200D_J(value) {
|
||||
yield this.#ZW_\u200D_J(value);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
var c = new C();
|
||||
|
||||
assert.sameValue(c.m(), 42);
|
||||
assert.sameValue(Object.hasOwnProperty.call(c, "m"), false);
|
||||
assert.sameValue(c.m, C.prototype.m);
|
||||
|
||||
verifyProperty(C.prototype, "m", {
|
||||
enumerable: false,
|
||||
configurable: true,
|
||||
writable: true,
|
||||
});
|
||||
|
||||
assert.sameValue(C.$(1).next().value, 1);
|
||||
assert.sameValue(C._(1).next().value, 1);
|
||||
assert.sameValue(C.\u{6F}(1).next().value, 1);
|
||||
assert.sameValue(C.\u2118(1).next().value, 1);
|
||||
assert.sameValue(C.ZW_\u200C_NJ(1).next().value, 1);
|
||||
assert.sameValue(C.ZW_\u200D_J(1).next().value, 1);
|
||||
|
|
@ -4,7 +4,7 @@
|
|||
/*---
|
||||
description: Valid Static Method PrivateName (field definitions after a method in the same line)
|
||||
esid: prod-FieldDefinition
|
||||
features: [class-static-fields-private, class, class-fields-public]
|
||||
features: [class-static-methods-private, class, class-fields-public]
|
||||
flags: [generated]
|
||||
includes: [propertyHelper.js]
|
||||
info: |
|
||||
|
@ -16,30 +16,30 @@ info: |
|
|||
static FieldDefinition ;
|
||||
;
|
||||
|
||||
FieldDefinition :
|
||||
ClassElementName Initializer _opt
|
||||
MethodDefinition :
|
||||
ClassElementName ( UniqueFormalParameters ){ FunctionBody }
|
||||
|
||||
ClassElementName :
|
||||
PropertyName
|
||||
PrivateName
|
||||
|
||||
PrivateName::
|
||||
PrivateName ::
|
||||
# IdentifierName
|
||||
|
||||
IdentifierName::
|
||||
IdentifierName ::
|
||||
IdentifierStart
|
||||
IdentifierName IdentifierPart
|
||||
|
||||
IdentifierStart::
|
||||
IdentifierStart ::
|
||||
UnicodeIDStart
|
||||
$
|
||||
_
|
||||
\UnicodeEscapeSequence
|
||||
\ UnicodeEscapeSequence
|
||||
|
||||
IdentifierPart::
|
||||
UnicodeIDContinue
|
||||
$
|
||||
\UnicodeEscapeSequence
|
||||
\ UnicodeEscapeSequence
|
||||
<ZWNJ> <ZWJ>
|
||||
|
||||
UnicodeIDStart::
|
||||
|
@ -59,27 +59,21 @@ info: |
|
|||
|
||||
var C = class {
|
||||
m() { return 42; } static #$(value) {
|
||||
this.$ = value;
|
||||
return value;
|
||||
}
|
||||
static #_(value) {
|
||||
this.#stored = value;
|
||||
return value;
|
||||
}
|
||||
static #o(value) {
|
||||
this.#stored = value;
|
||||
return value;
|
||||
}
|
||||
static #℘(value) {
|
||||
this.#stored = value;
|
||||
return value;
|
||||
}
|
||||
static #ZW__NJ(value) {
|
||||
this.#stored = value;
|
||||
return value;
|
||||
}
|
||||
static #ZW__J(value) {
|
||||
this.#stored = value;
|
||||
return value;
|
||||
};
|
||||
static $(value) {
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
/*---
|
||||
description: Valid Static Method PrivateName (field definitions after a method in the same line)
|
||||
esid: prod-FieldDefinition
|
||||
features: [class-static-fields-private, class, class-fields-public]
|
||||
features: [class-static-methods-private, class, class-fields-public]
|
||||
flags: [generated]
|
||||
includes: [propertyHelper.js]
|
||||
info: |
|
||||
|
@ -16,30 +16,30 @@ info: |
|
|||
static FieldDefinition ;
|
||||
;
|
||||
|
||||
FieldDefinition :
|
||||
ClassElementName Initializer _opt
|
||||
MethodDefinition :
|
||||
ClassElementName ( UniqueFormalParameters ){ FunctionBody }
|
||||
|
||||
ClassElementName :
|
||||
PropertyName
|
||||
PrivateName
|
||||
|
||||
PrivateName::
|
||||
PrivateName ::
|
||||
# IdentifierName
|
||||
|
||||
IdentifierName::
|
||||
IdentifierName ::
|
||||
IdentifierStart
|
||||
IdentifierName IdentifierPart
|
||||
|
||||
IdentifierStart::
|
||||
IdentifierStart ::
|
||||
UnicodeIDStart
|
||||
$
|
||||
_
|
||||
\UnicodeEscapeSequence
|
||||
\ UnicodeEscapeSequence
|
||||
|
||||
IdentifierPart::
|
||||
UnicodeIDContinue
|
||||
$
|
||||
\UnicodeEscapeSequence
|
||||
\ UnicodeEscapeSequence
|
||||
<ZWNJ> <ZWJ>
|
||||
|
||||
UnicodeIDStart::
|
||||
|
|
|
@ -0,0 +1,106 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/class-fields/rs-static-privatename-identifier-alt-by-classname.case
|
||||
// - src/class-fields/productions/cls-expr-after-same-line-method.template
|
||||
/*---
|
||||
description: Valid Static PrivateName (field definitions after a method in the same line)
|
||||
esid: prod-FieldDefinition
|
||||
features: [class-static-fields-private, class, class-fields-public]
|
||||
flags: [generated]
|
||||
includes: [propertyHelper.js]
|
||||
info: |
|
||||
|
||||
ClassElement :
|
||||
MethodDefinition
|
||||
static MethodDefinition
|
||||
FieldDefinition ;
|
||||
static FieldDefinition ;
|
||||
;
|
||||
|
||||
FieldDefinition :
|
||||
ClassElementName Initializer _opt
|
||||
|
||||
ClassElementName :
|
||||
PropertyName
|
||||
PrivateName
|
||||
|
||||
PrivateName ::
|
||||
# IdentifierName
|
||||
|
||||
IdentifierName ::
|
||||
IdentifierStart
|
||||
IdentifierName IdentifierPart
|
||||
|
||||
IdentifierStart ::
|
||||
UnicodeIDStart
|
||||
$
|
||||
_
|
||||
\ UnicodeEscapeSequence
|
||||
|
||||
IdentifierPart::
|
||||
UnicodeIDContinue
|
||||
$
|
||||
\ UnicodeEscapeSequence
|
||||
<ZWNJ> <ZWJ>
|
||||
|
||||
UnicodeIDStart::
|
||||
any Unicode code point with the Unicode property "ID_Start"
|
||||
|
||||
UnicodeIDContinue::
|
||||
any Unicode code point with the Unicode property "ID_Continue"
|
||||
|
||||
|
||||
NOTE 3
|
||||
The sets of code points with Unicode properties "ID_Start" and
|
||||
"ID_Continue" include, respectively, the code points with Unicode
|
||||
properties "Other_ID_Start" and "Other_ID_Continue".
|
||||
|
||||
---*/
|
||||
|
||||
|
||||
var C = class {
|
||||
m() { return 42; } static #$; static #_; static #\u{6F}; static #℘; static #ZW__NJ; static #ZW__J;
|
||||
static $(value) {
|
||||
C.#$ = value;
|
||||
return C.#$;
|
||||
}
|
||||
static _(value) {
|
||||
C.#_ = value;
|
||||
return C.#_;
|
||||
}
|
||||
static o(value) {
|
||||
C.#\u{6F} = value;
|
||||
return C.#\u{6F};
|
||||
}
|
||||
static ℘(value) { // DO NOT CHANGE THE NAME OF THIS FIELD
|
||||
C.#℘ = value;
|
||||
return C.#℘;
|
||||
}
|
||||
static ZW__NJ(value) { // DO NOT CHANGE THE NAME OF THIS FIELD
|
||||
C.#ZW__NJ = value;
|
||||
return C.#ZW__NJ;
|
||||
}
|
||||
static ZW__J(value) { // DO NOT CHANGE THE NAME OF THIS FIELD
|
||||
C.#ZW__J = value;
|
||||
return C.#ZW__J;
|
||||
}
|
||||
}
|
||||
|
||||
var c = new C();
|
||||
|
||||
assert.sameValue(c.m(), 42);
|
||||
assert.sameValue(Object.hasOwnProperty.call(c, "m"), false);
|
||||
assert.sameValue(c.m, C.prototype.m);
|
||||
|
||||
verifyProperty(C.prototype, "m", {
|
||||
enumerable: false,
|
||||
configurable: true,
|
||||
writable: true,
|
||||
});
|
||||
|
||||
assert.sameValue(C.$(1), 1);
|
||||
assert.sameValue(C._(1), 1);
|
||||
assert.sameValue(C.o(1), 1);
|
||||
assert.sameValue(C.℘(1), 1); // DO NOT CHANGE THE NAME OF THIS FIELD
|
||||
assert.sameValue(C.ZW__NJ(1), 1); // DO NOT CHANGE THE NAME OF THIS FIELD
|
||||
assert.sameValue(C.ZW__J(1), 1); // DO NOT CHANGE THE NAME OF THIS FIELD
|
||||
|
|
@ -23,23 +23,23 @@ info: |
|
|||
PropertyName
|
||||
PrivateName
|
||||
|
||||
PrivateName::
|
||||
PrivateName ::
|
||||
# IdentifierName
|
||||
|
||||
IdentifierName::
|
||||
IdentifierName ::
|
||||
IdentifierStart
|
||||
IdentifierName IdentifierPart
|
||||
|
||||
IdentifierStart::
|
||||
IdentifierStart ::
|
||||
UnicodeIDStart
|
||||
$
|
||||
_
|
||||
\UnicodeEscapeSequence
|
||||
\ UnicodeEscapeSequence
|
||||
|
||||
IdentifierPart::
|
||||
UnicodeIDContinue
|
||||
$
|
||||
\UnicodeEscapeSequence
|
||||
\ UnicodeEscapeSequence
|
||||
<ZWNJ> <ZWJ>
|
||||
|
||||
UnicodeIDStart::
|
||||
|
|
|
@ -0,0 +1,106 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/class-fields/rs-static-privatename-identifier-by-classname.case
|
||||
// - src/class-fields/productions/cls-expr-after-same-line-method.template
|
||||
/*---
|
||||
description: Valid Static PrivateName (field definitions after a method in the same line)
|
||||
esid: prod-FieldDefinition
|
||||
features: [class-static-fields-private, class, class-fields-public]
|
||||
flags: [generated]
|
||||
includes: [propertyHelper.js]
|
||||
info: |
|
||||
|
||||
ClassElement :
|
||||
MethodDefinition
|
||||
static MethodDefinition
|
||||
FieldDefinition ;
|
||||
static FieldDefinition ;
|
||||
;
|
||||
|
||||
FieldDefinition :
|
||||
ClassElementName Initializer _opt
|
||||
|
||||
ClassElementName :
|
||||
PropertyName
|
||||
PrivateName
|
||||
|
||||
PrivateName ::
|
||||
# IdentifierName
|
||||
|
||||
IdentifierName ::
|
||||
IdentifierStart
|
||||
IdentifierName IdentifierPart
|
||||
|
||||
IdentifierStart ::
|
||||
UnicodeIDStart
|
||||
$
|
||||
_
|
||||
\ UnicodeEscapeSequence
|
||||
|
||||
IdentifierPart::
|
||||
UnicodeIDContinue
|
||||
$
|
||||
\ UnicodeEscapeSequence
|
||||
<ZWNJ> <ZWJ>
|
||||
|
||||
UnicodeIDStart::
|
||||
any Unicode code point with the Unicode property "ID_Start"
|
||||
|
||||
UnicodeIDContinue::
|
||||
any Unicode code point with the Unicode property "ID_Continue"
|
||||
|
||||
|
||||
NOTE 3
|
||||
The sets of code points with Unicode properties "ID_Start" and
|
||||
"ID_Continue" include, respectively, the code points with Unicode
|
||||
properties "Other_ID_Start" and "Other_ID_Continue".
|
||||
|
||||
---*/
|
||||
|
||||
|
||||
var C = class {
|
||||
m() { return 42; } static #$; static #_; static #\u{6F}; static #\u2118; static #ZW_\u200C_NJ; static #ZW_\u200D_J;
|
||||
static $(value) {
|
||||
C.#$ = value;
|
||||
return C.#$;
|
||||
}
|
||||
static _(value) {
|
||||
C.#_ = value;
|
||||
return C.#_;
|
||||
}
|
||||
static \u{6F}(value) {
|
||||
C.#\u{6F} = value;
|
||||
return C.#\u{6F};
|
||||
}
|
||||
static \u2118(value) {
|
||||
C.#\u2118 = value;
|
||||
return C.#\u2118;
|
||||
}
|
||||
static ZW_\u200C_NJ(value) {
|
||||
C.#ZW_\u200C_NJ = value;
|
||||
return C.#ZW_\u200C_NJ;
|
||||
}
|
||||
static ZW_\u200D_J(value) {
|
||||
C.#ZW_\u200D_J = value;
|
||||
return C.#ZW_\u200D_J;
|
||||
}
|
||||
}
|
||||
|
||||
var c = new C();
|
||||
|
||||
assert.sameValue(c.m(), 42);
|
||||
assert.sameValue(Object.hasOwnProperty.call(c, "m"), false);
|
||||
assert.sameValue(c.m, C.prototype.m);
|
||||
|
||||
verifyProperty(C.prototype, "m", {
|
||||
enumerable: false,
|
||||
configurable: true,
|
||||
writable: true,
|
||||
});
|
||||
|
||||
assert.sameValue(C.$(1), 1);
|
||||
assert.sameValue(C._(1), 1);
|
||||
assert.sameValue(C.\u{6F}(1), 1);
|
||||
assert.sameValue(C.\u2118(1), 1);
|
||||
assert.sameValue(C.ZW_\u200C_NJ(1), 1);
|
||||
assert.sameValue(C.ZW_\u200D_J(1), 1);
|
||||
|
|
@ -0,0 +1,100 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/class-fields/rs-static-privatename-identifier-initializer-alt-by-classname.case
|
||||
// - src/class-fields/productions/cls-expr-after-same-line-method.template
|
||||
/*---
|
||||
description: Valid Static PrivateName (field definitions after a method in the same line)
|
||||
esid: prod-FieldDefinition
|
||||
features: [class-static-fields-private, class, class-fields-public]
|
||||
flags: [generated]
|
||||
includes: [propertyHelper.js]
|
||||
info: |
|
||||
|
||||
ClassElement :
|
||||
MethodDefinition
|
||||
static MethodDefinition
|
||||
FieldDefinition ;
|
||||
static FieldDefinition ;
|
||||
;
|
||||
|
||||
FieldDefinition :
|
||||
ClassElementName Initializer _opt
|
||||
|
||||
ClassElementName :
|
||||
PropertyName
|
||||
PrivateName
|
||||
|
||||
PrivateName ::
|
||||
# IdentifierName
|
||||
|
||||
IdentifierName ::
|
||||
IdentifierStart
|
||||
IdentifierName IdentifierPart
|
||||
|
||||
IdentifierStart ::
|
||||
UnicodeIDStart
|
||||
$
|
||||
_
|
||||
\ UnicodeEscapeSequence
|
||||
|
||||
IdentifierPart::
|
||||
UnicodeIDContinue
|
||||
$
|
||||
\ UnicodeEscapeSequence
|
||||
<ZWNJ> <ZWJ>
|
||||
|
||||
UnicodeIDStart::
|
||||
any Unicode code point with the Unicode property "ID_Start"
|
||||
|
||||
UnicodeIDContinue::
|
||||
any Unicode code point with the Unicode property "ID_Continue"
|
||||
|
||||
|
||||
NOTE 3
|
||||
The sets of code points with Unicode properties "ID_Start" and
|
||||
"ID_Continue" include, respectively, the code points with Unicode
|
||||
properties "Other_ID_Start" and "Other_ID_Continue".
|
||||
|
||||
---*/
|
||||
|
||||
|
||||
var C = class {
|
||||
m() { return 42; } static #$ = 1; static #_ = 1; static #\u{6F} = 1; static #℘ = 1; static #ZW__NJ = 1; static #ZW__J = 1;
|
||||
static $() {
|
||||
return C.#$;
|
||||
}
|
||||
static _() {
|
||||
return C.#_;
|
||||
}
|
||||
static \u{6F}() {
|
||||
return C.#\u{6F};
|
||||
}
|
||||
static ℘() {
|
||||
return C.#℘;
|
||||
}
|
||||
static ZW__NJ() {
|
||||
return C.#ZW__NJ;
|
||||
}
|
||||
static ZW__J() {
|
||||
return C.#ZW__J;
|
||||
}
|
||||
}
|
||||
|
||||
var c = new C();
|
||||
|
||||
assert.sameValue(c.m(), 42);
|
||||
assert.sameValue(Object.hasOwnProperty.call(c, "m"), false);
|
||||
assert.sameValue(c.m, C.prototype.m);
|
||||
|
||||
verifyProperty(C.prototype, "m", {
|
||||
enumerable: false,
|
||||
configurable: true,
|
||||
writable: true,
|
||||
});
|
||||
|
||||
assert.sameValue(C.$(), 1);
|
||||
assert.sameValue(C._(), 1);
|
||||
assert.sameValue(C.\u{6F}(), 1);
|
||||
assert.sameValue(C.℘(), 1);
|
||||
assert.sameValue(C.ZW__NJ(), 1);
|
||||
assert.sameValue(C.ZW__J(), 1);
|
||||
|
|
@ -23,23 +23,23 @@ info: |
|
|||
PropertyName
|
||||
PrivateName
|
||||
|
||||
PrivateName::
|
||||
PrivateName ::
|
||||
# IdentifierName
|
||||
|
||||
IdentifierName::
|
||||
IdentifierName ::
|
||||
IdentifierStart
|
||||
IdentifierName IdentifierPart
|
||||
|
||||
IdentifierStart::
|
||||
IdentifierStart ::
|
||||
UnicodeIDStart
|
||||
$
|
||||
_
|
||||
\UnicodeEscapeSequence
|
||||
\ UnicodeEscapeSequence
|
||||
|
||||
IdentifierPart::
|
||||
UnicodeIDContinue
|
||||
$
|
||||
\UnicodeEscapeSequence
|
||||
\ UnicodeEscapeSequence
|
||||
<ZWNJ> <ZWJ>
|
||||
|
||||
UnicodeIDStart::
|
||||
|
|
|
@ -23,23 +23,23 @@ info: |
|
|||
PropertyName
|
||||
PrivateName
|
||||
|
||||
PrivateName::
|
||||
PrivateName ::
|
||||
# IdentifierName
|
||||
|
||||
IdentifierName::
|
||||
IdentifierName ::
|
||||
IdentifierStart
|
||||
IdentifierName IdentifierPart
|
||||
|
||||
IdentifierStart::
|
||||
IdentifierStart ::
|
||||
UnicodeIDStart
|
||||
$
|
||||
_
|
||||
\UnicodeEscapeSequence
|
||||
\ UnicodeEscapeSequence
|
||||
|
||||
IdentifierPart::
|
||||
UnicodeIDContinue
|
||||
$
|
||||
\UnicodeEscapeSequence
|
||||
\ UnicodeEscapeSequence
|
||||
<ZWNJ> <ZWJ>
|
||||
|
||||
UnicodeIDStart::
|
||||
|
|
|
@ -23,23 +23,23 @@ info: |
|
|||
PropertyName
|
||||
PrivateName
|
||||
|
||||
PrivateName::
|
||||
PrivateName ::
|
||||
# IdentifierName
|
||||
|
||||
IdentifierName::
|
||||
IdentifierName ::
|
||||
IdentifierStart
|
||||
IdentifierName IdentifierPart
|
||||
|
||||
IdentifierStart::
|
||||
IdentifierStart ::
|
||||
UnicodeIDStart
|
||||
$
|
||||
_
|
||||
\UnicodeEscapeSequence
|
||||
\ UnicodeEscapeSequence
|
||||
|
||||
IdentifierPart::
|
||||
UnicodeIDContinue
|
||||
$
|
||||
\UnicodeEscapeSequence
|
||||
\ UnicodeEscapeSequence
|
||||
<ZWNJ> <ZWJ>
|
||||
|
||||
UnicodeIDStart::
|
||||
|
|
|
@ -22,23 +22,23 @@ info: |
|
|||
PropertyName
|
||||
PrivateName
|
||||
|
||||
PrivateName::
|
||||
PrivateName ::
|
||||
# IdentifierName
|
||||
|
||||
IdentifierName::
|
||||
IdentifierName ::
|
||||
IdentifierStart
|
||||
IdentifierName IdentifierPart
|
||||
|
||||
IdentifierStart::
|
||||
IdentifierStart ::
|
||||
UnicodeIDStart
|
||||
$
|
||||
_
|
||||
\UnicodeEscapeSequence
|
||||
\ UnicodeEscapeSequence
|
||||
|
||||
IdentifierPart::
|
||||
UnicodeIDContinue
|
||||
$
|
||||
\UnicodeEscapeSequence
|
||||
\ UnicodeEscapeSequence
|
||||
<ZWNJ> <ZWJ>
|
||||
|
||||
UnicodeIDStart::
|
||||
|
|
|
@ -27,20 +27,20 @@ info: |
|
|||
LiteralPropertyName :
|
||||
IdentifierName
|
||||
|
||||
IdentifierName::
|
||||
IdentifierName ::
|
||||
IdentifierStart
|
||||
IdentifierName IdentifierPart
|
||||
|
||||
IdentifierStart::
|
||||
IdentifierStart ::
|
||||
UnicodeIDStart
|
||||
$
|
||||
_
|
||||
\UnicodeEscapeSequence
|
||||
\ UnicodeEscapeSequence
|
||||
|
||||
IdentifierPart::
|
||||
UnicodeIDContinue
|
||||
$
|
||||
\UnicodeEscapeSequence
|
||||
\ UnicodeEscapeSequence
|
||||
<ZWNJ> <ZWJ>
|
||||
|
||||
UnicodeIDStart::
|
||||
|
|
|
@ -27,20 +27,20 @@ info: |
|
|||
LiteralPropertyName :
|
||||
IdentifierName
|
||||
|
||||
IdentifierName::
|
||||
IdentifierName ::
|
||||
IdentifierStart
|
||||
IdentifierName IdentifierPart
|
||||
|
||||
IdentifierStart::
|
||||
IdentifierStart ::
|
||||
UnicodeIDStart
|
||||
$
|
||||
_
|
||||
\UnicodeEscapeSequence
|
||||
\ UnicodeEscapeSequence
|
||||
|
||||
IdentifierPart::
|
||||
UnicodeIDContinue
|
||||
$
|
||||
\UnicodeEscapeSequence
|
||||
\ UnicodeEscapeSequence
|
||||
<ZWNJ> <ZWJ>
|
||||
|
||||
UnicodeIDStart::
|
||||
|
|
|
@ -22,23 +22,23 @@ info: |
|
|||
PropertyName
|
||||
PrivateName
|
||||
|
||||
PrivateName::
|
||||
PrivateName ::
|
||||
# IdentifierName
|
||||
|
||||
IdentifierName::
|
||||
IdentifierName ::
|
||||
IdentifierStart
|
||||
IdentifierName IdentifierPart
|
||||
|
||||
IdentifierStart::
|
||||
IdentifierStart ::
|
||||
UnicodeIDStart
|
||||
$
|
||||
_
|
||||
\UnicodeEscapeSequence
|
||||
\ UnicodeEscapeSequence
|
||||
|
||||
IdentifierPart::
|
||||
UnicodeIDContinue
|
||||
$
|
||||
\UnicodeEscapeSequence
|
||||
\ UnicodeEscapeSequence
|
||||
<ZWNJ> <ZWJ>
|
||||
|
||||
UnicodeIDStart::
|
||||
|
|
|
@ -22,23 +22,23 @@ info: |
|
|||
PropertyName
|
||||
PrivateName
|
||||
|
||||
PrivateName::
|
||||
PrivateName ::
|
||||
# IdentifierName
|
||||
|
||||
IdentifierName::
|
||||
IdentifierName ::
|
||||
IdentifierStart
|
||||
IdentifierName IdentifierPart
|
||||
|
||||
IdentifierStart::
|
||||
IdentifierStart ::
|
||||
UnicodeIDStart
|
||||
$
|
||||
_
|
||||
\UnicodeEscapeSequence
|
||||
\ UnicodeEscapeSequence
|
||||
|
||||
IdentifierPart::
|
||||
UnicodeIDContinue
|
||||
$
|
||||
\UnicodeEscapeSequence
|
||||
\ UnicodeEscapeSequence
|
||||
<ZWNJ> <ZWJ>
|
||||
|
||||
UnicodeIDStart::
|
||||
|
|
|
@ -22,23 +22,23 @@ info: |
|
|||
PropertyName
|
||||
PrivateName
|
||||
|
||||
PrivateName::
|
||||
PrivateName ::
|
||||
# IdentifierName
|
||||
|
||||
IdentifierName::
|
||||
IdentifierName ::
|
||||
IdentifierStart
|
||||
IdentifierName IdentifierPart
|
||||
|
||||
IdentifierStart::
|
||||
IdentifierStart ::
|
||||
UnicodeIDStart
|
||||
$
|
||||
_
|
||||
\UnicodeEscapeSequence
|
||||
\ UnicodeEscapeSequence
|
||||
|
||||
IdentifierPart::
|
||||
UnicodeIDContinue
|
||||
$
|
||||
\UnicodeEscapeSequence
|
||||
\ UnicodeEscapeSequence
|
||||
<ZWNJ> <ZWJ>
|
||||
|
||||
UnicodeIDStart::
|
||||
|
|
|
@ -22,23 +22,23 @@ info: |
|
|||
PropertyName
|
||||
PrivateName
|
||||
|
||||
PrivateName::
|
||||
PrivateName ::
|
||||
# IdentifierName
|
||||
|
||||
IdentifierName::
|
||||
IdentifierName ::
|
||||
IdentifierStart
|
||||
IdentifierName IdentifierPart
|
||||
|
||||
IdentifierStart::
|
||||
IdentifierStart ::
|
||||
UnicodeIDStart
|
||||
$
|
||||
_
|
||||
\UnicodeEscapeSequence
|
||||
\ UnicodeEscapeSequence
|
||||
|
||||
IdentifierPart::
|
||||
UnicodeIDContinue
|
||||
$
|
||||
\UnicodeEscapeSequence
|
||||
\ UnicodeEscapeSequence
|
||||
<ZWNJ> <ZWJ>
|
||||
|
||||
UnicodeIDStart::
|
||||
|
|
|
@ -0,0 +1,135 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/class-fields/rs-static-async-generator-method-privatename-identifier-alt.case
|
||||
// - src/class-fields/productions/cls-expr-after-same-line-static-async-gen.template
|
||||
/*---
|
||||
description: Valid Static AsyncGeneratorMethod PrivateName (field definitions after a static async generator in the same line)
|
||||
esid: prod-FieldDefinition
|
||||
features: [class-static-methods-private, class, class-fields-public, async-iteration]
|
||||
flags: [generated, async]
|
||||
includes: [propertyHelper.js]
|
||||
info: |
|
||||
|
||||
ClassElement :
|
||||
MethodDefinition
|
||||
static MethodDefinition
|
||||
FieldDefinition ;
|
||||
static FieldDefinition ;
|
||||
;
|
||||
|
||||
MethodDefinition :
|
||||
AsyncGeneratorMethod
|
||||
|
||||
AsyncGeneratorMethod :
|
||||
async [no LineTerminator here] * ClassElementName ( UniqueFormalParameters){ AsyncGeneratorBody }
|
||||
|
||||
ClassElementName :
|
||||
PropertyName
|
||||
PrivateName
|
||||
|
||||
PrivateName ::
|
||||
# IdentifierName
|
||||
|
||||
IdentifierName ::
|
||||
IdentifierStart
|
||||
IdentifierName IdentifierPart
|
||||
|
||||
IdentifierStart ::
|
||||
UnicodeIDStart
|
||||
$
|
||||
_
|
||||
\ UnicodeEscapeSequence
|
||||
|
||||
IdentifierPart::
|
||||
UnicodeIDContinue
|
||||
$
|
||||
\ UnicodeEscapeSequence
|
||||
<ZWNJ> <ZWJ>
|
||||
|
||||
UnicodeIDStart::
|
||||
any Unicode code point with the Unicode property "ID_Start"
|
||||
|
||||
UnicodeIDContinue::
|
||||
any Unicode code point with the Unicode property "ID_Continue"
|
||||
|
||||
|
||||
NOTE 3
|
||||
The sets of code points with Unicode properties "ID_Start" and
|
||||
"ID_Continue" include, respectively, the code points with Unicode
|
||||
properties "Other_ID_Start" and "Other_ID_Continue".
|
||||
|
||||
---*/
|
||||
|
||||
|
||||
var C = class {
|
||||
static async *m() { return 42; } static async #$(value) {
|
||||
yield await value;
|
||||
}
|
||||
static async #_(value) {
|
||||
yield await value;
|
||||
}
|
||||
static async #o(value) {
|
||||
yield await value;
|
||||
}
|
||||
static async #℘(value) {
|
||||
yield await value;
|
||||
}
|
||||
static async #ZW__NJ(value) {
|
||||
yield await value;
|
||||
}
|
||||
static async #ZW__J(value) {
|
||||
yield await value;
|
||||
};
|
||||
static async $(value) {
|
||||
yield * await this.#$(value);
|
||||
}
|
||||
static async _(value) {
|
||||
yield * await this.#_(value);
|
||||
}
|
||||
static async o(value) {
|
||||
yield * await this.#o(value);
|
||||
}
|
||||
static async ℘(value) { // DO NOT CHANGE THE NAME OF THIS FIELD
|
||||
yield * await this.#℘(value);
|
||||
}
|
||||
static async ZW__NJ(value) { // DO NOT CHANGE THE NAME OF THIS FIELD
|
||||
yield * await this.#ZW__NJ(value);
|
||||
}
|
||||
static async ZW__J(value) { // DO NOT CHANGE THE NAME OF THIS FIELD
|
||||
yield * await this.#ZW__J(value);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
var c = new C();
|
||||
|
||||
assert.sameValue(Object.hasOwnProperty.call(c, "m"), false);
|
||||
assert.sameValue(Object.hasOwnProperty.call(C.prototype, "m"), false);
|
||||
|
||||
verifyProperty(C, "m", {
|
||||
enumerable: false,
|
||||
configurable: true,
|
||||
writable: true,
|
||||
}, {restore: true});
|
||||
|
||||
Promise.all([
|
||||
C.$(1).next(),
|
||||
C._(1).next(),
|
||||
C.o(1).next(),
|
||||
C.℘(1).next(), // DO NOT CHANGE THE NAME OF THIS FIELD
|
||||
C.ZW__NJ(1).next(), // DO NOT CHANGE THE NAME OF THIS FIELD
|
||||
C.ZW__J(1).next(), // DO NOT CHANGE THE NAME OF THIS FIELD
|
||||
]).then(results => {
|
||||
|
||||
assert.sameValue(results[0].value, 1);
|
||||
assert.sameValue(results[1].value, 1);
|
||||
assert.sameValue(results[2].value, 1);
|
||||
assert.sameValue(results[3].value, 1);
|
||||
assert.sameValue(results[4].value, 1);
|
||||
assert.sameValue(results[5].value, 1);
|
||||
|
||||
}, $DONE).then($DONE, $DONE);
|
||||
|
||||
C.m().next().then(function(v) {
|
||||
assert.sameValue(v.value, 42);
|
||||
assert.sameValue(v.done, true);
|
||||
}, $DONE).then($DONE, $DONE);
|
|
@ -0,0 +1,136 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/class-fields/rs-static-async-generator-method-privatename-identifier.case
|
||||
// - src/class-fields/productions/cls-expr-after-same-line-static-async-gen.template
|
||||
/*---
|
||||
description: Valid Static AsyncGeneratorMethod PrivateName (field definitions after a static async generator in the same line)
|
||||
esid: prod-FieldDefinition
|
||||
features: [class-static-methods-private, class, class-fields-public, async-iteration]
|
||||
flags: [generated, async]
|
||||
includes: [propertyHelper.js]
|
||||
info: |
|
||||
|
||||
ClassElement :
|
||||
MethodDefinition
|
||||
static MethodDefinition
|
||||
FieldDefinition ;
|
||||
static FieldDefinition ;
|
||||
;
|
||||
|
||||
MethodDefinition :
|
||||
AsyncGeneratorMethod
|
||||
|
||||
AsyncGeneratorMethod :
|
||||
async [no LineTerminator here] * ClassElementName ( UniqueFormalParameters){ AsyncGeneratorBody }
|
||||
|
||||
ClassElementName :
|
||||
PropertyName
|
||||
PrivateName
|
||||
|
||||
PrivateName ::
|
||||
# IdentifierName
|
||||
|
||||
IdentifierName ::
|
||||
IdentifierStart
|
||||
IdentifierName IdentifierPart
|
||||
|
||||
IdentifierStart ::
|
||||
UnicodeIDStart
|
||||
$
|
||||
_
|
||||
\ UnicodeEscapeSequence
|
||||
|
||||
IdentifierPart::
|
||||
UnicodeIDContinue
|
||||
$
|
||||
\ UnicodeEscapeSequence
|
||||
<ZWNJ> <ZWJ>
|
||||
|
||||
UnicodeIDStart::
|
||||
any Unicode code point with the Unicode property "ID_Start"
|
||||
|
||||
UnicodeIDContinue::
|
||||
any Unicode code point with the Unicode property "ID_Continue"
|
||||
|
||||
|
||||
NOTE 3
|
||||
The sets of code points with Unicode properties "ID_Start" and
|
||||
"ID_Continue" include, respectively, the code points with Unicode
|
||||
properties "Other_ID_Start" and "Other_ID_Continue".
|
||||
|
||||
---*/
|
||||
|
||||
|
||||
var C = class {
|
||||
static async *m() { return 42; } static async * #$(value) {
|
||||
yield await value;
|
||||
}
|
||||
static async * #_(value) {
|
||||
yield await value;
|
||||
}
|
||||
static async * #\u{6F}(value) {
|
||||
yield await value;
|
||||
}
|
||||
static async * #\u2118(value) {
|
||||
yield await value;
|
||||
}
|
||||
static async * #ZW_\u200C_NJ(value) {
|
||||
yield await value;
|
||||
}
|
||||
static async * #ZW_\u200D_J(value) {
|
||||
yield await value;
|
||||
};
|
||||
static async * $(value) {
|
||||
yield * await this.#$(value);
|
||||
}
|
||||
static async * _(value) {
|
||||
yield * await this.#_(value);
|
||||
}
|
||||
static async * \u{6F}(value) {
|
||||
yield * await this.#\u{6F}(value);
|
||||
}
|
||||
static async * \u2118(value) {
|
||||
yield * await this.#\u2118(value);
|
||||
}
|
||||
static async * ZW_\u200C_NJ(value) {
|
||||
yield * await this.#ZW_\u200C_NJ(value);
|
||||
}
|
||||
static async * ZW_\u200D_J(value) {
|
||||
yield * await this.#ZW_\u200D_J(value);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
var c = new C();
|
||||
|
||||
assert.sameValue(Object.hasOwnProperty.call(c, "m"), false);
|
||||
assert.sameValue(Object.hasOwnProperty.call(C.prototype, "m"), false);
|
||||
|
||||
verifyProperty(C, "m", {
|
||||
enumerable: false,
|
||||
configurable: true,
|
||||
writable: true,
|
||||
}, {restore: true});
|
||||
|
||||
Promise.all([
|
||||
C.$(1).next(),
|
||||
C._(1).next(),
|
||||
C.\u{6F}(1).next(),
|
||||
C.\u2118(1).next(),
|
||||
C.ZW_\u200C_NJ(1).next(),
|
||||
C.ZW_\u200D_J(1).next(),
|
||||
]).then(results => {
|
||||
|
||||
assert.sameValue(results[0].value, 1);
|
||||
assert.sameValue(results[1].value, 1);
|
||||
assert.sameValue(results[2].value, 1);
|
||||
assert.sameValue(results[3].value, 1);
|
||||
assert.sameValue(results[4].value, 1);
|
||||
assert.sameValue(results[5].value, 1);
|
||||
|
||||
}, $DONE).then($DONE, $DONE);
|
||||
|
||||
|
||||
C.m().next().then(function(v) {
|
||||
assert.sameValue(v.value, 42);
|
||||
assert.sameValue(v.done, true);
|
||||
}, $DONE).then($DONE, $DONE);
|
|
@ -0,0 +1,135 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/class-fields/rs-static-async-method-privatename-identifier-alt.case
|
||||
// - src/class-fields/productions/cls-expr-after-same-line-static-async-gen.template
|
||||
/*---
|
||||
description: Valid Static AsyncMethod PrivateName (field definitions after a static async generator in the same line)
|
||||
esid: prod-FieldDefinition
|
||||
features: [class-static-methods-private, class, class-fields-public, async-iteration]
|
||||
flags: [generated, async]
|
||||
includes: [propertyHelper.js]
|
||||
info: |
|
||||
|
||||
ClassElement :
|
||||
MethodDefinition
|
||||
static MethodDefinition
|
||||
FieldDefinition ;
|
||||
static FieldDefinition ;
|
||||
;
|
||||
|
||||
MethodDefinition :
|
||||
AsyncMethod
|
||||
|
||||
AsyncMethod :
|
||||
async [no LineTerminator here] ClassElementName ( UniqueFormalParameters ){ AsyncFunctionBody }
|
||||
|
||||
ClassElementName :
|
||||
PropertyName
|
||||
PrivateName
|
||||
|
||||
PrivateName ::
|
||||
# IdentifierName
|
||||
|
||||
IdentifierName ::
|
||||
IdentifierStart
|
||||
IdentifierName IdentifierPart
|
||||
|
||||
IdentifierStart ::
|
||||
UnicodeIDStart
|
||||
$
|
||||
_
|
||||
\ UnicodeEscapeSequence
|
||||
|
||||
IdentifierPart::
|
||||
UnicodeIDContinue
|
||||
$
|
||||
\ UnicodeEscapeSequence
|
||||
<ZWNJ> <ZWJ>
|
||||
|
||||
UnicodeIDStart::
|
||||
any Unicode code point with the Unicode property "ID_Start"
|
||||
|
||||
UnicodeIDContinue::
|
||||
any Unicode code point with the Unicode property "ID_Continue"
|
||||
|
||||
|
||||
NOTE 3
|
||||
The sets of code points with Unicode properties "ID_Start" and
|
||||
"ID_Continue" include, respectively, the code points with Unicode
|
||||
properties "Other_ID_Start" and "Other_ID_Continue".
|
||||
|
||||
---*/
|
||||
|
||||
|
||||
var C = class {
|
||||
static async *m() { return 42; } static async #$(value) {
|
||||
return await value;
|
||||
}
|
||||
static async #_(value) {
|
||||
return await value;
|
||||
}
|
||||
static async #o(value) {
|
||||
return await value;
|
||||
}
|
||||
static async #℘(value) {
|
||||
return await value;
|
||||
}
|
||||
static async #ZW__NJ(value) {
|
||||
return await value;
|
||||
}
|
||||
static async #ZW__J(value) {
|
||||
return await value;
|
||||
};
|
||||
static async $(value) {
|
||||
return await this.#$(value);
|
||||
}
|
||||
static async _(value) {
|
||||
return await this.#_(value);
|
||||
}
|
||||
static async o(value) {
|
||||
return await this.#o(value);
|
||||
}
|
||||
static async ℘(value) { // DO NOT CHANGE THE NAME OF THIS FIELD
|
||||
return await this.#℘(value);
|
||||
}
|
||||
static async ZW__NJ(value) { // DO NOT CHANGE THE NAME OF THIS FIELD
|
||||
return await this.#ZW__NJ(value);
|
||||
}
|
||||
static async ZW__J(value) { // DO NOT CHANGE THE NAME OF THIS FIELD
|
||||
return await this.#ZW__J(value);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
var c = new C();
|
||||
|
||||
assert.sameValue(Object.hasOwnProperty.call(c, "m"), false);
|
||||
assert.sameValue(Object.hasOwnProperty.call(C.prototype, "m"), false);
|
||||
|
||||
verifyProperty(C, "m", {
|
||||
enumerable: false,
|
||||
configurable: true,
|
||||
writable: true,
|
||||
}, {restore: true});
|
||||
|
||||
Promise.all([
|
||||
C.$(1),
|
||||
C._(1),
|
||||
C.o(1),
|
||||
C.℘(1), // DO NOT CHANGE THE NAME OF THIS FIELD
|
||||
C.ZW__NJ(1), // DO NOT CHANGE THE NAME OF THIS FIELD
|
||||
C.ZW__J(1), // DO NOT CHANGE THE NAME OF THIS FIELD
|
||||
]).then(results => {
|
||||
|
||||
assert.sameValue(results[0], 1);
|
||||
assert.sameValue(results[1], 1);
|
||||
assert.sameValue(results[2], 1);
|
||||
assert.sameValue(results[3], 1);
|
||||
assert.sameValue(results[4], 1);
|
||||
assert.sameValue(results[5], 1);
|
||||
|
||||
}, $DONE).then($DONE, $DONE);
|
||||
|
||||
C.m().next().then(function(v) {
|
||||
assert.sameValue(v.value, 42);
|
||||
assert.sameValue(v.done, true);
|
||||
}, $DONE).then($DONE, $DONE);
|
|
@ -0,0 +1,136 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/class-fields/rs-static-async-method-privatename-identifier.case
|
||||
// - src/class-fields/productions/cls-expr-after-same-line-static-async-gen.template
|
||||
/*---
|
||||
description: Valid Static AsyncMethod PrivateName (field definitions after a static async generator in the same line)
|
||||
esid: prod-FieldDefinition
|
||||
features: [class-static-methods-private, class, class-fields-public, async-iteration]
|
||||
flags: [generated, async]
|
||||
includes: [propertyHelper.js]
|
||||
info: |
|
||||
|
||||
ClassElement :
|
||||
MethodDefinition
|
||||
static MethodDefinition
|
||||
FieldDefinition ;
|
||||
static FieldDefinition ;
|
||||
;
|
||||
|
||||
MethodDefinition :
|
||||
AsyncMethod
|
||||
|
||||
AsyncMethod :
|
||||
async [no LineTerminator here] ClassElementName ( UniqueFormalParameters ){ AsyncFunctionBody }
|
||||
|
||||
ClassElementName :
|
||||
PropertyName
|
||||
PrivateName
|
||||
|
||||
PrivateName ::
|
||||
# IdentifierName
|
||||
|
||||
IdentifierName ::
|
||||
IdentifierStart
|
||||
IdentifierName IdentifierPart
|
||||
|
||||
IdentifierStart ::
|
||||
UnicodeIDStart
|
||||
$
|
||||
_
|
||||
\ UnicodeEscapeSequence
|
||||
|
||||
IdentifierPart::
|
||||
UnicodeIDContinue
|
||||
$
|
||||
\ UnicodeEscapeSequence
|
||||
<ZWNJ> <ZWJ>
|
||||
|
||||
UnicodeIDStart::
|
||||
any Unicode code point with the Unicode property "ID_Start"
|
||||
|
||||
UnicodeIDContinue::
|
||||
any Unicode code point with the Unicode property "ID_Continue"
|
||||
|
||||
|
||||
NOTE 3
|
||||
The sets of code points with Unicode properties "ID_Start" and
|
||||
"ID_Continue" include, respectively, the code points with Unicode
|
||||
properties "Other_ID_Start" and "Other_ID_Continue".
|
||||
|
||||
---*/
|
||||
|
||||
|
||||
var C = class {
|
||||
static async *m() { return 42; } static async #$(value) {
|
||||
return await value;
|
||||
}
|
||||
static async #_(value) {
|
||||
return await value;
|
||||
}
|
||||
static async #\u{6F}(value) {
|
||||
return await value;
|
||||
}
|
||||
static async #\u2118(value) {
|
||||
return await value;
|
||||
}
|
||||
static async #ZW_\u200C_NJ(value) {
|
||||
return await value;
|
||||
}
|
||||
static async #ZW_\u200D_J(value) {
|
||||
return await value;
|
||||
};
|
||||
static async $(value) {
|
||||
return await this.#$(value);
|
||||
}
|
||||
static async _(value) {
|
||||
return await this.#_(value);
|
||||
}
|
||||
static async \u{6F}(value) {
|
||||
return await this.#\u{6F}(value);
|
||||
}
|
||||
static async \u2118(value) {
|
||||
return await this.#\u2118(value);
|
||||
}
|
||||
static async ZW_\u200C_NJ(value) {
|
||||
return await this.#ZW_\u200C_NJ(value);
|
||||
}
|
||||
static async ZW_\u200D_J(value) {
|
||||
return await this.#ZW_\u200D_J(value);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
var c = new C();
|
||||
|
||||
assert.sameValue(Object.hasOwnProperty.call(c, "m"), false);
|
||||
assert.sameValue(Object.hasOwnProperty.call(C.prototype, "m"), false);
|
||||
|
||||
verifyProperty(C, "m", {
|
||||
enumerable: false,
|
||||
configurable: true,
|
||||
writable: true,
|
||||
}, {restore: true});
|
||||
|
||||
Promise.all([
|
||||
C.$(1),
|
||||
C._(1),
|
||||
C.\u{6F}(1),
|
||||
C.\u2118(1),
|
||||
C.ZW_\u200C_NJ(1),
|
||||
C.ZW_\u200D_J(1),
|
||||
]).then(results => {
|
||||
|
||||
assert.sameValue(results[0], 1);
|
||||
assert.sameValue(results[1], 1);
|
||||
assert.sameValue(results[2], 1);
|
||||
assert.sameValue(results[3], 1);
|
||||
assert.sameValue(results[4], 1);
|
||||
assert.sameValue(results[5], 1);
|
||||
|
||||
}, $DONE).then($DONE, $DONE);
|
||||
|
||||
|
||||
C.m().next().then(function(v) {
|
||||
assert.sameValue(v.value, 42);
|
||||
assert.sameValue(v.done, true);
|
||||
}, $DONE).then($DONE, $DONE);
|
|
@ -0,0 +1,124 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/class-fields/rs-static-generator-method-privatename-identifier-alt.case
|
||||
// - src/class-fields/productions/cls-expr-after-same-line-static-async-gen.template
|
||||
/*---
|
||||
description: Valid Static GeneratorMethod PrivateName (field definitions after a static async generator in the same line)
|
||||
esid: prod-FieldDefinition
|
||||
features: [class-static-methods-private, class, class-fields-public, async-iteration]
|
||||
flags: [generated, async]
|
||||
includes: [propertyHelper.js]
|
||||
info: |
|
||||
|
||||
ClassElement :
|
||||
MethodDefinition
|
||||
static MethodDefinition
|
||||
FieldDefinition ;
|
||||
static FieldDefinition ;
|
||||
;
|
||||
|
||||
MethodDefinition :
|
||||
GeneratorMethod
|
||||
|
||||
GeneratorMethod :
|
||||
* ClassElementName ( UniqueFormalParameters ){ GeneratorBody }
|
||||
|
||||
ClassElementName :
|
||||
PropertyName
|
||||
PrivateName
|
||||
|
||||
PrivateName ::
|
||||
# IdentifierName
|
||||
|
||||
IdentifierName ::
|
||||
IdentifierStart
|
||||
IdentifierName IdentifierPart
|
||||
|
||||
IdentifierStart ::
|
||||
UnicodeIDStart
|
||||
$
|
||||
_
|
||||
\ UnicodeEscapeSequence
|
||||
|
||||
IdentifierPart::
|
||||
UnicodeIDContinue
|
||||
$
|
||||
\ UnicodeEscapeSequence
|
||||
<ZWNJ> <ZWJ>
|
||||
|
||||
UnicodeIDStart::
|
||||
any Unicode code point with the Unicode property "ID_Start"
|
||||
|
||||
UnicodeIDContinue::
|
||||
any Unicode code point with the Unicode property "ID_Continue"
|
||||
|
||||
|
||||
NOTE 3
|
||||
The sets of code points with Unicode properties "ID_Start" and
|
||||
"ID_Continue" include, respectively, the code points with Unicode
|
||||
properties "Other_ID_Start" and "Other_ID_Continue".
|
||||
|
||||
---*/
|
||||
|
||||
|
||||
var C = class {
|
||||
static async *m() { return 42; } static * #$(value) {
|
||||
yield value;
|
||||
}
|
||||
static * #_(value) {
|
||||
yield value;
|
||||
}
|
||||
static * #o(value) {
|
||||
yield value;
|
||||
}
|
||||
static * #℘(value) {
|
||||
yield value;
|
||||
}
|
||||
static * #ZW__NJ(value) {
|
||||
yield value;
|
||||
}
|
||||
static * #ZW__J(value) {
|
||||
yield value;
|
||||
};
|
||||
static * $(value) {
|
||||
yield this.#$(value);
|
||||
}
|
||||
static * _(value) {
|
||||
yield this.#_(value);
|
||||
}
|
||||
static * o(value) {
|
||||
yield this.#o(value);
|
||||
}
|
||||
static * ℘(value) { // DO NOT CHANGE THE NAME OF THIS FIELD
|
||||
yield this.#℘(value);
|
||||
}
|
||||
static * ZW__NJ(value) { // DO NOT CHANGE THE NAME OF THIS FIELD
|
||||
yield this.#ZW__NJ(value);
|
||||
}
|
||||
static * ZW__J(value) { // DO NOT CHANGE THE NAME OF THIS FIELD
|
||||
yield this.#ZW__J(value);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
var c = new C();
|
||||
|
||||
assert.sameValue(Object.hasOwnProperty.call(c, "m"), false);
|
||||
assert.sameValue(Object.hasOwnProperty.call(C.prototype, "m"), false);
|
||||
|
||||
verifyProperty(C, "m", {
|
||||
enumerable: false,
|
||||
configurable: true,
|
||||
writable: true,
|
||||
}, {restore: true});
|
||||
|
||||
assert.sameValue(C.$(1).next().value, 1);
|
||||
assert.sameValue(C._(1).next().value, 1);
|
||||
assert.sameValue(C.o(1).next().value, 1);
|
||||
assert.sameValue(C.℘(1).next().value, 1);
|
||||
assert.sameValue(C.ZW__NJ(1).next().value, 1);
|
||||
assert.sameValue(C.ZW__J(1).next().value, 1);
|
||||
|
||||
C.m().next().then(function(v) {
|
||||
assert.sameValue(v.value, 42);
|
||||
assert.sameValue(v.done, true);
|
||||
}, $DONE).then($DONE, $DONE);
|
|
@ -0,0 +1,125 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/class-fields/rs-static-generator-method-privatename-identifier.case
|
||||
// - src/class-fields/productions/cls-expr-after-same-line-static-async-gen.template
|
||||
/*---
|
||||
description: Valid Static GeneratorMethod PrivateName (field definitions after a static async generator in the same line)
|
||||
esid: prod-FieldDefinition
|
||||
features: [class-static-methods-private, class, class-fields-public, async-iteration]
|
||||
flags: [generated, async]
|
||||
includes: [propertyHelper.js]
|
||||
info: |
|
||||
|
||||
ClassElement :
|
||||
MethodDefinition
|
||||
static MethodDefinition
|
||||
FieldDefinition ;
|
||||
static FieldDefinition ;
|
||||
;
|
||||
|
||||
MethodDefinition :
|
||||
GeneratorMethod
|
||||
|
||||
GeneratorMethod :
|
||||
* ClassElementName ( UniqueFormalParameters ){ GeneratorBody }
|
||||
|
||||
ClassElementName :
|
||||
PropertyName
|
||||
PrivateName
|
||||
|
||||
PrivateName ::
|
||||
# IdentifierName
|
||||
|
||||
IdentifierName ::
|
||||
IdentifierStart
|
||||
IdentifierName IdentifierPart
|
||||
|
||||
IdentifierStart ::
|
||||
UnicodeIDStart
|
||||
$
|
||||
_
|
||||
\ UnicodeEscapeSequence
|
||||
|
||||
IdentifierPart::
|
||||
UnicodeIDContinue
|
||||
$
|
||||
\ UnicodeEscapeSequence
|
||||
<ZWNJ> <ZWJ>
|
||||
|
||||
UnicodeIDStart::
|
||||
any Unicode code point with the Unicode property "ID_Start"
|
||||
|
||||
UnicodeIDContinue::
|
||||
any Unicode code point with the Unicode property "ID_Continue"
|
||||
|
||||
|
||||
NOTE 3
|
||||
The sets of code points with Unicode properties "ID_Start" and
|
||||
"ID_Continue" include, respectively, the code points with Unicode
|
||||
properties "Other_ID_Start" and "Other_ID_Continue".
|
||||
|
||||
---*/
|
||||
|
||||
|
||||
var C = class {
|
||||
static async *m() { return 42; } static * #$(value) {
|
||||
yield value;
|
||||
}
|
||||
static * #_(value) {
|
||||
yield value;
|
||||
}
|
||||
static * #\u{6F}(value) {
|
||||
yield value;
|
||||
}
|
||||
static * #\u2118(value) {
|
||||
yield value;
|
||||
}
|
||||
static * #ZW_\u200C_NJ(value) {
|
||||
yield value;
|
||||
}
|
||||
static * #ZW_\u200D_J(value) {
|
||||
yield value;
|
||||
};
|
||||
static * $(value) {
|
||||
yield this.#$(value);
|
||||
}
|
||||
static * _(value) {
|
||||
yield this.#_(value);
|
||||
}
|
||||
static * \u{6F}(value) {
|
||||
yield this.#\u{6F}(value);
|
||||
}
|
||||
static * \u2118(value) {
|
||||
yield this.#\u2118(value);
|
||||
}
|
||||
static * ZW_\u200C_NJ(value) {
|
||||
yield this.#ZW_\u200C_NJ(value);
|
||||
}
|
||||
static * ZW_\u200D_J(value) {
|
||||
yield this.#ZW_\u200D_J(value);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
var c = new C();
|
||||
|
||||
assert.sameValue(Object.hasOwnProperty.call(c, "m"), false);
|
||||
assert.sameValue(Object.hasOwnProperty.call(C.prototype, "m"), false);
|
||||
|
||||
verifyProperty(C, "m", {
|
||||
enumerable: false,
|
||||
configurable: true,
|
||||
writable: true,
|
||||
}, {restore: true});
|
||||
|
||||
assert.sameValue(C.$(1).next().value, 1);
|
||||
assert.sameValue(C._(1).next().value, 1);
|
||||
assert.sameValue(C.\u{6F}(1).next().value, 1);
|
||||
assert.sameValue(C.\u2118(1).next().value, 1);
|
||||
assert.sameValue(C.ZW_\u200C_NJ(1).next().value, 1);
|
||||
assert.sameValue(C.ZW_\u200D_J(1).next().value, 1);
|
||||
|
||||
|
||||
C.m().next().then(function(v) {
|
||||
assert.sameValue(v.value, 42);
|
||||
assert.sameValue(v.done, true);
|
||||
}, $DONE).then($DONE, $DONE);
|
|
@ -4,7 +4,7 @@
|
|||
/*---
|
||||
description: Valid Static Method PrivateName (field definitions after a static async generator in the same line)
|
||||
esid: prod-FieldDefinition
|
||||
features: [class-static-fields-private, class, class-fields-public, async-iteration]
|
||||
features: [class-static-methods-private, class, class-fields-public, async-iteration]
|
||||
flags: [generated, async]
|
||||
includes: [propertyHelper.js]
|
||||
info: |
|
||||
|
@ -16,30 +16,30 @@ info: |
|
|||
static FieldDefinition ;
|
||||
;
|
||||
|
||||
FieldDefinition :
|
||||
ClassElementName Initializer _opt
|
||||
MethodDefinition :
|
||||
ClassElementName ( UniqueFormalParameters ){ FunctionBody }
|
||||
|
||||
ClassElementName :
|
||||
PropertyName
|
||||
PrivateName
|
||||
|
||||
PrivateName::
|
||||
PrivateName ::
|
||||
# IdentifierName
|
||||
|
||||
IdentifierName::
|
||||
IdentifierName ::
|
||||
IdentifierStart
|
||||
IdentifierName IdentifierPart
|
||||
|
||||
IdentifierStart::
|
||||
IdentifierStart ::
|
||||
UnicodeIDStart
|
||||
$
|
||||
_
|
||||
\UnicodeEscapeSequence
|
||||
\ UnicodeEscapeSequence
|
||||
|
||||
IdentifierPart::
|
||||
UnicodeIDContinue
|
||||
$
|
||||
\UnicodeEscapeSequence
|
||||
\ UnicodeEscapeSequence
|
||||
<ZWNJ> <ZWJ>
|
||||
|
||||
UnicodeIDStart::
|
||||
|
@ -59,27 +59,21 @@ info: |
|
|||
|
||||
var C = class {
|
||||
static async *m() { return 42; } static #$(value) {
|
||||
this.$ = value;
|
||||
return value;
|
||||
}
|
||||
static #_(value) {
|
||||
this.#stored = value;
|
||||
return value;
|
||||
}
|
||||
static #o(value) {
|
||||
this.#stored = value;
|
||||
return value;
|
||||
}
|
||||
static #℘(value) {
|
||||
this.#stored = value;
|
||||
return value;
|
||||
}
|
||||
static #ZW__NJ(value) {
|
||||
this.#stored = value;
|
||||
return value;
|
||||
}
|
||||
static #ZW__J(value) {
|
||||
this.#stored = value;
|
||||
return value;
|
||||
};
|
||||
static $(value) {
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
/*---
|
||||
description: Valid Static Method PrivateName (field definitions after a static async generator in the same line)
|
||||
esid: prod-FieldDefinition
|
||||
features: [class-static-fields-private, class, class-fields-public, async-iteration]
|
||||
features: [class-static-methods-private, class, class-fields-public, async-iteration]
|
||||
flags: [generated, async]
|
||||
includes: [propertyHelper.js]
|
||||
info: |
|
||||
|
@ -16,30 +16,30 @@ info: |
|
|||
static FieldDefinition ;
|
||||
;
|
||||
|
||||
FieldDefinition :
|
||||
ClassElementName Initializer _opt
|
||||
MethodDefinition :
|
||||
ClassElementName ( UniqueFormalParameters ){ FunctionBody }
|
||||
|
||||
ClassElementName :
|
||||
PropertyName
|
||||
PrivateName
|
||||
|
||||
PrivateName::
|
||||
PrivateName ::
|
||||
# IdentifierName
|
||||
|
||||
IdentifierName::
|
||||
IdentifierName ::
|
||||
IdentifierStart
|
||||
IdentifierName IdentifierPart
|
||||
|
||||
IdentifierStart::
|
||||
IdentifierStart ::
|
||||
UnicodeIDStart
|
||||
$
|
||||
_
|
||||
\UnicodeEscapeSequence
|
||||
\ UnicodeEscapeSequence
|
||||
|
||||
IdentifierPart::
|
||||
UnicodeIDContinue
|
||||
$
|
||||
\UnicodeEscapeSequence
|
||||
\ UnicodeEscapeSequence
|
||||
<ZWNJ> <ZWJ>
|
||||
|
||||
UnicodeIDStart::
|
||||
|
|
|
@ -0,0 +1,110 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/class-fields/rs-static-privatename-identifier-alt-by-classname.case
|
||||
// - src/class-fields/productions/cls-expr-after-same-line-static-async-gen.template
|
||||
/*---
|
||||
description: Valid Static PrivateName (field definitions after a static async generator in the same line)
|
||||
esid: prod-FieldDefinition
|
||||
features: [class-static-fields-private, class, class-fields-public, async-iteration]
|
||||
flags: [generated, async]
|
||||
includes: [propertyHelper.js]
|
||||
info: |
|
||||
|
||||
ClassElement :
|
||||
MethodDefinition
|
||||
static MethodDefinition
|
||||
FieldDefinition ;
|
||||
static FieldDefinition ;
|
||||
;
|
||||
|
||||
FieldDefinition :
|
||||
ClassElementName Initializer _opt
|
||||
|
||||
ClassElementName :
|
||||
PropertyName
|
||||
PrivateName
|
||||
|
||||
PrivateName ::
|
||||
# IdentifierName
|
||||
|
||||
IdentifierName ::
|
||||
IdentifierStart
|
||||
IdentifierName IdentifierPart
|
||||
|
||||
IdentifierStart ::
|
||||
UnicodeIDStart
|
||||
$
|
||||
_
|
||||
\ UnicodeEscapeSequence
|
||||
|
||||
IdentifierPart::
|
||||
UnicodeIDContinue
|
||||
$
|
||||
\ UnicodeEscapeSequence
|
||||
<ZWNJ> <ZWJ>
|
||||
|
||||
UnicodeIDStart::
|
||||
any Unicode code point with the Unicode property "ID_Start"
|
||||
|
||||
UnicodeIDContinue::
|
||||
any Unicode code point with the Unicode property "ID_Continue"
|
||||
|
||||
|
||||
NOTE 3
|
||||
The sets of code points with Unicode properties "ID_Start" and
|
||||
"ID_Continue" include, respectively, the code points with Unicode
|
||||
properties "Other_ID_Start" and "Other_ID_Continue".
|
||||
|
||||
---*/
|
||||
|
||||
|
||||
var C = class {
|
||||
static async *m() { return 42; } static #$; static #_; static #\u{6F}; static #℘; static #ZW__NJ; static #ZW__J;
|
||||
static $(value) {
|
||||
C.#$ = value;
|
||||
return C.#$;
|
||||
}
|
||||
static _(value) {
|
||||
C.#_ = value;
|
||||
return C.#_;
|
||||
}
|
||||
static o(value) {
|
||||
C.#\u{6F} = value;
|
||||
return C.#\u{6F};
|
||||
}
|
||||
static ℘(value) { // DO NOT CHANGE THE NAME OF THIS FIELD
|
||||
C.#℘ = value;
|
||||
return C.#℘;
|
||||
}
|
||||
static ZW__NJ(value) { // DO NOT CHANGE THE NAME OF THIS FIELD
|
||||
C.#ZW__NJ = value;
|
||||
return C.#ZW__NJ;
|
||||
}
|
||||
static ZW__J(value) { // DO NOT CHANGE THE NAME OF THIS FIELD
|
||||
C.#ZW__J = value;
|
||||
return C.#ZW__J;
|
||||
}
|
||||
}
|
||||
|
||||
var c = new C();
|
||||
|
||||
assert.sameValue(Object.hasOwnProperty.call(c, "m"), false);
|
||||
assert.sameValue(Object.hasOwnProperty.call(C.prototype, "m"), false);
|
||||
|
||||
verifyProperty(C, "m", {
|
||||
enumerable: false,
|
||||
configurable: true,
|
||||
writable: true,
|
||||
}, {restore: true});
|
||||
|
||||
assert.sameValue(C.$(1), 1);
|
||||
assert.sameValue(C._(1), 1);
|
||||
assert.sameValue(C.o(1), 1);
|
||||
assert.sameValue(C.℘(1), 1); // DO NOT CHANGE THE NAME OF THIS FIELD
|
||||
assert.sameValue(C.ZW__NJ(1), 1); // DO NOT CHANGE THE NAME OF THIS FIELD
|
||||
assert.sameValue(C.ZW__J(1), 1); // DO NOT CHANGE THE NAME OF THIS FIELD
|
||||
|
||||
|
||||
C.m().next().then(function(v) {
|
||||
assert.sameValue(v.value, 42);
|
||||
assert.sameValue(v.done, true);
|
||||
}, $DONE).then($DONE, $DONE);
|
|
@ -23,23 +23,23 @@ info: |
|
|||
PropertyName
|
||||
PrivateName
|
||||
|
||||
PrivateName::
|
||||
PrivateName ::
|
||||
# IdentifierName
|
||||
|
||||
IdentifierName::
|
||||
IdentifierName ::
|
||||
IdentifierStart
|
||||
IdentifierName IdentifierPart
|
||||
|
||||
IdentifierStart::
|
||||
IdentifierStart ::
|
||||
UnicodeIDStart
|
||||
$
|
||||
_
|
||||
\UnicodeEscapeSequence
|
||||
\ UnicodeEscapeSequence
|
||||
|
||||
IdentifierPart::
|
||||
UnicodeIDContinue
|
||||
$
|
||||
\UnicodeEscapeSequence
|
||||
\ UnicodeEscapeSequence
|
||||
<ZWNJ> <ZWJ>
|
||||
|
||||
UnicodeIDStart::
|
||||
|
|
|
@ -0,0 +1,110 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/class-fields/rs-static-privatename-identifier-by-classname.case
|
||||
// - src/class-fields/productions/cls-expr-after-same-line-static-async-gen.template
|
||||
/*---
|
||||
description: Valid Static PrivateName (field definitions after a static async generator in the same line)
|
||||
esid: prod-FieldDefinition
|
||||
features: [class-static-fields-private, class, class-fields-public, async-iteration]
|
||||
flags: [generated, async]
|
||||
includes: [propertyHelper.js]
|
||||
info: |
|
||||
|
||||
ClassElement :
|
||||
MethodDefinition
|
||||
static MethodDefinition
|
||||
FieldDefinition ;
|
||||
static FieldDefinition ;
|
||||
;
|
||||
|
||||
FieldDefinition :
|
||||
ClassElementName Initializer _opt
|
||||
|
||||
ClassElementName :
|
||||
PropertyName
|
||||
PrivateName
|
||||
|
||||
PrivateName ::
|
||||
# IdentifierName
|
||||
|
||||
IdentifierName ::
|
||||
IdentifierStart
|
||||
IdentifierName IdentifierPart
|
||||
|
||||
IdentifierStart ::
|
||||
UnicodeIDStart
|
||||
$
|
||||
_
|
||||
\ UnicodeEscapeSequence
|
||||
|
||||
IdentifierPart::
|
||||
UnicodeIDContinue
|
||||
$
|
||||
\ UnicodeEscapeSequence
|
||||
<ZWNJ> <ZWJ>
|
||||
|
||||
UnicodeIDStart::
|
||||
any Unicode code point with the Unicode property "ID_Start"
|
||||
|
||||
UnicodeIDContinue::
|
||||
any Unicode code point with the Unicode property "ID_Continue"
|
||||
|
||||
|
||||
NOTE 3
|
||||
The sets of code points with Unicode properties "ID_Start" and
|
||||
"ID_Continue" include, respectively, the code points with Unicode
|
||||
properties "Other_ID_Start" and "Other_ID_Continue".
|
||||
|
||||
---*/
|
||||
|
||||
|
||||
var C = class {
|
||||
static async *m() { return 42; } static #$; static #_; static #\u{6F}; static #\u2118; static #ZW_\u200C_NJ; static #ZW_\u200D_J;
|
||||
static $(value) {
|
||||
C.#$ = value;
|
||||
return C.#$;
|
||||
}
|
||||
static _(value) {
|
||||
C.#_ = value;
|
||||
return C.#_;
|
||||
}
|
||||
static \u{6F}(value) {
|
||||
C.#\u{6F} = value;
|
||||
return C.#\u{6F};
|
||||
}
|
||||
static \u2118(value) {
|
||||
C.#\u2118 = value;
|
||||
return C.#\u2118;
|
||||
}
|
||||
static ZW_\u200C_NJ(value) {
|
||||
C.#ZW_\u200C_NJ = value;
|
||||
return C.#ZW_\u200C_NJ;
|
||||
}
|
||||
static ZW_\u200D_J(value) {
|
||||
C.#ZW_\u200D_J = value;
|
||||
return C.#ZW_\u200D_J;
|
||||
}
|
||||
}
|
||||
|
||||
var c = new C();
|
||||
|
||||
assert.sameValue(Object.hasOwnProperty.call(c, "m"), false);
|
||||
assert.sameValue(Object.hasOwnProperty.call(C.prototype, "m"), false);
|
||||
|
||||
verifyProperty(C, "m", {
|
||||
enumerable: false,
|
||||
configurable: true,
|
||||
writable: true,
|
||||
}, {restore: true});
|
||||
|
||||
assert.sameValue(C.$(1), 1);
|
||||
assert.sameValue(C._(1), 1);
|
||||
assert.sameValue(C.\u{6F}(1), 1);
|
||||
assert.sameValue(C.\u2118(1), 1);
|
||||
assert.sameValue(C.ZW_\u200C_NJ(1), 1);
|
||||
assert.sameValue(C.ZW_\u200D_J(1), 1);
|
||||
|
||||
|
||||
C.m().next().then(function(v) {
|
||||
assert.sameValue(v.value, 42);
|
||||
assert.sameValue(v.done, true);
|
||||
}, $DONE).then($DONE, $DONE);
|
|
@ -0,0 +1,104 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/class-fields/rs-static-privatename-identifier-initializer-alt-by-classname.case
|
||||
// - src/class-fields/productions/cls-expr-after-same-line-static-async-gen.template
|
||||
/*---
|
||||
description: Valid Static PrivateName (field definitions after a static async generator in the same line)
|
||||
esid: prod-FieldDefinition
|
||||
features: [class-static-fields-private, class, class-fields-public, async-iteration]
|
||||
flags: [generated, async]
|
||||
includes: [propertyHelper.js]
|
||||
info: |
|
||||
|
||||
ClassElement :
|
||||
MethodDefinition
|
||||
static MethodDefinition
|
||||
FieldDefinition ;
|
||||
static FieldDefinition ;
|
||||
;
|
||||
|
||||
FieldDefinition :
|
||||
ClassElementName Initializer _opt
|
||||
|
||||
ClassElementName :
|
||||
PropertyName
|
||||
PrivateName
|
||||
|
||||
PrivateName ::
|
||||
# IdentifierName
|
||||
|
||||
IdentifierName ::
|
||||
IdentifierStart
|
||||
IdentifierName IdentifierPart
|
||||
|
||||
IdentifierStart ::
|
||||
UnicodeIDStart
|
||||
$
|
||||
_
|
||||
\ UnicodeEscapeSequence
|
||||
|
||||
IdentifierPart::
|
||||
UnicodeIDContinue
|
||||
$
|
||||
\ UnicodeEscapeSequence
|
||||
<ZWNJ> <ZWJ>
|
||||
|
||||
UnicodeIDStart::
|
||||
any Unicode code point with the Unicode property "ID_Start"
|
||||
|
||||
UnicodeIDContinue::
|
||||
any Unicode code point with the Unicode property "ID_Continue"
|
||||
|
||||
|
||||
NOTE 3
|
||||
The sets of code points with Unicode properties "ID_Start" and
|
||||
"ID_Continue" include, respectively, the code points with Unicode
|
||||
properties "Other_ID_Start" and "Other_ID_Continue".
|
||||
|
||||
---*/
|
||||
|
||||
|
||||
var C = class {
|
||||
static async *m() { return 42; } static #$ = 1; static #_ = 1; static #\u{6F} = 1; static #℘ = 1; static #ZW__NJ = 1; static #ZW__J = 1;
|
||||
static $() {
|
||||
return C.#$;
|
||||
}
|
||||
static _() {
|
||||
return C.#_;
|
||||
}
|
||||
static \u{6F}() {
|
||||
return C.#\u{6F};
|
||||
}
|
||||
static ℘() {
|
||||
return C.#℘;
|
||||
}
|
||||
static ZW__NJ() {
|
||||
return C.#ZW__NJ;
|
||||
}
|
||||
static ZW__J() {
|
||||
return C.#ZW__J;
|
||||
}
|
||||
}
|
||||
|
||||
var c = new C();
|
||||
|
||||
assert.sameValue(Object.hasOwnProperty.call(c, "m"), false);
|
||||
assert.sameValue(Object.hasOwnProperty.call(C.prototype, "m"), false);
|
||||
|
||||
verifyProperty(C, "m", {
|
||||
enumerable: false,
|
||||
configurable: true,
|
||||
writable: true,
|
||||
}, {restore: true});
|
||||
|
||||
assert.sameValue(C.$(), 1);
|
||||
assert.sameValue(C._(), 1);
|
||||
assert.sameValue(C.\u{6F}(), 1);
|
||||
assert.sameValue(C.℘(), 1);
|
||||
assert.sameValue(C.ZW__NJ(), 1);
|
||||
assert.sameValue(C.ZW__J(), 1);
|
||||
|
||||
|
||||
C.m().next().then(function(v) {
|
||||
assert.sameValue(v.value, 42);
|
||||
assert.sameValue(v.done, true);
|
||||
}, $DONE).then($DONE, $DONE);
|
|
@ -23,23 +23,23 @@ info: |
|
|||
PropertyName
|
||||
PrivateName
|
||||
|
||||
PrivateName::
|
||||
PrivateName ::
|
||||
# IdentifierName
|
||||
|
||||
IdentifierName::
|
||||
IdentifierName ::
|
||||
IdentifierStart
|
||||
IdentifierName IdentifierPart
|
||||
|
||||
IdentifierStart::
|
||||
IdentifierStart ::
|
||||
UnicodeIDStart
|
||||
$
|
||||
_
|
||||
\UnicodeEscapeSequence
|
||||
\ UnicodeEscapeSequence
|
||||
|
||||
IdentifierPart::
|
||||
UnicodeIDContinue
|
||||
$
|
||||
\UnicodeEscapeSequence
|
||||
\ UnicodeEscapeSequence
|
||||
<ZWNJ> <ZWJ>
|
||||
|
||||
UnicodeIDStart::
|
||||
|
|
|
@ -23,23 +23,23 @@ info: |
|
|||
PropertyName
|
||||
PrivateName
|
||||
|
||||
PrivateName::
|
||||
PrivateName ::
|
||||
# IdentifierName
|
||||
|
||||
IdentifierName::
|
||||
IdentifierName ::
|
||||
IdentifierStart
|
||||
IdentifierName IdentifierPart
|
||||
|
||||
IdentifierStart::
|
||||
IdentifierStart ::
|
||||
UnicodeIDStart
|
||||
$
|
||||
_
|
||||
\UnicodeEscapeSequence
|
||||
\ UnicodeEscapeSequence
|
||||
|
||||
IdentifierPart::
|
||||
UnicodeIDContinue
|
||||
$
|
||||
\UnicodeEscapeSequence
|
||||
\ UnicodeEscapeSequence
|
||||
<ZWNJ> <ZWJ>
|
||||
|
||||
UnicodeIDStart::
|
||||
|
|
|
@ -23,23 +23,23 @@ info: |
|
|||
PropertyName
|
||||
PrivateName
|
||||
|
||||
PrivateName::
|
||||
PrivateName ::
|
||||
# IdentifierName
|
||||
|
||||
IdentifierName::
|
||||
IdentifierName ::
|
||||
IdentifierStart
|
||||
IdentifierName IdentifierPart
|
||||
|
||||
IdentifierStart::
|
||||
IdentifierStart ::
|
||||
UnicodeIDStart
|
||||
$
|
||||
_
|
||||
\UnicodeEscapeSequence
|
||||
\ UnicodeEscapeSequence
|
||||
|
||||
IdentifierPart::
|
||||
UnicodeIDContinue
|
||||
$
|
||||
\UnicodeEscapeSequence
|
||||
\ UnicodeEscapeSequence
|
||||
<ZWNJ> <ZWJ>
|
||||
|
||||
UnicodeIDStart::
|
||||
|
|
|
@ -22,23 +22,23 @@ info: |
|
|||
PropertyName
|
||||
PrivateName
|
||||
|
||||
PrivateName::
|
||||
PrivateName ::
|
||||
# IdentifierName
|
||||
|
||||
IdentifierName::
|
||||
IdentifierName ::
|
||||
IdentifierStart
|
||||
IdentifierName IdentifierPart
|
||||
|
||||
IdentifierStart::
|
||||
IdentifierStart ::
|
||||
UnicodeIDStart
|
||||
$
|
||||
_
|
||||
\UnicodeEscapeSequence
|
||||
\ UnicodeEscapeSequence
|
||||
|
||||
IdentifierPart::
|
||||
UnicodeIDContinue
|
||||
$
|
||||
\UnicodeEscapeSequence
|
||||
\ UnicodeEscapeSequence
|
||||
<ZWNJ> <ZWJ>
|
||||
|
||||
UnicodeIDStart::
|
||||
|
|
|
@ -27,20 +27,20 @@ info: |
|
|||
LiteralPropertyName :
|
||||
IdentifierName
|
||||
|
||||
IdentifierName::
|
||||
IdentifierName ::
|
||||
IdentifierStart
|
||||
IdentifierName IdentifierPart
|
||||
|
||||
IdentifierStart::
|
||||
IdentifierStart ::
|
||||
UnicodeIDStart
|
||||
$
|
||||
_
|
||||
\UnicodeEscapeSequence
|
||||
\ UnicodeEscapeSequence
|
||||
|
||||
IdentifierPart::
|
||||
UnicodeIDContinue
|
||||
$
|
||||
\UnicodeEscapeSequence
|
||||
\ UnicodeEscapeSequence
|
||||
<ZWNJ> <ZWJ>
|
||||
|
||||
UnicodeIDStart::
|
||||
|
|
|
@ -27,20 +27,20 @@ info: |
|
|||
LiteralPropertyName :
|
||||
IdentifierName
|
||||
|
||||
IdentifierName::
|
||||
IdentifierName ::
|
||||
IdentifierStart
|
||||
IdentifierName IdentifierPart
|
||||
|
||||
IdentifierStart::
|
||||
IdentifierStart ::
|
||||
UnicodeIDStart
|
||||
$
|
||||
_
|
||||
\UnicodeEscapeSequence
|
||||
\ UnicodeEscapeSequence
|
||||
|
||||
IdentifierPart::
|
||||
UnicodeIDContinue
|
||||
$
|
||||
\UnicodeEscapeSequence
|
||||
\ UnicodeEscapeSequence
|
||||
<ZWNJ> <ZWJ>
|
||||
|
||||
UnicodeIDStart::
|
||||
|
|
|
@ -22,23 +22,23 @@ info: |
|
|||
PropertyName
|
||||
PrivateName
|
||||
|
||||
PrivateName::
|
||||
PrivateName ::
|
||||
# IdentifierName
|
||||
|
||||
IdentifierName::
|
||||
IdentifierName ::
|
||||
IdentifierStart
|
||||
IdentifierName IdentifierPart
|
||||
|
||||
IdentifierStart::
|
||||
IdentifierStart ::
|
||||
UnicodeIDStart
|
||||
$
|
||||
_
|
||||
\UnicodeEscapeSequence
|
||||
\ UnicodeEscapeSequence
|
||||
|
||||
IdentifierPart::
|
||||
UnicodeIDContinue
|
||||
$
|
||||
\UnicodeEscapeSequence
|
||||
\ UnicodeEscapeSequence
|
||||
<ZWNJ> <ZWJ>
|
||||
|
||||
UnicodeIDStart::
|
||||
|
|
|
@ -22,23 +22,23 @@ info: |
|
|||
PropertyName
|
||||
PrivateName
|
||||
|
||||
PrivateName::
|
||||
PrivateName ::
|
||||
# IdentifierName
|
||||
|
||||
IdentifierName::
|
||||
IdentifierName ::
|
||||
IdentifierStart
|
||||
IdentifierName IdentifierPart
|
||||
|
||||
IdentifierStart::
|
||||
IdentifierStart ::
|
||||
UnicodeIDStart
|
||||
$
|
||||
_
|
||||
\UnicodeEscapeSequence
|
||||
\ UnicodeEscapeSequence
|
||||
|
||||
IdentifierPart::
|
||||
UnicodeIDContinue
|
||||
$
|
||||
\UnicodeEscapeSequence
|
||||
\ UnicodeEscapeSequence
|
||||
<ZWNJ> <ZWJ>
|
||||
|
||||
UnicodeIDStart::
|
||||
|
|
|
@ -22,23 +22,23 @@ info: |
|
|||
PropertyName
|
||||
PrivateName
|
||||
|
||||
PrivateName::
|
||||
PrivateName ::
|
||||
# IdentifierName
|
||||
|
||||
IdentifierName::
|
||||
IdentifierName ::
|
||||
IdentifierStart
|
||||
IdentifierName IdentifierPart
|
||||
|
||||
IdentifierStart::
|
||||
IdentifierStart ::
|
||||
UnicodeIDStart
|
||||
$
|
||||
_
|
||||
\UnicodeEscapeSequence
|
||||
\ UnicodeEscapeSequence
|
||||
|
||||
IdentifierPart::
|
||||
UnicodeIDContinue
|
||||
$
|
||||
\UnicodeEscapeSequence
|
||||
\ UnicodeEscapeSequence
|
||||
<ZWNJ> <ZWJ>
|
||||
|
||||
UnicodeIDStart::
|
||||
|
|
|
@ -22,23 +22,23 @@ info: |
|
|||
PropertyName
|
||||
PrivateName
|
||||
|
||||
PrivateName::
|
||||
PrivateName ::
|
||||
# IdentifierName
|
||||
|
||||
IdentifierName::
|
||||
IdentifierName ::
|
||||
IdentifierStart
|
||||
IdentifierName IdentifierPart
|
||||
|
||||
IdentifierStart::
|
||||
IdentifierStart ::
|
||||
UnicodeIDStart
|
||||
$
|
||||
_
|
||||
\UnicodeEscapeSequence
|
||||
\ UnicodeEscapeSequence
|
||||
|
||||
IdentifierPart::
|
||||
UnicodeIDContinue
|
||||
$
|
||||
\UnicodeEscapeSequence
|
||||
\ UnicodeEscapeSequence
|
||||
<ZWNJ> <ZWJ>
|
||||
|
||||
UnicodeIDStart::
|
||||
|
|
|
@ -0,0 +1,134 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/class-fields/rs-static-async-generator-method-privatename-identifier-alt.case
|
||||
// - src/class-fields/productions/cls-expr-after-same-line-static-async-method.template
|
||||
/*---
|
||||
description: Valid Static AsyncGeneratorMethod PrivateName (field definitions after a static async method in the same line)
|
||||
esid: prod-FieldDefinition
|
||||
features: [class-static-methods-private, class, class-fields-public, async-functions]
|
||||
flags: [generated, async]
|
||||
includes: [propertyHelper.js]
|
||||
info: |
|
||||
|
||||
ClassElement :
|
||||
MethodDefinition
|
||||
static MethodDefinition
|
||||
FieldDefinition ;
|
||||
static FieldDefinition ;
|
||||
;
|
||||
|
||||
MethodDefinition :
|
||||
AsyncGeneratorMethod
|
||||
|
||||
AsyncGeneratorMethod :
|
||||
async [no LineTerminator here] * ClassElementName ( UniqueFormalParameters){ AsyncGeneratorBody }
|
||||
|
||||
ClassElementName :
|
||||
PropertyName
|
||||
PrivateName
|
||||
|
||||
PrivateName ::
|
||||
# IdentifierName
|
||||
|
||||
IdentifierName ::
|
||||
IdentifierStart
|
||||
IdentifierName IdentifierPart
|
||||
|
||||
IdentifierStart ::
|
||||
UnicodeIDStart
|
||||
$
|
||||
_
|
||||
\ UnicodeEscapeSequence
|
||||
|
||||
IdentifierPart::
|
||||
UnicodeIDContinue
|
||||
$
|
||||
\ UnicodeEscapeSequence
|
||||
<ZWNJ> <ZWJ>
|
||||
|
||||
UnicodeIDStart::
|
||||
any Unicode code point with the Unicode property "ID_Start"
|
||||
|
||||
UnicodeIDContinue::
|
||||
any Unicode code point with the Unicode property "ID_Continue"
|
||||
|
||||
|
||||
NOTE 3
|
||||
The sets of code points with Unicode properties "ID_Start" and
|
||||
"ID_Continue" include, respectively, the code points with Unicode
|
||||
properties "Other_ID_Start" and "Other_ID_Continue".
|
||||
|
||||
---*/
|
||||
|
||||
|
||||
var C = class {
|
||||
static async m() { return 42; } static async #$(value) {
|
||||
yield await value;
|
||||
}
|
||||
static async #_(value) {
|
||||
yield await value;
|
||||
}
|
||||
static async #o(value) {
|
||||
yield await value;
|
||||
}
|
||||
static async #℘(value) {
|
||||
yield await value;
|
||||
}
|
||||
static async #ZW__NJ(value) {
|
||||
yield await value;
|
||||
}
|
||||
static async #ZW__J(value) {
|
||||
yield await value;
|
||||
};
|
||||
static async $(value) {
|
||||
yield * await this.#$(value);
|
||||
}
|
||||
static async _(value) {
|
||||
yield * await this.#_(value);
|
||||
}
|
||||
static async o(value) {
|
||||
yield * await this.#o(value);
|
||||
}
|
||||
static async ℘(value) { // DO NOT CHANGE THE NAME OF THIS FIELD
|
||||
yield * await this.#℘(value);
|
||||
}
|
||||
static async ZW__NJ(value) { // DO NOT CHANGE THE NAME OF THIS FIELD
|
||||
yield * await this.#ZW__NJ(value);
|
||||
}
|
||||
static async ZW__J(value) { // DO NOT CHANGE THE NAME OF THIS FIELD
|
||||
yield * await this.#ZW__J(value);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
var c = new C();
|
||||
|
||||
assert.sameValue(Object.hasOwnProperty.call(c, "m"), false);
|
||||
assert.sameValue(Object.hasOwnProperty.call(C.prototype, "m"), false);
|
||||
|
||||
verifyProperty(C, "m", {
|
||||
enumerable: false,
|
||||
configurable: true,
|
||||
writable: true,
|
||||
}, {restore: true});
|
||||
|
||||
Promise.all([
|
||||
C.$(1).next(),
|
||||
C._(1).next(),
|
||||
C.o(1).next(),
|
||||
C.℘(1).next(), // DO NOT CHANGE THE NAME OF THIS FIELD
|
||||
C.ZW__NJ(1).next(), // DO NOT CHANGE THE NAME OF THIS FIELD
|
||||
C.ZW__J(1).next(), // DO NOT CHANGE THE NAME OF THIS FIELD
|
||||
]).then(results => {
|
||||
|
||||
assert.sameValue(results[0].value, 1);
|
||||
assert.sameValue(results[1].value, 1);
|
||||
assert.sameValue(results[2].value, 1);
|
||||
assert.sameValue(results[3].value, 1);
|
||||
assert.sameValue(results[4].value, 1);
|
||||
assert.sameValue(results[5].value, 1);
|
||||
|
||||
}, $DONE).then($DONE, $DONE);
|
||||
|
||||
C.m().then(function(v) {
|
||||
assert.sameValue(v, 42);
|
||||
}, $DONE).then($DONE, $DONE);
|
|
@ -0,0 +1,135 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/class-fields/rs-static-async-generator-method-privatename-identifier.case
|
||||
// - src/class-fields/productions/cls-expr-after-same-line-static-async-method.template
|
||||
/*---
|
||||
description: Valid Static AsyncGeneratorMethod PrivateName (field definitions after a static async method in the same line)
|
||||
esid: prod-FieldDefinition
|
||||
features: [class-static-methods-private, class, class-fields-public, async-functions]
|
||||
flags: [generated, async]
|
||||
includes: [propertyHelper.js]
|
||||
info: |
|
||||
|
||||
ClassElement :
|
||||
MethodDefinition
|
||||
static MethodDefinition
|
||||
FieldDefinition ;
|
||||
static FieldDefinition ;
|
||||
;
|
||||
|
||||
MethodDefinition :
|
||||
AsyncGeneratorMethod
|
||||
|
||||
AsyncGeneratorMethod :
|
||||
async [no LineTerminator here] * ClassElementName ( UniqueFormalParameters){ AsyncGeneratorBody }
|
||||
|
||||
ClassElementName :
|
||||
PropertyName
|
||||
PrivateName
|
||||
|
||||
PrivateName ::
|
||||
# IdentifierName
|
||||
|
||||
IdentifierName ::
|
||||
IdentifierStart
|
||||
IdentifierName IdentifierPart
|
||||
|
||||
IdentifierStart ::
|
||||
UnicodeIDStart
|
||||
$
|
||||
_
|
||||
\ UnicodeEscapeSequence
|
||||
|
||||
IdentifierPart::
|
||||
UnicodeIDContinue
|
||||
$
|
||||
\ UnicodeEscapeSequence
|
||||
<ZWNJ> <ZWJ>
|
||||
|
||||
UnicodeIDStart::
|
||||
any Unicode code point with the Unicode property "ID_Start"
|
||||
|
||||
UnicodeIDContinue::
|
||||
any Unicode code point with the Unicode property "ID_Continue"
|
||||
|
||||
|
||||
NOTE 3
|
||||
The sets of code points with Unicode properties "ID_Start" and
|
||||
"ID_Continue" include, respectively, the code points with Unicode
|
||||
properties "Other_ID_Start" and "Other_ID_Continue".
|
||||
|
||||
---*/
|
||||
|
||||
|
||||
var C = class {
|
||||
static async m() { return 42; } static async * #$(value) {
|
||||
yield await value;
|
||||
}
|
||||
static async * #_(value) {
|
||||
yield await value;
|
||||
}
|
||||
static async * #\u{6F}(value) {
|
||||
yield await value;
|
||||
}
|
||||
static async * #\u2118(value) {
|
||||
yield await value;
|
||||
}
|
||||
static async * #ZW_\u200C_NJ(value) {
|
||||
yield await value;
|
||||
}
|
||||
static async * #ZW_\u200D_J(value) {
|
||||
yield await value;
|
||||
};
|
||||
static async * $(value) {
|
||||
yield * await this.#$(value);
|
||||
}
|
||||
static async * _(value) {
|
||||
yield * await this.#_(value);
|
||||
}
|
||||
static async * \u{6F}(value) {
|
||||
yield * await this.#\u{6F}(value);
|
||||
}
|
||||
static async * \u2118(value) {
|
||||
yield * await this.#\u2118(value);
|
||||
}
|
||||
static async * ZW_\u200C_NJ(value) {
|
||||
yield * await this.#ZW_\u200C_NJ(value);
|
||||
}
|
||||
static async * ZW_\u200D_J(value) {
|
||||
yield * await this.#ZW_\u200D_J(value);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
var c = new C();
|
||||
|
||||
assert.sameValue(Object.hasOwnProperty.call(c, "m"), false);
|
||||
assert.sameValue(Object.hasOwnProperty.call(C.prototype, "m"), false);
|
||||
|
||||
verifyProperty(C, "m", {
|
||||
enumerable: false,
|
||||
configurable: true,
|
||||
writable: true,
|
||||
}, {restore: true});
|
||||
|
||||
Promise.all([
|
||||
C.$(1).next(),
|
||||
C._(1).next(),
|
||||
C.\u{6F}(1).next(),
|
||||
C.\u2118(1).next(),
|
||||
C.ZW_\u200C_NJ(1).next(),
|
||||
C.ZW_\u200D_J(1).next(),
|
||||
]).then(results => {
|
||||
|
||||
assert.sameValue(results[0].value, 1);
|
||||
assert.sameValue(results[1].value, 1);
|
||||
assert.sameValue(results[2].value, 1);
|
||||
assert.sameValue(results[3].value, 1);
|
||||
assert.sameValue(results[4].value, 1);
|
||||
assert.sameValue(results[5].value, 1);
|
||||
|
||||
}, $DONE).then($DONE, $DONE);
|
||||
|
||||
|
||||
C.m().then(function(v) {
|
||||
assert.sameValue(v, 42);
|
||||
}, $DONE).then($DONE, $DONE);
|
|
@ -0,0 +1,134 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/class-fields/rs-static-async-method-privatename-identifier-alt.case
|
||||
// - src/class-fields/productions/cls-expr-after-same-line-static-async-method.template
|
||||
/*---
|
||||
description: Valid Static AsyncMethod PrivateName (field definitions after a static async method in the same line)
|
||||
esid: prod-FieldDefinition
|
||||
features: [class-static-methods-private, class, class-fields-public, async-functions]
|
||||
flags: [generated, async]
|
||||
includes: [propertyHelper.js]
|
||||
info: |
|
||||
|
||||
ClassElement :
|
||||
MethodDefinition
|
||||
static MethodDefinition
|
||||
FieldDefinition ;
|
||||
static FieldDefinition ;
|
||||
;
|
||||
|
||||
MethodDefinition :
|
||||
AsyncMethod
|
||||
|
||||
AsyncMethod :
|
||||
async [no LineTerminator here] ClassElementName ( UniqueFormalParameters ){ AsyncFunctionBody }
|
||||
|
||||
ClassElementName :
|
||||
PropertyName
|
||||
PrivateName
|
||||
|
||||
PrivateName ::
|
||||
# IdentifierName
|
||||
|
||||
IdentifierName ::
|
||||
IdentifierStart
|
||||
IdentifierName IdentifierPart
|
||||
|
||||
IdentifierStart ::
|
||||
UnicodeIDStart
|
||||
$
|
||||
_
|
||||
\ UnicodeEscapeSequence
|
||||
|
||||
IdentifierPart::
|
||||
UnicodeIDContinue
|
||||
$
|
||||
\ UnicodeEscapeSequence
|
||||
<ZWNJ> <ZWJ>
|
||||
|
||||
UnicodeIDStart::
|
||||
any Unicode code point with the Unicode property "ID_Start"
|
||||
|
||||
UnicodeIDContinue::
|
||||
any Unicode code point with the Unicode property "ID_Continue"
|
||||
|
||||
|
||||
NOTE 3
|
||||
The sets of code points with Unicode properties "ID_Start" and
|
||||
"ID_Continue" include, respectively, the code points with Unicode
|
||||
properties "Other_ID_Start" and "Other_ID_Continue".
|
||||
|
||||
---*/
|
||||
|
||||
|
||||
var C = class {
|
||||
static async m() { return 42; } static async #$(value) {
|
||||
return await value;
|
||||
}
|
||||
static async #_(value) {
|
||||
return await value;
|
||||
}
|
||||
static async #o(value) {
|
||||
return await value;
|
||||
}
|
||||
static async #℘(value) {
|
||||
return await value;
|
||||
}
|
||||
static async #ZW__NJ(value) {
|
||||
return await value;
|
||||
}
|
||||
static async #ZW__J(value) {
|
||||
return await value;
|
||||
};
|
||||
static async $(value) {
|
||||
return await this.#$(value);
|
||||
}
|
||||
static async _(value) {
|
||||
return await this.#_(value);
|
||||
}
|
||||
static async o(value) {
|
||||
return await this.#o(value);
|
||||
}
|
||||
static async ℘(value) { // DO NOT CHANGE THE NAME OF THIS FIELD
|
||||
return await this.#℘(value);
|
||||
}
|
||||
static async ZW__NJ(value) { // DO NOT CHANGE THE NAME OF THIS FIELD
|
||||
return await this.#ZW__NJ(value);
|
||||
}
|
||||
static async ZW__J(value) { // DO NOT CHANGE THE NAME OF THIS FIELD
|
||||
return await this.#ZW__J(value);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
var c = new C();
|
||||
|
||||
assert.sameValue(Object.hasOwnProperty.call(c, "m"), false);
|
||||
assert.sameValue(Object.hasOwnProperty.call(C.prototype, "m"), false);
|
||||
|
||||
verifyProperty(C, "m", {
|
||||
enumerable: false,
|
||||
configurable: true,
|
||||
writable: true,
|
||||
}, {restore: true});
|
||||
|
||||
Promise.all([
|
||||
C.$(1),
|
||||
C._(1),
|
||||
C.o(1),
|
||||
C.℘(1), // DO NOT CHANGE THE NAME OF THIS FIELD
|
||||
C.ZW__NJ(1), // DO NOT CHANGE THE NAME OF THIS FIELD
|
||||
C.ZW__J(1), // DO NOT CHANGE THE NAME OF THIS FIELD
|
||||
]).then(results => {
|
||||
|
||||
assert.sameValue(results[0], 1);
|
||||
assert.sameValue(results[1], 1);
|
||||
assert.sameValue(results[2], 1);
|
||||
assert.sameValue(results[3], 1);
|
||||
assert.sameValue(results[4], 1);
|
||||
assert.sameValue(results[5], 1);
|
||||
|
||||
}, $DONE).then($DONE, $DONE);
|
||||
|
||||
C.m().then(function(v) {
|
||||
assert.sameValue(v, 42);
|
||||
}, $DONE).then($DONE, $DONE);
|
|
@ -0,0 +1,135 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/class-fields/rs-static-async-method-privatename-identifier.case
|
||||
// - src/class-fields/productions/cls-expr-after-same-line-static-async-method.template
|
||||
/*---
|
||||
description: Valid Static AsyncMethod PrivateName (field definitions after a static async method in the same line)
|
||||
esid: prod-FieldDefinition
|
||||
features: [class-static-methods-private, class, class-fields-public, async-functions]
|
||||
flags: [generated, async]
|
||||
includes: [propertyHelper.js]
|
||||
info: |
|
||||
|
||||
ClassElement :
|
||||
MethodDefinition
|
||||
static MethodDefinition
|
||||
FieldDefinition ;
|
||||
static FieldDefinition ;
|
||||
;
|
||||
|
||||
MethodDefinition :
|
||||
AsyncMethod
|
||||
|
||||
AsyncMethod :
|
||||
async [no LineTerminator here] ClassElementName ( UniqueFormalParameters ){ AsyncFunctionBody }
|
||||
|
||||
ClassElementName :
|
||||
PropertyName
|
||||
PrivateName
|
||||
|
||||
PrivateName ::
|
||||
# IdentifierName
|
||||
|
||||
IdentifierName ::
|
||||
IdentifierStart
|
||||
IdentifierName IdentifierPart
|
||||
|
||||
IdentifierStart ::
|
||||
UnicodeIDStart
|
||||
$
|
||||
_
|
||||
\ UnicodeEscapeSequence
|
||||
|
||||
IdentifierPart::
|
||||
UnicodeIDContinue
|
||||
$
|
||||
\ UnicodeEscapeSequence
|
||||
<ZWNJ> <ZWJ>
|
||||
|
||||
UnicodeIDStart::
|
||||
any Unicode code point with the Unicode property "ID_Start"
|
||||
|
||||
UnicodeIDContinue::
|
||||
any Unicode code point with the Unicode property "ID_Continue"
|
||||
|
||||
|
||||
NOTE 3
|
||||
The sets of code points with Unicode properties "ID_Start" and
|
||||
"ID_Continue" include, respectively, the code points with Unicode
|
||||
properties "Other_ID_Start" and "Other_ID_Continue".
|
||||
|
||||
---*/
|
||||
|
||||
|
||||
var C = class {
|
||||
static async m() { return 42; } static async #$(value) {
|
||||
return await value;
|
||||
}
|
||||
static async #_(value) {
|
||||
return await value;
|
||||
}
|
||||
static async #\u{6F}(value) {
|
||||
return await value;
|
||||
}
|
||||
static async #\u2118(value) {
|
||||
return await value;
|
||||
}
|
||||
static async #ZW_\u200C_NJ(value) {
|
||||
return await value;
|
||||
}
|
||||
static async #ZW_\u200D_J(value) {
|
||||
return await value;
|
||||
};
|
||||
static async $(value) {
|
||||
return await this.#$(value);
|
||||
}
|
||||
static async _(value) {
|
||||
return await this.#_(value);
|
||||
}
|
||||
static async \u{6F}(value) {
|
||||
return await this.#\u{6F}(value);
|
||||
}
|
||||
static async \u2118(value) {
|
||||
return await this.#\u2118(value);
|
||||
}
|
||||
static async ZW_\u200C_NJ(value) {
|
||||
return await this.#ZW_\u200C_NJ(value);
|
||||
}
|
||||
static async ZW_\u200D_J(value) {
|
||||
return await this.#ZW_\u200D_J(value);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
var c = new C();
|
||||
|
||||
assert.sameValue(Object.hasOwnProperty.call(c, "m"), false);
|
||||
assert.sameValue(Object.hasOwnProperty.call(C.prototype, "m"), false);
|
||||
|
||||
verifyProperty(C, "m", {
|
||||
enumerable: false,
|
||||
configurable: true,
|
||||
writable: true,
|
||||
}, {restore: true});
|
||||
|
||||
Promise.all([
|
||||
C.$(1),
|
||||
C._(1),
|
||||
C.\u{6F}(1),
|
||||
C.\u2118(1),
|
||||
C.ZW_\u200C_NJ(1),
|
||||
C.ZW_\u200D_J(1),
|
||||
]).then(results => {
|
||||
|
||||
assert.sameValue(results[0], 1);
|
||||
assert.sameValue(results[1], 1);
|
||||
assert.sameValue(results[2], 1);
|
||||
assert.sameValue(results[3], 1);
|
||||
assert.sameValue(results[4], 1);
|
||||
assert.sameValue(results[5], 1);
|
||||
|
||||
}, $DONE).then($DONE, $DONE);
|
||||
|
||||
|
||||
C.m().then(function(v) {
|
||||
assert.sameValue(v, 42);
|
||||
}, $DONE).then($DONE, $DONE);
|
|
@ -0,0 +1,123 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/class-fields/rs-static-generator-method-privatename-identifier-alt.case
|
||||
// - src/class-fields/productions/cls-expr-after-same-line-static-async-method.template
|
||||
/*---
|
||||
description: Valid Static GeneratorMethod PrivateName (field definitions after a static async method in the same line)
|
||||
esid: prod-FieldDefinition
|
||||
features: [class-static-methods-private, class, class-fields-public, async-functions]
|
||||
flags: [generated, async]
|
||||
includes: [propertyHelper.js]
|
||||
info: |
|
||||
|
||||
ClassElement :
|
||||
MethodDefinition
|
||||
static MethodDefinition
|
||||
FieldDefinition ;
|
||||
static FieldDefinition ;
|
||||
;
|
||||
|
||||
MethodDefinition :
|
||||
GeneratorMethod
|
||||
|
||||
GeneratorMethod :
|
||||
* ClassElementName ( UniqueFormalParameters ){ GeneratorBody }
|
||||
|
||||
ClassElementName :
|
||||
PropertyName
|
||||
PrivateName
|
||||
|
||||
PrivateName ::
|
||||
# IdentifierName
|
||||
|
||||
IdentifierName ::
|
||||
IdentifierStart
|
||||
IdentifierName IdentifierPart
|
||||
|
||||
IdentifierStart ::
|
||||
UnicodeIDStart
|
||||
$
|
||||
_
|
||||
\ UnicodeEscapeSequence
|
||||
|
||||
IdentifierPart::
|
||||
UnicodeIDContinue
|
||||
$
|
||||
\ UnicodeEscapeSequence
|
||||
<ZWNJ> <ZWJ>
|
||||
|
||||
UnicodeIDStart::
|
||||
any Unicode code point with the Unicode property "ID_Start"
|
||||
|
||||
UnicodeIDContinue::
|
||||
any Unicode code point with the Unicode property "ID_Continue"
|
||||
|
||||
|
||||
NOTE 3
|
||||
The sets of code points with Unicode properties "ID_Start" and
|
||||
"ID_Continue" include, respectively, the code points with Unicode
|
||||
properties "Other_ID_Start" and "Other_ID_Continue".
|
||||
|
||||
---*/
|
||||
|
||||
|
||||
var C = class {
|
||||
static async m() { return 42; } static * #$(value) {
|
||||
yield value;
|
||||
}
|
||||
static * #_(value) {
|
||||
yield value;
|
||||
}
|
||||
static * #o(value) {
|
||||
yield value;
|
||||
}
|
||||
static * #℘(value) {
|
||||
yield value;
|
||||
}
|
||||
static * #ZW__NJ(value) {
|
||||
yield value;
|
||||
}
|
||||
static * #ZW__J(value) {
|
||||
yield value;
|
||||
};
|
||||
static * $(value) {
|
||||
yield this.#$(value);
|
||||
}
|
||||
static * _(value) {
|
||||
yield this.#_(value);
|
||||
}
|
||||
static * o(value) {
|
||||
yield this.#o(value);
|
||||
}
|
||||
static * ℘(value) { // DO NOT CHANGE THE NAME OF THIS FIELD
|
||||
yield this.#℘(value);
|
||||
}
|
||||
static * ZW__NJ(value) { // DO NOT CHANGE THE NAME OF THIS FIELD
|
||||
yield this.#ZW__NJ(value);
|
||||
}
|
||||
static * ZW__J(value) { // DO NOT CHANGE THE NAME OF THIS FIELD
|
||||
yield this.#ZW__J(value);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
var c = new C();
|
||||
|
||||
assert.sameValue(Object.hasOwnProperty.call(c, "m"), false);
|
||||
assert.sameValue(Object.hasOwnProperty.call(C.prototype, "m"), false);
|
||||
|
||||
verifyProperty(C, "m", {
|
||||
enumerable: false,
|
||||
configurable: true,
|
||||
writable: true,
|
||||
}, {restore: true});
|
||||
|
||||
assert.sameValue(C.$(1).next().value, 1);
|
||||
assert.sameValue(C._(1).next().value, 1);
|
||||
assert.sameValue(C.o(1).next().value, 1);
|
||||
assert.sameValue(C.℘(1).next().value, 1);
|
||||
assert.sameValue(C.ZW__NJ(1).next().value, 1);
|
||||
assert.sameValue(C.ZW__J(1).next().value, 1);
|
||||
|
||||
C.m().then(function(v) {
|
||||
assert.sameValue(v, 42);
|
||||
}, $DONE).then($DONE, $DONE);
|
|
@ -0,0 +1,124 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/class-fields/rs-static-generator-method-privatename-identifier.case
|
||||
// - src/class-fields/productions/cls-expr-after-same-line-static-async-method.template
|
||||
/*---
|
||||
description: Valid Static GeneratorMethod PrivateName (field definitions after a static async method in the same line)
|
||||
esid: prod-FieldDefinition
|
||||
features: [class-static-methods-private, class, class-fields-public, async-functions]
|
||||
flags: [generated, async]
|
||||
includes: [propertyHelper.js]
|
||||
info: |
|
||||
|
||||
ClassElement :
|
||||
MethodDefinition
|
||||
static MethodDefinition
|
||||
FieldDefinition ;
|
||||
static FieldDefinition ;
|
||||
;
|
||||
|
||||
MethodDefinition :
|
||||
GeneratorMethod
|
||||
|
||||
GeneratorMethod :
|
||||
* ClassElementName ( UniqueFormalParameters ){ GeneratorBody }
|
||||
|
||||
ClassElementName :
|
||||
PropertyName
|
||||
PrivateName
|
||||
|
||||
PrivateName ::
|
||||
# IdentifierName
|
||||
|
||||
IdentifierName ::
|
||||
IdentifierStart
|
||||
IdentifierName IdentifierPart
|
||||
|
||||
IdentifierStart ::
|
||||
UnicodeIDStart
|
||||
$
|
||||
_
|
||||
\ UnicodeEscapeSequence
|
||||
|
||||
IdentifierPart::
|
||||
UnicodeIDContinue
|
||||
$
|
||||
\ UnicodeEscapeSequence
|
||||
<ZWNJ> <ZWJ>
|
||||
|
||||
UnicodeIDStart::
|
||||
any Unicode code point with the Unicode property "ID_Start"
|
||||
|
||||
UnicodeIDContinue::
|
||||
any Unicode code point with the Unicode property "ID_Continue"
|
||||
|
||||
|
||||
NOTE 3
|
||||
The sets of code points with Unicode properties "ID_Start" and
|
||||
"ID_Continue" include, respectively, the code points with Unicode
|
||||
properties "Other_ID_Start" and "Other_ID_Continue".
|
||||
|
||||
---*/
|
||||
|
||||
|
||||
var C = class {
|
||||
static async m() { return 42; } static * #$(value) {
|
||||
yield value;
|
||||
}
|
||||
static * #_(value) {
|
||||
yield value;
|
||||
}
|
||||
static * #\u{6F}(value) {
|
||||
yield value;
|
||||
}
|
||||
static * #\u2118(value) {
|
||||
yield value;
|
||||
}
|
||||
static * #ZW_\u200C_NJ(value) {
|
||||
yield value;
|
||||
}
|
||||
static * #ZW_\u200D_J(value) {
|
||||
yield value;
|
||||
};
|
||||
static * $(value) {
|
||||
yield this.#$(value);
|
||||
}
|
||||
static * _(value) {
|
||||
yield this.#_(value);
|
||||
}
|
||||
static * \u{6F}(value) {
|
||||
yield this.#\u{6F}(value);
|
||||
}
|
||||
static * \u2118(value) {
|
||||
yield this.#\u2118(value);
|
||||
}
|
||||
static * ZW_\u200C_NJ(value) {
|
||||
yield this.#ZW_\u200C_NJ(value);
|
||||
}
|
||||
static * ZW_\u200D_J(value) {
|
||||
yield this.#ZW_\u200D_J(value);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
var c = new C();
|
||||
|
||||
assert.sameValue(Object.hasOwnProperty.call(c, "m"), false);
|
||||
assert.sameValue(Object.hasOwnProperty.call(C.prototype, "m"), false);
|
||||
|
||||
verifyProperty(C, "m", {
|
||||
enumerable: false,
|
||||
configurable: true,
|
||||
writable: true,
|
||||
}, {restore: true});
|
||||
|
||||
assert.sameValue(C.$(1).next().value, 1);
|
||||
assert.sameValue(C._(1).next().value, 1);
|
||||
assert.sameValue(C.\u{6F}(1).next().value, 1);
|
||||
assert.sameValue(C.\u2118(1).next().value, 1);
|
||||
assert.sameValue(C.ZW_\u200C_NJ(1).next().value, 1);
|
||||
assert.sameValue(C.ZW_\u200D_J(1).next().value, 1);
|
||||
|
||||
|
||||
C.m().then(function(v) {
|
||||
assert.sameValue(v, 42);
|
||||
}, $DONE).then($DONE, $DONE);
|
|
@ -4,7 +4,7 @@
|
|||
/*---
|
||||
description: Valid Static Method PrivateName (field definitions after a static async method in the same line)
|
||||
esid: prod-FieldDefinition
|
||||
features: [class-static-fields-private, class, class-fields-public, async-functions]
|
||||
features: [class-static-methods-private, class, class-fields-public, async-functions]
|
||||
flags: [generated, async]
|
||||
includes: [propertyHelper.js]
|
||||
info: |
|
||||
|
@ -16,30 +16,30 @@ info: |
|
|||
static FieldDefinition ;
|
||||
;
|
||||
|
||||
FieldDefinition :
|
||||
ClassElementName Initializer _opt
|
||||
MethodDefinition :
|
||||
ClassElementName ( UniqueFormalParameters ){ FunctionBody }
|
||||
|
||||
ClassElementName :
|
||||
PropertyName
|
||||
PrivateName
|
||||
|
||||
PrivateName::
|
||||
PrivateName ::
|
||||
# IdentifierName
|
||||
|
||||
IdentifierName::
|
||||
IdentifierName ::
|
||||
IdentifierStart
|
||||
IdentifierName IdentifierPart
|
||||
|
||||
IdentifierStart::
|
||||
IdentifierStart ::
|
||||
UnicodeIDStart
|
||||
$
|
||||
_
|
||||
\UnicodeEscapeSequence
|
||||
\ UnicodeEscapeSequence
|
||||
|
||||
IdentifierPart::
|
||||
UnicodeIDContinue
|
||||
$
|
||||
\UnicodeEscapeSequence
|
||||
\ UnicodeEscapeSequence
|
||||
<ZWNJ> <ZWJ>
|
||||
|
||||
UnicodeIDStart::
|
||||
|
@ -59,27 +59,21 @@ info: |
|
|||
|
||||
var C = class {
|
||||
static async m() { return 42; } static #$(value) {
|
||||
this.$ = value;
|
||||
return value;
|
||||
}
|
||||
static #_(value) {
|
||||
this.#stored = value;
|
||||
return value;
|
||||
}
|
||||
static #o(value) {
|
||||
this.#stored = value;
|
||||
return value;
|
||||
}
|
||||
static #℘(value) {
|
||||
this.#stored = value;
|
||||
return value;
|
||||
}
|
||||
static #ZW__NJ(value) {
|
||||
this.#stored = value;
|
||||
return value;
|
||||
}
|
||||
static #ZW__J(value) {
|
||||
this.#stored = value;
|
||||
return value;
|
||||
};
|
||||
static $(value) {
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
/*---
|
||||
description: Valid Static Method PrivateName (field definitions after a static async method in the same line)
|
||||
esid: prod-FieldDefinition
|
||||
features: [class-static-fields-private, class, class-fields-public, async-functions]
|
||||
features: [class-static-methods-private, class, class-fields-public, async-functions]
|
||||
flags: [generated, async]
|
||||
includes: [propertyHelper.js]
|
||||
info: |
|
||||
|
@ -16,30 +16,30 @@ info: |
|
|||
static FieldDefinition ;
|
||||
;
|
||||
|
||||
FieldDefinition :
|
||||
ClassElementName Initializer _opt
|
||||
MethodDefinition :
|
||||
ClassElementName ( UniqueFormalParameters ){ FunctionBody }
|
||||
|
||||
ClassElementName :
|
||||
PropertyName
|
||||
PrivateName
|
||||
|
||||
PrivateName::
|
||||
PrivateName ::
|
||||
# IdentifierName
|
||||
|
||||
IdentifierName::
|
||||
IdentifierName ::
|
||||
IdentifierStart
|
||||
IdentifierName IdentifierPart
|
||||
|
||||
IdentifierStart::
|
||||
IdentifierStart ::
|
||||
UnicodeIDStart
|
||||
$
|
||||
_
|
||||
\UnicodeEscapeSequence
|
||||
\ UnicodeEscapeSequence
|
||||
|
||||
IdentifierPart::
|
||||
UnicodeIDContinue
|
||||
$
|
||||
\UnicodeEscapeSequence
|
||||
\ UnicodeEscapeSequence
|
||||
<ZWNJ> <ZWJ>
|
||||
|
||||
UnicodeIDStart::
|
||||
|
|
|
@ -0,0 +1,109 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/class-fields/rs-static-privatename-identifier-alt-by-classname.case
|
||||
// - src/class-fields/productions/cls-expr-after-same-line-static-async-method.template
|
||||
/*---
|
||||
description: Valid Static PrivateName (field definitions after a static async method in the same line)
|
||||
esid: prod-FieldDefinition
|
||||
features: [class-static-fields-private, class, class-fields-public, async-functions]
|
||||
flags: [generated, async]
|
||||
includes: [propertyHelper.js]
|
||||
info: |
|
||||
|
||||
ClassElement :
|
||||
MethodDefinition
|
||||
static MethodDefinition
|
||||
FieldDefinition ;
|
||||
static FieldDefinition ;
|
||||
;
|
||||
|
||||
FieldDefinition :
|
||||
ClassElementName Initializer _opt
|
||||
|
||||
ClassElementName :
|
||||
PropertyName
|
||||
PrivateName
|
||||
|
||||
PrivateName ::
|
||||
# IdentifierName
|
||||
|
||||
IdentifierName ::
|
||||
IdentifierStart
|
||||
IdentifierName IdentifierPart
|
||||
|
||||
IdentifierStart ::
|
||||
UnicodeIDStart
|
||||
$
|
||||
_
|
||||
\ UnicodeEscapeSequence
|
||||
|
||||
IdentifierPart::
|
||||
UnicodeIDContinue
|
||||
$
|
||||
\ UnicodeEscapeSequence
|
||||
<ZWNJ> <ZWJ>
|
||||
|
||||
UnicodeIDStart::
|
||||
any Unicode code point with the Unicode property "ID_Start"
|
||||
|
||||
UnicodeIDContinue::
|
||||
any Unicode code point with the Unicode property "ID_Continue"
|
||||
|
||||
|
||||
NOTE 3
|
||||
The sets of code points with Unicode properties "ID_Start" and
|
||||
"ID_Continue" include, respectively, the code points with Unicode
|
||||
properties "Other_ID_Start" and "Other_ID_Continue".
|
||||
|
||||
---*/
|
||||
|
||||
|
||||
var C = class {
|
||||
static async m() { return 42; } static #$; static #_; static #\u{6F}; static #℘; static #ZW__NJ; static #ZW__J;
|
||||
static $(value) {
|
||||
C.#$ = value;
|
||||
return C.#$;
|
||||
}
|
||||
static _(value) {
|
||||
C.#_ = value;
|
||||
return C.#_;
|
||||
}
|
||||
static o(value) {
|
||||
C.#\u{6F} = value;
|
||||
return C.#\u{6F};
|
||||
}
|
||||
static ℘(value) { // DO NOT CHANGE THE NAME OF THIS FIELD
|
||||
C.#℘ = value;
|
||||
return C.#℘;
|
||||
}
|
||||
static ZW__NJ(value) { // DO NOT CHANGE THE NAME OF THIS FIELD
|
||||
C.#ZW__NJ = value;
|
||||
return C.#ZW__NJ;
|
||||
}
|
||||
static ZW__J(value) { // DO NOT CHANGE THE NAME OF THIS FIELD
|
||||
C.#ZW__J = value;
|
||||
return C.#ZW__J;
|
||||
}
|
||||
}
|
||||
|
||||
var c = new C();
|
||||
|
||||
assert.sameValue(Object.hasOwnProperty.call(c, "m"), false);
|
||||
assert.sameValue(Object.hasOwnProperty.call(C.prototype, "m"), false);
|
||||
|
||||
verifyProperty(C, "m", {
|
||||
enumerable: false,
|
||||
configurable: true,
|
||||
writable: true,
|
||||
}, {restore: true});
|
||||
|
||||
assert.sameValue(C.$(1), 1);
|
||||
assert.sameValue(C._(1), 1);
|
||||
assert.sameValue(C.o(1), 1);
|
||||
assert.sameValue(C.℘(1), 1); // DO NOT CHANGE THE NAME OF THIS FIELD
|
||||
assert.sameValue(C.ZW__NJ(1), 1); // DO NOT CHANGE THE NAME OF THIS FIELD
|
||||
assert.sameValue(C.ZW__J(1), 1); // DO NOT CHANGE THE NAME OF THIS FIELD
|
||||
|
||||
|
||||
C.m().then(function(v) {
|
||||
assert.sameValue(v, 42);
|
||||
}, $DONE).then($DONE, $DONE);
|
|
@ -23,23 +23,23 @@ info: |
|
|||
PropertyName
|
||||
PrivateName
|
||||
|
||||
PrivateName::
|
||||
PrivateName ::
|
||||
# IdentifierName
|
||||
|
||||
IdentifierName::
|
||||
IdentifierName ::
|
||||
IdentifierStart
|
||||
IdentifierName IdentifierPart
|
||||
|
||||
IdentifierStart::
|
||||
IdentifierStart ::
|
||||
UnicodeIDStart
|
||||
$
|
||||
_
|
||||
\UnicodeEscapeSequence
|
||||
\ UnicodeEscapeSequence
|
||||
|
||||
IdentifierPart::
|
||||
UnicodeIDContinue
|
||||
$
|
||||
\UnicodeEscapeSequence
|
||||
\ UnicodeEscapeSequence
|
||||
<ZWNJ> <ZWJ>
|
||||
|
||||
UnicodeIDStart::
|
||||
|
|
|
@ -0,0 +1,109 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/class-fields/rs-static-privatename-identifier-by-classname.case
|
||||
// - src/class-fields/productions/cls-expr-after-same-line-static-async-method.template
|
||||
/*---
|
||||
description: Valid Static PrivateName (field definitions after a static async method in the same line)
|
||||
esid: prod-FieldDefinition
|
||||
features: [class-static-fields-private, class, class-fields-public, async-functions]
|
||||
flags: [generated, async]
|
||||
includes: [propertyHelper.js]
|
||||
info: |
|
||||
|
||||
ClassElement :
|
||||
MethodDefinition
|
||||
static MethodDefinition
|
||||
FieldDefinition ;
|
||||
static FieldDefinition ;
|
||||
;
|
||||
|
||||
FieldDefinition :
|
||||
ClassElementName Initializer _opt
|
||||
|
||||
ClassElementName :
|
||||
PropertyName
|
||||
PrivateName
|
||||
|
||||
PrivateName ::
|
||||
# IdentifierName
|
||||
|
||||
IdentifierName ::
|
||||
IdentifierStart
|
||||
IdentifierName IdentifierPart
|
||||
|
||||
IdentifierStart ::
|
||||
UnicodeIDStart
|
||||
$
|
||||
_
|
||||
\ UnicodeEscapeSequence
|
||||
|
||||
IdentifierPart::
|
||||
UnicodeIDContinue
|
||||
$
|
||||
\ UnicodeEscapeSequence
|
||||
<ZWNJ> <ZWJ>
|
||||
|
||||
UnicodeIDStart::
|
||||
any Unicode code point with the Unicode property "ID_Start"
|
||||
|
||||
UnicodeIDContinue::
|
||||
any Unicode code point with the Unicode property "ID_Continue"
|
||||
|
||||
|
||||
NOTE 3
|
||||
The sets of code points with Unicode properties "ID_Start" and
|
||||
"ID_Continue" include, respectively, the code points with Unicode
|
||||
properties "Other_ID_Start" and "Other_ID_Continue".
|
||||
|
||||
---*/
|
||||
|
||||
|
||||
var C = class {
|
||||
static async m() { return 42; } static #$; static #_; static #\u{6F}; static #\u2118; static #ZW_\u200C_NJ; static #ZW_\u200D_J;
|
||||
static $(value) {
|
||||
C.#$ = value;
|
||||
return C.#$;
|
||||
}
|
||||
static _(value) {
|
||||
C.#_ = value;
|
||||
return C.#_;
|
||||
}
|
||||
static \u{6F}(value) {
|
||||
C.#\u{6F} = value;
|
||||
return C.#\u{6F};
|
||||
}
|
||||
static \u2118(value) {
|
||||
C.#\u2118 = value;
|
||||
return C.#\u2118;
|
||||
}
|
||||
static ZW_\u200C_NJ(value) {
|
||||
C.#ZW_\u200C_NJ = value;
|
||||
return C.#ZW_\u200C_NJ;
|
||||
}
|
||||
static ZW_\u200D_J(value) {
|
||||
C.#ZW_\u200D_J = value;
|
||||
return C.#ZW_\u200D_J;
|
||||
}
|
||||
}
|
||||
|
||||
var c = new C();
|
||||
|
||||
assert.sameValue(Object.hasOwnProperty.call(c, "m"), false);
|
||||
assert.sameValue(Object.hasOwnProperty.call(C.prototype, "m"), false);
|
||||
|
||||
verifyProperty(C, "m", {
|
||||
enumerable: false,
|
||||
configurable: true,
|
||||
writable: true,
|
||||
}, {restore: true});
|
||||
|
||||
assert.sameValue(C.$(1), 1);
|
||||
assert.sameValue(C._(1), 1);
|
||||
assert.sameValue(C.\u{6F}(1), 1);
|
||||
assert.sameValue(C.\u2118(1), 1);
|
||||
assert.sameValue(C.ZW_\u200C_NJ(1), 1);
|
||||
assert.sameValue(C.ZW_\u200D_J(1), 1);
|
||||
|
||||
|
||||
C.m().then(function(v) {
|
||||
assert.sameValue(v, 42);
|
||||
}, $DONE).then($DONE, $DONE);
|
|
@ -0,0 +1,103 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/class-fields/rs-static-privatename-identifier-initializer-alt-by-classname.case
|
||||
// - src/class-fields/productions/cls-expr-after-same-line-static-async-method.template
|
||||
/*---
|
||||
description: Valid Static PrivateName (field definitions after a static async method in the same line)
|
||||
esid: prod-FieldDefinition
|
||||
features: [class-static-fields-private, class, class-fields-public, async-functions]
|
||||
flags: [generated, async]
|
||||
includes: [propertyHelper.js]
|
||||
info: |
|
||||
|
||||
ClassElement :
|
||||
MethodDefinition
|
||||
static MethodDefinition
|
||||
FieldDefinition ;
|
||||
static FieldDefinition ;
|
||||
;
|
||||
|
||||
FieldDefinition :
|
||||
ClassElementName Initializer _opt
|
||||
|
||||
ClassElementName :
|
||||
PropertyName
|
||||
PrivateName
|
||||
|
||||
PrivateName ::
|
||||
# IdentifierName
|
||||
|
||||
IdentifierName ::
|
||||
IdentifierStart
|
||||
IdentifierName IdentifierPart
|
||||
|
||||
IdentifierStart ::
|
||||
UnicodeIDStart
|
||||
$
|
||||
_
|
||||
\ UnicodeEscapeSequence
|
||||
|
||||
IdentifierPart::
|
||||
UnicodeIDContinue
|
||||
$
|
||||
\ UnicodeEscapeSequence
|
||||
<ZWNJ> <ZWJ>
|
||||
|
||||
UnicodeIDStart::
|
||||
any Unicode code point with the Unicode property "ID_Start"
|
||||
|
||||
UnicodeIDContinue::
|
||||
any Unicode code point with the Unicode property "ID_Continue"
|
||||
|
||||
|
||||
NOTE 3
|
||||
The sets of code points with Unicode properties "ID_Start" and
|
||||
"ID_Continue" include, respectively, the code points with Unicode
|
||||
properties "Other_ID_Start" and "Other_ID_Continue".
|
||||
|
||||
---*/
|
||||
|
||||
|
||||
var C = class {
|
||||
static async m() { return 42; } static #$ = 1; static #_ = 1; static #\u{6F} = 1; static #℘ = 1; static #ZW__NJ = 1; static #ZW__J = 1;
|
||||
static $() {
|
||||
return C.#$;
|
||||
}
|
||||
static _() {
|
||||
return C.#_;
|
||||
}
|
||||
static \u{6F}() {
|
||||
return C.#\u{6F};
|
||||
}
|
||||
static ℘() {
|
||||
return C.#℘;
|
||||
}
|
||||
static ZW__NJ() {
|
||||
return C.#ZW__NJ;
|
||||
}
|
||||
static ZW__J() {
|
||||
return C.#ZW__J;
|
||||
}
|
||||
}
|
||||
|
||||
var c = new C();
|
||||
|
||||
assert.sameValue(Object.hasOwnProperty.call(c, "m"), false);
|
||||
assert.sameValue(Object.hasOwnProperty.call(C.prototype, "m"), false);
|
||||
|
||||
verifyProperty(C, "m", {
|
||||
enumerable: false,
|
||||
configurable: true,
|
||||
writable: true,
|
||||
}, {restore: true});
|
||||
|
||||
assert.sameValue(C.$(), 1);
|
||||
assert.sameValue(C._(), 1);
|
||||
assert.sameValue(C.\u{6F}(), 1);
|
||||
assert.sameValue(C.℘(), 1);
|
||||
assert.sameValue(C.ZW__NJ(), 1);
|
||||
assert.sameValue(C.ZW__J(), 1);
|
||||
|
||||
|
||||
C.m().then(function(v) {
|
||||
assert.sameValue(v, 42);
|
||||
}, $DONE).then($DONE, $DONE);
|
|
@ -23,23 +23,23 @@ info: |
|
|||
PropertyName
|
||||
PrivateName
|
||||
|
||||
PrivateName::
|
||||
PrivateName ::
|
||||
# IdentifierName
|
||||
|
||||
IdentifierName::
|
||||
IdentifierName ::
|
||||
IdentifierStart
|
||||
IdentifierName IdentifierPart
|
||||
|
||||
IdentifierStart::
|
||||
IdentifierStart ::
|
||||
UnicodeIDStart
|
||||
$
|
||||
_
|
||||
\UnicodeEscapeSequence
|
||||
\ UnicodeEscapeSequence
|
||||
|
||||
IdentifierPart::
|
||||
UnicodeIDContinue
|
||||
$
|
||||
\UnicodeEscapeSequence
|
||||
\ UnicodeEscapeSequence
|
||||
<ZWNJ> <ZWJ>
|
||||
|
||||
UnicodeIDStart::
|
||||
|
|
|
@ -23,23 +23,23 @@ info: |
|
|||
PropertyName
|
||||
PrivateName
|
||||
|
||||
PrivateName::
|
||||
PrivateName ::
|
||||
# IdentifierName
|
||||
|
||||
IdentifierName::
|
||||
IdentifierName ::
|
||||
IdentifierStart
|
||||
IdentifierName IdentifierPart
|
||||
|
||||
IdentifierStart::
|
||||
IdentifierStart ::
|
||||
UnicodeIDStart
|
||||
$
|
||||
_
|
||||
\UnicodeEscapeSequence
|
||||
\ UnicodeEscapeSequence
|
||||
|
||||
IdentifierPart::
|
||||
UnicodeIDContinue
|
||||
$
|
||||
\UnicodeEscapeSequence
|
||||
\ UnicodeEscapeSequence
|
||||
<ZWNJ> <ZWJ>
|
||||
|
||||
UnicodeIDStart::
|
||||
|
|
|
@ -23,23 +23,23 @@ info: |
|
|||
PropertyName
|
||||
PrivateName
|
||||
|
||||
PrivateName::
|
||||
PrivateName ::
|
||||
# IdentifierName
|
||||
|
||||
IdentifierName::
|
||||
IdentifierName ::
|
||||
IdentifierStart
|
||||
IdentifierName IdentifierPart
|
||||
|
||||
IdentifierStart::
|
||||
IdentifierStart ::
|
||||
UnicodeIDStart
|
||||
$
|
||||
_
|
||||
\UnicodeEscapeSequence
|
||||
\ UnicodeEscapeSequence
|
||||
|
||||
IdentifierPart::
|
||||
UnicodeIDContinue
|
||||
$
|
||||
\UnicodeEscapeSequence
|
||||
\ UnicodeEscapeSequence
|
||||
<ZWNJ> <ZWJ>
|
||||
|
||||
UnicodeIDStart::
|
||||
|
|
|
@ -22,23 +22,23 @@ info: |
|
|||
PropertyName
|
||||
PrivateName
|
||||
|
||||
PrivateName::
|
||||
PrivateName ::
|
||||
# IdentifierName
|
||||
|
||||
IdentifierName::
|
||||
IdentifierName ::
|
||||
IdentifierStart
|
||||
IdentifierName IdentifierPart
|
||||
|
||||
IdentifierStart::
|
||||
IdentifierStart ::
|
||||
UnicodeIDStart
|
||||
$
|
||||
_
|
||||
\UnicodeEscapeSequence
|
||||
\ UnicodeEscapeSequence
|
||||
|
||||
IdentifierPart::
|
||||
UnicodeIDContinue
|
||||
$
|
||||
\UnicodeEscapeSequence
|
||||
\ UnicodeEscapeSequence
|
||||
<ZWNJ> <ZWJ>
|
||||
|
||||
UnicodeIDStart::
|
||||
|
|
|
@ -27,20 +27,20 @@ info: |
|
|||
LiteralPropertyName :
|
||||
IdentifierName
|
||||
|
||||
IdentifierName::
|
||||
IdentifierName ::
|
||||
IdentifierStart
|
||||
IdentifierName IdentifierPart
|
||||
|
||||
IdentifierStart::
|
||||
IdentifierStart ::
|
||||
UnicodeIDStart
|
||||
$
|
||||
_
|
||||
\UnicodeEscapeSequence
|
||||
\ UnicodeEscapeSequence
|
||||
|
||||
IdentifierPart::
|
||||
UnicodeIDContinue
|
||||
$
|
||||
\UnicodeEscapeSequence
|
||||
\ UnicodeEscapeSequence
|
||||
<ZWNJ> <ZWJ>
|
||||
|
||||
UnicodeIDStart::
|
||||
|
|
|
@ -27,20 +27,20 @@ info: |
|
|||
LiteralPropertyName :
|
||||
IdentifierName
|
||||
|
||||
IdentifierName::
|
||||
IdentifierName ::
|
||||
IdentifierStart
|
||||
IdentifierName IdentifierPart
|
||||
|
||||
IdentifierStart::
|
||||
IdentifierStart ::
|
||||
UnicodeIDStart
|
||||
$
|
||||
_
|
||||
\UnicodeEscapeSequence
|
||||
\ UnicodeEscapeSequence
|
||||
|
||||
IdentifierPart::
|
||||
UnicodeIDContinue
|
||||
$
|
||||
\UnicodeEscapeSequence
|
||||
\ UnicodeEscapeSequence
|
||||
<ZWNJ> <ZWJ>
|
||||
|
||||
UnicodeIDStart::
|
||||
|
|
|
@ -22,23 +22,23 @@ info: |
|
|||
PropertyName
|
||||
PrivateName
|
||||
|
||||
PrivateName::
|
||||
PrivateName ::
|
||||
# IdentifierName
|
||||
|
||||
IdentifierName::
|
||||
IdentifierName ::
|
||||
IdentifierStart
|
||||
IdentifierName IdentifierPart
|
||||
|
||||
IdentifierStart::
|
||||
IdentifierStart ::
|
||||
UnicodeIDStart
|
||||
$
|
||||
_
|
||||
\UnicodeEscapeSequence
|
||||
\ UnicodeEscapeSequence
|
||||
|
||||
IdentifierPart::
|
||||
UnicodeIDContinue
|
||||
$
|
||||
\UnicodeEscapeSequence
|
||||
\ UnicodeEscapeSequence
|
||||
<ZWNJ> <ZWJ>
|
||||
|
||||
UnicodeIDStart::
|
||||
|
|
|
@ -22,23 +22,23 @@ info: |
|
|||
PropertyName
|
||||
PrivateName
|
||||
|
||||
PrivateName::
|
||||
PrivateName ::
|
||||
# IdentifierName
|
||||
|
||||
IdentifierName::
|
||||
IdentifierName ::
|
||||
IdentifierStart
|
||||
IdentifierName IdentifierPart
|
||||
|
||||
IdentifierStart::
|
||||
IdentifierStart ::
|
||||
UnicodeIDStart
|
||||
$
|
||||
_
|
||||
\UnicodeEscapeSequence
|
||||
\ UnicodeEscapeSequence
|
||||
|
||||
IdentifierPart::
|
||||
UnicodeIDContinue
|
||||
$
|
||||
\UnicodeEscapeSequence
|
||||
\ UnicodeEscapeSequence
|
||||
<ZWNJ> <ZWJ>
|
||||
|
||||
UnicodeIDStart::
|
||||
|
|
|
@ -22,23 +22,23 @@ info: |
|
|||
PropertyName
|
||||
PrivateName
|
||||
|
||||
PrivateName::
|
||||
PrivateName ::
|
||||
# IdentifierName
|
||||
|
||||
IdentifierName::
|
||||
IdentifierName ::
|
||||
IdentifierStart
|
||||
IdentifierName IdentifierPart
|
||||
|
||||
IdentifierStart::
|
||||
IdentifierStart ::
|
||||
UnicodeIDStart
|
||||
$
|
||||
_
|
||||
\UnicodeEscapeSequence
|
||||
\ UnicodeEscapeSequence
|
||||
|
||||
IdentifierPart::
|
||||
UnicodeIDContinue
|
||||
$
|
||||
\UnicodeEscapeSequence
|
||||
\ UnicodeEscapeSequence
|
||||
<ZWNJ> <ZWJ>
|
||||
|
||||
UnicodeIDStart::
|
||||
|
|
|
@ -22,23 +22,23 @@ info: |
|
|||
PropertyName
|
||||
PrivateName
|
||||
|
||||
PrivateName::
|
||||
PrivateName ::
|
||||
# IdentifierName
|
||||
|
||||
IdentifierName::
|
||||
IdentifierName ::
|
||||
IdentifierStart
|
||||
IdentifierName IdentifierPart
|
||||
|
||||
IdentifierStart::
|
||||
IdentifierStart ::
|
||||
UnicodeIDStart
|
||||
$
|
||||
_
|
||||
\UnicodeEscapeSequence
|
||||
\ UnicodeEscapeSequence
|
||||
|
||||
IdentifierPart::
|
||||
UnicodeIDContinue
|
||||
$
|
||||
\UnicodeEscapeSequence
|
||||
\ UnicodeEscapeSequence
|
||||
<ZWNJ> <ZWJ>
|
||||
|
||||
UnicodeIDStart::
|
||||
|
|
|
@ -0,0 +1,131 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/class-fields/rs-static-async-generator-method-privatename-identifier-alt.case
|
||||
// - src/class-fields/productions/cls-expr-after-same-line-static-gen.template
|
||||
/*---
|
||||
description: Valid Static AsyncGeneratorMethod PrivateName (field definitions after a static generator in the same line)
|
||||
esid: prod-FieldDefinition
|
||||
features: [class-static-methods-private, generators, class, class-fields-public]
|
||||
flags: [generated, async]
|
||||
includes: [propertyHelper.js]
|
||||
info: |
|
||||
|
||||
ClassElement :
|
||||
MethodDefinition
|
||||
static MethodDefinition
|
||||
FieldDefinition ;
|
||||
static FieldDefinition ;
|
||||
;
|
||||
|
||||
MethodDefinition :
|
||||
AsyncGeneratorMethod
|
||||
|
||||
AsyncGeneratorMethod :
|
||||
async [no LineTerminator here] * ClassElementName ( UniqueFormalParameters){ AsyncGeneratorBody }
|
||||
|
||||
ClassElementName :
|
||||
PropertyName
|
||||
PrivateName
|
||||
|
||||
PrivateName ::
|
||||
# IdentifierName
|
||||
|
||||
IdentifierName ::
|
||||
IdentifierStart
|
||||
IdentifierName IdentifierPart
|
||||
|
||||
IdentifierStart ::
|
||||
UnicodeIDStart
|
||||
$
|
||||
_
|
||||
\ UnicodeEscapeSequence
|
||||
|
||||
IdentifierPart::
|
||||
UnicodeIDContinue
|
||||
$
|
||||
\ UnicodeEscapeSequence
|
||||
<ZWNJ> <ZWJ>
|
||||
|
||||
UnicodeIDStart::
|
||||
any Unicode code point with the Unicode property "ID_Start"
|
||||
|
||||
UnicodeIDContinue::
|
||||
any Unicode code point with the Unicode property "ID_Continue"
|
||||
|
||||
|
||||
NOTE 3
|
||||
The sets of code points with Unicode properties "ID_Start" and
|
||||
"ID_Continue" include, respectively, the code points with Unicode
|
||||
properties "Other_ID_Start" and "Other_ID_Continue".
|
||||
|
||||
---*/
|
||||
|
||||
|
||||
var C = class {
|
||||
static *m() { return 42; } static async #$(value) {
|
||||
yield await value;
|
||||
}
|
||||
static async #_(value) {
|
||||
yield await value;
|
||||
}
|
||||
static async #o(value) {
|
||||
yield await value;
|
||||
}
|
||||
static async #℘(value) {
|
||||
yield await value;
|
||||
}
|
||||
static async #ZW__NJ(value) {
|
||||
yield await value;
|
||||
}
|
||||
static async #ZW__J(value) {
|
||||
yield await value;
|
||||
};
|
||||
static async $(value) {
|
||||
yield * await this.#$(value);
|
||||
}
|
||||
static async _(value) {
|
||||
yield * await this.#_(value);
|
||||
}
|
||||
static async o(value) {
|
||||
yield * await this.#o(value);
|
||||
}
|
||||
static async ℘(value) { // DO NOT CHANGE THE NAME OF THIS FIELD
|
||||
yield * await this.#℘(value);
|
||||
}
|
||||
static async ZW__NJ(value) { // DO NOT CHANGE THE NAME OF THIS FIELD
|
||||
yield * await this.#ZW__NJ(value);
|
||||
}
|
||||
static async ZW__J(value) { // DO NOT CHANGE THE NAME OF THIS FIELD
|
||||
yield * await this.#ZW__J(value);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
var c = new C();
|
||||
|
||||
assert.sameValue(C.m().next().value, 42);
|
||||
assert.sameValue(Object.hasOwnProperty.call(c, "m"), false);
|
||||
assert.sameValue(Object.hasOwnProperty.call(C.prototype, "m"), false);
|
||||
|
||||
verifyProperty(C, "m", {
|
||||
enumerable: false,
|
||||
configurable: true,
|
||||
writable: true,
|
||||
});
|
||||
|
||||
Promise.all([
|
||||
C.$(1).next(),
|
||||
C._(1).next(),
|
||||
C.o(1).next(),
|
||||
C.℘(1).next(), // DO NOT CHANGE THE NAME OF THIS FIELD
|
||||
C.ZW__NJ(1).next(), // DO NOT CHANGE THE NAME OF THIS FIELD
|
||||
C.ZW__J(1).next(), // DO NOT CHANGE THE NAME OF THIS FIELD
|
||||
]).then(results => {
|
||||
|
||||
assert.sameValue(results[0].value, 1);
|
||||
assert.sameValue(results[1].value, 1);
|
||||
assert.sameValue(results[2].value, 1);
|
||||
assert.sameValue(results[3].value, 1);
|
||||
assert.sameValue(results[4].value, 1);
|
||||
assert.sameValue(results[5].value, 1);
|
||||
|
||||
}, $DONE).then($DONE, $DONE);
|
|
@ -0,0 +1,132 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/class-fields/rs-static-async-generator-method-privatename-identifier.case
|
||||
// - src/class-fields/productions/cls-expr-after-same-line-static-gen.template
|
||||
/*---
|
||||
description: Valid Static AsyncGeneratorMethod PrivateName (field definitions after a static generator in the same line)
|
||||
esid: prod-FieldDefinition
|
||||
features: [class-static-methods-private, generators, class, class-fields-public]
|
||||
flags: [generated, async]
|
||||
includes: [propertyHelper.js]
|
||||
info: |
|
||||
|
||||
ClassElement :
|
||||
MethodDefinition
|
||||
static MethodDefinition
|
||||
FieldDefinition ;
|
||||
static FieldDefinition ;
|
||||
;
|
||||
|
||||
MethodDefinition :
|
||||
AsyncGeneratorMethod
|
||||
|
||||
AsyncGeneratorMethod :
|
||||
async [no LineTerminator here] * ClassElementName ( UniqueFormalParameters){ AsyncGeneratorBody }
|
||||
|
||||
ClassElementName :
|
||||
PropertyName
|
||||
PrivateName
|
||||
|
||||
PrivateName ::
|
||||
# IdentifierName
|
||||
|
||||
IdentifierName ::
|
||||
IdentifierStart
|
||||
IdentifierName IdentifierPart
|
||||
|
||||
IdentifierStart ::
|
||||
UnicodeIDStart
|
||||
$
|
||||
_
|
||||
\ UnicodeEscapeSequence
|
||||
|
||||
IdentifierPart::
|
||||
UnicodeIDContinue
|
||||
$
|
||||
\ UnicodeEscapeSequence
|
||||
<ZWNJ> <ZWJ>
|
||||
|
||||
UnicodeIDStart::
|
||||
any Unicode code point with the Unicode property "ID_Start"
|
||||
|
||||
UnicodeIDContinue::
|
||||
any Unicode code point with the Unicode property "ID_Continue"
|
||||
|
||||
|
||||
NOTE 3
|
||||
The sets of code points with Unicode properties "ID_Start" and
|
||||
"ID_Continue" include, respectively, the code points with Unicode
|
||||
properties "Other_ID_Start" and "Other_ID_Continue".
|
||||
|
||||
---*/
|
||||
|
||||
|
||||
var C = class {
|
||||
static *m() { return 42; } static async * #$(value) {
|
||||
yield await value;
|
||||
}
|
||||
static async * #_(value) {
|
||||
yield await value;
|
||||
}
|
||||
static async * #\u{6F}(value) {
|
||||
yield await value;
|
||||
}
|
||||
static async * #\u2118(value) {
|
||||
yield await value;
|
||||
}
|
||||
static async * #ZW_\u200C_NJ(value) {
|
||||
yield await value;
|
||||
}
|
||||
static async * #ZW_\u200D_J(value) {
|
||||
yield await value;
|
||||
};
|
||||
static async * $(value) {
|
||||
yield * await this.#$(value);
|
||||
}
|
||||
static async * _(value) {
|
||||
yield * await this.#_(value);
|
||||
}
|
||||
static async * \u{6F}(value) {
|
||||
yield * await this.#\u{6F}(value);
|
||||
}
|
||||
static async * \u2118(value) {
|
||||
yield * await this.#\u2118(value);
|
||||
}
|
||||
static async * ZW_\u200C_NJ(value) {
|
||||
yield * await this.#ZW_\u200C_NJ(value);
|
||||
}
|
||||
static async * ZW_\u200D_J(value) {
|
||||
yield * await this.#ZW_\u200D_J(value);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
var c = new C();
|
||||
|
||||
assert.sameValue(C.m().next().value, 42);
|
||||
assert.sameValue(Object.hasOwnProperty.call(c, "m"), false);
|
||||
assert.sameValue(Object.hasOwnProperty.call(C.prototype, "m"), false);
|
||||
|
||||
verifyProperty(C, "m", {
|
||||
enumerable: false,
|
||||
configurable: true,
|
||||
writable: true,
|
||||
});
|
||||
|
||||
Promise.all([
|
||||
C.$(1).next(),
|
||||
C._(1).next(),
|
||||
C.\u{6F}(1).next(),
|
||||
C.\u2118(1).next(),
|
||||
C.ZW_\u200C_NJ(1).next(),
|
||||
C.ZW_\u200D_J(1).next(),
|
||||
]).then(results => {
|
||||
|
||||
assert.sameValue(results[0].value, 1);
|
||||
assert.sameValue(results[1].value, 1);
|
||||
assert.sameValue(results[2].value, 1);
|
||||
assert.sameValue(results[3].value, 1);
|
||||
assert.sameValue(results[4].value, 1);
|
||||
assert.sameValue(results[5].value, 1);
|
||||
|
||||
}, $DONE).then($DONE, $DONE);
|
||||
|
|
@ -0,0 +1,131 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/class-fields/rs-static-async-method-privatename-identifier-alt.case
|
||||
// - src/class-fields/productions/cls-expr-after-same-line-static-gen.template
|
||||
/*---
|
||||
description: Valid Static AsyncMethod PrivateName (field definitions after a static generator in the same line)
|
||||
esid: prod-FieldDefinition
|
||||
features: [class-static-methods-private, generators, class, class-fields-public]
|
||||
flags: [generated, async]
|
||||
includes: [propertyHelper.js]
|
||||
info: |
|
||||
|
||||
ClassElement :
|
||||
MethodDefinition
|
||||
static MethodDefinition
|
||||
FieldDefinition ;
|
||||
static FieldDefinition ;
|
||||
;
|
||||
|
||||
MethodDefinition :
|
||||
AsyncMethod
|
||||
|
||||
AsyncMethod :
|
||||
async [no LineTerminator here] ClassElementName ( UniqueFormalParameters ){ AsyncFunctionBody }
|
||||
|
||||
ClassElementName :
|
||||
PropertyName
|
||||
PrivateName
|
||||
|
||||
PrivateName ::
|
||||
# IdentifierName
|
||||
|
||||
IdentifierName ::
|
||||
IdentifierStart
|
||||
IdentifierName IdentifierPart
|
||||
|
||||
IdentifierStart ::
|
||||
UnicodeIDStart
|
||||
$
|
||||
_
|
||||
\ UnicodeEscapeSequence
|
||||
|
||||
IdentifierPart::
|
||||
UnicodeIDContinue
|
||||
$
|
||||
\ UnicodeEscapeSequence
|
||||
<ZWNJ> <ZWJ>
|
||||
|
||||
UnicodeIDStart::
|
||||
any Unicode code point with the Unicode property "ID_Start"
|
||||
|
||||
UnicodeIDContinue::
|
||||
any Unicode code point with the Unicode property "ID_Continue"
|
||||
|
||||
|
||||
NOTE 3
|
||||
The sets of code points with Unicode properties "ID_Start" and
|
||||
"ID_Continue" include, respectively, the code points with Unicode
|
||||
properties "Other_ID_Start" and "Other_ID_Continue".
|
||||
|
||||
---*/
|
||||
|
||||
|
||||
var C = class {
|
||||
static *m() { return 42; } static async #$(value) {
|
||||
return await value;
|
||||
}
|
||||
static async #_(value) {
|
||||
return await value;
|
||||
}
|
||||
static async #o(value) {
|
||||
return await value;
|
||||
}
|
||||
static async #℘(value) {
|
||||
return await value;
|
||||
}
|
||||
static async #ZW__NJ(value) {
|
||||
return await value;
|
||||
}
|
||||
static async #ZW__J(value) {
|
||||
return await value;
|
||||
};
|
||||
static async $(value) {
|
||||
return await this.#$(value);
|
||||
}
|
||||
static async _(value) {
|
||||
return await this.#_(value);
|
||||
}
|
||||
static async o(value) {
|
||||
return await this.#o(value);
|
||||
}
|
||||
static async ℘(value) { // DO NOT CHANGE THE NAME OF THIS FIELD
|
||||
return await this.#℘(value);
|
||||
}
|
||||
static async ZW__NJ(value) { // DO NOT CHANGE THE NAME OF THIS FIELD
|
||||
return await this.#ZW__NJ(value);
|
||||
}
|
||||
static async ZW__J(value) { // DO NOT CHANGE THE NAME OF THIS FIELD
|
||||
return await this.#ZW__J(value);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
var c = new C();
|
||||
|
||||
assert.sameValue(C.m().next().value, 42);
|
||||
assert.sameValue(Object.hasOwnProperty.call(c, "m"), false);
|
||||
assert.sameValue(Object.hasOwnProperty.call(C.prototype, "m"), false);
|
||||
|
||||
verifyProperty(C, "m", {
|
||||
enumerable: false,
|
||||
configurable: true,
|
||||
writable: true,
|
||||
});
|
||||
|
||||
Promise.all([
|
||||
C.$(1),
|
||||
C._(1),
|
||||
C.o(1),
|
||||
C.℘(1), // DO NOT CHANGE THE NAME OF THIS FIELD
|
||||
C.ZW__NJ(1), // DO NOT CHANGE THE NAME OF THIS FIELD
|
||||
C.ZW__J(1), // DO NOT CHANGE THE NAME OF THIS FIELD
|
||||
]).then(results => {
|
||||
|
||||
assert.sameValue(results[0], 1);
|
||||
assert.sameValue(results[1], 1);
|
||||
assert.sameValue(results[2], 1);
|
||||
assert.sameValue(results[3], 1);
|
||||
assert.sameValue(results[4], 1);
|
||||
assert.sameValue(results[5], 1);
|
||||
|
||||
}, $DONE).then($DONE, $DONE);
|
|
@ -0,0 +1,132 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/class-fields/rs-static-async-method-privatename-identifier.case
|
||||
// - src/class-fields/productions/cls-expr-after-same-line-static-gen.template
|
||||
/*---
|
||||
description: Valid Static AsyncMethod PrivateName (field definitions after a static generator in the same line)
|
||||
esid: prod-FieldDefinition
|
||||
features: [class-static-methods-private, generators, class, class-fields-public]
|
||||
flags: [generated, async]
|
||||
includes: [propertyHelper.js]
|
||||
info: |
|
||||
|
||||
ClassElement :
|
||||
MethodDefinition
|
||||
static MethodDefinition
|
||||
FieldDefinition ;
|
||||
static FieldDefinition ;
|
||||
;
|
||||
|
||||
MethodDefinition :
|
||||
AsyncMethod
|
||||
|
||||
AsyncMethod :
|
||||
async [no LineTerminator here] ClassElementName ( UniqueFormalParameters ){ AsyncFunctionBody }
|
||||
|
||||
ClassElementName :
|
||||
PropertyName
|
||||
PrivateName
|
||||
|
||||
PrivateName ::
|
||||
# IdentifierName
|
||||
|
||||
IdentifierName ::
|
||||
IdentifierStart
|
||||
IdentifierName IdentifierPart
|
||||
|
||||
IdentifierStart ::
|
||||
UnicodeIDStart
|
||||
$
|
||||
_
|
||||
\ UnicodeEscapeSequence
|
||||
|
||||
IdentifierPart::
|
||||
UnicodeIDContinue
|
||||
$
|
||||
\ UnicodeEscapeSequence
|
||||
<ZWNJ> <ZWJ>
|
||||
|
||||
UnicodeIDStart::
|
||||
any Unicode code point with the Unicode property "ID_Start"
|
||||
|
||||
UnicodeIDContinue::
|
||||
any Unicode code point with the Unicode property "ID_Continue"
|
||||
|
||||
|
||||
NOTE 3
|
||||
The sets of code points with Unicode properties "ID_Start" and
|
||||
"ID_Continue" include, respectively, the code points with Unicode
|
||||
properties "Other_ID_Start" and "Other_ID_Continue".
|
||||
|
||||
---*/
|
||||
|
||||
|
||||
var C = class {
|
||||
static *m() { return 42; } static async #$(value) {
|
||||
return await value;
|
||||
}
|
||||
static async #_(value) {
|
||||
return await value;
|
||||
}
|
||||
static async #\u{6F}(value) {
|
||||
return await value;
|
||||
}
|
||||
static async #\u2118(value) {
|
||||
return await value;
|
||||
}
|
||||
static async #ZW_\u200C_NJ(value) {
|
||||
return await value;
|
||||
}
|
||||
static async #ZW_\u200D_J(value) {
|
||||
return await value;
|
||||
};
|
||||
static async $(value) {
|
||||
return await this.#$(value);
|
||||
}
|
||||
static async _(value) {
|
||||
return await this.#_(value);
|
||||
}
|
||||
static async \u{6F}(value) {
|
||||
return await this.#\u{6F}(value);
|
||||
}
|
||||
static async \u2118(value) {
|
||||
return await this.#\u2118(value);
|
||||
}
|
||||
static async ZW_\u200C_NJ(value) {
|
||||
return await this.#ZW_\u200C_NJ(value);
|
||||
}
|
||||
static async ZW_\u200D_J(value) {
|
||||
return await this.#ZW_\u200D_J(value);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
var c = new C();
|
||||
|
||||
assert.sameValue(C.m().next().value, 42);
|
||||
assert.sameValue(Object.hasOwnProperty.call(c, "m"), false);
|
||||
assert.sameValue(Object.hasOwnProperty.call(C.prototype, "m"), false);
|
||||
|
||||
verifyProperty(C, "m", {
|
||||
enumerable: false,
|
||||
configurable: true,
|
||||
writable: true,
|
||||
});
|
||||
|
||||
Promise.all([
|
||||
C.$(1),
|
||||
C._(1),
|
||||
C.\u{6F}(1),
|
||||
C.\u2118(1),
|
||||
C.ZW_\u200C_NJ(1),
|
||||
C.ZW_\u200D_J(1),
|
||||
]).then(results => {
|
||||
|
||||
assert.sameValue(results[0], 1);
|
||||
assert.sameValue(results[1], 1);
|
||||
assert.sameValue(results[2], 1);
|
||||
assert.sameValue(results[3], 1);
|
||||
assert.sameValue(results[4], 1);
|
||||
assert.sameValue(results[5], 1);
|
||||
|
||||
}, $DONE).then($DONE, $DONE);
|
||||
|
|
@ -0,0 +1,120 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/class-fields/rs-static-generator-method-privatename-identifier-alt.case
|
||||
// - src/class-fields/productions/cls-expr-after-same-line-static-gen.template
|
||||
/*---
|
||||
description: Valid Static GeneratorMethod PrivateName (field definitions after a static generator in the same line)
|
||||
esid: prod-FieldDefinition
|
||||
features: [class-static-methods-private, generators, class, class-fields-public]
|
||||
flags: [generated]
|
||||
includes: [propertyHelper.js]
|
||||
info: |
|
||||
|
||||
ClassElement :
|
||||
MethodDefinition
|
||||
static MethodDefinition
|
||||
FieldDefinition ;
|
||||
static FieldDefinition ;
|
||||
;
|
||||
|
||||
MethodDefinition :
|
||||
GeneratorMethod
|
||||
|
||||
GeneratorMethod :
|
||||
* ClassElementName ( UniqueFormalParameters ){ GeneratorBody }
|
||||
|
||||
ClassElementName :
|
||||
PropertyName
|
||||
PrivateName
|
||||
|
||||
PrivateName ::
|
||||
# IdentifierName
|
||||
|
||||
IdentifierName ::
|
||||
IdentifierStart
|
||||
IdentifierName IdentifierPart
|
||||
|
||||
IdentifierStart ::
|
||||
UnicodeIDStart
|
||||
$
|
||||
_
|
||||
\ UnicodeEscapeSequence
|
||||
|
||||
IdentifierPart::
|
||||
UnicodeIDContinue
|
||||
$
|
||||
\ UnicodeEscapeSequence
|
||||
<ZWNJ> <ZWJ>
|
||||
|
||||
UnicodeIDStart::
|
||||
any Unicode code point with the Unicode property "ID_Start"
|
||||
|
||||
UnicodeIDContinue::
|
||||
any Unicode code point with the Unicode property "ID_Continue"
|
||||
|
||||
|
||||
NOTE 3
|
||||
The sets of code points with Unicode properties "ID_Start" and
|
||||
"ID_Continue" include, respectively, the code points with Unicode
|
||||
properties "Other_ID_Start" and "Other_ID_Continue".
|
||||
|
||||
---*/
|
||||
|
||||
|
||||
var C = class {
|
||||
static *m() { return 42; } static * #$(value) {
|
||||
yield value;
|
||||
}
|
||||
static * #_(value) {
|
||||
yield value;
|
||||
}
|
||||
static * #o(value) {
|
||||
yield value;
|
||||
}
|
||||
static * #℘(value) {
|
||||
yield value;
|
||||
}
|
||||
static * #ZW__NJ(value) {
|
||||
yield value;
|
||||
}
|
||||
static * #ZW__J(value) {
|
||||
yield value;
|
||||
};
|
||||
static * $(value) {
|
||||
yield this.#$(value);
|
||||
}
|
||||
static * _(value) {
|
||||
yield this.#_(value);
|
||||
}
|
||||
static * o(value) {
|
||||
yield this.#o(value);
|
||||
}
|
||||
static * ℘(value) { // DO NOT CHANGE THE NAME OF THIS FIELD
|
||||
yield this.#℘(value);
|
||||
}
|
||||
static * ZW__NJ(value) { // DO NOT CHANGE THE NAME OF THIS FIELD
|
||||
yield this.#ZW__NJ(value);
|
||||
}
|
||||
static * ZW__J(value) { // DO NOT CHANGE THE NAME OF THIS FIELD
|
||||
yield this.#ZW__J(value);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
var c = new C();
|
||||
|
||||
assert.sameValue(C.m().next().value, 42);
|
||||
assert.sameValue(Object.hasOwnProperty.call(c, "m"), false);
|
||||
assert.sameValue(Object.hasOwnProperty.call(C.prototype, "m"), false);
|
||||
|
||||
verifyProperty(C, "m", {
|
||||
enumerable: false,
|
||||
configurable: true,
|
||||
writable: true,
|
||||
});
|
||||
|
||||
assert.sameValue(C.$(1).next().value, 1);
|
||||
assert.sameValue(C._(1).next().value, 1);
|
||||
assert.sameValue(C.o(1).next().value, 1);
|
||||
assert.sameValue(C.℘(1).next().value, 1);
|
||||
assert.sameValue(C.ZW__NJ(1).next().value, 1);
|
||||
assert.sameValue(C.ZW__J(1).next().value, 1);
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue