From 053aed901a7504ff9f4be35cfacdf50d9bfbbb6c Mon Sep 17 00:00:00 2001 From: Leo Balter Date: Mon, 5 Nov 2018 17:18:47 -0500 Subject: [PATCH] Regenerate tests --- .../private-accessor-name-inst-computed.js | 57 -------------- ...cessor-name-inst-literal-numeric-binary.js | 55 ------------- ...ssor-name-inst-literal-numeric-exponent.js | 55 ------------- ...-accessor-name-inst-literal-numeric-hex.js | 55 ------------- ...me-inst-literal-numeric-leading-decimal.js | 55 ------------- ...name-inst-literal-numeric-non-canonical.js | 55 ------------- ...ccessor-name-inst-literal-numeric-octal.js | 55 ------------- ...accessor-name-inst-literal-numeric-zero.js | 55 ------------- ...or-name-inst-literal-string-char-escape.js | 55 ------------- ...r-name-inst-literal-string-double-quote.js | 55 ------------- ...accessor-name-inst-literal-string-empty.js | 55 ------------- ...sor-name-inst-literal-string-hex-escape.js | 55 ------------- ...e-inst-literal-string-line-continuation.js | 57 -------------- ...r-name-inst-literal-string-single-quote.js | 55 ------------- ...name-inst-literal-string-unicode-escape.js | 55 ------------- .../private-accessor-name-static-computed.js | 56 ------------- ...ssor-name-static-literal-numeric-binary.js | 54 ------------- ...or-name-static-literal-numeric-exponent.js | 54 ------------- ...ccessor-name-static-literal-numeric-hex.js | 54 ------------- ...-static-literal-numeric-leading-decimal.js | 54 ------------- ...me-static-literal-numeric-non-canonical.js | 54 ------------- ...essor-name-static-literal-numeric-octal.js | 54 ------------- ...cessor-name-static-literal-numeric-zero.js | 54 ------------- ...-name-static-literal-string-char-escape.js | 54 ------------- ...name-static-literal-string-double-quote.js | 54 ------------- ...cessor-name-static-literal-string-empty.js | 54 ------------- ...r-name-static-literal-string-hex-escape.js | 54 ------------- ...static-literal-string-line-continuation.js | 56 ------------- ...name-static-literal-string-single-quote.js | 54 ------------- ...me-static-literal-string-unicode-escape.js | 54 ------------- .../inst-private-escape-sequence-ZWJ.js | 78 +++++++++++++++++++ .../inst-private-escape-sequence-ZWNJ.js | 78 +++++++++++++++++++ .../inst-private-escape-sequence-u2118.js | 78 +++++++++++++++++++ .../inst-private-escape-sequence-u6F.js | 78 +++++++++++++++++++ .../inst-private-name-ZWJ.js | 78 +++++++++++++++++++ .../inst-private-name-ZWNJ.js | 78 +++++++++++++++++++ .../inst-private-name-common.js | 78 +++++++++++++++++++ .../inst-private-name-dollar.js | 78 +++++++++++++++++++ .../inst-private-name-u2118.js | 78 +++++++++++++++++++ .../inst-private-name-underscore.js | 78 +++++++++++++++++++ .../static-private-escape-sequence-ZWJ.js | 78 +++++++++++++++++++ .../static-private-escape-sequence-ZWNJ.js | 78 +++++++++++++++++++ .../static-private-escape-sequence-u2118.js | 78 +++++++++++++++++++ .../static-private-escape-sequence-u6F.js | 78 +++++++++++++++++++ .../static-private-name-ZWJ.js | 78 +++++++++++++++++++ .../static-private-name-ZWNJ.js | 78 +++++++++++++++++++ .../static-private-name-common.js | 78 +++++++++++++++++++ .../static-private-name-dollar.js | 78 +++++++++++++++++++ .../static-private-name-u2118.js | 78 +++++++++++++++++++ .../static-private-name-underscore.js | 78 +++++++++++++++++++ .../private-accessor-name-inst-computed.js | 57 -------------- ...cessor-name-inst-literal-numeric-binary.js | 55 ------------- ...ssor-name-inst-literal-numeric-exponent.js | 55 ------------- ...-accessor-name-inst-literal-numeric-hex.js | 55 ------------- ...me-inst-literal-numeric-leading-decimal.js | 55 ------------- ...name-inst-literal-numeric-non-canonical.js | 55 ------------- ...ccessor-name-inst-literal-numeric-octal.js | 55 ------------- ...accessor-name-inst-literal-numeric-zero.js | 55 ------------- ...or-name-inst-literal-string-char-escape.js | 55 ------------- ...r-name-inst-literal-string-double-quote.js | 55 ------------- ...accessor-name-inst-literal-string-empty.js | 55 ------------- ...sor-name-inst-literal-string-hex-escape.js | 55 ------------- ...e-inst-literal-string-line-continuation.js | 57 -------------- ...r-name-inst-literal-string-single-quote.js | 55 ------------- ...name-inst-literal-string-unicode-escape.js | 55 ------------- .../private-accessor-name-static-computed.js | 56 ------------- ...ssor-name-static-literal-numeric-binary.js | 54 ------------- ...or-name-static-literal-numeric-exponent.js | 54 ------------- ...ccessor-name-static-literal-numeric-hex.js | 54 ------------- ...-static-literal-numeric-leading-decimal.js | 54 ------------- ...me-static-literal-numeric-non-canonical.js | 54 ------------- ...essor-name-static-literal-numeric-octal.js | 54 ------------- ...cessor-name-static-literal-numeric-zero.js | 54 ------------- ...-name-static-literal-string-char-escape.js | 54 ------------- ...name-static-literal-string-double-quote.js | 54 ------------- ...cessor-name-static-literal-string-empty.js | 54 ------------- ...r-name-static-literal-string-hex-escape.js | 54 ------------- ...static-literal-string-line-continuation.js | 56 ------------- ...name-static-literal-string-single-quote.js | 54 ------------- ...me-static-literal-string-unicode-escape.js | 54 ------------- .../inst-private-escape-sequence-ZWJ.js | 78 +++++++++++++++++++ .../inst-private-escape-sequence-ZWNJ.js | 78 +++++++++++++++++++ .../inst-private-escape-sequence-u2118.js | 78 +++++++++++++++++++ .../inst-private-escape-sequence-u6F.js | 78 +++++++++++++++++++ .../inst-private-name-ZWJ.js | 78 +++++++++++++++++++ .../inst-private-name-ZWNJ.js | 78 +++++++++++++++++++ .../inst-private-name-common.js | 78 +++++++++++++++++++ .../inst-private-name-dollar.js | 78 +++++++++++++++++++ .../inst-private-name-u2118.js | 78 +++++++++++++++++++ .../inst-private-name-underscore.js | 78 +++++++++++++++++++ .../static-private-escape-sequence-ZWJ.js | 77 ++++++++++++++++++ .../static-private-escape-sequence-ZWNJ.js | 77 ++++++++++++++++++ .../static-private-escape-sequence-u2118.js | 77 ++++++++++++++++++ .../static-private-escape-sequence-u6F.js | 77 ++++++++++++++++++ .../static-private-name-ZWJ.js | 77 ++++++++++++++++++ .../static-private-name-ZWNJ.js | 77 ++++++++++++++++++ .../static-private-name-common.js | 77 ++++++++++++++++++ .../static-private-name-dollar.js | 77 ++++++++++++++++++ .../static-private-name-u2118.js | 77 ++++++++++++++++++ .../static-private-name-underscore.js | 77 ++++++++++++++++++ 100 files changed, 3110 insertions(+), 3286 deletions(-) delete mode 100644 test/language/expressions/class/private-accessor-name-inst-computed.js delete mode 100644 test/language/expressions/class/private-accessor-name-inst-literal-numeric-binary.js delete mode 100644 test/language/expressions/class/private-accessor-name-inst-literal-numeric-exponent.js delete mode 100644 test/language/expressions/class/private-accessor-name-inst-literal-numeric-hex.js delete mode 100644 test/language/expressions/class/private-accessor-name-inst-literal-numeric-leading-decimal.js delete mode 100644 test/language/expressions/class/private-accessor-name-inst-literal-numeric-non-canonical.js delete mode 100644 test/language/expressions/class/private-accessor-name-inst-literal-numeric-octal.js delete mode 100644 test/language/expressions/class/private-accessor-name-inst-literal-numeric-zero.js delete mode 100644 test/language/expressions/class/private-accessor-name-inst-literal-string-char-escape.js delete mode 100644 test/language/expressions/class/private-accessor-name-inst-literal-string-double-quote.js delete mode 100644 test/language/expressions/class/private-accessor-name-inst-literal-string-empty.js delete mode 100644 test/language/expressions/class/private-accessor-name-inst-literal-string-hex-escape.js delete mode 100644 test/language/expressions/class/private-accessor-name-inst-literal-string-line-continuation.js delete mode 100644 test/language/expressions/class/private-accessor-name-inst-literal-string-single-quote.js delete mode 100644 test/language/expressions/class/private-accessor-name-inst-literal-string-unicode-escape.js delete mode 100644 test/language/expressions/class/private-accessor-name-static-computed.js delete mode 100644 test/language/expressions/class/private-accessor-name-static-literal-numeric-binary.js delete mode 100644 test/language/expressions/class/private-accessor-name-static-literal-numeric-exponent.js delete mode 100644 test/language/expressions/class/private-accessor-name-static-literal-numeric-hex.js delete mode 100644 test/language/expressions/class/private-accessor-name-static-literal-numeric-leading-decimal.js delete mode 100644 test/language/expressions/class/private-accessor-name-static-literal-numeric-non-canonical.js delete mode 100644 test/language/expressions/class/private-accessor-name-static-literal-numeric-octal.js delete mode 100644 test/language/expressions/class/private-accessor-name-static-literal-numeric-zero.js delete mode 100644 test/language/expressions/class/private-accessor-name-static-literal-string-char-escape.js delete mode 100644 test/language/expressions/class/private-accessor-name-static-literal-string-double-quote.js delete mode 100644 test/language/expressions/class/private-accessor-name-static-literal-string-empty.js delete mode 100644 test/language/expressions/class/private-accessor-name-static-literal-string-hex-escape.js delete mode 100644 test/language/expressions/class/private-accessor-name-static-literal-string-line-continuation.js delete mode 100644 test/language/expressions/class/private-accessor-name-static-literal-string-single-quote.js delete mode 100644 test/language/expressions/class/private-accessor-name-static-literal-string-unicode-escape.js create mode 100644 test/language/expressions/class/private-accessor-name/inst-private-escape-sequence-ZWJ.js create mode 100644 test/language/expressions/class/private-accessor-name/inst-private-escape-sequence-ZWNJ.js create mode 100644 test/language/expressions/class/private-accessor-name/inst-private-escape-sequence-u2118.js create mode 100644 test/language/expressions/class/private-accessor-name/inst-private-escape-sequence-u6F.js create mode 100644 test/language/expressions/class/private-accessor-name/inst-private-name-ZWJ.js create mode 100644 test/language/expressions/class/private-accessor-name/inst-private-name-ZWNJ.js create mode 100644 test/language/expressions/class/private-accessor-name/inst-private-name-common.js create mode 100644 test/language/expressions/class/private-accessor-name/inst-private-name-dollar.js create mode 100644 test/language/expressions/class/private-accessor-name/inst-private-name-u2118.js create mode 100644 test/language/expressions/class/private-accessor-name/inst-private-name-underscore.js create mode 100644 test/language/expressions/class/private-accessor-name/static-private-escape-sequence-ZWJ.js create mode 100644 test/language/expressions/class/private-accessor-name/static-private-escape-sequence-ZWNJ.js create mode 100644 test/language/expressions/class/private-accessor-name/static-private-escape-sequence-u2118.js create mode 100644 test/language/expressions/class/private-accessor-name/static-private-escape-sequence-u6F.js create mode 100644 test/language/expressions/class/private-accessor-name/static-private-name-ZWJ.js create mode 100644 test/language/expressions/class/private-accessor-name/static-private-name-ZWNJ.js create mode 100644 test/language/expressions/class/private-accessor-name/static-private-name-common.js create mode 100644 test/language/expressions/class/private-accessor-name/static-private-name-dollar.js create mode 100644 test/language/expressions/class/private-accessor-name/static-private-name-u2118.js create mode 100644 test/language/expressions/class/private-accessor-name/static-private-name-underscore.js delete mode 100644 test/language/statements/class/private-accessor-name-inst-computed.js delete mode 100644 test/language/statements/class/private-accessor-name-inst-literal-numeric-binary.js delete mode 100644 test/language/statements/class/private-accessor-name-inst-literal-numeric-exponent.js delete mode 100644 test/language/statements/class/private-accessor-name-inst-literal-numeric-hex.js delete mode 100644 test/language/statements/class/private-accessor-name-inst-literal-numeric-leading-decimal.js delete mode 100644 test/language/statements/class/private-accessor-name-inst-literal-numeric-non-canonical.js delete mode 100644 test/language/statements/class/private-accessor-name-inst-literal-numeric-octal.js delete mode 100644 test/language/statements/class/private-accessor-name-inst-literal-numeric-zero.js delete mode 100644 test/language/statements/class/private-accessor-name-inst-literal-string-char-escape.js delete mode 100644 test/language/statements/class/private-accessor-name-inst-literal-string-double-quote.js delete mode 100644 test/language/statements/class/private-accessor-name-inst-literal-string-empty.js delete mode 100644 test/language/statements/class/private-accessor-name-inst-literal-string-hex-escape.js delete mode 100644 test/language/statements/class/private-accessor-name-inst-literal-string-line-continuation.js delete mode 100644 test/language/statements/class/private-accessor-name-inst-literal-string-single-quote.js delete mode 100644 test/language/statements/class/private-accessor-name-inst-literal-string-unicode-escape.js delete mode 100644 test/language/statements/class/private-accessor-name-static-computed.js delete mode 100644 test/language/statements/class/private-accessor-name-static-literal-numeric-binary.js delete mode 100644 test/language/statements/class/private-accessor-name-static-literal-numeric-exponent.js delete mode 100644 test/language/statements/class/private-accessor-name-static-literal-numeric-hex.js delete mode 100644 test/language/statements/class/private-accessor-name-static-literal-numeric-leading-decimal.js delete mode 100644 test/language/statements/class/private-accessor-name-static-literal-numeric-non-canonical.js delete mode 100644 test/language/statements/class/private-accessor-name-static-literal-numeric-octal.js delete mode 100644 test/language/statements/class/private-accessor-name-static-literal-numeric-zero.js delete mode 100644 test/language/statements/class/private-accessor-name-static-literal-string-char-escape.js delete mode 100644 test/language/statements/class/private-accessor-name-static-literal-string-double-quote.js delete mode 100644 test/language/statements/class/private-accessor-name-static-literal-string-empty.js delete mode 100644 test/language/statements/class/private-accessor-name-static-literal-string-hex-escape.js delete mode 100644 test/language/statements/class/private-accessor-name-static-literal-string-line-continuation.js delete mode 100644 test/language/statements/class/private-accessor-name-static-literal-string-single-quote.js delete mode 100644 test/language/statements/class/private-accessor-name-static-literal-string-unicode-escape.js create mode 100644 test/language/statements/class/private-accessor-name/inst-private-escape-sequence-ZWJ.js create mode 100644 test/language/statements/class/private-accessor-name/inst-private-escape-sequence-ZWNJ.js create mode 100644 test/language/statements/class/private-accessor-name/inst-private-escape-sequence-u2118.js create mode 100644 test/language/statements/class/private-accessor-name/inst-private-escape-sequence-u6F.js create mode 100644 test/language/statements/class/private-accessor-name/inst-private-name-ZWJ.js create mode 100644 test/language/statements/class/private-accessor-name/inst-private-name-ZWNJ.js create mode 100644 test/language/statements/class/private-accessor-name/inst-private-name-common.js create mode 100644 test/language/statements/class/private-accessor-name/inst-private-name-dollar.js create mode 100644 test/language/statements/class/private-accessor-name/inst-private-name-u2118.js create mode 100644 test/language/statements/class/private-accessor-name/inst-private-name-underscore.js create mode 100644 test/language/statements/class/private-accessor-name/static-private-escape-sequence-ZWJ.js create mode 100644 test/language/statements/class/private-accessor-name/static-private-escape-sequence-ZWNJ.js create mode 100644 test/language/statements/class/private-accessor-name/static-private-escape-sequence-u2118.js create mode 100644 test/language/statements/class/private-accessor-name/static-private-escape-sequence-u6F.js create mode 100644 test/language/statements/class/private-accessor-name/static-private-name-ZWJ.js create mode 100644 test/language/statements/class/private-accessor-name/static-private-name-ZWNJ.js create mode 100644 test/language/statements/class/private-accessor-name/static-private-name-common.js create mode 100644 test/language/statements/class/private-accessor-name/static-private-name-dollar.js create mode 100644 test/language/statements/class/private-accessor-name/static-private-name-u2118.js create mode 100644 test/language/statements/class/private-accessor-name/static-private-name-underscore.js diff --git a/test/language/expressions/class/private-accessor-name-inst-computed.js b/test/language/expressions/class/private-accessor-name-inst-computed.js deleted file mode 100644 index 18a2f09b39..0000000000 --- a/test/language/expressions/class/private-accessor-name-inst-computed.js +++ /dev/null @@ -1,57 +0,0 @@ -// This file was procedurally generated from the following sources: -// - src/accessor-names/computed.case -// - src/accessor-names/default/cls-private-expr-inst.template -/*--- -description: Computed values as accessor property names (AssignmentExpression) (Class expression, instance private method) -flags: [generated] -info: | - [...] - MethodDefinition[Yield, Await]: - PropertyNameClassElementName [?Yield, ?Await]( - UniqueFormalParameters [~Yield, ~Await] ) { - FunctionBody [~Yield, ~Await] } - AsyncMethod[?Yield, ?Await] - get PropertyName ClassElementName [?Yield, ?Await] (){ - FunctionBody [~Yield, ~Await] } - set PropertyNameClassElementName [?Yield, ?Await] ( - PropertySetParameterList ) { FunctionBody [~Yield, ~Await] } - AsyncMethod [Yield, Await]: - async [no LineTerminator here] PropertyName - ClassElementName[?Yield, ?Await]( - UniqueFormalParameters[~Yield, +Await] ) { AsyncFunctionBody } - - - 12.2.6.7 Runtime Semantics: Evaluation - - [...] - - ComputedPropertyName : [ AssignmentExpression ] - - 1. Let exprValue be the result of evaluating AssignmentExpression. - 2. Let propName be ? GetValue(exprValue). - 3. Return ? ToPropertyKey(propName). ----*/ -var _; - - -var stringSet; - -var C = class { - get #[_ = 'str' + 'ing']() { return 'get string'; } - set #[_ = 'str' + 'ing'](param) { stringSet = param; } - - getPrivateReference() { - return this[#'string']; - } - - setPrivateReference(value) { - this[#'string'] = value; - } -}; - -var inst = new C(); - -assert.sameValue(inst.getPrivateReference(), 'get string'); - -inst.setPrivateReference('set string'); -assert.sameValue(stringSet, 'set string'); diff --git a/test/language/expressions/class/private-accessor-name-inst-literal-numeric-binary.js b/test/language/expressions/class/private-accessor-name-inst-literal-numeric-binary.js deleted file mode 100644 index 6de7342acd..0000000000 --- a/test/language/expressions/class/private-accessor-name-inst-literal-numeric-binary.js +++ /dev/null @@ -1,55 +0,0 @@ -// This file was procedurally generated from the following sources: -// - src/accessor-names/literal-numeric-binary.case -// - src/accessor-names/default/cls-private-expr-inst.template -/*--- -description: Computed values as accessor property names (numeric literal in binary notation) (Class expression, instance private method) -flags: [generated] -info: | - [...] - MethodDefinition[Yield, Await]: - PropertyNameClassElementName [?Yield, ?Await]( - UniqueFormalParameters [~Yield, ~Await] ) { - FunctionBody [~Yield, ~Await] } - AsyncMethod[?Yield, ?Await] - get PropertyName ClassElementName [?Yield, ?Await] (){ - FunctionBody [~Yield, ~Await] } - set PropertyNameClassElementName [?Yield, ?Await] ( - PropertySetParameterList ) { FunctionBody [~Yield, ~Await] } - AsyncMethod [Yield, Await]: - async [no LineTerminator here] PropertyName - ClassElementName[?Yield, ?Await]( - UniqueFormalParameters[~Yield, +Await] ) { AsyncFunctionBody } - - - 12.2.6.7 Runtime Semantics: Evaluation - - [...] - - ComputedPropertyName : [ AssignmentExpression ] - - 1. Let exprValue be the result of evaluating AssignmentExpression. - 2. Let propName be ? GetValue(exprValue). - 3. Return ? ToPropertyKey(propName). ----*/ - -var stringSet; - -var C = class { - get #0b10() { return 'get string'; } - set #0b10(param) { stringSet = param; } - - getPrivateReference() { - return this[#'2']; - } - - setPrivateReference(value) { - this[#'2'] = value; - } -}; - -var inst = new C(); - -assert.sameValue(inst.getPrivateReference(), 'get string'); - -inst.setPrivateReference('set string'); -assert.sameValue(stringSet, 'set string'); diff --git a/test/language/expressions/class/private-accessor-name-inst-literal-numeric-exponent.js b/test/language/expressions/class/private-accessor-name-inst-literal-numeric-exponent.js deleted file mode 100644 index 3cf745fccb..0000000000 --- a/test/language/expressions/class/private-accessor-name-inst-literal-numeric-exponent.js +++ /dev/null @@ -1,55 +0,0 @@ -// This file was procedurally generated from the following sources: -// - src/accessor-names/literal-numeric-exponent.case -// - src/accessor-names/default/cls-private-expr-inst.template -/*--- -description: Computed values as accessor property names (numeric literal in exponent notation) (Class expression, instance private method) -flags: [generated] -info: | - [...] - MethodDefinition[Yield, Await]: - PropertyNameClassElementName [?Yield, ?Await]( - UniqueFormalParameters [~Yield, ~Await] ) { - FunctionBody [~Yield, ~Await] } - AsyncMethod[?Yield, ?Await] - get PropertyName ClassElementName [?Yield, ?Await] (){ - FunctionBody [~Yield, ~Await] } - set PropertyNameClassElementName [?Yield, ?Await] ( - PropertySetParameterList ) { FunctionBody [~Yield, ~Await] } - AsyncMethod [Yield, Await]: - async [no LineTerminator here] PropertyName - ClassElementName[?Yield, ?Await]( - UniqueFormalParameters[~Yield, +Await] ) { AsyncFunctionBody } - - - 12.2.6.7 Runtime Semantics: Evaluation - - [...] - - ComputedPropertyName : [ AssignmentExpression ] - - 1. Let exprValue be the result of evaluating AssignmentExpression. - 2. Let propName be ? GetValue(exprValue). - 3. Return ? ToPropertyKey(propName). ----*/ - -var stringSet; - -var C = class { - get #1E+9() { return 'get string'; } - set #1E+9(param) { stringSet = param; } - - getPrivateReference() { - return this[#'1000000000']; - } - - setPrivateReference(value) { - this[#'1000000000'] = value; - } -}; - -var inst = new C(); - -assert.sameValue(inst.getPrivateReference(), 'get string'); - -inst.setPrivateReference('set string'); -assert.sameValue(stringSet, 'set string'); diff --git a/test/language/expressions/class/private-accessor-name-inst-literal-numeric-hex.js b/test/language/expressions/class/private-accessor-name-inst-literal-numeric-hex.js deleted file mode 100644 index cfcece9bcc..0000000000 --- a/test/language/expressions/class/private-accessor-name-inst-literal-numeric-hex.js +++ /dev/null @@ -1,55 +0,0 @@ -// This file was procedurally generated from the following sources: -// - src/accessor-names/literal-numeric-hex.case -// - src/accessor-names/default/cls-private-expr-inst.template -/*--- -description: Computed values as accessor property names (numeric literal in hexadecimal notation) (Class expression, instance private method) -flags: [generated] -info: | - [...] - MethodDefinition[Yield, Await]: - PropertyNameClassElementName [?Yield, ?Await]( - UniqueFormalParameters [~Yield, ~Await] ) { - FunctionBody [~Yield, ~Await] } - AsyncMethod[?Yield, ?Await] - get PropertyName ClassElementName [?Yield, ?Await] (){ - FunctionBody [~Yield, ~Await] } - set PropertyNameClassElementName [?Yield, ?Await] ( - PropertySetParameterList ) { FunctionBody [~Yield, ~Await] } - AsyncMethod [Yield, Await]: - async [no LineTerminator here] PropertyName - ClassElementName[?Yield, ?Await]( - UniqueFormalParameters[~Yield, +Await] ) { AsyncFunctionBody } - - - 12.2.6.7 Runtime Semantics: Evaluation - - [...] - - ComputedPropertyName : [ AssignmentExpression ] - - 1. Let exprValue be the result of evaluating AssignmentExpression. - 2. Let propName be ? GetValue(exprValue). - 3. Return ? ToPropertyKey(propName). ----*/ - -var stringSet; - -var C = class { - get #0x10() { return 'get string'; } - set #0x10(param) { stringSet = param; } - - getPrivateReference() { - return this[#'16']; - } - - setPrivateReference(value) { - this[#'16'] = value; - } -}; - -var inst = new C(); - -assert.sameValue(inst.getPrivateReference(), 'get string'); - -inst.setPrivateReference('set string'); -assert.sameValue(stringSet, 'set string'); diff --git a/test/language/expressions/class/private-accessor-name-inst-literal-numeric-leading-decimal.js b/test/language/expressions/class/private-accessor-name-inst-literal-numeric-leading-decimal.js deleted file mode 100644 index f74c778cea..0000000000 --- a/test/language/expressions/class/private-accessor-name-inst-literal-numeric-leading-decimal.js +++ /dev/null @@ -1,55 +0,0 @@ -// This file was procedurally generated from the following sources: -// - src/accessor-names/literal-numeric-leading-decimal.case -// - src/accessor-names/default/cls-private-expr-inst.template -/*--- -description: Computed values as accessor property names (numeric literal with leading decimal point) (Class expression, instance private method) -flags: [generated] -info: | - [...] - MethodDefinition[Yield, Await]: - PropertyNameClassElementName [?Yield, ?Await]( - UniqueFormalParameters [~Yield, ~Await] ) { - FunctionBody [~Yield, ~Await] } - AsyncMethod[?Yield, ?Await] - get PropertyName ClassElementName [?Yield, ?Await] (){ - FunctionBody [~Yield, ~Await] } - set PropertyNameClassElementName [?Yield, ?Await] ( - PropertySetParameterList ) { FunctionBody [~Yield, ~Await] } - AsyncMethod [Yield, Await]: - async [no LineTerminator here] PropertyName - ClassElementName[?Yield, ?Await]( - UniqueFormalParameters[~Yield, +Await] ) { AsyncFunctionBody } - - - 12.2.6.7 Runtime Semantics: Evaluation - - [...] - - ComputedPropertyName : [ AssignmentExpression ] - - 1. Let exprValue be the result of evaluating AssignmentExpression. - 2. Let propName be ? GetValue(exprValue). - 3. Return ? ToPropertyKey(propName). ----*/ - -var stringSet; - -var C = class { - get #.1() { return 'get string'; } - set #.1(param) { stringSet = param; } - - getPrivateReference() { - return this[#'0.1']; - } - - setPrivateReference(value) { - this[#'0.1'] = value; - } -}; - -var inst = new C(); - -assert.sameValue(inst.getPrivateReference(), 'get string'); - -inst.setPrivateReference('set string'); -assert.sameValue(stringSet, 'set string'); diff --git a/test/language/expressions/class/private-accessor-name-inst-literal-numeric-non-canonical.js b/test/language/expressions/class/private-accessor-name-inst-literal-numeric-non-canonical.js deleted file mode 100644 index 2087bf415f..0000000000 --- a/test/language/expressions/class/private-accessor-name-inst-literal-numeric-non-canonical.js +++ /dev/null @@ -1,55 +0,0 @@ -// This file was procedurally generated from the following sources: -// - src/accessor-names/literal-numeric-non-canonical.case -// - src/accessor-names/default/cls-private-expr-inst.template -/*--- -description: Computed values as accessor property names (numeric literal with non-canonical representation) (Class expression, instance private method) -flags: [generated] -info: | - [...] - MethodDefinition[Yield, Await]: - PropertyNameClassElementName [?Yield, ?Await]( - UniqueFormalParameters [~Yield, ~Await] ) { - FunctionBody [~Yield, ~Await] } - AsyncMethod[?Yield, ?Await] - get PropertyName ClassElementName [?Yield, ?Await] (){ - FunctionBody [~Yield, ~Await] } - set PropertyNameClassElementName [?Yield, ?Await] ( - PropertySetParameterList ) { FunctionBody [~Yield, ~Await] } - AsyncMethod [Yield, Await]: - async [no LineTerminator here] PropertyName - ClassElementName[?Yield, ?Await]( - UniqueFormalParameters[~Yield, +Await] ) { AsyncFunctionBody } - - - 12.2.6.7 Runtime Semantics: Evaluation - - [...] - - ComputedPropertyName : [ AssignmentExpression ] - - 1. Let exprValue be the result of evaluating AssignmentExpression. - 2. Let propName be ? GetValue(exprValue). - 3. Return ? ToPropertyKey(propName). ----*/ - -var stringSet; - -var C = class { - get #0.0000001() { return 'get string'; } - set #0.0000001(param) { stringSet = param; } - - getPrivateReference() { - return this[#'1e-7']; - } - - setPrivateReference(value) { - this[#'1e-7'] = value; - } -}; - -var inst = new C(); - -assert.sameValue(inst.getPrivateReference(), 'get string'); - -inst.setPrivateReference('set string'); -assert.sameValue(stringSet, 'set string'); diff --git a/test/language/expressions/class/private-accessor-name-inst-literal-numeric-octal.js b/test/language/expressions/class/private-accessor-name-inst-literal-numeric-octal.js deleted file mode 100644 index 0facc10b49..0000000000 --- a/test/language/expressions/class/private-accessor-name-inst-literal-numeric-octal.js +++ /dev/null @@ -1,55 +0,0 @@ -// This file was procedurally generated from the following sources: -// - src/accessor-names/literal-numeric-octal.case -// - src/accessor-names/default/cls-private-expr-inst.template -/*--- -description: Computed values as accessor property names (numeric literal in octal notation) (Class expression, instance private method) -flags: [generated] -info: | - [...] - MethodDefinition[Yield, Await]: - PropertyNameClassElementName [?Yield, ?Await]( - UniqueFormalParameters [~Yield, ~Await] ) { - FunctionBody [~Yield, ~Await] } - AsyncMethod[?Yield, ?Await] - get PropertyName ClassElementName [?Yield, ?Await] (){ - FunctionBody [~Yield, ~Await] } - set PropertyNameClassElementName [?Yield, ?Await] ( - PropertySetParameterList ) { FunctionBody [~Yield, ~Await] } - AsyncMethod [Yield, Await]: - async [no LineTerminator here] PropertyName - ClassElementName[?Yield, ?Await]( - UniqueFormalParameters[~Yield, +Await] ) { AsyncFunctionBody } - - - 12.2.6.7 Runtime Semantics: Evaluation - - [...] - - ComputedPropertyName : [ AssignmentExpression ] - - 1. Let exprValue be the result of evaluating AssignmentExpression. - 2. Let propName be ? GetValue(exprValue). - 3. Return ? ToPropertyKey(propName). ----*/ - -var stringSet; - -var C = class { - get #0o10() { return 'get string'; } - set #0o10(param) { stringSet = param; } - - getPrivateReference() { - return this[#'8']; - } - - setPrivateReference(value) { - this[#'8'] = value; - } -}; - -var inst = new C(); - -assert.sameValue(inst.getPrivateReference(), 'get string'); - -inst.setPrivateReference('set string'); -assert.sameValue(stringSet, 'set string'); diff --git a/test/language/expressions/class/private-accessor-name-inst-literal-numeric-zero.js b/test/language/expressions/class/private-accessor-name-inst-literal-numeric-zero.js deleted file mode 100644 index 1739edc48b..0000000000 --- a/test/language/expressions/class/private-accessor-name-inst-literal-numeric-zero.js +++ /dev/null @@ -1,55 +0,0 @@ -// This file was procedurally generated from the following sources: -// - src/accessor-names/literal-numeric-zero.case -// - src/accessor-names/default/cls-private-expr-inst.template -/*--- -description: Computed values as accessor property names (numeric literal zero) (Class expression, instance private method) -flags: [generated] -info: | - [...] - MethodDefinition[Yield, Await]: - PropertyNameClassElementName [?Yield, ?Await]( - UniqueFormalParameters [~Yield, ~Await] ) { - FunctionBody [~Yield, ~Await] } - AsyncMethod[?Yield, ?Await] - get PropertyName ClassElementName [?Yield, ?Await] (){ - FunctionBody [~Yield, ~Await] } - set PropertyNameClassElementName [?Yield, ?Await] ( - PropertySetParameterList ) { FunctionBody [~Yield, ~Await] } - AsyncMethod [Yield, Await]: - async [no LineTerminator here] PropertyName - ClassElementName[?Yield, ?Await]( - UniqueFormalParameters[~Yield, +Await] ) { AsyncFunctionBody } - - - 12.2.6.7 Runtime Semantics: Evaluation - - [...] - - ComputedPropertyName : [ AssignmentExpression ] - - 1. Let exprValue be the result of evaluating AssignmentExpression. - 2. Let propName be ? GetValue(exprValue). - 3. Return ? ToPropertyKey(propName). ----*/ - -var stringSet; - -var C = class { - get #0() { return 'get string'; } - set #0(param) { stringSet = param; } - - getPrivateReference() { - return this[#'0']; - } - - setPrivateReference(value) { - this[#'0'] = value; - } -}; - -var inst = new C(); - -assert.sameValue(inst.getPrivateReference(), 'get string'); - -inst.setPrivateReference('set string'); -assert.sameValue(stringSet, 'set string'); diff --git a/test/language/expressions/class/private-accessor-name-inst-literal-string-char-escape.js b/test/language/expressions/class/private-accessor-name-inst-literal-string-char-escape.js deleted file mode 100644 index 77d40027e7..0000000000 --- a/test/language/expressions/class/private-accessor-name-inst-literal-string-char-escape.js +++ /dev/null @@ -1,55 +0,0 @@ -// This file was procedurally generated from the following sources: -// - src/accessor-names/literal-string-char-escape.case -// - src/accessor-names/default/cls-private-expr-inst.template -/*--- -description: Computed values as accessor property names (string literal containing a character escape sequence) (Class expression, instance private method) -flags: [generated] -info: | - [...] - MethodDefinition[Yield, Await]: - PropertyNameClassElementName [?Yield, ?Await]( - UniqueFormalParameters [~Yield, ~Await] ) { - FunctionBody [~Yield, ~Await] } - AsyncMethod[?Yield, ?Await] - get PropertyName ClassElementName [?Yield, ?Await] (){ - FunctionBody [~Yield, ~Await] } - set PropertyNameClassElementName [?Yield, ?Await] ( - PropertySetParameterList ) { FunctionBody [~Yield, ~Await] } - AsyncMethod [Yield, Await]: - async [no LineTerminator here] PropertyName - ClassElementName[?Yield, ?Await]( - UniqueFormalParameters[~Yield, +Await] ) { AsyncFunctionBody } - - - 12.2.6.7 Runtime Semantics: Evaluation - - [...] - - ComputedPropertyName : [ AssignmentExpression ] - - 1. Let exprValue be the result of evaluating AssignmentExpression. - 2. Let propName be ? GetValue(exprValue). - 3. Return ? ToPropertyKey(propName). ----*/ - -var stringSet; - -var C = class { - get #'character\tescape'() { return 'get string'; } - set #'character\tescape'(param) { stringSet = param; } - - getPrivateReference() { - return this[#'character escape']; - } - - setPrivateReference(value) { - this[#'character escape'] = value; - } -}; - -var inst = new C(); - -assert.sameValue(inst.getPrivateReference(), 'get string'); - -inst.setPrivateReference('set string'); -assert.sameValue(stringSet, 'set string'); diff --git a/test/language/expressions/class/private-accessor-name-inst-literal-string-double-quote.js b/test/language/expressions/class/private-accessor-name-inst-literal-string-double-quote.js deleted file mode 100644 index 9006e8592a..0000000000 --- a/test/language/expressions/class/private-accessor-name-inst-literal-string-double-quote.js +++ /dev/null @@ -1,55 +0,0 @@ -// This file was procedurally generated from the following sources: -// - src/accessor-names/literal-string-double-quote.case -// - src/accessor-names/default/cls-private-expr-inst.template -/*--- -description: Computed values as accessor property names (string literal using double quotes) (Class expression, instance private method) -flags: [generated] -info: | - [...] - MethodDefinition[Yield, Await]: - PropertyNameClassElementName [?Yield, ?Await]( - UniqueFormalParameters [~Yield, ~Await] ) { - FunctionBody [~Yield, ~Await] } - AsyncMethod[?Yield, ?Await] - get PropertyName ClassElementName [?Yield, ?Await] (){ - FunctionBody [~Yield, ~Await] } - set PropertyNameClassElementName [?Yield, ?Await] ( - PropertySetParameterList ) { FunctionBody [~Yield, ~Await] } - AsyncMethod [Yield, Await]: - async [no LineTerminator here] PropertyName - ClassElementName[?Yield, ?Await]( - UniqueFormalParameters[~Yield, +Await] ) { AsyncFunctionBody } - - - 12.2.6.7 Runtime Semantics: Evaluation - - [...] - - ComputedPropertyName : [ AssignmentExpression ] - - 1. Let exprValue be the result of evaluating AssignmentExpression. - 2. Let propName be ? GetValue(exprValue). - 3. Return ? ToPropertyKey(propName). ----*/ - -var stringSet; - -var C = class { - get #"doubleQuote"() { return 'get string'; } - set #"doubleQuote"(param) { stringSet = param; } - - getPrivateReference() { - return this[#"doubleQuote"]; - } - - setPrivateReference(value) { - this[#"doubleQuote"] = value; - } -}; - -var inst = new C(); - -assert.sameValue(inst.getPrivateReference(), 'get string'); - -inst.setPrivateReference('set string'); -assert.sameValue(stringSet, 'set string'); diff --git a/test/language/expressions/class/private-accessor-name-inst-literal-string-empty.js b/test/language/expressions/class/private-accessor-name-inst-literal-string-empty.js deleted file mode 100644 index cc2dc71e19..0000000000 --- a/test/language/expressions/class/private-accessor-name-inst-literal-string-empty.js +++ /dev/null @@ -1,55 +0,0 @@ -// This file was procedurally generated from the following sources: -// - src/accessor-names/literal-string-empty.case -// - src/accessor-names/default/cls-private-expr-inst.template -/*--- -description: Computed values as accessor property names (string literal, the empty string) (Class expression, instance private method) -flags: [generated] -info: | - [...] - MethodDefinition[Yield, Await]: - PropertyNameClassElementName [?Yield, ?Await]( - UniqueFormalParameters [~Yield, ~Await] ) { - FunctionBody [~Yield, ~Await] } - AsyncMethod[?Yield, ?Await] - get PropertyName ClassElementName [?Yield, ?Await] (){ - FunctionBody [~Yield, ~Await] } - set PropertyNameClassElementName [?Yield, ?Await] ( - PropertySetParameterList ) { FunctionBody [~Yield, ~Await] } - AsyncMethod [Yield, Await]: - async [no LineTerminator here] PropertyName - ClassElementName[?Yield, ?Await]( - UniqueFormalParameters[~Yield, +Await] ) { AsyncFunctionBody } - - - 12.2.6.7 Runtime Semantics: Evaluation - - [...] - - ComputedPropertyName : [ AssignmentExpression ] - - 1. Let exprValue be the result of evaluating AssignmentExpression. - 2. Let propName be ? GetValue(exprValue). - 3. Return ? ToPropertyKey(propName). ----*/ - -var stringSet; - -var C = class { - get #''() { return 'get string'; } - set #''(param) { stringSet = param; } - - getPrivateReference() { - return this[#'']; - } - - setPrivateReference(value) { - this[#''] = value; - } -}; - -var inst = new C(); - -assert.sameValue(inst.getPrivateReference(), 'get string'); - -inst.setPrivateReference('set string'); -assert.sameValue(stringSet, 'set string'); diff --git a/test/language/expressions/class/private-accessor-name-inst-literal-string-hex-escape.js b/test/language/expressions/class/private-accessor-name-inst-literal-string-hex-escape.js deleted file mode 100644 index 59d556a130..0000000000 --- a/test/language/expressions/class/private-accessor-name-inst-literal-string-hex-escape.js +++ /dev/null @@ -1,55 +0,0 @@ -// This file was procedurally generated from the following sources: -// - src/accessor-names/literal-string-hex-escape.case -// - src/accessor-names/default/cls-private-expr-inst.template -/*--- -description: Computed values as accessor property names (string literal containing a hexadecimal escape sequence) (Class expression, instance private method) -flags: [generated] -info: | - [...] - MethodDefinition[Yield, Await]: - PropertyNameClassElementName [?Yield, ?Await]( - UniqueFormalParameters [~Yield, ~Await] ) { - FunctionBody [~Yield, ~Await] } - AsyncMethod[?Yield, ?Await] - get PropertyName ClassElementName [?Yield, ?Await] (){ - FunctionBody [~Yield, ~Await] } - set PropertyNameClassElementName [?Yield, ?Await] ( - PropertySetParameterList ) { FunctionBody [~Yield, ~Await] } - AsyncMethod [Yield, Await]: - async [no LineTerminator here] PropertyName - ClassElementName[?Yield, ?Await]( - UniqueFormalParameters[~Yield, +Await] ) { AsyncFunctionBody } - - - 12.2.6.7 Runtime Semantics: Evaluation - - [...] - - ComputedPropertyName : [ AssignmentExpression ] - - 1. Let exprValue be the result of evaluating AssignmentExpression. - 2. Let propName be ? GetValue(exprValue). - 3. Return ? ToPropertyKey(propName). ----*/ - -var stringSet; - -var C = class { - get #'hex\x45scape'() { return 'get string'; } - set #'hex\x45scape'(param) { stringSet = param; } - - getPrivateReference() { - return this[#'hexEscape']; - } - - setPrivateReference(value) { - this[#'hexEscape'] = value; - } -}; - -var inst = new C(); - -assert.sameValue(inst.getPrivateReference(), 'get string'); - -inst.setPrivateReference('set string'); -assert.sameValue(stringSet, 'set string'); diff --git a/test/language/expressions/class/private-accessor-name-inst-literal-string-line-continuation.js b/test/language/expressions/class/private-accessor-name-inst-literal-string-line-continuation.js deleted file mode 100644 index bd2d9dea0f..0000000000 --- a/test/language/expressions/class/private-accessor-name-inst-literal-string-line-continuation.js +++ /dev/null @@ -1,57 +0,0 @@ -// This file was procedurally generated from the following sources: -// - src/accessor-names/literal-string-line-continuation.case -// - src/accessor-names/default/cls-private-expr-inst.template -/*--- -description: Computed values as accessor property names (string literal containing LineContinuation) (Class expression, instance private method) -flags: [generated] -info: | - [...] - MethodDefinition[Yield, Await]: - PropertyNameClassElementName [?Yield, ?Await]( - UniqueFormalParameters [~Yield, ~Await] ) { - FunctionBody [~Yield, ~Await] } - AsyncMethod[?Yield, ?Await] - get PropertyName ClassElementName [?Yield, ?Await] (){ - FunctionBody [~Yield, ~Await] } - set PropertyNameClassElementName [?Yield, ?Await] ( - PropertySetParameterList ) { FunctionBody [~Yield, ~Await] } - AsyncMethod [Yield, Await]: - async [no LineTerminator here] PropertyName - ClassElementName[?Yield, ?Await]( - UniqueFormalParameters[~Yield, +Await] ) { AsyncFunctionBody } - - - 12.2.6.7 Runtime Semantics: Evaluation - - [...] - - ComputedPropertyName : [ AssignmentExpression ] - - 1. Let exprValue be the result of evaluating AssignmentExpression. - 2. Let propName be ? GetValue(exprValue). - 3. Return ? ToPropertyKey(propName). ----*/ - -var stringSet; - -var C = class { - get #'line\ -Continuation'() { return 'get string'; } - set #'line\ -Continuation'(param) { stringSet = param; } - - getPrivateReference() { - return this[#'lineContinuation']; - } - - setPrivateReference(value) { - this[#'lineContinuation'] = value; - } -}; - -var inst = new C(); - -assert.sameValue(inst.getPrivateReference(), 'get string'); - -inst.setPrivateReference('set string'); -assert.sameValue(stringSet, 'set string'); diff --git a/test/language/expressions/class/private-accessor-name-inst-literal-string-single-quote.js b/test/language/expressions/class/private-accessor-name-inst-literal-string-single-quote.js deleted file mode 100644 index b1d153585f..0000000000 --- a/test/language/expressions/class/private-accessor-name-inst-literal-string-single-quote.js +++ /dev/null @@ -1,55 +0,0 @@ -// This file was procedurally generated from the following sources: -// - src/accessor-names/literal-string-single-quote.case -// - src/accessor-names/default/cls-private-expr-inst.template -/*--- -description: Computed values as accessor property names (string literal using single quotes) (Class expression, instance private method) -flags: [generated] -info: | - [...] - MethodDefinition[Yield, Await]: - PropertyNameClassElementName [?Yield, ?Await]( - UniqueFormalParameters [~Yield, ~Await] ) { - FunctionBody [~Yield, ~Await] } - AsyncMethod[?Yield, ?Await] - get PropertyName ClassElementName [?Yield, ?Await] (){ - FunctionBody [~Yield, ~Await] } - set PropertyNameClassElementName [?Yield, ?Await] ( - PropertySetParameterList ) { FunctionBody [~Yield, ~Await] } - AsyncMethod [Yield, Await]: - async [no LineTerminator here] PropertyName - ClassElementName[?Yield, ?Await]( - UniqueFormalParameters[~Yield, +Await] ) { AsyncFunctionBody } - - - 12.2.6.7 Runtime Semantics: Evaluation - - [...] - - ComputedPropertyName : [ AssignmentExpression ] - - 1. Let exprValue be the result of evaluating AssignmentExpression. - 2. Let propName be ? GetValue(exprValue). - 3. Return ? ToPropertyKey(propName). ----*/ - -var stringSet; - -var C = class { - get #'singleQuote'() { return 'get string'; } - set #'singleQuote'(param) { stringSet = param; } - - getPrivateReference() { - return this[#'singleQuote']; - } - - setPrivateReference(value) { - this[#'singleQuote'] = value; - } -}; - -var inst = new C(); - -assert.sameValue(inst.getPrivateReference(), 'get string'); - -inst.setPrivateReference('set string'); -assert.sameValue(stringSet, 'set string'); diff --git a/test/language/expressions/class/private-accessor-name-inst-literal-string-unicode-escape.js b/test/language/expressions/class/private-accessor-name-inst-literal-string-unicode-escape.js deleted file mode 100644 index e2b1e8b018..0000000000 --- a/test/language/expressions/class/private-accessor-name-inst-literal-string-unicode-escape.js +++ /dev/null @@ -1,55 +0,0 @@ -// This file was procedurally generated from the following sources: -// - src/accessor-names/literal-string-unicode-escape.case -// - src/accessor-names/default/cls-private-expr-inst.template -/*--- -description: Computed values as accessor property names (string literal containing a Unicode escape sequence) (Class expression, instance private method) -flags: [generated] -info: | - [...] - MethodDefinition[Yield, Await]: - PropertyNameClassElementName [?Yield, ?Await]( - UniqueFormalParameters [~Yield, ~Await] ) { - FunctionBody [~Yield, ~Await] } - AsyncMethod[?Yield, ?Await] - get PropertyName ClassElementName [?Yield, ?Await] (){ - FunctionBody [~Yield, ~Await] } - set PropertyNameClassElementName [?Yield, ?Await] ( - PropertySetParameterList ) { FunctionBody [~Yield, ~Await] } - AsyncMethod [Yield, Await]: - async [no LineTerminator here] PropertyName - ClassElementName[?Yield, ?Await]( - UniqueFormalParameters[~Yield, +Await] ) { AsyncFunctionBody } - - - 12.2.6.7 Runtime Semantics: Evaluation - - [...] - - ComputedPropertyName : [ AssignmentExpression ] - - 1. Let exprValue be the result of evaluating AssignmentExpression. - 2. Let propName be ? GetValue(exprValue). - 3. Return ? ToPropertyKey(propName). ----*/ - -var stringSet; - -var C = class { - get #'unicod\u{000065}Escape'() { return 'get string'; } - set #'unicod\u{000065}Escape'(param) { stringSet = param; } - - getPrivateReference() { - return this[#'unicodeEscape']; - } - - setPrivateReference(value) { - this[#'unicodeEscape'] = value; - } -}; - -var inst = new C(); - -assert.sameValue(inst.getPrivateReference(), 'get string'); - -inst.setPrivateReference('set string'); -assert.sameValue(stringSet, 'set string'); diff --git a/test/language/expressions/class/private-accessor-name-static-computed.js b/test/language/expressions/class/private-accessor-name-static-computed.js deleted file mode 100644 index a5785dd034..0000000000 --- a/test/language/expressions/class/private-accessor-name-static-computed.js +++ /dev/null @@ -1,56 +0,0 @@ -// This file was procedurally generated from the following sources: -// - src/accessor-names/computed.case -// - src/accessor-names/default/cls-private-expr-static.template -/*--- -description: Computed values as accessor property names (AssignmentExpression) (Class expression, static private method) -flags: [generated] -info: | - [...] - MethodDefinition[Yield, Await]: - PropertyNameClassElementName [?Yield, ?Await]( - UniqueFormalParameters [~Yield, ~Await] ) { - FunctionBody [~Yield, ~Await] } - AsyncMethod[?Yield, ?Await] - get PropertyName ClassElementName [?Yield, ?Await] (){ - FunctionBody [~Yield, ~Await] } - set PropertyNameClassElementName [?Yield, ?Await] ( - PropertySetParameterList ) { FunctionBody [~Yield, ~Await] } - AsyncMethod [Yield, Await]: - async [no LineTerminator here] PropertyName - ClassElementName[?Yield, ?Await]( - UniqueFormalParameters[~Yield, +Await] ) { AsyncFunctionBody } - - - 12.2.6.7 Runtime Semantics: Evaluation - - [...] - - ComputedPropertyName : [ AssignmentExpression ] - - 1. Let exprValue be the result of evaluating AssignmentExpression. - 2. Let propName be ? GetValue(exprValue). - 3. Return ? ToPropertyKey(propName). ----*/ -var _; - - -var stringSet; - -var C = class { - static get #[_ = 'str' + 'ing']() { return 'get string'; } - static set #[_ = 'str' + 'ing'](param) { stringSet = param; } - - static getPrivateReference() { - return this.#'string'; - } - - static setPrivateReference(value) { - this.#'string' = value; - } -}; - - -assert.sameValue(C.getPrivateReference(), 'get string'); - -C.setPrivateReference('set string'); -assert.sameValue(stringSet, 'set string'); diff --git a/test/language/expressions/class/private-accessor-name-static-literal-numeric-binary.js b/test/language/expressions/class/private-accessor-name-static-literal-numeric-binary.js deleted file mode 100644 index 605f84fec4..0000000000 --- a/test/language/expressions/class/private-accessor-name-static-literal-numeric-binary.js +++ /dev/null @@ -1,54 +0,0 @@ -// This file was procedurally generated from the following sources: -// - src/accessor-names/literal-numeric-binary.case -// - src/accessor-names/default/cls-private-expr-static.template -/*--- -description: Computed values as accessor property names (numeric literal in binary notation) (Class expression, static private method) -flags: [generated] -info: | - [...] - MethodDefinition[Yield, Await]: - PropertyNameClassElementName [?Yield, ?Await]( - UniqueFormalParameters [~Yield, ~Await] ) { - FunctionBody [~Yield, ~Await] } - AsyncMethod[?Yield, ?Await] - get PropertyName ClassElementName [?Yield, ?Await] (){ - FunctionBody [~Yield, ~Await] } - set PropertyNameClassElementName [?Yield, ?Await] ( - PropertySetParameterList ) { FunctionBody [~Yield, ~Await] } - AsyncMethod [Yield, Await]: - async [no LineTerminator here] PropertyName - ClassElementName[?Yield, ?Await]( - UniqueFormalParameters[~Yield, +Await] ) { AsyncFunctionBody } - - - 12.2.6.7 Runtime Semantics: Evaluation - - [...] - - ComputedPropertyName : [ AssignmentExpression ] - - 1. Let exprValue be the result of evaluating AssignmentExpression. - 2. Let propName be ? GetValue(exprValue). - 3. Return ? ToPropertyKey(propName). ----*/ - -var stringSet; - -var C = class { - static get #0b10() { return 'get string'; } - static set #0b10(param) { stringSet = param; } - - static getPrivateReference() { - return this.#'2'; - } - - static setPrivateReference(value) { - this.#'2' = value; - } -}; - - -assert.sameValue(C.getPrivateReference(), 'get string'); - -C.setPrivateReference('set string'); -assert.sameValue(stringSet, 'set string'); diff --git a/test/language/expressions/class/private-accessor-name-static-literal-numeric-exponent.js b/test/language/expressions/class/private-accessor-name-static-literal-numeric-exponent.js deleted file mode 100644 index eae37f8a90..0000000000 --- a/test/language/expressions/class/private-accessor-name-static-literal-numeric-exponent.js +++ /dev/null @@ -1,54 +0,0 @@ -// This file was procedurally generated from the following sources: -// - src/accessor-names/literal-numeric-exponent.case -// - src/accessor-names/default/cls-private-expr-static.template -/*--- -description: Computed values as accessor property names (numeric literal in exponent notation) (Class expression, static private method) -flags: [generated] -info: | - [...] - MethodDefinition[Yield, Await]: - PropertyNameClassElementName [?Yield, ?Await]( - UniqueFormalParameters [~Yield, ~Await] ) { - FunctionBody [~Yield, ~Await] } - AsyncMethod[?Yield, ?Await] - get PropertyName ClassElementName [?Yield, ?Await] (){ - FunctionBody [~Yield, ~Await] } - set PropertyNameClassElementName [?Yield, ?Await] ( - PropertySetParameterList ) { FunctionBody [~Yield, ~Await] } - AsyncMethod [Yield, Await]: - async [no LineTerminator here] PropertyName - ClassElementName[?Yield, ?Await]( - UniqueFormalParameters[~Yield, +Await] ) { AsyncFunctionBody } - - - 12.2.6.7 Runtime Semantics: Evaluation - - [...] - - ComputedPropertyName : [ AssignmentExpression ] - - 1. Let exprValue be the result of evaluating AssignmentExpression. - 2. Let propName be ? GetValue(exprValue). - 3. Return ? ToPropertyKey(propName). ----*/ - -var stringSet; - -var C = class { - static get #1E+9() { return 'get string'; } - static set #1E+9(param) { stringSet = param; } - - static getPrivateReference() { - return this.#'1000000000'; - } - - static setPrivateReference(value) { - this.#'1000000000' = value; - } -}; - - -assert.sameValue(C.getPrivateReference(), 'get string'); - -C.setPrivateReference('set string'); -assert.sameValue(stringSet, 'set string'); diff --git a/test/language/expressions/class/private-accessor-name-static-literal-numeric-hex.js b/test/language/expressions/class/private-accessor-name-static-literal-numeric-hex.js deleted file mode 100644 index d065233f7b..0000000000 --- a/test/language/expressions/class/private-accessor-name-static-literal-numeric-hex.js +++ /dev/null @@ -1,54 +0,0 @@ -// This file was procedurally generated from the following sources: -// - src/accessor-names/literal-numeric-hex.case -// - src/accessor-names/default/cls-private-expr-static.template -/*--- -description: Computed values as accessor property names (numeric literal in hexadecimal notation) (Class expression, static private method) -flags: [generated] -info: | - [...] - MethodDefinition[Yield, Await]: - PropertyNameClassElementName [?Yield, ?Await]( - UniqueFormalParameters [~Yield, ~Await] ) { - FunctionBody [~Yield, ~Await] } - AsyncMethod[?Yield, ?Await] - get PropertyName ClassElementName [?Yield, ?Await] (){ - FunctionBody [~Yield, ~Await] } - set PropertyNameClassElementName [?Yield, ?Await] ( - PropertySetParameterList ) { FunctionBody [~Yield, ~Await] } - AsyncMethod [Yield, Await]: - async [no LineTerminator here] PropertyName - ClassElementName[?Yield, ?Await]( - UniqueFormalParameters[~Yield, +Await] ) { AsyncFunctionBody } - - - 12.2.6.7 Runtime Semantics: Evaluation - - [...] - - ComputedPropertyName : [ AssignmentExpression ] - - 1. Let exprValue be the result of evaluating AssignmentExpression. - 2. Let propName be ? GetValue(exprValue). - 3. Return ? ToPropertyKey(propName). ----*/ - -var stringSet; - -var C = class { - static get #0x10() { return 'get string'; } - static set #0x10(param) { stringSet = param; } - - static getPrivateReference() { - return this.#'16'; - } - - static setPrivateReference(value) { - this.#'16' = value; - } -}; - - -assert.sameValue(C.getPrivateReference(), 'get string'); - -C.setPrivateReference('set string'); -assert.sameValue(stringSet, 'set string'); diff --git a/test/language/expressions/class/private-accessor-name-static-literal-numeric-leading-decimal.js b/test/language/expressions/class/private-accessor-name-static-literal-numeric-leading-decimal.js deleted file mode 100644 index 4c4323baf1..0000000000 --- a/test/language/expressions/class/private-accessor-name-static-literal-numeric-leading-decimal.js +++ /dev/null @@ -1,54 +0,0 @@ -// This file was procedurally generated from the following sources: -// - src/accessor-names/literal-numeric-leading-decimal.case -// - src/accessor-names/default/cls-private-expr-static.template -/*--- -description: Computed values as accessor property names (numeric literal with leading decimal point) (Class expression, static private method) -flags: [generated] -info: | - [...] - MethodDefinition[Yield, Await]: - PropertyNameClassElementName [?Yield, ?Await]( - UniqueFormalParameters [~Yield, ~Await] ) { - FunctionBody [~Yield, ~Await] } - AsyncMethod[?Yield, ?Await] - get PropertyName ClassElementName [?Yield, ?Await] (){ - FunctionBody [~Yield, ~Await] } - set PropertyNameClassElementName [?Yield, ?Await] ( - PropertySetParameterList ) { FunctionBody [~Yield, ~Await] } - AsyncMethod [Yield, Await]: - async [no LineTerminator here] PropertyName - ClassElementName[?Yield, ?Await]( - UniqueFormalParameters[~Yield, +Await] ) { AsyncFunctionBody } - - - 12.2.6.7 Runtime Semantics: Evaluation - - [...] - - ComputedPropertyName : [ AssignmentExpression ] - - 1. Let exprValue be the result of evaluating AssignmentExpression. - 2. Let propName be ? GetValue(exprValue). - 3. Return ? ToPropertyKey(propName). ----*/ - -var stringSet; - -var C = class { - static get #.1() { return 'get string'; } - static set #.1(param) { stringSet = param; } - - static getPrivateReference() { - return this.#'0.1'; - } - - static setPrivateReference(value) { - this.#'0.1' = value; - } -}; - - -assert.sameValue(C.getPrivateReference(), 'get string'); - -C.setPrivateReference('set string'); -assert.sameValue(stringSet, 'set string'); diff --git a/test/language/expressions/class/private-accessor-name-static-literal-numeric-non-canonical.js b/test/language/expressions/class/private-accessor-name-static-literal-numeric-non-canonical.js deleted file mode 100644 index 3900a516a7..0000000000 --- a/test/language/expressions/class/private-accessor-name-static-literal-numeric-non-canonical.js +++ /dev/null @@ -1,54 +0,0 @@ -// This file was procedurally generated from the following sources: -// - src/accessor-names/literal-numeric-non-canonical.case -// - src/accessor-names/default/cls-private-expr-static.template -/*--- -description: Computed values as accessor property names (numeric literal with non-canonical representation) (Class expression, static private method) -flags: [generated] -info: | - [...] - MethodDefinition[Yield, Await]: - PropertyNameClassElementName [?Yield, ?Await]( - UniqueFormalParameters [~Yield, ~Await] ) { - FunctionBody [~Yield, ~Await] } - AsyncMethod[?Yield, ?Await] - get PropertyName ClassElementName [?Yield, ?Await] (){ - FunctionBody [~Yield, ~Await] } - set PropertyNameClassElementName [?Yield, ?Await] ( - PropertySetParameterList ) { FunctionBody [~Yield, ~Await] } - AsyncMethod [Yield, Await]: - async [no LineTerminator here] PropertyName - ClassElementName[?Yield, ?Await]( - UniqueFormalParameters[~Yield, +Await] ) { AsyncFunctionBody } - - - 12.2.6.7 Runtime Semantics: Evaluation - - [...] - - ComputedPropertyName : [ AssignmentExpression ] - - 1. Let exprValue be the result of evaluating AssignmentExpression. - 2. Let propName be ? GetValue(exprValue). - 3. Return ? ToPropertyKey(propName). ----*/ - -var stringSet; - -var C = class { - static get #0.0000001() { return 'get string'; } - static set #0.0000001(param) { stringSet = param; } - - static getPrivateReference() { - return this.#'1e-7'; - } - - static setPrivateReference(value) { - this.#'1e-7' = value; - } -}; - - -assert.sameValue(C.getPrivateReference(), 'get string'); - -C.setPrivateReference('set string'); -assert.sameValue(stringSet, 'set string'); diff --git a/test/language/expressions/class/private-accessor-name-static-literal-numeric-octal.js b/test/language/expressions/class/private-accessor-name-static-literal-numeric-octal.js deleted file mode 100644 index 2eac03f682..0000000000 --- a/test/language/expressions/class/private-accessor-name-static-literal-numeric-octal.js +++ /dev/null @@ -1,54 +0,0 @@ -// This file was procedurally generated from the following sources: -// - src/accessor-names/literal-numeric-octal.case -// - src/accessor-names/default/cls-private-expr-static.template -/*--- -description: Computed values as accessor property names (numeric literal in octal notation) (Class expression, static private method) -flags: [generated] -info: | - [...] - MethodDefinition[Yield, Await]: - PropertyNameClassElementName [?Yield, ?Await]( - UniqueFormalParameters [~Yield, ~Await] ) { - FunctionBody [~Yield, ~Await] } - AsyncMethod[?Yield, ?Await] - get PropertyName ClassElementName [?Yield, ?Await] (){ - FunctionBody [~Yield, ~Await] } - set PropertyNameClassElementName [?Yield, ?Await] ( - PropertySetParameterList ) { FunctionBody [~Yield, ~Await] } - AsyncMethod [Yield, Await]: - async [no LineTerminator here] PropertyName - ClassElementName[?Yield, ?Await]( - UniqueFormalParameters[~Yield, +Await] ) { AsyncFunctionBody } - - - 12.2.6.7 Runtime Semantics: Evaluation - - [...] - - ComputedPropertyName : [ AssignmentExpression ] - - 1. Let exprValue be the result of evaluating AssignmentExpression. - 2. Let propName be ? GetValue(exprValue). - 3. Return ? ToPropertyKey(propName). ----*/ - -var stringSet; - -var C = class { - static get #0o10() { return 'get string'; } - static set #0o10(param) { stringSet = param; } - - static getPrivateReference() { - return this.#'8'; - } - - static setPrivateReference(value) { - this.#'8' = value; - } -}; - - -assert.sameValue(C.getPrivateReference(), 'get string'); - -C.setPrivateReference('set string'); -assert.sameValue(stringSet, 'set string'); diff --git a/test/language/expressions/class/private-accessor-name-static-literal-numeric-zero.js b/test/language/expressions/class/private-accessor-name-static-literal-numeric-zero.js deleted file mode 100644 index 1f998ccc98..0000000000 --- a/test/language/expressions/class/private-accessor-name-static-literal-numeric-zero.js +++ /dev/null @@ -1,54 +0,0 @@ -// This file was procedurally generated from the following sources: -// - src/accessor-names/literal-numeric-zero.case -// - src/accessor-names/default/cls-private-expr-static.template -/*--- -description: Computed values as accessor property names (numeric literal zero) (Class expression, static private method) -flags: [generated] -info: | - [...] - MethodDefinition[Yield, Await]: - PropertyNameClassElementName [?Yield, ?Await]( - UniqueFormalParameters [~Yield, ~Await] ) { - FunctionBody [~Yield, ~Await] } - AsyncMethod[?Yield, ?Await] - get PropertyName ClassElementName [?Yield, ?Await] (){ - FunctionBody [~Yield, ~Await] } - set PropertyNameClassElementName [?Yield, ?Await] ( - PropertySetParameterList ) { FunctionBody [~Yield, ~Await] } - AsyncMethod [Yield, Await]: - async [no LineTerminator here] PropertyName - ClassElementName[?Yield, ?Await]( - UniqueFormalParameters[~Yield, +Await] ) { AsyncFunctionBody } - - - 12.2.6.7 Runtime Semantics: Evaluation - - [...] - - ComputedPropertyName : [ AssignmentExpression ] - - 1. Let exprValue be the result of evaluating AssignmentExpression. - 2. Let propName be ? GetValue(exprValue). - 3. Return ? ToPropertyKey(propName). ----*/ - -var stringSet; - -var C = class { - static get #0() { return 'get string'; } - static set #0(param) { stringSet = param; } - - static getPrivateReference() { - return this.#'0'; - } - - static setPrivateReference(value) { - this.#'0' = value; - } -}; - - -assert.sameValue(C.getPrivateReference(), 'get string'); - -C.setPrivateReference('set string'); -assert.sameValue(stringSet, 'set string'); diff --git a/test/language/expressions/class/private-accessor-name-static-literal-string-char-escape.js b/test/language/expressions/class/private-accessor-name-static-literal-string-char-escape.js deleted file mode 100644 index f4e5ed9011..0000000000 --- a/test/language/expressions/class/private-accessor-name-static-literal-string-char-escape.js +++ /dev/null @@ -1,54 +0,0 @@ -// This file was procedurally generated from the following sources: -// - src/accessor-names/literal-string-char-escape.case -// - src/accessor-names/default/cls-private-expr-static.template -/*--- -description: Computed values as accessor property names (string literal containing a character escape sequence) (Class expression, static private method) -flags: [generated] -info: | - [...] - MethodDefinition[Yield, Await]: - PropertyNameClassElementName [?Yield, ?Await]( - UniqueFormalParameters [~Yield, ~Await] ) { - FunctionBody [~Yield, ~Await] } - AsyncMethod[?Yield, ?Await] - get PropertyName ClassElementName [?Yield, ?Await] (){ - FunctionBody [~Yield, ~Await] } - set PropertyNameClassElementName [?Yield, ?Await] ( - PropertySetParameterList ) { FunctionBody [~Yield, ~Await] } - AsyncMethod [Yield, Await]: - async [no LineTerminator here] PropertyName - ClassElementName[?Yield, ?Await]( - UniqueFormalParameters[~Yield, +Await] ) { AsyncFunctionBody } - - - 12.2.6.7 Runtime Semantics: Evaluation - - [...] - - ComputedPropertyName : [ AssignmentExpression ] - - 1. Let exprValue be the result of evaluating AssignmentExpression. - 2. Let propName be ? GetValue(exprValue). - 3. Return ? ToPropertyKey(propName). ----*/ - -var stringSet; - -var C = class { - static get #'character\tescape'() { return 'get string'; } - static set #'character\tescape'(param) { stringSet = param; } - - static getPrivateReference() { - return this.#'character escape'; - } - - static setPrivateReference(value) { - this.#'character escape' = value; - } -}; - - -assert.sameValue(C.getPrivateReference(), 'get string'); - -C.setPrivateReference('set string'); -assert.sameValue(stringSet, 'set string'); diff --git a/test/language/expressions/class/private-accessor-name-static-literal-string-double-quote.js b/test/language/expressions/class/private-accessor-name-static-literal-string-double-quote.js deleted file mode 100644 index bc4e2ada3f..0000000000 --- a/test/language/expressions/class/private-accessor-name-static-literal-string-double-quote.js +++ /dev/null @@ -1,54 +0,0 @@ -// This file was procedurally generated from the following sources: -// - src/accessor-names/literal-string-double-quote.case -// - src/accessor-names/default/cls-private-expr-static.template -/*--- -description: Computed values as accessor property names (string literal using double quotes) (Class expression, static private method) -flags: [generated] -info: | - [...] - MethodDefinition[Yield, Await]: - PropertyNameClassElementName [?Yield, ?Await]( - UniqueFormalParameters [~Yield, ~Await] ) { - FunctionBody [~Yield, ~Await] } - AsyncMethod[?Yield, ?Await] - get PropertyName ClassElementName [?Yield, ?Await] (){ - FunctionBody [~Yield, ~Await] } - set PropertyNameClassElementName [?Yield, ?Await] ( - PropertySetParameterList ) { FunctionBody [~Yield, ~Await] } - AsyncMethod [Yield, Await]: - async [no LineTerminator here] PropertyName - ClassElementName[?Yield, ?Await]( - UniqueFormalParameters[~Yield, +Await] ) { AsyncFunctionBody } - - - 12.2.6.7 Runtime Semantics: Evaluation - - [...] - - ComputedPropertyName : [ AssignmentExpression ] - - 1. Let exprValue be the result of evaluating AssignmentExpression. - 2. Let propName be ? GetValue(exprValue). - 3. Return ? ToPropertyKey(propName). ----*/ - -var stringSet; - -var C = class { - static get #"doubleQuote"() { return 'get string'; } - static set #"doubleQuote"(param) { stringSet = param; } - - static getPrivateReference() { - return this.#"doubleQuote"; - } - - static setPrivateReference(value) { - this.#"doubleQuote" = value; - } -}; - - -assert.sameValue(C.getPrivateReference(), 'get string'); - -C.setPrivateReference('set string'); -assert.sameValue(stringSet, 'set string'); diff --git a/test/language/expressions/class/private-accessor-name-static-literal-string-empty.js b/test/language/expressions/class/private-accessor-name-static-literal-string-empty.js deleted file mode 100644 index 7f01c1f53a..0000000000 --- a/test/language/expressions/class/private-accessor-name-static-literal-string-empty.js +++ /dev/null @@ -1,54 +0,0 @@ -// This file was procedurally generated from the following sources: -// - src/accessor-names/literal-string-empty.case -// - src/accessor-names/default/cls-private-expr-static.template -/*--- -description: Computed values as accessor property names (string literal, the empty string) (Class expression, static private method) -flags: [generated] -info: | - [...] - MethodDefinition[Yield, Await]: - PropertyNameClassElementName [?Yield, ?Await]( - UniqueFormalParameters [~Yield, ~Await] ) { - FunctionBody [~Yield, ~Await] } - AsyncMethod[?Yield, ?Await] - get PropertyName ClassElementName [?Yield, ?Await] (){ - FunctionBody [~Yield, ~Await] } - set PropertyNameClassElementName [?Yield, ?Await] ( - PropertySetParameterList ) { FunctionBody [~Yield, ~Await] } - AsyncMethod [Yield, Await]: - async [no LineTerminator here] PropertyName - ClassElementName[?Yield, ?Await]( - UniqueFormalParameters[~Yield, +Await] ) { AsyncFunctionBody } - - - 12.2.6.7 Runtime Semantics: Evaluation - - [...] - - ComputedPropertyName : [ AssignmentExpression ] - - 1. Let exprValue be the result of evaluating AssignmentExpression. - 2. Let propName be ? GetValue(exprValue). - 3. Return ? ToPropertyKey(propName). ----*/ - -var stringSet; - -var C = class { - static get #''() { return 'get string'; } - static set #''(param) { stringSet = param; } - - static getPrivateReference() { - return this.#''; - } - - static setPrivateReference(value) { - this.#'' = value; - } -}; - - -assert.sameValue(C.getPrivateReference(), 'get string'); - -C.setPrivateReference('set string'); -assert.sameValue(stringSet, 'set string'); diff --git a/test/language/expressions/class/private-accessor-name-static-literal-string-hex-escape.js b/test/language/expressions/class/private-accessor-name-static-literal-string-hex-escape.js deleted file mode 100644 index 1f05c8192f..0000000000 --- a/test/language/expressions/class/private-accessor-name-static-literal-string-hex-escape.js +++ /dev/null @@ -1,54 +0,0 @@ -// This file was procedurally generated from the following sources: -// - src/accessor-names/literal-string-hex-escape.case -// - src/accessor-names/default/cls-private-expr-static.template -/*--- -description: Computed values as accessor property names (string literal containing a hexadecimal escape sequence) (Class expression, static private method) -flags: [generated] -info: | - [...] - MethodDefinition[Yield, Await]: - PropertyNameClassElementName [?Yield, ?Await]( - UniqueFormalParameters [~Yield, ~Await] ) { - FunctionBody [~Yield, ~Await] } - AsyncMethod[?Yield, ?Await] - get PropertyName ClassElementName [?Yield, ?Await] (){ - FunctionBody [~Yield, ~Await] } - set PropertyNameClassElementName [?Yield, ?Await] ( - PropertySetParameterList ) { FunctionBody [~Yield, ~Await] } - AsyncMethod [Yield, Await]: - async [no LineTerminator here] PropertyName - ClassElementName[?Yield, ?Await]( - UniqueFormalParameters[~Yield, +Await] ) { AsyncFunctionBody } - - - 12.2.6.7 Runtime Semantics: Evaluation - - [...] - - ComputedPropertyName : [ AssignmentExpression ] - - 1. Let exprValue be the result of evaluating AssignmentExpression. - 2. Let propName be ? GetValue(exprValue). - 3. Return ? ToPropertyKey(propName). ----*/ - -var stringSet; - -var C = class { - static get #'hex\x45scape'() { return 'get string'; } - static set #'hex\x45scape'(param) { stringSet = param; } - - static getPrivateReference() { - return this.#'hexEscape'; - } - - static setPrivateReference(value) { - this.#'hexEscape' = value; - } -}; - - -assert.sameValue(C.getPrivateReference(), 'get string'); - -C.setPrivateReference('set string'); -assert.sameValue(stringSet, 'set string'); diff --git a/test/language/expressions/class/private-accessor-name-static-literal-string-line-continuation.js b/test/language/expressions/class/private-accessor-name-static-literal-string-line-continuation.js deleted file mode 100644 index 529c685268..0000000000 --- a/test/language/expressions/class/private-accessor-name-static-literal-string-line-continuation.js +++ /dev/null @@ -1,56 +0,0 @@ -// This file was procedurally generated from the following sources: -// - src/accessor-names/literal-string-line-continuation.case -// - src/accessor-names/default/cls-private-expr-static.template -/*--- -description: Computed values as accessor property names (string literal containing LineContinuation) (Class expression, static private method) -flags: [generated] -info: | - [...] - MethodDefinition[Yield, Await]: - PropertyNameClassElementName [?Yield, ?Await]( - UniqueFormalParameters [~Yield, ~Await] ) { - FunctionBody [~Yield, ~Await] } - AsyncMethod[?Yield, ?Await] - get PropertyName ClassElementName [?Yield, ?Await] (){ - FunctionBody [~Yield, ~Await] } - set PropertyNameClassElementName [?Yield, ?Await] ( - PropertySetParameterList ) { FunctionBody [~Yield, ~Await] } - AsyncMethod [Yield, Await]: - async [no LineTerminator here] PropertyName - ClassElementName[?Yield, ?Await]( - UniqueFormalParameters[~Yield, +Await] ) { AsyncFunctionBody } - - - 12.2.6.7 Runtime Semantics: Evaluation - - [...] - - ComputedPropertyName : [ AssignmentExpression ] - - 1. Let exprValue be the result of evaluating AssignmentExpression. - 2. Let propName be ? GetValue(exprValue). - 3. Return ? ToPropertyKey(propName). ----*/ - -var stringSet; - -var C = class { - static get #'line\ -Continuation'() { return 'get string'; } - static set #'line\ -Continuation'(param) { stringSet = param; } - - static getPrivateReference() { - return this.#'lineContinuation'; - } - - static setPrivateReference(value) { - this.#'lineContinuation' = value; - } -}; - - -assert.sameValue(C.getPrivateReference(), 'get string'); - -C.setPrivateReference('set string'); -assert.sameValue(stringSet, 'set string'); diff --git a/test/language/expressions/class/private-accessor-name-static-literal-string-single-quote.js b/test/language/expressions/class/private-accessor-name-static-literal-string-single-quote.js deleted file mode 100644 index a6eed4e540..0000000000 --- a/test/language/expressions/class/private-accessor-name-static-literal-string-single-quote.js +++ /dev/null @@ -1,54 +0,0 @@ -// This file was procedurally generated from the following sources: -// - src/accessor-names/literal-string-single-quote.case -// - src/accessor-names/default/cls-private-expr-static.template -/*--- -description: Computed values as accessor property names (string literal using single quotes) (Class expression, static private method) -flags: [generated] -info: | - [...] - MethodDefinition[Yield, Await]: - PropertyNameClassElementName [?Yield, ?Await]( - UniqueFormalParameters [~Yield, ~Await] ) { - FunctionBody [~Yield, ~Await] } - AsyncMethod[?Yield, ?Await] - get PropertyName ClassElementName [?Yield, ?Await] (){ - FunctionBody [~Yield, ~Await] } - set PropertyNameClassElementName [?Yield, ?Await] ( - PropertySetParameterList ) { FunctionBody [~Yield, ~Await] } - AsyncMethod [Yield, Await]: - async [no LineTerminator here] PropertyName - ClassElementName[?Yield, ?Await]( - UniqueFormalParameters[~Yield, +Await] ) { AsyncFunctionBody } - - - 12.2.6.7 Runtime Semantics: Evaluation - - [...] - - ComputedPropertyName : [ AssignmentExpression ] - - 1. Let exprValue be the result of evaluating AssignmentExpression. - 2. Let propName be ? GetValue(exprValue). - 3. Return ? ToPropertyKey(propName). ----*/ - -var stringSet; - -var C = class { - static get #'singleQuote'() { return 'get string'; } - static set #'singleQuote'(param) { stringSet = param; } - - static getPrivateReference() { - return this.#'singleQuote'; - } - - static setPrivateReference(value) { - this.#'singleQuote' = value; - } -}; - - -assert.sameValue(C.getPrivateReference(), 'get string'); - -C.setPrivateReference('set string'); -assert.sameValue(stringSet, 'set string'); diff --git a/test/language/expressions/class/private-accessor-name-static-literal-string-unicode-escape.js b/test/language/expressions/class/private-accessor-name-static-literal-string-unicode-escape.js deleted file mode 100644 index ca79684757..0000000000 --- a/test/language/expressions/class/private-accessor-name-static-literal-string-unicode-escape.js +++ /dev/null @@ -1,54 +0,0 @@ -// This file was procedurally generated from the following sources: -// - src/accessor-names/literal-string-unicode-escape.case -// - src/accessor-names/default/cls-private-expr-static.template -/*--- -description: Computed values as accessor property names (string literal containing a Unicode escape sequence) (Class expression, static private method) -flags: [generated] -info: | - [...] - MethodDefinition[Yield, Await]: - PropertyNameClassElementName [?Yield, ?Await]( - UniqueFormalParameters [~Yield, ~Await] ) { - FunctionBody [~Yield, ~Await] } - AsyncMethod[?Yield, ?Await] - get PropertyName ClassElementName [?Yield, ?Await] (){ - FunctionBody [~Yield, ~Await] } - set PropertyNameClassElementName [?Yield, ?Await] ( - PropertySetParameterList ) { FunctionBody [~Yield, ~Await] } - AsyncMethod [Yield, Await]: - async [no LineTerminator here] PropertyName - ClassElementName[?Yield, ?Await]( - UniqueFormalParameters[~Yield, +Await] ) { AsyncFunctionBody } - - - 12.2.6.7 Runtime Semantics: Evaluation - - [...] - - ComputedPropertyName : [ AssignmentExpression ] - - 1. Let exprValue be the result of evaluating AssignmentExpression. - 2. Let propName be ? GetValue(exprValue). - 3. Return ? ToPropertyKey(propName). ----*/ - -var stringSet; - -var C = class { - static get #'unicod\u{000065}Escape'() { return 'get string'; } - static set #'unicod\u{000065}Escape'(param) { stringSet = param; } - - static getPrivateReference() { - return this.#'unicodeEscape'; - } - - static setPrivateReference(value) { - this.#'unicodeEscape' = value; - } -}; - - -assert.sameValue(C.getPrivateReference(), 'get string'); - -C.setPrivateReference('set string'); -assert.sameValue(stringSet, 'set string'); diff --git a/test/language/expressions/class/private-accessor-name/inst-private-escape-sequence-ZWJ.js b/test/language/expressions/class/private-accessor-name/inst-private-escape-sequence-ZWJ.js new file mode 100644 index 0000000000..f1ed105118 --- /dev/null +++ b/test/language/expressions/class/private-accessor-name/inst-private-escape-sequence-ZWJ.js @@ -0,0 +1,78 @@ +// This file was procedurally generated from the following sources: +// - src/accessor-names/private-escape-sequence-ZWJ.case +// - src/accessor-names/private/cls-private-expr-inst.template +/*--- +description: Private IdentifierName - ZWJ (Class expression, instance private method) +features: [class-methods-private] +flags: [generated] +info: | + ClassElement : + MethodDefinition + static MethodDefinition + FieldDefinition ; + ; + + FieldDefinition : + ClassElementName Initializer _opt + + ClassElementName : + PropertyName + PrivateName + + PrivateName :: + # IdentifierName + + Initializer : + = AssignmentExpression + + IdentifierName :: + IdentifierStart + IdentifierName IdentifierPart + + IdentifierStart :: + UnicodeIDStart + $ + _ + \ UnicodeEscapeSequence + + IdentifierPart:: + UnicodeIDContinue + $ + \ UnicodeEscapeSequence + + + 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 stringSet; + +var C = class { + get #ZW_\u200D_J() { return 'get string'; } + set #ZW_\u200D_J(param) { stringSet = param; } + + getPrivateReference() { + return this.#ZW_‍_J; + } + + setPrivateReference(value) { + this.#ZW_‍_J = value; + } +}; + +var inst = new C(); + +assert.sameValue(inst.getPrivateReference(), 'get string'); + +inst.setPrivateReference('set string'); +assert.sameValue(stringSet, 'set string'); diff --git a/test/language/expressions/class/private-accessor-name/inst-private-escape-sequence-ZWNJ.js b/test/language/expressions/class/private-accessor-name/inst-private-escape-sequence-ZWNJ.js new file mode 100644 index 0000000000..dcc08c5f82 --- /dev/null +++ b/test/language/expressions/class/private-accessor-name/inst-private-escape-sequence-ZWNJ.js @@ -0,0 +1,78 @@ +// This file was procedurally generated from the following sources: +// - src/accessor-names/private-escape-sequence-ZWNJ.case +// - src/accessor-names/private/cls-private-expr-inst.template +/*--- +description: Private IdentifierName - ZWNJ (Class expression, instance private method) +features: [class-methods-private] +flags: [generated] +info: | + ClassElement : + MethodDefinition + static MethodDefinition + FieldDefinition ; + ; + + FieldDefinition : + ClassElementName Initializer _opt + + ClassElementName : + PropertyName + PrivateName + + PrivateName :: + # IdentifierName + + Initializer : + = AssignmentExpression + + IdentifierName :: + IdentifierStart + IdentifierName IdentifierPart + + IdentifierStart :: + UnicodeIDStart + $ + _ + \ UnicodeEscapeSequence + + IdentifierPart:: + UnicodeIDContinue + $ + \ UnicodeEscapeSequence + + + 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 stringSet; + +var C = class { + get #ZW_\u200C_NJ() { return 'get string'; } + set #ZW_\u200C_NJ(param) { stringSet = param; } + + getPrivateReference() { + return this.#ZW_‌_NJ; + } + + setPrivateReference(value) { + this.#ZW_‌_NJ = value; + } +}; + +var inst = new C(); + +assert.sameValue(inst.getPrivateReference(), 'get string'); + +inst.setPrivateReference('set string'); +assert.sameValue(stringSet, 'set string'); diff --git a/test/language/expressions/class/private-accessor-name/inst-private-escape-sequence-u2118.js b/test/language/expressions/class/private-accessor-name/inst-private-escape-sequence-u2118.js new file mode 100644 index 0000000000..7539f2c5fa --- /dev/null +++ b/test/language/expressions/class/private-accessor-name/inst-private-escape-sequence-u2118.js @@ -0,0 +1,78 @@ +// This file was procedurally generated from the following sources: +// - src/accessor-names/private-escape-sequence-u2118.case +// - src/accessor-names/private/cls-private-expr-inst.template +/*--- +description: Private IdentifierName - u2118 (℘) (Class expression, instance private method) +features: [class-methods-private] +flags: [generated] +info: | + ClassElement : + MethodDefinition + static MethodDefinition + FieldDefinition ; + ; + + FieldDefinition : + ClassElementName Initializer _opt + + ClassElementName : + PropertyName + PrivateName + + PrivateName :: + # IdentifierName + + Initializer : + = AssignmentExpression + + IdentifierName :: + IdentifierStart + IdentifierName IdentifierPart + + IdentifierStart :: + UnicodeIDStart + $ + _ + \ UnicodeEscapeSequence + + IdentifierPart:: + UnicodeIDContinue + $ + \ UnicodeEscapeSequence + + + 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 stringSet; + +var C = class { + get #\u2118() { return 'get string'; } + set #\u2118(param) { stringSet = param; } + + getPrivateReference() { + return this.#℘; + } + + setPrivateReference(value) { + this.#℘ = value; + } +}; + +var inst = new C(); + +assert.sameValue(inst.getPrivateReference(), 'get string'); + +inst.setPrivateReference('set string'); +assert.sameValue(stringSet, 'set string'); diff --git a/test/language/expressions/class/private-accessor-name/inst-private-escape-sequence-u6F.js b/test/language/expressions/class/private-accessor-name/inst-private-escape-sequence-u6F.js new file mode 100644 index 0000000000..926b99b404 --- /dev/null +++ b/test/language/expressions/class/private-accessor-name/inst-private-escape-sequence-u6F.js @@ -0,0 +1,78 @@ +// This file was procedurally generated from the following sources: +// - src/accessor-names/private-escape-sequence-u6F.case +// - src/accessor-names/private/cls-private-expr-inst.template +/*--- +description: Private IdentifierName - u6F (o) (Class expression, instance private method) +features: [class-methods-private] +flags: [generated] +info: | + ClassElement : + MethodDefinition + static MethodDefinition + FieldDefinition ; + ; + + FieldDefinition : + ClassElementName Initializer _opt + + ClassElementName : + PropertyName + PrivateName + + PrivateName :: + # IdentifierName + + Initializer : + = AssignmentExpression + + IdentifierName :: + IdentifierStart + IdentifierName IdentifierPart + + IdentifierStart :: + UnicodeIDStart + $ + _ + \ UnicodeEscapeSequence + + IdentifierPart:: + UnicodeIDContinue + $ + \ UnicodeEscapeSequence + + + 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 stringSet; + +var C = class { + get #\u{6F}() { return 'get string'; } + set #\u{6F}(param) { stringSet = param; } + + getPrivateReference() { + return this.#o; + } + + setPrivateReference(value) { + this.#o = value; + } +}; + +var inst = new C(); + +assert.sameValue(inst.getPrivateReference(), 'get string'); + +inst.setPrivateReference('set string'); +assert.sameValue(stringSet, 'set string'); diff --git a/test/language/expressions/class/private-accessor-name/inst-private-name-ZWJ.js b/test/language/expressions/class/private-accessor-name/inst-private-name-ZWJ.js new file mode 100644 index 0000000000..07a7e0fd29 --- /dev/null +++ b/test/language/expressions/class/private-accessor-name/inst-private-name-ZWJ.js @@ -0,0 +1,78 @@ +// This file was procedurally generated from the following sources: +// - src/accessor-names/private-name-ZWJ.case +// - src/accessor-names/private/cls-private-expr-inst.template +/*--- +description: Private IdentifierName - ZWJ (Class expression, instance private method) +features: [class-methods-private] +flags: [generated] +info: | + ClassElement : + MethodDefinition + static MethodDefinition + FieldDefinition ; + ; + + FieldDefinition : + ClassElementName Initializer _opt + + ClassElementName : + PropertyName + PrivateName + + PrivateName :: + # IdentifierName + + Initializer : + = AssignmentExpression + + IdentifierName :: + IdentifierStart + IdentifierName IdentifierPart + + IdentifierStart :: + UnicodeIDStart + $ + _ + \ UnicodeEscapeSequence + + IdentifierPart:: + UnicodeIDContinue + $ + \ UnicodeEscapeSequence + + + 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 stringSet; + +var C = class { + get #ZW_‍_J() { return 'get string'; } + set #ZW_‍_J(param) { stringSet = param; } + + getPrivateReference() { + return this.#ZW_‍_J; + } + + setPrivateReference(value) { + this.#ZW_‍_J = value; + } +}; + +var inst = new C(); + +assert.sameValue(inst.getPrivateReference(), 'get string'); + +inst.setPrivateReference('set string'); +assert.sameValue(stringSet, 'set string'); diff --git a/test/language/expressions/class/private-accessor-name/inst-private-name-ZWNJ.js b/test/language/expressions/class/private-accessor-name/inst-private-name-ZWNJ.js new file mode 100644 index 0000000000..1b9c63aff4 --- /dev/null +++ b/test/language/expressions/class/private-accessor-name/inst-private-name-ZWNJ.js @@ -0,0 +1,78 @@ +// This file was procedurally generated from the following sources: +// - src/accessor-names/private-name-ZWNJ.case +// - src/accessor-names/private/cls-private-expr-inst.template +/*--- +description: Private IdentifierName - ZWNJ (Class expression, instance private method) +features: [class-methods-private] +flags: [generated] +info: | + ClassElement : + MethodDefinition + static MethodDefinition + FieldDefinition ; + ; + + FieldDefinition : + ClassElementName Initializer _opt + + ClassElementName : + PropertyName + PrivateName + + PrivateName :: + # IdentifierName + + Initializer : + = AssignmentExpression + + IdentifierName :: + IdentifierStart + IdentifierName IdentifierPart + + IdentifierStart :: + UnicodeIDStart + $ + _ + \ UnicodeEscapeSequence + + IdentifierPart:: + UnicodeIDContinue + $ + \ UnicodeEscapeSequence + + + 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 stringSet; + +var C = class { + get #ZW_‌_NJ() { return 'get string'; } + set #ZW_‌_NJ(param) { stringSet = param; } + + getPrivateReference() { + return this.#ZW_‌_NJ; + } + + setPrivateReference(value) { + this.#ZW_‌_NJ = value; + } +}; + +var inst = new C(); + +assert.sameValue(inst.getPrivateReference(), 'get string'); + +inst.setPrivateReference('set string'); +assert.sameValue(stringSet, 'set string'); diff --git a/test/language/expressions/class/private-accessor-name/inst-private-name-common.js b/test/language/expressions/class/private-accessor-name/inst-private-name-common.js new file mode 100644 index 0000000000..49d12be020 --- /dev/null +++ b/test/language/expressions/class/private-accessor-name/inst-private-name-common.js @@ -0,0 +1,78 @@ +// This file was procedurally generated from the following sources: +// - src/accessor-names/private-name-common.case +// - src/accessor-names/private/cls-private-expr-inst.template +/*--- +description: Private IdentifierName - common (Class expression, instance private method) +features: [class-methods-private] +flags: [generated] +info: | + ClassElement : + MethodDefinition + static MethodDefinition + FieldDefinition ; + ; + + FieldDefinition : + ClassElementName Initializer _opt + + ClassElementName : + PropertyName + PrivateName + + PrivateName :: + # IdentifierName + + Initializer : + = AssignmentExpression + + IdentifierName :: + IdentifierStart + IdentifierName IdentifierPart + + IdentifierStart :: + UnicodeIDStart + $ + _ + \ UnicodeEscapeSequence + + IdentifierPart:: + UnicodeIDContinue + $ + \ UnicodeEscapeSequence + + + 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 stringSet; + +var C = class { + get #test262() { return 'get string'; } + set #test262(param) { stringSet = param; } + + getPrivateReference() { + return this.#test262; + } + + setPrivateReference(value) { + this.#test262 = value; + } +}; + +var inst = new C(); + +assert.sameValue(inst.getPrivateReference(), 'get string'); + +inst.setPrivateReference('set string'); +assert.sameValue(stringSet, 'set string'); diff --git a/test/language/expressions/class/private-accessor-name/inst-private-name-dollar.js b/test/language/expressions/class/private-accessor-name/inst-private-name-dollar.js new file mode 100644 index 0000000000..75f6b7edc6 --- /dev/null +++ b/test/language/expressions/class/private-accessor-name/inst-private-name-dollar.js @@ -0,0 +1,78 @@ +// This file was procedurally generated from the following sources: +// - src/accessor-names/private-name-dollar.case +// - src/accessor-names/private/cls-private-expr-inst.template +/*--- +description: Private IdentifierName - $ (Class expression, instance private method) +features: [class-methods-private] +flags: [generated] +info: | + ClassElement : + MethodDefinition + static MethodDefinition + FieldDefinition ; + ; + + FieldDefinition : + ClassElementName Initializer _opt + + ClassElementName : + PropertyName + PrivateName + + PrivateName :: + # IdentifierName + + Initializer : + = AssignmentExpression + + IdentifierName :: + IdentifierStart + IdentifierName IdentifierPart + + IdentifierStart :: + UnicodeIDStart + $ + _ + \ UnicodeEscapeSequence + + IdentifierPart:: + UnicodeIDContinue + $ + \ UnicodeEscapeSequence + + + 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 stringSet; + +var C = class { + get #$() { return 'get string'; } + set #$(param) { stringSet = param; } + + getPrivateReference() { + return this.#$; + } + + setPrivateReference(value) { + this.#$ = value; + } +}; + +var inst = new C(); + +assert.sameValue(inst.getPrivateReference(), 'get string'); + +inst.setPrivateReference('set string'); +assert.sameValue(stringSet, 'set string'); diff --git a/test/language/expressions/class/private-accessor-name/inst-private-name-u2118.js b/test/language/expressions/class/private-accessor-name/inst-private-name-u2118.js new file mode 100644 index 0000000000..7ac400f757 --- /dev/null +++ b/test/language/expressions/class/private-accessor-name/inst-private-name-u2118.js @@ -0,0 +1,78 @@ +// This file was procedurally generated from the following sources: +// - src/accessor-names/private-name-u2118.case +// - src/accessor-names/private/cls-private-expr-inst.template +/*--- +description: Private IdentifierName - ℘ (Class expression, instance private method) +features: [class-methods-private] +flags: [generated] +info: | + ClassElement : + MethodDefinition + static MethodDefinition + FieldDefinition ; + ; + + FieldDefinition : + ClassElementName Initializer _opt + + ClassElementName : + PropertyName + PrivateName + + PrivateName :: + # IdentifierName + + Initializer : + = AssignmentExpression + + IdentifierName :: + IdentifierStart + IdentifierName IdentifierPart + + IdentifierStart :: + UnicodeIDStart + $ + _ + \ UnicodeEscapeSequence + + IdentifierPart:: + UnicodeIDContinue + $ + \ UnicodeEscapeSequence + + + 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 stringSet; + +var C = class { + get #℘() { return 'get string'; } + set #℘(param) { stringSet = param; } + + getPrivateReference() { + return this.#℘; + } + + setPrivateReference(value) { + this.#℘ = value; + } +}; + +var inst = new C(); + +assert.sameValue(inst.getPrivateReference(), 'get string'); + +inst.setPrivateReference('set string'); +assert.sameValue(stringSet, 'set string'); diff --git a/test/language/expressions/class/private-accessor-name/inst-private-name-underscore.js b/test/language/expressions/class/private-accessor-name/inst-private-name-underscore.js new file mode 100644 index 0000000000..0e6c86fda4 --- /dev/null +++ b/test/language/expressions/class/private-accessor-name/inst-private-name-underscore.js @@ -0,0 +1,78 @@ +// This file was procedurally generated from the following sources: +// - src/accessor-names/private-name-underscore.case +// - src/accessor-names/private/cls-private-expr-inst.template +/*--- +description: Private IdentifierName - _ (Class expression, instance private method) +features: [class-methods-private] +flags: [generated] +info: | + ClassElement : + MethodDefinition + static MethodDefinition + FieldDefinition ; + ; + + FieldDefinition : + ClassElementName Initializer _opt + + ClassElementName : + PropertyName + PrivateName + + PrivateName :: + # IdentifierName + + Initializer : + = AssignmentExpression + + IdentifierName :: + IdentifierStart + IdentifierName IdentifierPart + + IdentifierStart :: + UnicodeIDStart + $ + _ + \ UnicodeEscapeSequence + + IdentifierPart:: + UnicodeIDContinue + $ + \ UnicodeEscapeSequence + + + 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 stringSet; + +var C = class { + get #_() { return 'get string'; } + set #_(param) { stringSet = param; } + + getPrivateReference() { + return this.#_; + } + + setPrivateReference(value) { + this.#_ = value; + } +}; + +var inst = new C(); + +assert.sameValue(inst.getPrivateReference(), 'get string'); + +inst.setPrivateReference('set string'); +assert.sameValue(stringSet, 'set string'); diff --git a/test/language/expressions/class/private-accessor-name/static-private-escape-sequence-ZWJ.js b/test/language/expressions/class/private-accessor-name/static-private-escape-sequence-ZWJ.js new file mode 100644 index 0000000000..0caf54ce0f --- /dev/null +++ b/test/language/expressions/class/private-accessor-name/static-private-escape-sequence-ZWJ.js @@ -0,0 +1,78 @@ +// This file was procedurally generated from the following sources: +// - src/accessor-names/private-escape-sequence-ZWJ.case +// - src/accessor-names/private/cls-private-expr-static.template +/*--- +description: Private IdentifierName - ZWJ (Class expression, static private method) +features: [class-methods-private] +flags: [generated] +info: | + ClassElement : + MethodDefinition + static MethodDefinition + FieldDefinition ; + ; + + MethodDefinition : + get ClassElementName () { FunctionBody } + set ClassElementName ( PropertySetParameterList ){ FunctionBody } + + ClassElementName : + PropertyName + PrivateName + + PrivateName :: + # IdentifierName + + Initializer : + = AssignmentExpression + + IdentifierName :: + IdentifierStart + IdentifierName IdentifierPart + + IdentifierStart :: + UnicodeIDStart + $ + _ + \ UnicodeEscapeSequence + + IdentifierPart:: + UnicodeIDContinue + $ + \ UnicodeEscapeSequence + + + 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 stringSet; + +var C = class { + static get #ZW_\u200D_J() { return 'get string'; } + static set #ZW_\u200D_J(param) { stringSet = param; } + + static getPrivateReference() { + return this.#ZW_‍_J; + } + + static setPrivateReference(value) { + this.#ZW_‍_J = value; + } +}; + + +assert.sameValue(C.getPrivateReference(), 'get string'); + +C.setPrivateReference('set string'); +assert.sameValue(stringSet, 'set string'); diff --git a/test/language/expressions/class/private-accessor-name/static-private-escape-sequence-ZWNJ.js b/test/language/expressions/class/private-accessor-name/static-private-escape-sequence-ZWNJ.js new file mode 100644 index 0000000000..3cb13eb9e2 --- /dev/null +++ b/test/language/expressions/class/private-accessor-name/static-private-escape-sequence-ZWNJ.js @@ -0,0 +1,78 @@ +// This file was procedurally generated from the following sources: +// - src/accessor-names/private-escape-sequence-ZWNJ.case +// - src/accessor-names/private/cls-private-expr-static.template +/*--- +description: Private IdentifierName - ZWNJ (Class expression, static private method) +features: [class-methods-private] +flags: [generated] +info: | + ClassElement : + MethodDefinition + static MethodDefinition + FieldDefinition ; + ; + + MethodDefinition : + get ClassElementName () { FunctionBody } + set ClassElementName ( PropertySetParameterList ){ FunctionBody } + + ClassElementName : + PropertyName + PrivateName + + PrivateName :: + # IdentifierName + + Initializer : + = AssignmentExpression + + IdentifierName :: + IdentifierStart + IdentifierName IdentifierPart + + IdentifierStart :: + UnicodeIDStart + $ + _ + \ UnicodeEscapeSequence + + IdentifierPart:: + UnicodeIDContinue + $ + \ UnicodeEscapeSequence + + + 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 stringSet; + +var C = class { + static get #ZW_\u200C_NJ() { return 'get string'; } + static set #ZW_\u200C_NJ(param) { stringSet = param; } + + static getPrivateReference() { + return this.#ZW_‌_NJ; + } + + static setPrivateReference(value) { + this.#ZW_‌_NJ = value; + } +}; + + +assert.sameValue(C.getPrivateReference(), 'get string'); + +C.setPrivateReference('set string'); +assert.sameValue(stringSet, 'set string'); diff --git a/test/language/expressions/class/private-accessor-name/static-private-escape-sequence-u2118.js b/test/language/expressions/class/private-accessor-name/static-private-escape-sequence-u2118.js new file mode 100644 index 0000000000..b6dbc38e54 --- /dev/null +++ b/test/language/expressions/class/private-accessor-name/static-private-escape-sequence-u2118.js @@ -0,0 +1,78 @@ +// This file was procedurally generated from the following sources: +// - src/accessor-names/private-escape-sequence-u2118.case +// - src/accessor-names/private/cls-private-expr-static.template +/*--- +description: Private IdentifierName - u2118 (℘) (Class expression, static private method) +features: [class-methods-private] +flags: [generated] +info: | + ClassElement : + MethodDefinition + static MethodDefinition + FieldDefinition ; + ; + + MethodDefinition : + get ClassElementName () { FunctionBody } + set ClassElementName ( PropertySetParameterList ){ FunctionBody } + + ClassElementName : + PropertyName + PrivateName + + PrivateName :: + # IdentifierName + + Initializer : + = AssignmentExpression + + IdentifierName :: + IdentifierStart + IdentifierName IdentifierPart + + IdentifierStart :: + UnicodeIDStart + $ + _ + \ UnicodeEscapeSequence + + IdentifierPart:: + UnicodeIDContinue + $ + \ UnicodeEscapeSequence + + + 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 stringSet; + +var C = class { + static get #\u2118() { return 'get string'; } + static set #\u2118(param) { stringSet = param; } + + static getPrivateReference() { + return this.#℘; + } + + static setPrivateReference(value) { + this.#℘ = value; + } +}; + + +assert.sameValue(C.getPrivateReference(), 'get string'); + +C.setPrivateReference('set string'); +assert.sameValue(stringSet, 'set string'); diff --git a/test/language/expressions/class/private-accessor-name/static-private-escape-sequence-u6F.js b/test/language/expressions/class/private-accessor-name/static-private-escape-sequence-u6F.js new file mode 100644 index 0000000000..e68e12b099 --- /dev/null +++ b/test/language/expressions/class/private-accessor-name/static-private-escape-sequence-u6F.js @@ -0,0 +1,78 @@ +// This file was procedurally generated from the following sources: +// - src/accessor-names/private-escape-sequence-u6F.case +// - src/accessor-names/private/cls-private-expr-static.template +/*--- +description: Private IdentifierName - u6F (o) (Class expression, static private method) +features: [class-methods-private] +flags: [generated] +info: | + ClassElement : + MethodDefinition + static MethodDefinition + FieldDefinition ; + ; + + MethodDefinition : + get ClassElementName () { FunctionBody } + set ClassElementName ( PropertySetParameterList ){ FunctionBody } + + ClassElementName : + PropertyName + PrivateName + + PrivateName :: + # IdentifierName + + Initializer : + = AssignmentExpression + + IdentifierName :: + IdentifierStart + IdentifierName IdentifierPart + + IdentifierStart :: + UnicodeIDStart + $ + _ + \ UnicodeEscapeSequence + + IdentifierPart:: + UnicodeIDContinue + $ + \ UnicodeEscapeSequence + + + 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 stringSet; + +var C = class { + static get #\u{6F}() { return 'get string'; } + static set #\u{6F}(param) { stringSet = param; } + + static getPrivateReference() { + return this.#o; + } + + static setPrivateReference(value) { + this.#o = value; + } +}; + + +assert.sameValue(C.getPrivateReference(), 'get string'); + +C.setPrivateReference('set string'); +assert.sameValue(stringSet, 'set string'); diff --git a/test/language/expressions/class/private-accessor-name/static-private-name-ZWJ.js b/test/language/expressions/class/private-accessor-name/static-private-name-ZWJ.js new file mode 100644 index 0000000000..6e651ae7fd --- /dev/null +++ b/test/language/expressions/class/private-accessor-name/static-private-name-ZWJ.js @@ -0,0 +1,78 @@ +// This file was procedurally generated from the following sources: +// - src/accessor-names/private-name-ZWJ.case +// - src/accessor-names/private/cls-private-expr-static.template +/*--- +description: Private IdentifierName - ZWJ (Class expression, static private method) +features: [class-methods-private] +flags: [generated] +info: | + ClassElement : + MethodDefinition + static MethodDefinition + FieldDefinition ; + ; + + MethodDefinition : + get ClassElementName () { FunctionBody } + set ClassElementName ( PropertySetParameterList ){ FunctionBody } + + ClassElementName : + PropertyName + PrivateName + + PrivateName :: + # IdentifierName + + Initializer : + = AssignmentExpression + + IdentifierName :: + IdentifierStart + IdentifierName IdentifierPart + + IdentifierStart :: + UnicodeIDStart + $ + _ + \ UnicodeEscapeSequence + + IdentifierPart:: + UnicodeIDContinue + $ + \ UnicodeEscapeSequence + + + 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 stringSet; + +var C = class { + static get #ZW_‍_J() { return 'get string'; } + static set #ZW_‍_J(param) { stringSet = param; } + + static getPrivateReference() { + return this.#ZW_‍_J; + } + + static setPrivateReference(value) { + this.#ZW_‍_J = value; + } +}; + + +assert.sameValue(C.getPrivateReference(), 'get string'); + +C.setPrivateReference('set string'); +assert.sameValue(stringSet, 'set string'); diff --git a/test/language/expressions/class/private-accessor-name/static-private-name-ZWNJ.js b/test/language/expressions/class/private-accessor-name/static-private-name-ZWNJ.js new file mode 100644 index 0000000000..85825b7eae --- /dev/null +++ b/test/language/expressions/class/private-accessor-name/static-private-name-ZWNJ.js @@ -0,0 +1,78 @@ +// This file was procedurally generated from the following sources: +// - src/accessor-names/private-name-ZWNJ.case +// - src/accessor-names/private/cls-private-expr-static.template +/*--- +description: Private IdentifierName - ZWNJ (Class expression, static private method) +features: [class-methods-private] +flags: [generated] +info: | + ClassElement : + MethodDefinition + static MethodDefinition + FieldDefinition ; + ; + + MethodDefinition : + get ClassElementName () { FunctionBody } + set ClassElementName ( PropertySetParameterList ){ FunctionBody } + + ClassElementName : + PropertyName + PrivateName + + PrivateName :: + # IdentifierName + + Initializer : + = AssignmentExpression + + IdentifierName :: + IdentifierStart + IdentifierName IdentifierPart + + IdentifierStart :: + UnicodeIDStart + $ + _ + \ UnicodeEscapeSequence + + IdentifierPart:: + UnicodeIDContinue + $ + \ UnicodeEscapeSequence + + + 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 stringSet; + +var C = class { + static get #ZW_‌_NJ() { return 'get string'; } + static set #ZW_‌_NJ(param) { stringSet = param; } + + static getPrivateReference() { + return this.#ZW_‌_NJ; + } + + static setPrivateReference(value) { + this.#ZW_‌_NJ = value; + } +}; + + +assert.sameValue(C.getPrivateReference(), 'get string'); + +C.setPrivateReference('set string'); +assert.sameValue(stringSet, 'set string'); diff --git a/test/language/expressions/class/private-accessor-name/static-private-name-common.js b/test/language/expressions/class/private-accessor-name/static-private-name-common.js new file mode 100644 index 0000000000..daa40edc0e --- /dev/null +++ b/test/language/expressions/class/private-accessor-name/static-private-name-common.js @@ -0,0 +1,78 @@ +// This file was procedurally generated from the following sources: +// - src/accessor-names/private-name-common.case +// - src/accessor-names/private/cls-private-expr-static.template +/*--- +description: Private IdentifierName - common (Class expression, static private method) +features: [class-methods-private] +flags: [generated] +info: | + ClassElement : + MethodDefinition + static MethodDefinition + FieldDefinition ; + ; + + MethodDefinition : + get ClassElementName () { FunctionBody } + set ClassElementName ( PropertySetParameterList ){ FunctionBody } + + ClassElementName : + PropertyName + PrivateName + + PrivateName :: + # IdentifierName + + Initializer : + = AssignmentExpression + + IdentifierName :: + IdentifierStart + IdentifierName IdentifierPart + + IdentifierStart :: + UnicodeIDStart + $ + _ + \ UnicodeEscapeSequence + + IdentifierPart:: + UnicodeIDContinue + $ + \ UnicodeEscapeSequence + + + 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 stringSet; + +var C = class { + static get #test262() { return 'get string'; } + static set #test262(param) { stringSet = param; } + + static getPrivateReference() { + return this.#test262; + } + + static setPrivateReference(value) { + this.#test262 = value; + } +}; + + +assert.sameValue(C.getPrivateReference(), 'get string'); + +C.setPrivateReference('set string'); +assert.sameValue(stringSet, 'set string'); diff --git a/test/language/expressions/class/private-accessor-name/static-private-name-dollar.js b/test/language/expressions/class/private-accessor-name/static-private-name-dollar.js new file mode 100644 index 0000000000..9e584dcd4b --- /dev/null +++ b/test/language/expressions/class/private-accessor-name/static-private-name-dollar.js @@ -0,0 +1,78 @@ +// This file was procedurally generated from the following sources: +// - src/accessor-names/private-name-dollar.case +// - src/accessor-names/private/cls-private-expr-static.template +/*--- +description: Private IdentifierName - $ (Class expression, static private method) +features: [class-methods-private] +flags: [generated] +info: | + ClassElement : + MethodDefinition + static MethodDefinition + FieldDefinition ; + ; + + MethodDefinition : + get ClassElementName () { FunctionBody } + set ClassElementName ( PropertySetParameterList ){ FunctionBody } + + ClassElementName : + PropertyName + PrivateName + + PrivateName :: + # IdentifierName + + Initializer : + = AssignmentExpression + + IdentifierName :: + IdentifierStart + IdentifierName IdentifierPart + + IdentifierStart :: + UnicodeIDStart + $ + _ + \ UnicodeEscapeSequence + + IdentifierPart:: + UnicodeIDContinue + $ + \ UnicodeEscapeSequence + + + 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 stringSet; + +var C = class { + static get #$() { return 'get string'; } + static set #$(param) { stringSet = param; } + + static getPrivateReference() { + return this.#$; + } + + static setPrivateReference(value) { + this.#$ = value; + } +}; + + +assert.sameValue(C.getPrivateReference(), 'get string'); + +C.setPrivateReference('set string'); +assert.sameValue(stringSet, 'set string'); diff --git a/test/language/expressions/class/private-accessor-name/static-private-name-u2118.js b/test/language/expressions/class/private-accessor-name/static-private-name-u2118.js new file mode 100644 index 0000000000..0ba94d5a90 --- /dev/null +++ b/test/language/expressions/class/private-accessor-name/static-private-name-u2118.js @@ -0,0 +1,78 @@ +// This file was procedurally generated from the following sources: +// - src/accessor-names/private-name-u2118.case +// - src/accessor-names/private/cls-private-expr-static.template +/*--- +description: Private IdentifierName - ℘ (Class expression, static private method) +features: [class-methods-private] +flags: [generated] +info: | + ClassElement : + MethodDefinition + static MethodDefinition + FieldDefinition ; + ; + + MethodDefinition : + get ClassElementName () { FunctionBody } + set ClassElementName ( PropertySetParameterList ){ FunctionBody } + + ClassElementName : + PropertyName + PrivateName + + PrivateName :: + # IdentifierName + + Initializer : + = AssignmentExpression + + IdentifierName :: + IdentifierStart + IdentifierName IdentifierPart + + IdentifierStart :: + UnicodeIDStart + $ + _ + \ UnicodeEscapeSequence + + IdentifierPart:: + UnicodeIDContinue + $ + \ UnicodeEscapeSequence + + + 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 stringSet; + +var C = class { + static get #℘() { return 'get string'; } + static set #℘(param) { stringSet = param; } + + static getPrivateReference() { + return this.#℘; + } + + static setPrivateReference(value) { + this.#℘ = value; + } +}; + + +assert.sameValue(C.getPrivateReference(), 'get string'); + +C.setPrivateReference('set string'); +assert.sameValue(stringSet, 'set string'); diff --git a/test/language/expressions/class/private-accessor-name/static-private-name-underscore.js b/test/language/expressions/class/private-accessor-name/static-private-name-underscore.js new file mode 100644 index 0000000000..7ac50fcd4f --- /dev/null +++ b/test/language/expressions/class/private-accessor-name/static-private-name-underscore.js @@ -0,0 +1,78 @@ +// This file was procedurally generated from the following sources: +// - src/accessor-names/private-name-underscore.case +// - src/accessor-names/private/cls-private-expr-static.template +/*--- +description: Private IdentifierName - _ (Class expression, static private method) +features: [class-methods-private] +flags: [generated] +info: | + ClassElement : + MethodDefinition + static MethodDefinition + FieldDefinition ; + ; + + MethodDefinition : + get ClassElementName () { FunctionBody } + set ClassElementName ( PropertySetParameterList ){ FunctionBody } + + ClassElementName : + PropertyName + PrivateName + + PrivateName :: + # IdentifierName + + Initializer : + = AssignmentExpression + + IdentifierName :: + IdentifierStart + IdentifierName IdentifierPart + + IdentifierStart :: + UnicodeIDStart + $ + _ + \ UnicodeEscapeSequence + + IdentifierPart:: + UnicodeIDContinue + $ + \ UnicodeEscapeSequence + + + 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 stringSet; + +var C = class { + static get #_() { return 'get string'; } + static set #_(param) { stringSet = param; } + + static getPrivateReference() { + return this.#_; + } + + static setPrivateReference(value) { + this.#_ = value; + } +}; + + +assert.sameValue(C.getPrivateReference(), 'get string'); + +C.setPrivateReference('set string'); +assert.sameValue(stringSet, 'set string'); diff --git a/test/language/statements/class/private-accessor-name-inst-computed.js b/test/language/statements/class/private-accessor-name-inst-computed.js deleted file mode 100644 index bfd4595d06..0000000000 --- a/test/language/statements/class/private-accessor-name-inst-computed.js +++ /dev/null @@ -1,57 +0,0 @@ -// This file was procedurally generated from the following sources: -// - src/accessor-names/computed.case -// - src/accessor-names/default/cls-private-decl-inst.template -/*--- -description: Computed values as accessor property names (AssignmentExpression) (Class declaration, private instance method) -flags: [generated] -info: | - [...] - MethodDefinition[Yield, Await]: - PropertyNameClassElementName [?Yield, ?Await]( - UniqueFormalParameters [~Yield, ~Await] ) { - FunctionBody [~Yield, ~Await] } - AsyncMethod[?Yield, ?Await] - get PropertyName ClassElementName [?Yield, ?Await] (){ - FunctionBody [~Yield, ~Await] } - set PropertyNameClassElementName [?Yield, ?Await] ( - PropertySetParameterList ) { FunctionBody [~Yield, ~Await] } - AsyncMethod [Yield, Await]: - async [no LineTerminator here] PropertyName - ClassElementName[?Yield, ?Await]( - UniqueFormalParameters[~Yield, +Await] ) { AsyncFunctionBody } - - - 12.2.6.7 Runtime Semantics: Evaluation - - [...] - - ComputedPropertyName : [ AssignmentExpression ] - - 1. Let exprValue be the result of evaluating AssignmentExpression. - 2. Let propName be ? GetValue(exprValue). - 3. Return ? ToPropertyKey(propName). ----*/ -var _; - - -var stringSet; - -class C { - get #[_ = 'str' + 'ing']() { return 'get string'; } - set #[_ = 'str' + 'ing'](param) { stringSet = param; } - - getPrivateReference() { - return this[#'string']; - } - - setPrivateReference(value) { - this[#'string'] = value; - } -}; - -var inst = new C(); - -assert.sameValue(inst.getPrivateReference(), 'get string'); - -inst.setPrivateReference('set string'); -assert.sameValue(stringSet, 'set string'); diff --git a/test/language/statements/class/private-accessor-name-inst-literal-numeric-binary.js b/test/language/statements/class/private-accessor-name-inst-literal-numeric-binary.js deleted file mode 100644 index ed2eed8d1a..0000000000 --- a/test/language/statements/class/private-accessor-name-inst-literal-numeric-binary.js +++ /dev/null @@ -1,55 +0,0 @@ -// This file was procedurally generated from the following sources: -// - src/accessor-names/literal-numeric-binary.case -// - src/accessor-names/default/cls-private-decl-inst.template -/*--- -description: Computed values as accessor property names (numeric literal in binary notation) (Class declaration, private instance method) -flags: [generated] -info: | - [...] - MethodDefinition[Yield, Await]: - PropertyNameClassElementName [?Yield, ?Await]( - UniqueFormalParameters [~Yield, ~Await] ) { - FunctionBody [~Yield, ~Await] } - AsyncMethod[?Yield, ?Await] - get PropertyName ClassElementName [?Yield, ?Await] (){ - FunctionBody [~Yield, ~Await] } - set PropertyNameClassElementName [?Yield, ?Await] ( - PropertySetParameterList ) { FunctionBody [~Yield, ~Await] } - AsyncMethod [Yield, Await]: - async [no LineTerminator here] PropertyName - ClassElementName[?Yield, ?Await]( - UniqueFormalParameters[~Yield, +Await] ) { AsyncFunctionBody } - - - 12.2.6.7 Runtime Semantics: Evaluation - - [...] - - ComputedPropertyName : [ AssignmentExpression ] - - 1. Let exprValue be the result of evaluating AssignmentExpression. - 2. Let propName be ? GetValue(exprValue). - 3. Return ? ToPropertyKey(propName). ----*/ - -var stringSet; - -class C { - get #0b10() { return 'get string'; } - set #0b10(param) { stringSet = param; } - - getPrivateReference() { - return this[#'2']; - } - - setPrivateReference(value) { - this[#'2'] = value; - } -}; - -var inst = new C(); - -assert.sameValue(inst.getPrivateReference(), 'get string'); - -inst.setPrivateReference('set string'); -assert.sameValue(stringSet, 'set string'); diff --git a/test/language/statements/class/private-accessor-name-inst-literal-numeric-exponent.js b/test/language/statements/class/private-accessor-name-inst-literal-numeric-exponent.js deleted file mode 100644 index c24bca2b3b..0000000000 --- a/test/language/statements/class/private-accessor-name-inst-literal-numeric-exponent.js +++ /dev/null @@ -1,55 +0,0 @@ -// This file was procedurally generated from the following sources: -// - src/accessor-names/literal-numeric-exponent.case -// - src/accessor-names/default/cls-private-decl-inst.template -/*--- -description: Computed values as accessor property names (numeric literal in exponent notation) (Class declaration, private instance method) -flags: [generated] -info: | - [...] - MethodDefinition[Yield, Await]: - PropertyNameClassElementName [?Yield, ?Await]( - UniqueFormalParameters [~Yield, ~Await] ) { - FunctionBody [~Yield, ~Await] } - AsyncMethod[?Yield, ?Await] - get PropertyName ClassElementName [?Yield, ?Await] (){ - FunctionBody [~Yield, ~Await] } - set PropertyNameClassElementName [?Yield, ?Await] ( - PropertySetParameterList ) { FunctionBody [~Yield, ~Await] } - AsyncMethod [Yield, Await]: - async [no LineTerminator here] PropertyName - ClassElementName[?Yield, ?Await]( - UniqueFormalParameters[~Yield, +Await] ) { AsyncFunctionBody } - - - 12.2.6.7 Runtime Semantics: Evaluation - - [...] - - ComputedPropertyName : [ AssignmentExpression ] - - 1. Let exprValue be the result of evaluating AssignmentExpression. - 2. Let propName be ? GetValue(exprValue). - 3. Return ? ToPropertyKey(propName). ----*/ - -var stringSet; - -class C { - get #1E+9() { return 'get string'; } - set #1E+9(param) { stringSet = param; } - - getPrivateReference() { - return this[#'1000000000']; - } - - setPrivateReference(value) { - this[#'1000000000'] = value; - } -}; - -var inst = new C(); - -assert.sameValue(inst.getPrivateReference(), 'get string'); - -inst.setPrivateReference('set string'); -assert.sameValue(stringSet, 'set string'); diff --git a/test/language/statements/class/private-accessor-name-inst-literal-numeric-hex.js b/test/language/statements/class/private-accessor-name-inst-literal-numeric-hex.js deleted file mode 100644 index 31b56cc2ca..0000000000 --- a/test/language/statements/class/private-accessor-name-inst-literal-numeric-hex.js +++ /dev/null @@ -1,55 +0,0 @@ -// This file was procedurally generated from the following sources: -// - src/accessor-names/literal-numeric-hex.case -// - src/accessor-names/default/cls-private-decl-inst.template -/*--- -description: Computed values as accessor property names (numeric literal in hexadecimal notation) (Class declaration, private instance method) -flags: [generated] -info: | - [...] - MethodDefinition[Yield, Await]: - PropertyNameClassElementName [?Yield, ?Await]( - UniqueFormalParameters [~Yield, ~Await] ) { - FunctionBody [~Yield, ~Await] } - AsyncMethod[?Yield, ?Await] - get PropertyName ClassElementName [?Yield, ?Await] (){ - FunctionBody [~Yield, ~Await] } - set PropertyNameClassElementName [?Yield, ?Await] ( - PropertySetParameterList ) { FunctionBody [~Yield, ~Await] } - AsyncMethod [Yield, Await]: - async [no LineTerminator here] PropertyName - ClassElementName[?Yield, ?Await]( - UniqueFormalParameters[~Yield, +Await] ) { AsyncFunctionBody } - - - 12.2.6.7 Runtime Semantics: Evaluation - - [...] - - ComputedPropertyName : [ AssignmentExpression ] - - 1. Let exprValue be the result of evaluating AssignmentExpression. - 2. Let propName be ? GetValue(exprValue). - 3. Return ? ToPropertyKey(propName). ----*/ - -var stringSet; - -class C { - get #0x10() { return 'get string'; } - set #0x10(param) { stringSet = param; } - - getPrivateReference() { - return this[#'16']; - } - - setPrivateReference(value) { - this[#'16'] = value; - } -}; - -var inst = new C(); - -assert.sameValue(inst.getPrivateReference(), 'get string'); - -inst.setPrivateReference('set string'); -assert.sameValue(stringSet, 'set string'); diff --git a/test/language/statements/class/private-accessor-name-inst-literal-numeric-leading-decimal.js b/test/language/statements/class/private-accessor-name-inst-literal-numeric-leading-decimal.js deleted file mode 100644 index db3d5affbb..0000000000 --- a/test/language/statements/class/private-accessor-name-inst-literal-numeric-leading-decimal.js +++ /dev/null @@ -1,55 +0,0 @@ -// This file was procedurally generated from the following sources: -// - src/accessor-names/literal-numeric-leading-decimal.case -// - src/accessor-names/default/cls-private-decl-inst.template -/*--- -description: Computed values as accessor property names (numeric literal with leading decimal point) (Class declaration, private instance method) -flags: [generated] -info: | - [...] - MethodDefinition[Yield, Await]: - PropertyNameClassElementName [?Yield, ?Await]( - UniqueFormalParameters [~Yield, ~Await] ) { - FunctionBody [~Yield, ~Await] } - AsyncMethod[?Yield, ?Await] - get PropertyName ClassElementName [?Yield, ?Await] (){ - FunctionBody [~Yield, ~Await] } - set PropertyNameClassElementName [?Yield, ?Await] ( - PropertySetParameterList ) { FunctionBody [~Yield, ~Await] } - AsyncMethod [Yield, Await]: - async [no LineTerminator here] PropertyName - ClassElementName[?Yield, ?Await]( - UniqueFormalParameters[~Yield, +Await] ) { AsyncFunctionBody } - - - 12.2.6.7 Runtime Semantics: Evaluation - - [...] - - ComputedPropertyName : [ AssignmentExpression ] - - 1. Let exprValue be the result of evaluating AssignmentExpression. - 2. Let propName be ? GetValue(exprValue). - 3. Return ? ToPropertyKey(propName). ----*/ - -var stringSet; - -class C { - get #.1() { return 'get string'; } - set #.1(param) { stringSet = param; } - - getPrivateReference() { - return this[#'0.1']; - } - - setPrivateReference(value) { - this[#'0.1'] = value; - } -}; - -var inst = new C(); - -assert.sameValue(inst.getPrivateReference(), 'get string'); - -inst.setPrivateReference('set string'); -assert.sameValue(stringSet, 'set string'); diff --git a/test/language/statements/class/private-accessor-name-inst-literal-numeric-non-canonical.js b/test/language/statements/class/private-accessor-name-inst-literal-numeric-non-canonical.js deleted file mode 100644 index 98a684b839..0000000000 --- a/test/language/statements/class/private-accessor-name-inst-literal-numeric-non-canonical.js +++ /dev/null @@ -1,55 +0,0 @@ -// This file was procedurally generated from the following sources: -// - src/accessor-names/literal-numeric-non-canonical.case -// - src/accessor-names/default/cls-private-decl-inst.template -/*--- -description: Computed values as accessor property names (numeric literal with non-canonical representation) (Class declaration, private instance method) -flags: [generated] -info: | - [...] - MethodDefinition[Yield, Await]: - PropertyNameClassElementName [?Yield, ?Await]( - UniqueFormalParameters [~Yield, ~Await] ) { - FunctionBody [~Yield, ~Await] } - AsyncMethod[?Yield, ?Await] - get PropertyName ClassElementName [?Yield, ?Await] (){ - FunctionBody [~Yield, ~Await] } - set PropertyNameClassElementName [?Yield, ?Await] ( - PropertySetParameterList ) { FunctionBody [~Yield, ~Await] } - AsyncMethod [Yield, Await]: - async [no LineTerminator here] PropertyName - ClassElementName[?Yield, ?Await]( - UniqueFormalParameters[~Yield, +Await] ) { AsyncFunctionBody } - - - 12.2.6.7 Runtime Semantics: Evaluation - - [...] - - ComputedPropertyName : [ AssignmentExpression ] - - 1. Let exprValue be the result of evaluating AssignmentExpression. - 2. Let propName be ? GetValue(exprValue). - 3. Return ? ToPropertyKey(propName). ----*/ - -var stringSet; - -class C { - get #0.0000001() { return 'get string'; } - set #0.0000001(param) { stringSet = param; } - - getPrivateReference() { - return this[#'1e-7']; - } - - setPrivateReference(value) { - this[#'1e-7'] = value; - } -}; - -var inst = new C(); - -assert.sameValue(inst.getPrivateReference(), 'get string'); - -inst.setPrivateReference('set string'); -assert.sameValue(stringSet, 'set string'); diff --git a/test/language/statements/class/private-accessor-name-inst-literal-numeric-octal.js b/test/language/statements/class/private-accessor-name-inst-literal-numeric-octal.js deleted file mode 100644 index 92f8efa025..0000000000 --- a/test/language/statements/class/private-accessor-name-inst-literal-numeric-octal.js +++ /dev/null @@ -1,55 +0,0 @@ -// This file was procedurally generated from the following sources: -// - src/accessor-names/literal-numeric-octal.case -// - src/accessor-names/default/cls-private-decl-inst.template -/*--- -description: Computed values as accessor property names (numeric literal in octal notation) (Class declaration, private instance method) -flags: [generated] -info: | - [...] - MethodDefinition[Yield, Await]: - PropertyNameClassElementName [?Yield, ?Await]( - UniqueFormalParameters [~Yield, ~Await] ) { - FunctionBody [~Yield, ~Await] } - AsyncMethod[?Yield, ?Await] - get PropertyName ClassElementName [?Yield, ?Await] (){ - FunctionBody [~Yield, ~Await] } - set PropertyNameClassElementName [?Yield, ?Await] ( - PropertySetParameterList ) { FunctionBody [~Yield, ~Await] } - AsyncMethod [Yield, Await]: - async [no LineTerminator here] PropertyName - ClassElementName[?Yield, ?Await]( - UniqueFormalParameters[~Yield, +Await] ) { AsyncFunctionBody } - - - 12.2.6.7 Runtime Semantics: Evaluation - - [...] - - ComputedPropertyName : [ AssignmentExpression ] - - 1. Let exprValue be the result of evaluating AssignmentExpression. - 2. Let propName be ? GetValue(exprValue). - 3. Return ? ToPropertyKey(propName). ----*/ - -var stringSet; - -class C { - get #0o10() { return 'get string'; } - set #0o10(param) { stringSet = param; } - - getPrivateReference() { - return this[#'8']; - } - - setPrivateReference(value) { - this[#'8'] = value; - } -}; - -var inst = new C(); - -assert.sameValue(inst.getPrivateReference(), 'get string'); - -inst.setPrivateReference('set string'); -assert.sameValue(stringSet, 'set string'); diff --git a/test/language/statements/class/private-accessor-name-inst-literal-numeric-zero.js b/test/language/statements/class/private-accessor-name-inst-literal-numeric-zero.js deleted file mode 100644 index d0f42609e7..0000000000 --- a/test/language/statements/class/private-accessor-name-inst-literal-numeric-zero.js +++ /dev/null @@ -1,55 +0,0 @@ -// This file was procedurally generated from the following sources: -// - src/accessor-names/literal-numeric-zero.case -// - src/accessor-names/default/cls-private-decl-inst.template -/*--- -description: Computed values as accessor property names (numeric literal zero) (Class declaration, private instance method) -flags: [generated] -info: | - [...] - MethodDefinition[Yield, Await]: - PropertyNameClassElementName [?Yield, ?Await]( - UniqueFormalParameters [~Yield, ~Await] ) { - FunctionBody [~Yield, ~Await] } - AsyncMethod[?Yield, ?Await] - get PropertyName ClassElementName [?Yield, ?Await] (){ - FunctionBody [~Yield, ~Await] } - set PropertyNameClassElementName [?Yield, ?Await] ( - PropertySetParameterList ) { FunctionBody [~Yield, ~Await] } - AsyncMethod [Yield, Await]: - async [no LineTerminator here] PropertyName - ClassElementName[?Yield, ?Await]( - UniqueFormalParameters[~Yield, +Await] ) { AsyncFunctionBody } - - - 12.2.6.7 Runtime Semantics: Evaluation - - [...] - - ComputedPropertyName : [ AssignmentExpression ] - - 1. Let exprValue be the result of evaluating AssignmentExpression. - 2. Let propName be ? GetValue(exprValue). - 3. Return ? ToPropertyKey(propName). ----*/ - -var stringSet; - -class C { - get #0() { return 'get string'; } - set #0(param) { stringSet = param; } - - getPrivateReference() { - return this[#'0']; - } - - setPrivateReference(value) { - this[#'0'] = value; - } -}; - -var inst = new C(); - -assert.sameValue(inst.getPrivateReference(), 'get string'); - -inst.setPrivateReference('set string'); -assert.sameValue(stringSet, 'set string'); diff --git a/test/language/statements/class/private-accessor-name-inst-literal-string-char-escape.js b/test/language/statements/class/private-accessor-name-inst-literal-string-char-escape.js deleted file mode 100644 index 91b2f41f02..0000000000 --- a/test/language/statements/class/private-accessor-name-inst-literal-string-char-escape.js +++ /dev/null @@ -1,55 +0,0 @@ -// This file was procedurally generated from the following sources: -// - src/accessor-names/literal-string-char-escape.case -// - src/accessor-names/default/cls-private-decl-inst.template -/*--- -description: Computed values as accessor property names (string literal containing a character escape sequence) (Class declaration, private instance method) -flags: [generated] -info: | - [...] - MethodDefinition[Yield, Await]: - PropertyNameClassElementName [?Yield, ?Await]( - UniqueFormalParameters [~Yield, ~Await] ) { - FunctionBody [~Yield, ~Await] } - AsyncMethod[?Yield, ?Await] - get PropertyName ClassElementName [?Yield, ?Await] (){ - FunctionBody [~Yield, ~Await] } - set PropertyNameClassElementName [?Yield, ?Await] ( - PropertySetParameterList ) { FunctionBody [~Yield, ~Await] } - AsyncMethod [Yield, Await]: - async [no LineTerminator here] PropertyName - ClassElementName[?Yield, ?Await]( - UniqueFormalParameters[~Yield, +Await] ) { AsyncFunctionBody } - - - 12.2.6.7 Runtime Semantics: Evaluation - - [...] - - ComputedPropertyName : [ AssignmentExpression ] - - 1. Let exprValue be the result of evaluating AssignmentExpression. - 2. Let propName be ? GetValue(exprValue). - 3. Return ? ToPropertyKey(propName). ----*/ - -var stringSet; - -class C { - get #'character\tescape'() { return 'get string'; } - set #'character\tescape'(param) { stringSet = param; } - - getPrivateReference() { - return this[#'character escape']; - } - - setPrivateReference(value) { - this[#'character escape'] = value; - } -}; - -var inst = new C(); - -assert.sameValue(inst.getPrivateReference(), 'get string'); - -inst.setPrivateReference('set string'); -assert.sameValue(stringSet, 'set string'); diff --git a/test/language/statements/class/private-accessor-name-inst-literal-string-double-quote.js b/test/language/statements/class/private-accessor-name-inst-literal-string-double-quote.js deleted file mode 100644 index 79b018926b..0000000000 --- a/test/language/statements/class/private-accessor-name-inst-literal-string-double-quote.js +++ /dev/null @@ -1,55 +0,0 @@ -// This file was procedurally generated from the following sources: -// - src/accessor-names/literal-string-double-quote.case -// - src/accessor-names/default/cls-private-decl-inst.template -/*--- -description: Computed values as accessor property names (string literal using double quotes) (Class declaration, private instance method) -flags: [generated] -info: | - [...] - MethodDefinition[Yield, Await]: - PropertyNameClassElementName [?Yield, ?Await]( - UniqueFormalParameters [~Yield, ~Await] ) { - FunctionBody [~Yield, ~Await] } - AsyncMethod[?Yield, ?Await] - get PropertyName ClassElementName [?Yield, ?Await] (){ - FunctionBody [~Yield, ~Await] } - set PropertyNameClassElementName [?Yield, ?Await] ( - PropertySetParameterList ) { FunctionBody [~Yield, ~Await] } - AsyncMethod [Yield, Await]: - async [no LineTerminator here] PropertyName - ClassElementName[?Yield, ?Await]( - UniqueFormalParameters[~Yield, +Await] ) { AsyncFunctionBody } - - - 12.2.6.7 Runtime Semantics: Evaluation - - [...] - - ComputedPropertyName : [ AssignmentExpression ] - - 1. Let exprValue be the result of evaluating AssignmentExpression. - 2. Let propName be ? GetValue(exprValue). - 3. Return ? ToPropertyKey(propName). ----*/ - -var stringSet; - -class C { - get #"doubleQuote"() { return 'get string'; } - set #"doubleQuote"(param) { stringSet = param; } - - getPrivateReference() { - return this[#"doubleQuote"]; - } - - setPrivateReference(value) { - this[#"doubleQuote"] = value; - } -}; - -var inst = new C(); - -assert.sameValue(inst.getPrivateReference(), 'get string'); - -inst.setPrivateReference('set string'); -assert.sameValue(stringSet, 'set string'); diff --git a/test/language/statements/class/private-accessor-name-inst-literal-string-empty.js b/test/language/statements/class/private-accessor-name-inst-literal-string-empty.js deleted file mode 100644 index fcae82b6fe..0000000000 --- a/test/language/statements/class/private-accessor-name-inst-literal-string-empty.js +++ /dev/null @@ -1,55 +0,0 @@ -// This file was procedurally generated from the following sources: -// - src/accessor-names/literal-string-empty.case -// - src/accessor-names/default/cls-private-decl-inst.template -/*--- -description: Computed values as accessor property names (string literal, the empty string) (Class declaration, private instance method) -flags: [generated] -info: | - [...] - MethodDefinition[Yield, Await]: - PropertyNameClassElementName [?Yield, ?Await]( - UniqueFormalParameters [~Yield, ~Await] ) { - FunctionBody [~Yield, ~Await] } - AsyncMethod[?Yield, ?Await] - get PropertyName ClassElementName [?Yield, ?Await] (){ - FunctionBody [~Yield, ~Await] } - set PropertyNameClassElementName [?Yield, ?Await] ( - PropertySetParameterList ) { FunctionBody [~Yield, ~Await] } - AsyncMethod [Yield, Await]: - async [no LineTerminator here] PropertyName - ClassElementName[?Yield, ?Await]( - UniqueFormalParameters[~Yield, +Await] ) { AsyncFunctionBody } - - - 12.2.6.7 Runtime Semantics: Evaluation - - [...] - - ComputedPropertyName : [ AssignmentExpression ] - - 1. Let exprValue be the result of evaluating AssignmentExpression. - 2. Let propName be ? GetValue(exprValue). - 3. Return ? ToPropertyKey(propName). ----*/ - -var stringSet; - -class C { - get #''() { return 'get string'; } - set #''(param) { stringSet = param; } - - getPrivateReference() { - return this[#'']; - } - - setPrivateReference(value) { - this[#''] = value; - } -}; - -var inst = new C(); - -assert.sameValue(inst.getPrivateReference(), 'get string'); - -inst.setPrivateReference('set string'); -assert.sameValue(stringSet, 'set string'); diff --git a/test/language/statements/class/private-accessor-name-inst-literal-string-hex-escape.js b/test/language/statements/class/private-accessor-name-inst-literal-string-hex-escape.js deleted file mode 100644 index 4b1fa3ae42..0000000000 --- a/test/language/statements/class/private-accessor-name-inst-literal-string-hex-escape.js +++ /dev/null @@ -1,55 +0,0 @@ -// This file was procedurally generated from the following sources: -// - src/accessor-names/literal-string-hex-escape.case -// - src/accessor-names/default/cls-private-decl-inst.template -/*--- -description: Computed values as accessor property names (string literal containing a hexadecimal escape sequence) (Class declaration, private instance method) -flags: [generated] -info: | - [...] - MethodDefinition[Yield, Await]: - PropertyNameClassElementName [?Yield, ?Await]( - UniqueFormalParameters [~Yield, ~Await] ) { - FunctionBody [~Yield, ~Await] } - AsyncMethod[?Yield, ?Await] - get PropertyName ClassElementName [?Yield, ?Await] (){ - FunctionBody [~Yield, ~Await] } - set PropertyNameClassElementName [?Yield, ?Await] ( - PropertySetParameterList ) { FunctionBody [~Yield, ~Await] } - AsyncMethod [Yield, Await]: - async [no LineTerminator here] PropertyName - ClassElementName[?Yield, ?Await]( - UniqueFormalParameters[~Yield, +Await] ) { AsyncFunctionBody } - - - 12.2.6.7 Runtime Semantics: Evaluation - - [...] - - ComputedPropertyName : [ AssignmentExpression ] - - 1. Let exprValue be the result of evaluating AssignmentExpression. - 2. Let propName be ? GetValue(exprValue). - 3. Return ? ToPropertyKey(propName). ----*/ - -var stringSet; - -class C { - get #'hex\x45scape'() { return 'get string'; } - set #'hex\x45scape'(param) { stringSet = param; } - - getPrivateReference() { - return this[#'hexEscape']; - } - - setPrivateReference(value) { - this[#'hexEscape'] = value; - } -}; - -var inst = new C(); - -assert.sameValue(inst.getPrivateReference(), 'get string'); - -inst.setPrivateReference('set string'); -assert.sameValue(stringSet, 'set string'); diff --git a/test/language/statements/class/private-accessor-name-inst-literal-string-line-continuation.js b/test/language/statements/class/private-accessor-name-inst-literal-string-line-continuation.js deleted file mode 100644 index 16197b8219..0000000000 --- a/test/language/statements/class/private-accessor-name-inst-literal-string-line-continuation.js +++ /dev/null @@ -1,57 +0,0 @@ -// This file was procedurally generated from the following sources: -// - src/accessor-names/literal-string-line-continuation.case -// - src/accessor-names/default/cls-private-decl-inst.template -/*--- -description: Computed values as accessor property names (string literal containing LineContinuation) (Class declaration, private instance method) -flags: [generated] -info: | - [...] - MethodDefinition[Yield, Await]: - PropertyNameClassElementName [?Yield, ?Await]( - UniqueFormalParameters [~Yield, ~Await] ) { - FunctionBody [~Yield, ~Await] } - AsyncMethod[?Yield, ?Await] - get PropertyName ClassElementName [?Yield, ?Await] (){ - FunctionBody [~Yield, ~Await] } - set PropertyNameClassElementName [?Yield, ?Await] ( - PropertySetParameterList ) { FunctionBody [~Yield, ~Await] } - AsyncMethod [Yield, Await]: - async [no LineTerminator here] PropertyName - ClassElementName[?Yield, ?Await]( - UniqueFormalParameters[~Yield, +Await] ) { AsyncFunctionBody } - - - 12.2.6.7 Runtime Semantics: Evaluation - - [...] - - ComputedPropertyName : [ AssignmentExpression ] - - 1. Let exprValue be the result of evaluating AssignmentExpression. - 2. Let propName be ? GetValue(exprValue). - 3. Return ? ToPropertyKey(propName). ----*/ - -var stringSet; - -class C { - get #'line\ -Continuation'() { return 'get string'; } - set #'line\ -Continuation'(param) { stringSet = param; } - - getPrivateReference() { - return this[#'lineContinuation']; - } - - setPrivateReference(value) { - this[#'lineContinuation'] = value; - } -}; - -var inst = new C(); - -assert.sameValue(inst.getPrivateReference(), 'get string'); - -inst.setPrivateReference('set string'); -assert.sameValue(stringSet, 'set string'); diff --git a/test/language/statements/class/private-accessor-name-inst-literal-string-single-quote.js b/test/language/statements/class/private-accessor-name-inst-literal-string-single-quote.js deleted file mode 100644 index cf7ca37b04..0000000000 --- a/test/language/statements/class/private-accessor-name-inst-literal-string-single-quote.js +++ /dev/null @@ -1,55 +0,0 @@ -// This file was procedurally generated from the following sources: -// - src/accessor-names/literal-string-single-quote.case -// - src/accessor-names/default/cls-private-decl-inst.template -/*--- -description: Computed values as accessor property names (string literal using single quotes) (Class declaration, private instance method) -flags: [generated] -info: | - [...] - MethodDefinition[Yield, Await]: - PropertyNameClassElementName [?Yield, ?Await]( - UniqueFormalParameters [~Yield, ~Await] ) { - FunctionBody [~Yield, ~Await] } - AsyncMethod[?Yield, ?Await] - get PropertyName ClassElementName [?Yield, ?Await] (){ - FunctionBody [~Yield, ~Await] } - set PropertyNameClassElementName [?Yield, ?Await] ( - PropertySetParameterList ) { FunctionBody [~Yield, ~Await] } - AsyncMethod [Yield, Await]: - async [no LineTerminator here] PropertyName - ClassElementName[?Yield, ?Await]( - UniqueFormalParameters[~Yield, +Await] ) { AsyncFunctionBody } - - - 12.2.6.7 Runtime Semantics: Evaluation - - [...] - - ComputedPropertyName : [ AssignmentExpression ] - - 1. Let exprValue be the result of evaluating AssignmentExpression. - 2. Let propName be ? GetValue(exprValue). - 3. Return ? ToPropertyKey(propName). ----*/ - -var stringSet; - -class C { - get #'singleQuote'() { return 'get string'; } - set #'singleQuote'(param) { stringSet = param; } - - getPrivateReference() { - return this[#'singleQuote']; - } - - setPrivateReference(value) { - this[#'singleQuote'] = value; - } -}; - -var inst = new C(); - -assert.sameValue(inst.getPrivateReference(), 'get string'); - -inst.setPrivateReference('set string'); -assert.sameValue(stringSet, 'set string'); diff --git a/test/language/statements/class/private-accessor-name-inst-literal-string-unicode-escape.js b/test/language/statements/class/private-accessor-name-inst-literal-string-unicode-escape.js deleted file mode 100644 index eef8bfd8d6..0000000000 --- a/test/language/statements/class/private-accessor-name-inst-literal-string-unicode-escape.js +++ /dev/null @@ -1,55 +0,0 @@ -// This file was procedurally generated from the following sources: -// - src/accessor-names/literal-string-unicode-escape.case -// - src/accessor-names/default/cls-private-decl-inst.template -/*--- -description: Computed values as accessor property names (string literal containing a Unicode escape sequence) (Class declaration, private instance method) -flags: [generated] -info: | - [...] - MethodDefinition[Yield, Await]: - PropertyNameClassElementName [?Yield, ?Await]( - UniqueFormalParameters [~Yield, ~Await] ) { - FunctionBody [~Yield, ~Await] } - AsyncMethod[?Yield, ?Await] - get PropertyName ClassElementName [?Yield, ?Await] (){ - FunctionBody [~Yield, ~Await] } - set PropertyNameClassElementName [?Yield, ?Await] ( - PropertySetParameterList ) { FunctionBody [~Yield, ~Await] } - AsyncMethod [Yield, Await]: - async [no LineTerminator here] PropertyName - ClassElementName[?Yield, ?Await]( - UniqueFormalParameters[~Yield, +Await] ) { AsyncFunctionBody } - - - 12.2.6.7 Runtime Semantics: Evaluation - - [...] - - ComputedPropertyName : [ AssignmentExpression ] - - 1. Let exprValue be the result of evaluating AssignmentExpression. - 2. Let propName be ? GetValue(exprValue). - 3. Return ? ToPropertyKey(propName). ----*/ - -var stringSet; - -class C { - get #'unicod\u{000065}Escape'() { return 'get string'; } - set #'unicod\u{000065}Escape'(param) { stringSet = param; } - - getPrivateReference() { - return this[#'unicodeEscape']; - } - - setPrivateReference(value) { - this[#'unicodeEscape'] = value; - } -}; - -var inst = new C(); - -assert.sameValue(inst.getPrivateReference(), 'get string'); - -inst.setPrivateReference('set string'); -assert.sameValue(stringSet, 'set string'); diff --git a/test/language/statements/class/private-accessor-name-static-computed.js b/test/language/statements/class/private-accessor-name-static-computed.js deleted file mode 100644 index 3c825558d5..0000000000 --- a/test/language/statements/class/private-accessor-name-static-computed.js +++ /dev/null @@ -1,56 +0,0 @@ -// This file was procedurally generated from the following sources: -// - src/accessor-names/computed.case -// - src/accessor-names/default/cls-private-decl-static.template -/*--- -description: Computed values as accessor property names (AssignmentExpression) (Class declaration, static method) -flags: [generated] -info: | - [...] - MethodDefinition[Yield, Await]: - PropertyNameClassElementName [?Yield, ?Await]( - UniqueFormalParameters [~Yield, ~Await] ) { - FunctionBody [~Yield, ~Await] } - AsyncMethod[?Yield, ?Await] - get PropertyName ClassElementName [?Yield, ?Await] (){ - FunctionBody [~Yield, ~Await] } - set PropertyNameClassElementName [?Yield, ?Await] ( - PropertySetParameterList ) { FunctionBody [~Yield, ~Await] } - AsyncMethod [Yield, Await]: - async [no LineTerminator here] PropertyName - ClassElementName[?Yield, ?Await]( - UniqueFormalParameters[~Yield, +Await] ) { AsyncFunctionBody } - - - 12.2.6.7 Runtime Semantics: Evaluation - - [...] - - ComputedPropertyName : [ AssignmentExpression ] - - 1. Let exprValue be the result of evaluating AssignmentExpression. - 2. Let propName be ? GetValue(exprValue). - 3. Return ? ToPropertyKey(propName). ----*/ -var _; - - -var stringSet; - -class C { - static get #[_ = 'str' + 'ing']() { return 'get string'; } - static set #[_ = 'str' + 'ing'](param) { stringSet = param; } - - static getPrivateReference() { - return this[#'string']; - } - - static setPrivateReference(value) { - this[#'string'] = value; - } -} - -assert.sameValue(C.getPrivateReference(), 'get string'); - -C.setPrivateReference('set string'); -assert.sameValue(stringSet, 'set string'); - diff --git a/test/language/statements/class/private-accessor-name-static-literal-numeric-binary.js b/test/language/statements/class/private-accessor-name-static-literal-numeric-binary.js deleted file mode 100644 index 7e797f0ff8..0000000000 --- a/test/language/statements/class/private-accessor-name-static-literal-numeric-binary.js +++ /dev/null @@ -1,54 +0,0 @@ -// This file was procedurally generated from the following sources: -// - src/accessor-names/literal-numeric-binary.case -// - src/accessor-names/default/cls-private-decl-static.template -/*--- -description: Computed values as accessor property names (numeric literal in binary notation) (Class declaration, static method) -flags: [generated] -info: | - [...] - MethodDefinition[Yield, Await]: - PropertyNameClassElementName [?Yield, ?Await]( - UniqueFormalParameters [~Yield, ~Await] ) { - FunctionBody [~Yield, ~Await] } - AsyncMethod[?Yield, ?Await] - get PropertyName ClassElementName [?Yield, ?Await] (){ - FunctionBody [~Yield, ~Await] } - set PropertyNameClassElementName [?Yield, ?Await] ( - PropertySetParameterList ) { FunctionBody [~Yield, ~Await] } - AsyncMethod [Yield, Await]: - async [no LineTerminator here] PropertyName - ClassElementName[?Yield, ?Await]( - UniqueFormalParameters[~Yield, +Await] ) { AsyncFunctionBody } - - - 12.2.6.7 Runtime Semantics: Evaluation - - [...] - - ComputedPropertyName : [ AssignmentExpression ] - - 1. Let exprValue be the result of evaluating AssignmentExpression. - 2. Let propName be ? GetValue(exprValue). - 3. Return ? ToPropertyKey(propName). ----*/ - -var stringSet; - -class C { - static get #0b10() { return 'get string'; } - static set #0b10(param) { stringSet = param; } - - static getPrivateReference() { - return this[#'2']; - } - - static setPrivateReference(value) { - this[#'2'] = value; - } -} - -assert.sameValue(C.getPrivateReference(), 'get string'); - -C.setPrivateReference('set string'); -assert.sameValue(stringSet, 'set string'); - diff --git a/test/language/statements/class/private-accessor-name-static-literal-numeric-exponent.js b/test/language/statements/class/private-accessor-name-static-literal-numeric-exponent.js deleted file mode 100644 index 91f3992c62..0000000000 --- a/test/language/statements/class/private-accessor-name-static-literal-numeric-exponent.js +++ /dev/null @@ -1,54 +0,0 @@ -// This file was procedurally generated from the following sources: -// - src/accessor-names/literal-numeric-exponent.case -// - src/accessor-names/default/cls-private-decl-static.template -/*--- -description: Computed values as accessor property names (numeric literal in exponent notation) (Class declaration, static method) -flags: [generated] -info: | - [...] - MethodDefinition[Yield, Await]: - PropertyNameClassElementName [?Yield, ?Await]( - UniqueFormalParameters [~Yield, ~Await] ) { - FunctionBody [~Yield, ~Await] } - AsyncMethod[?Yield, ?Await] - get PropertyName ClassElementName [?Yield, ?Await] (){ - FunctionBody [~Yield, ~Await] } - set PropertyNameClassElementName [?Yield, ?Await] ( - PropertySetParameterList ) { FunctionBody [~Yield, ~Await] } - AsyncMethod [Yield, Await]: - async [no LineTerminator here] PropertyName - ClassElementName[?Yield, ?Await]( - UniqueFormalParameters[~Yield, +Await] ) { AsyncFunctionBody } - - - 12.2.6.7 Runtime Semantics: Evaluation - - [...] - - ComputedPropertyName : [ AssignmentExpression ] - - 1. Let exprValue be the result of evaluating AssignmentExpression. - 2. Let propName be ? GetValue(exprValue). - 3. Return ? ToPropertyKey(propName). ----*/ - -var stringSet; - -class C { - static get #1E+9() { return 'get string'; } - static set #1E+9(param) { stringSet = param; } - - static getPrivateReference() { - return this[#'1000000000']; - } - - static setPrivateReference(value) { - this[#'1000000000'] = value; - } -} - -assert.sameValue(C.getPrivateReference(), 'get string'); - -C.setPrivateReference('set string'); -assert.sameValue(stringSet, 'set string'); - diff --git a/test/language/statements/class/private-accessor-name-static-literal-numeric-hex.js b/test/language/statements/class/private-accessor-name-static-literal-numeric-hex.js deleted file mode 100644 index 1c321d3810..0000000000 --- a/test/language/statements/class/private-accessor-name-static-literal-numeric-hex.js +++ /dev/null @@ -1,54 +0,0 @@ -// This file was procedurally generated from the following sources: -// - src/accessor-names/literal-numeric-hex.case -// - src/accessor-names/default/cls-private-decl-static.template -/*--- -description: Computed values as accessor property names (numeric literal in hexadecimal notation) (Class declaration, static method) -flags: [generated] -info: | - [...] - MethodDefinition[Yield, Await]: - PropertyNameClassElementName [?Yield, ?Await]( - UniqueFormalParameters [~Yield, ~Await] ) { - FunctionBody [~Yield, ~Await] } - AsyncMethod[?Yield, ?Await] - get PropertyName ClassElementName [?Yield, ?Await] (){ - FunctionBody [~Yield, ~Await] } - set PropertyNameClassElementName [?Yield, ?Await] ( - PropertySetParameterList ) { FunctionBody [~Yield, ~Await] } - AsyncMethod [Yield, Await]: - async [no LineTerminator here] PropertyName - ClassElementName[?Yield, ?Await]( - UniqueFormalParameters[~Yield, +Await] ) { AsyncFunctionBody } - - - 12.2.6.7 Runtime Semantics: Evaluation - - [...] - - ComputedPropertyName : [ AssignmentExpression ] - - 1. Let exprValue be the result of evaluating AssignmentExpression. - 2. Let propName be ? GetValue(exprValue). - 3. Return ? ToPropertyKey(propName). ----*/ - -var stringSet; - -class C { - static get #0x10() { return 'get string'; } - static set #0x10(param) { stringSet = param; } - - static getPrivateReference() { - return this[#'16']; - } - - static setPrivateReference(value) { - this[#'16'] = value; - } -} - -assert.sameValue(C.getPrivateReference(), 'get string'); - -C.setPrivateReference('set string'); -assert.sameValue(stringSet, 'set string'); - diff --git a/test/language/statements/class/private-accessor-name-static-literal-numeric-leading-decimal.js b/test/language/statements/class/private-accessor-name-static-literal-numeric-leading-decimal.js deleted file mode 100644 index cbb57230f9..0000000000 --- a/test/language/statements/class/private-accessor-name-static-literal-numeric-leading-decimal.js +++ /dev/null @@ -1,54 +0,0 @@ -// This file was procedurally generated from the following sources: -// - src/accessor-names/literal-numeric-leading-decimal.case -// - src/accessor-names/default/cls-private-decl-static.template -/*--- -description: Computed values as accessor property names (numeric literal with leading decimal point) (Class declaration, static method) -flags: [generated] -info: | - [...] - MethodDefinition[Yield, Await]: - PropertyNameClassElementName [?Yield, ?Await]( - UniqueFormalParameters [~Yield, ~Await] ) { - FunctionBody [~Yield, ~Await] } - AsyncMethod[?Yield, ?Await] - get PropertyName ClassElementName [?Yield, ?Await] (){ - FunctionBody [~Yield, ~Await] } - set PropertyNameClassElementName [?Yield, ?Await] ( - PropertySetParameterList ) { FunctionBody [~Yield, ~Await] } - AsyncMethod [Yield, Await]: - async [no LineTerminator here] PropertyName - ClassElementName[?Yield, ?Await]( - UniqueFormalParameters[~Yield, +Await] ) { AsyncFunctionBody } - - - 12.2.6.7 Runtime Semantics: Evaluation - - [...] - - ComputedPropertyName : [ AssignmentExpression ] - - 1. Let exprValue be the result of evaluating AssignmentExpression. - 2. Let propName be ? GetValue(exprValue). - 3. Return ? ToPropertyKey(propName). ----*/ - -var stringSet; - -class C { - static get #.1() { return 'get string'; } - static set #.1(param) { stringSet = param; } - - static getPrivateReference() { - return this[#'0.1']; - } - - static setPrivateReference(value) { - this[#'0.1'] = value; - } -} - -assert.sameValue(C.getPrivateReference(), 'get string'); - -C.setPrivateReference('set string'); -assert.sameValue(stringSet, 'set string'); - diff --git a/test/language/statements/class/private-accessor-name-static-literal-numeric-non-canonical.js b/test/language/statements/class/private-accessor-name-static-literal-numeric-non-canonical.js deleted file mode 100644 index 8ac1805751..0000000000 --- a/test/language/statements/class/private-accessor-name-static-literal-numeric-non-canonical.js +++ /dev/null @@ -1,54 +0,0 @@ -// This file was procedurally generated from the following sources: -// - src/accessor-names/literal-numeric-non-canonical.case -// - src/accessor-names/default/cls-private-decl-static.template -/*--- -description: Computed values as accessor property names (numeric literal with non-canonical representation) (Class declaration, static method) -flags: [generated] -info: | - [...] - MethodDefinition[Yield, Await]: - PropertyNameClassElementName [?Yield, ?Await]( - UniqueFormalParameters [~Yield, ~Await] ) { - FunctionBody [~Yield, ~Await] } - AsyncMethod[?Yield, ?Await] - get PropertyName ClassElementName [?Yield, ?Await] (){ - FunctionBody [~Yield, ~Await] } - set PropertyNameClassElementName [?Yield, ?Await] ( - PropertySetParameterList ) { FunctionBody [~Yield, ~Await] } - AsyncMethod [Yield, Await]: - async [no LineTerminator here] PropertyName - ClassElementName[?Yield, ?Await]( - UniqueFormalParameters[~Yield, +Await] ) { AsyncFunctionBody } - - - 12.2.6.7 Runtime Semantics: Evaluation - - [...] - - ComputedPropertyName : [ AssignmentExpression ] - - 1. Let exprValue be the result of evaluating AssignmentExpression. - 2. Let propName be ? GetValue(exprValue). - 3. Return ? ToPropertyKey(propName). ----*/ - -var stringSet; - -class C { - static get #0.0000001() { return 'get string'; } - static set #0.0000001(param) { stringSet = param; } - - static getPrivateReference() { - return this[#'1e-7']; - } - - static setPrivateReference(value) { - this[#'1e-7'] = value; - } -} - -assert.sameValue(C.getPrivateReference(), 'get string'); - -C.setPrivateReference('set string'); -assert.sameValue(stringSet, 'set string'); - diff --git a/test/language/statements/class/private-accessor-name-static-literal-numeric-octal.js b/test/language/statements/class/private-accessor-name-static-literal-numeric-octal.js deleted file mode 100644 index 51c86116c1..0000000000 --- a/test/language/statements/class/private-accessor-name-static-literal-numeric-octal.js +++ /dev/null @@ -1,54 +0,0 @@ -// This file was procedurally generated from the following sources: -// - src/accessor-names/literal-numeric-octal.case -// - src/accessor-names/default/cls-private-decl-static.template -/*--- -description: Computed values as accessor property names (numeric literal in octal notation) (Class declaration, static method) -flags: [generated] -info: | - [...] - MethodDefinition[Yield, Await]: - PropertyNameClassElementName [?Yield, ?Await]( - UniqueFormalParameters [~Yield, ~Await] ) { - FunctionBody [~Yield, ~Await] } - AsyncMethod[?Yield, ?Await] - get PropertyName ClassElementName [?Yield, ?Await] (){ - FunctionBody [~Yield, ~Await] } - set PropertyNameClassElementName [?Yield, ?Await] ( - PropertySetParameterList ) { FunctionBody [~Yield, ~Await] } - AsyncMethod [Yield, Await]: - async [no LineTerminator here] PropertyName - ClassElementName[?Yield, ?Await]( - UniqueFormalParameters[~Yield, +Await] ) { AsyncFunctionBody } - - - 12.2.6.7 Runtime Semantics: Evaluation - - [...] - - ComputedPropertyName : [ AssignmentExpression ] - - 1. Let exprValue be the result of evaluating AssignmentExpression. - 2. Let propName be ? GetValue(exprValue). - 3. Return ? ToPropertyKey(propName). ----*/ - -var stringSet; - -class C { - static get #0o10() { return 'get string'; } - static set #0o10(param) { stringSet = param; } - - static getPrivateReference() { - return this[#'8']; - } - - static setPrivateReference(value) { - this[#'8'] = value; - } -} - -assert.sameValue(C.getPrivateReference(), 'get string'); - -C.setPrivateReference('set string'); -assert.sameValue(stringSet, 'set string'); - diff --git a/test/language/statements/class/private-accessor-name-static-literal-numeric-zero.js b/test/language/statements/class/private-accessor-name-static-literal-numeric-zero.js deleted file mode 100644 index 7f00dbd05c..0000000000 --- a/test/language/statements/class/private-accessor-name-static-literal-numeric-zero.js +++ /dev/null @@ -1,54 +0,0 @@ -// This file was procedurally generated from the following sources: -// - src/accessor-names/literal-numeric-zero.case -// - src/accessor-names/default/cls-private-decl-static.template -/*--- -description: Computed values as accessor property names (numeric literal zero) (Class declaration, static method) -flags: [generated] -info: | - [...] - MethodDefinition[Yield, Await]: - PropertyNameClassElementName [?Yield, ?Await]( - UniqueFormalParameters [~Yield, ~Await] ) { - FunctionBody [~Yield, ~Await] } - AsyncMethod[?Yield, ?Await] - get PropertyName ClassElementName [?Yield, ?Await] (){ - FunctionBody [~Yield, ~Await] } - set PropertyNameClassElementName [?Yield, ?Await] ( - PropertySetParameterList ) { FunctionBody [~Yield, ~Await] } - AsyncMethod [Yield, Await]: - async [no LineTerminator here] PropertyName - ClassElementName[?Yield, ?Await]( - UniqueFormalParameters[~Yield, +Await] ) { AsyncFunctionBody } - - - 12.2.6.7 Runtime Semantics: Evaluation - - [...] - - ComputedPropertyName : [ AssignmentExpression ] - - 1. Let exprValue be the result of evaluating AssignmentExpression. - 2. Let propName be ? GetValue(exprValue). - 3. Return ? ToPropertyKey(propName). ----*/ - -var stringSet; - -class C { - static get #0() { return 'get string'; } - static set #0(param) { stringSet = param; } - - static getPrivateReference() { - return this[#'0']; - } - - static setPrivateReference(value) { - this[#'0'] = value; - } -} - -assert.sameValue(C.getPrivateReference(), 'get string'); - -C.setPrivateReference('set string'); -assert.sameValue(stringSet, 'set string'); - diff --git a/test/language/statements/class/private-accessor-name-static-literal-string-char-escape.js b/test/language/statements/class/private-accessor-name-static-literal-string-char-escape.js deleted file mode 100644 index 07264a19cb..0000000000 --- a/test/language/statements/class/private-accessor-name-static-literal-string-char-escape.js +++ /dev/null @@ -1,54 +0,0 @@ -// This file was procedurally generated from the following sources: -// - src/accessor-names/literal-string-char-escape.case -// - src/accessor-names/default/cls-private-decl-static.template -/*--- -description: Computed values as accessor property names (string literal containing a character escape sequence) (Class declaration, static method) -flags: [generated] -info: | - [...] - MethodDefinition[Yield, Await]: - PropertyNameClassElementName [?Yield, ?Await]( - UniqueFormalParameters [~Yield, ~Await] ) { - FunctionBody [~Yield, ~Await] } - AsyncMethod[?Yield, ?Await] - get PropertyName ClassElementName [?Yield, ?Await] (){ - FunctionBody [~Yield, ~Await] } - set PropertyNameClassElementName [?Yield, ?Await] ( - PropertySetParameterList ) { FunctionBody [~Yield, ~Await] } - AsyncMethod [Yield, Await]: - async [no LineTerminator here] PropertyName - ClassElementName[?Yield, ?Await]( - UniqueFormalParameters[~Yield, +Await] ) { AsyncFunctionBody } - - - 12.2.6.7 Runtime Semantics: Evaluation - - [...] - - ComputedPropertyName : [ AssignmentExpression ] - - 1. Let exprValue be the result of evaluating AssignmentExpression. - 2. Let propName be ? GetValue(exprValue). - 3. Return ? ToPropertyKey(propName). ----*/ - -var stringSet; - -class C { - static get #'character\tescape'() { return 'get string'; } - static set #'character\tescape'(param) { stringSet = param; } - - static getPrivateReference() { - return this[#'character escape']; - } - - static setPrivateReference(value) { - this[#'character escape'] = value; - } -} - -assert.sameValue(C.getPrivateReference(), 'get string'); - -C.setPrivateReference('set string'); -assert.sameValue(stringSet, 'set string'); - diff --git a/test/language/statements/class/private-accessor-name-static-literal-string-double-quote.js b/test/language/statements/class/private-accessor-name-static-literal-string-double-quote.js deleted file mode 100644 index 308c23a940..0000000000 --- a/test/language/statements/class/private-accessor-name-static-literal-string-double-quote.js +++ /dev/null @@ -1,54 +0,0 @@ -// This file was procedurally generated from the following sources: -// - src/accessor-names/literal-string-double-quote.case -// - src/accessor-names/default/cls-private-decl-static.template -/*--- -description: Computed values as accessor property names (string literal using double quotes) (Class declaration, static method) -flags: [generated] -info: | - [...] - MethodDefinition[Yield, Await]: - PropertyNameClassElementName [?Yield, ?Await]( - UniqueFormalParameters [~Yield, ~Await] ) { - FunctionBody [~Yield, ~Await] } - AsyncMethod[?Yield, ?Await] - get PropertyName ClassElementName [?Yield, ?Await] (){ - FunctionBody [~Yield, ~Await] } - set PropertyNameClassElementName [?Yield, ?Await] ( - PropertySetParameterList ) { FunctionBody [~Yield, ~Await] } - AsyncMethod [Yield, Await]: - async [no LineTerminator here] PropertyName - ClassElementName[?Yield, ?Await]( - UniqueFormalParameters[~Yield, +Await] ) { AsyncFunctionBody } - - - 12.2.6.7 Runtime Semantics: Evaluation - - [...] - - ComputedPropertyName : [ AssignmentExpression ] - - 1. Let exprValue be the result of evaluating AssignmentExpression. - 2. Let propName be ? GetValue(exprValue). - 3. Return ? ToPropertyKey(propName). ----*/ - -var stringSet; - -class C { - static get #"doubleQuote"() { return 'get string'; } - static set #"doubleQuote"(param) { stringSet = param; } - - static getPrivateReference() { - return this[#"doubleQuote"]; - } - - static setPrivateReference(value) { - this[#"doubleQuote"] = value; - } -} - -assert.sameValue(C.getPrivateReference(), 'get string'); - -C.setPrivateReference('set string'); -assert.sameValue(stringSet, 'set string'); - diff --git a/test/language/statements/class/private-accessor-name-static-literal-string-empty.js b/test/language/statements/class/private-accessor-name-static-literal-string-empty.js deleted file mode 100644 index 0babf275da..0000000000 --- a/test/language/statements/class/private-accessor-name-static-literal-string-empty.js +++ /dev/null @@ -1,54 +0,0 @@ -// This file was procedurally generated from the following sources: -// - src/accessor-names/literal-string-empty.case -// - src/accessor-names/default/cls-private-decl-static.template -/*--- -description: Computed values as accessor property names (string literal, the empty string) (Class declaration, static method) -flags: [generated] -info: | - [...] - MethodDefinition[Yield, Await]: - PropertyNameClassElementName [?Yield, ?Await]( - UniqueFormalParameters [~Yield, ~Await] ) { - FunctionBody [~Yield, ~Await] } - AsyncMethod[?Yield, ?Await] - get PropertyName ClassElementName [?Yield, ?Await] (){ - FunctionBody [~Yield, ~Await] } - set PropertyNameClassElementName [?Yield, ?Await] ( - PropertySetParameterList ) { FunctionBody [~Yield, ~Await] } - AsyncMethod [Yield, Await]: - async [no LineTerminator here] PropertyName - ClassElementName[?Yield, ?Await]( - UniqueFormalParameters[~Yield, +Await] ) { AsyncFunctionBody } - - - 12.2.6.7 Runtime Semantics: Evaluation - - [...] - - ComputedPropertyName : [ AssignmentExpression ] - - 1. Let exprValue be the result of evaluating AssignmentExpression. - 2. Let propName be ? GetValue(exprValue). - 3. Return ? ToPropertyKey(propName). ----*/ - -var stringSet; - -class C { - static get #''() { return 'get string'; } - static set #''(param) { stringSet = param; } - - static getPrivateReference() { - return this[#'']; - } - - static setPrivateReference(value) { - this[#''] = value; - } -} - -assert.sameValue(C.getPrivateReference(), 'get string'); - -C.setPrivateReference('set string'); -assert.sameValue(stringSet, 'set string'); - diff --git a/test/language/statements/class/private-accessor-name-static-literal-string-hex-escape.js b/test/language/statements/class/private-accessor-name-static-literal-string-hex-escape.js deleted file mode 100644 index adb2ebd9a0..0000000000 --- a/test/language/statements/class/private-accessor-name-static-literal-string-hex-escape.js +++ /dev/null @@ -1,54 +0,0 @@ -// This file was procedurally generated from the following sources: -// - src/accessor-names/literal-string-hex-escape.case -// - src/accessor-names/default/cls-private-decl-static.template -/*--- -description: Computed values as accessor property names (string literal containing a hexadecimal escape sequence) (Class declaration, static method) -flags: [generated] -info: | - [...] - MethodDefinition[Yield, Await]: - PropertyNameClassElementName [?Yield, ?Await]( - UniqueFormalParameters [~Yield, ~Await] ) { - FunctionBody [~Yield, ~Await] } - AsyncMethod[?Yield, ?Await] - get PropertyName ClassElementName [?Yield, ?Await] (){ - FunctionBody [~Yield, ~Await] } - set PropertyNameClassElementName [?Yield, ?Await] ( - PropertySetParameterList ) { FunctionBody [~Yield, ~Await] } - AsyncMethod [Yield, Await]: - async [no LineTerminator here] PropertyName - ClassElementName[?Yield, ?Await]( - UniqueFormalParameters[~Yield, +Await] ) { AsyncFunctionBody } - - - 12.2.6.7 Runtime Semantics: Evaluation - - [...] - - ComputedPropertyName : [ AssignmentExpression ] - - 1. Let exprValue be the result of evaluating AssignmentExpression. - 2. Let propName be ? GetValue(exprValue). - 3. Return ? ToPropertyKey(propName). ----*/ - -var stringSet; - -class C { - static get #'hex\x45scape'() { return 'get string'; } - static set #'hex\x45scape'(param) { stringSet = param; } - - static getPrivateReference() { - return this[#'hexEscape']; - } - - static setPrivateReference(value) { - this[#'hexEscape'] = value; - } -} - -assert.sameValue(C.getPrivateReference(), 'get string'); - -C.setPrivateReference('set string'); -assert.sameValue(stringSet, 'set string'); - diff --git a/test/language/statements/class/private-accessor-name-static-literal-string-line-continuation.js b/test/language/statements/class/private-accessor-name-static-literal-string-line-continuation.js deleted file mode 100644 index fdf27cdbaf..0000000000 --- a/test/language/statements/class/private-accessor-name-static-literal-string-line-continuation.js +++ /dev/null @@ -1,56 +0,0 @@ -// This file was procedurally generated from the following sources: -// - src/accessor-names/literal-string-line-continuation.case -// - src/accessor-names/default/cls-private-decl-static.template -/*--- -description: Computed values as accessor property names (string literal containing LineContinuation) (Class declaration, static method) -flags: [generated] -info: | - [...] - MethodDefinition[Yield, Await]: - PropertyNameClassElementName [?Yield, ?Await]( - UniqueFormalParameters [~Yield, ~Await] ) { - FunctionBody [~Yield, ~Await] } - AsyncMethod[?Yield, ?Await] - get PropertyName ClassElementName [?Yield, ?Await] (){ - FunctionBody [~Yield, ~Await] } - set PropertyNameClassElementName [?Yield, ?Await] ( - PropertySetParameterList ) { FunctionBody [~Yield, ~Await] } - AsyncMethod [Yield, Await]: - async [no LineTerminator here] PropertyName - ClassElementName[?Yield, ?Await]( - UniqueFormalParameters[~Yield, +Await] ) { AsyncFunctionBody } - - - 12.2.6.7 Runtime Semantics: Evaluation - - [...] - - ComputedPropertyName : [ AssignmentExpression ] - - 1. Let exprValue be the result of evaluating AssignmentExpression. - 2. Let propName be ? GetValue(exprValue). - 3. Return ? ToPropertyKey(propName). ----*/ - -var stringSet; - -class C { - static get #'line\ -Continuation'() { return 'get string'; } - static set #'line\ -Continuation'(param) { stringSet = param; } - - static getPrivateReference() { - return this[#'lineContinuation']; - } - - static setPrivateReference(value) { - this[#'lineContinuation'] = value; - } -} - -assert.sameValue(C.getPrivateReference(), 'get string'); - -C.setPrivateReference('set string'); -assert.sameValue(stringSet, 'set string'); - diff --git a/test/language/statements/class/private-accessor-name-static-literal-string-single-quote.js b/test/language/statements/class/private-accessor-name-static-literal-string-single-quote.js deleted file mode 100644 index a2277a9c6c..0000000000 --- a/test/language/statements/class/private-accessor-name-static-literal-string-single-quote.js +++ /dev/null @@ -1,54 +0,0 @@ -// This file was procedurally generated from the following sources: -// - src/accessor-names/literal-string-single-quote.case -// - src/accessor-names/default/cls-private-decl-static.template -/*--- -description: Computed values as accessor property names (string literal using single quotes) (Class declaration, static method) -flags: [generated] -info: | - [...] - MethodDefinition[Yield, Await]: - PropertyNameClassElementName [?Yield, ?Await]( - UniqueFormalParameters [~Yield, ~Await] ) { - FunctionBody [~Yield, ~Await] } - AsyncMethod[?Yield, ?Await] - get PropertyName ClassElementName [?Yield, ?Await] (){ - FunctionBody [~Yield, ~Await] } - set PropertyNameClassElementName [?Yield, ?Await] ( - PropertySetParameterList ) { FunctionBody [~Yield, ~Await] } - AsyncMethod [Yield, Await]: - async [no LineTerminator here] PropertyName - ClassElementName[?Yield, ?Await]( - UniqueFormalParameters[~Yield, +Await] ) { AsyncFunctionBody } - - - 12.2.6.7 Runtime Semantics: Evaluation - - [...] - - ComputedPropertyName : [ AssignmentExpression ] - - 1. Let exprValue be the result of evaluating AssignmentExpression. - 2. Let propName be ? GetValue(exprValue). - 3. Return ? ToPropertyKey(propName). ----*/ - -var stringSet; - -class C { - static get #'singleQuote'() { return 'get string'; } - static set #'singleQuote'(param) { stringSet = param; } - - static getPrivateReference() { - return this[#'singleQuote']; - } - - static setPrivateReference(value) { - this[#'singleQuote'] = value; - } -} - -assert.sameValue(C.getPrivateReference(), 'get string'); - -C.setPrivateReference('set string'); -assert.sameValue(stringSet, 'set string'); - diff --git a/test/language/statements/class/private-accessor-name-static-literal-string-unicode-escape.js b/test/language/statements/class/private-accessor-name-static-literal-string-unicode-escape.js deleted file mode 100644 index 7b156b158f..0000000000 --- a/test/language/statements/class/private-accessor-name-static-literal-string-unicode-escape.js +++ /dev/null @@ -1,54 +0,0 @@ -// This file was procedurally generated from the following sources: -// - src/accessor-names/literal-string-unicode-escape.case -// - src/accessor-names/default/cls-private-decl-static.template -/*--- -description: Computed values as accessor property names (string literal containing a Unicode escape sequence) (Class declaration, static method) -flags: [generated] -info: | - [...] - MethodDefinition[Yield, Await]: - PropertyNameClassElementName [?Yield, ?Await]( - UniqueFormalParameters [~Yield, ~Await] ) { - FunctionBody [~Yield, ~Await] } - AsyncMethod[?Yield, ?Await] - get PropertyName ClassElementName [?Yield, ?Await] (){ - FunctionBody [~Yield, ~Await] } - set PropertyNameClassElementName [?Yield, ?Await] ( - PropertySetParameterList ) { FunctionBody [~Yield, ~Await] } - AsyncMethod [Yield, Await]: - async [no LineTerminator here] PropertyName - ClassElementName[?Yield, ?Await]( - UniqueFormalParameters[~Yield, +Await] ) { AsyncFunctionBody } - - - 12.2.6.7 Runtime Semantics: Evaluation - - [...] - - ComputedPropertyName : [ AssignmentExpression ] - - 1. Let exprValue be the result of evaluating AssignmentExpression. - 2. Let propName be ? GetValue(exprValue). - 3. Return ? ToPropertyKey(propName). ----*/ - -var stringSet; - -class C { - static get #'unicod\u{000065}Escape'() { return 'get string'; } - static set #'unicod\u{000065}Escape'(param) { stringSet = param; } - - static getPrivateReference() { - return this[#'unicodeEscape']; - } - - static setPrivateReference(value) { - this[#'unicodeEscape'] = value; - } -} - -assert.sameValue(C.getPrivateReference(), 'get string'); - -C.setPrivateReference('set string'); -assert.sameValue(stringSet, 'set string'); - diff --git a/test/language/statements/class/private-accessor-name/inst-private-escape-sequence-ZWJ.js b/test/language/statements/class/private-accessor-name/inst-private-escape-sequence-ZWJ.js new file mode 100644 index 0000000000..86e72881b7 --- /dev/null +++ b/test/language/statements/class/private-accessor-name/inst-private-escape-sequence-ZWJ.js @@ -0,0 +1,78 @@ +// This file was procedurally generated from the following sources: +// - src/accessor-names/private-escape-sequence-ZWJ.case +// - src/accessor-names/private/cls-private-decl-inst.template +/*--- +description: Private IdentifierName - ZWJ (Class declaration, private instance method) +features: [class-methods-private] +flags: [generated] +info: | + ClassElement : + MethodDefinition + static MethodDefinition + FieldDefinition ; + ; + + FieldDefinition : + ClassElementName Initializer _opt + + ClassElementName : + PropertyName + PrivateName + + PrivateName :: + # IdentifierName + + Initializer : + = AssignmentExpression + + IdentifierName :: + IdentifierStart + IdentifierName IdentifierPart + + IdentifierStart :: + UnicodeIDStart + $ + _ + \ UnicodeEscapeSequence + + IdentifierPart:: + UnicodeIDContinue + $ + \ UnicodeEscapeSequence + + + 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 stringSet; + +class C { + get #ZW_\u200D_J() { return 'get string'; } + set #ZW_\u200D_J(param) { stringSet = param; } + + getPrivateReference() { + return this.#ZW_‍_J; + } + + setPrivateReference(value) { + this.#ZW_‍_J = value; + } +}; + +var inst = new C(); + +assert.sameValue(inst.getPrivateReference(), 'get string'); + +inst.setPrivateReference('set string'); +assert.sameValue(stringSet, 'set string'); diff --git a/test/language/statements/class/private-accessor-name/inst-private-escape-sequence-ZWNJ.js b/test/language/statements/class/private-accessor-name/inst-private-escape-sequence-ZWNJ.js new file mode 100644 index 0000000000..8909f000f2 --- /dev/null +++ b/test/language/statements/class/private-accessor-name/inst-private-escape-sequence-ZWNJ.js @@ -0,0 +1,78 @@ +// This file was procedurally generated from the following sources: +// - src/accessor-names/private-escape-sequence-ZWNJ.case +// - src/accessor-names/private/cls-private-decl-inst.template +/*--- +description: Private IdentifierName - ZWNJ (Class declaration, private instance method) +features: [class-methods-private] +flags: [generated] +info: | + ClassElement : + MethodDefinition + static MethodDefinition + FieldDefinition ; + ; + + FieldDefinition : + ClassElementName Initializer _opt + + ClassElementName : + PropertyName + PrivateName + + PrivateName :: + # IdentifierName + + Initializer : + = AssignmentExpression + + IdentifierName :: + IdentifierStart + IdentifierName IdentifierPart + + IdentifierStart :: + UnicodeIDStart + $ + _ + \ UnicodeEscapeSequence + + IdentifierPart:: + UnicodeIDContinue + $ + \ UnicodeEscapeSequence + + + 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 stringSet; + +class C { + get #ZW_\u200C_NJ() { return 'get string'; } + set #ZW_\u200C_NJ(param) { stringSet = param; } + + getPrivateReference() { + return this.#ZW_‌_NJ; + } + + setPrivateReference(value) { + this.#ZW_‌_NJ = value; + } +}; + +var inst = new C(); + +assert.sameValue(inst.getPrivateReference(), 'get string'); + +inst.setPrivateReference('set string'); +assert.sameValue(stringSet, 'set string'); diff --git a/test/language/statements/class/private-accessor-name/inst-private-escape-sequence-u2118.js b/test/language/statements/class/private-accessor-name/inst-private-escape-sequence-u2118.js new file mode 100644 index 0000000000..0bb3ee2661 --- /dev/null +++ b/test/language/statements/class/private-accessor-name/inst-private-escape-sequence-u2118.js @@ -0,0 +1,78 @@ +// This file was procedurally generated from the following sources: +// - src/accessor-names/private-escape-sequence-u2118.case +// - src/accessor-names/private/cls-private-decl-inst.template +/*--- +description: Private IdentifierName - u2118 (℘) (Class declaration, private instance method) +features: [class-methods-private] +flags: [generated] +info: | + ClassElement : + MethodDefinition + static MethodDefinition + FieldDefinition ; + ; + + FieldDefinition : + ClassElementName Initializer _opt + + ClassElementName : + PropertyName + PrivateName + + PrivateName :: + # IdentifierName + + Initializer : + = AssignmentExpression + + IdentifierName :: + IdentifierStart + IdentifierName IdentifierPart + + IdentifierStart :: + UnicodeIDStart + $ + _ + \ UnicodeEscapeSequence + + IdentifierPart:: + UnicodeIDContinue + $ + \ UnicodeEscapeSequence + + + 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 stringSet; + +class C { + get #\u2118() { return 'get string'; } + set #\u2118(param) { stringSet = param; } + + getPrivateReference() { + return this.#℘; + } + + setPrivateReference(value) { + this.#℘ = value; + } +}; + +var inst = new C(); + +assert.sameValue(inst.getPrivateReference(), 'get string'); + +inst.setPrivateReference('set string'); +assert.sameValue(stringSet, 'set string'); diff --git a/test/language/statements/class/private-accessor-name/inst-private-escape-sequence-u6F.js b/test/language/statements/class/private-accessor-name/inst-private-escape-sequence-u6F.js new file mode 100644 index 0000000000..97204c97f3 --- /dev/null +++ b/test/language/statements/class/private-accessor-name/inst-private-escape-sequence-u6F.js @@ -0,0 +1,78 @@ +// This file was procedurally generated from the following sources: +// - src/accessor-names/private-escape-sequence-u6F.case +// - src/accessor-names/private/cls-private-decl-inst.template +/*--- +description: Private IdentifierName - u6F (o) (Class declaration, private instance method) +features: [class-methods-private] +flags: [generated] +info: | + ClassElement : + MethodDefinition + static MethodDefinition + FieldDefinition ; + ; + + FieldDefinition : + ClassElementName Initializer _opt + + ClassElementName : + PropertyName + PrivateName + + PrivateName :: + # IdentifierName + + Initializer : + = AssignmentExpression + + IdentifierName :: + IdentifierStart + IdentifierName IdentifierPart + + IdentifierStart :: + UnicodeIDStart + $ + _ + \ UnicodeEscapeSequence + + IdentifierPart:: + UnicodeIDContinue + $ + \ UnicodeEscapeSequence + + + 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 stringSet; + +class C { + get #\u{6F}() { return 'get string'; } + set #\u{6F}(param) { stringSet = param; } + + getPrivateReference() { + return this.#o; + } + + setPrivateReference(value) { + this.#o = value; + } +}; + +var inst = new C(); + +assert.sameValue(inst.getPrivateReference(), 'get string'); + +inst.setPrivateReference('set string'); +assert.sameValue(stringSet, 'set string'); diff --git a/test/language/statements/class/private-accessor-name/inst-private-name-ZWJ.js b/test/language/statements/class/private-accessor-name/inst-private-name-ZWJ.js new file mode 100644 index 0000000000..71edcfbe7b --- /dev/null +++ b/test/language/statements/class/private-accessor-name/inst-private-name-ZWJ.js @@ -0,0 +1,78 @@ +// This file was procedurally generated from the following sources: +// - src/accessor-names/private-name-ZWJ.case +// - src/accessor-names/private/cls-private-decl-inst.template +/*--- +description: Private IdentifierName - ZWJ (Class declaration, private instance method) +features: [class-methods-private] +flags: [generated] +info: | + ClassElement : + MethodDefinition + static MethodDefinition + FieldDefinition ; + ; + + FieldDefinition : + ClassElementName Initializer _opt + + ClassElementName : + PropertyName + PrivateName + + PrivateName :: + # IdentifierName + + Initializer : + = AssignmentExpression + + IdentifierName :: + IdentifierStart + IdentifierName IdentifierPart + + IdentifierStart :: + UnicodeIDStart + $ + _ + \ UnicodeEscapeSequence + + IdentifierPart:: + UnicodeIDContinue + $ + \ UnicodeEscapeSequence + + + 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 stringSet; + +class C { + get #ZW_‍_J() { return 'get string'; } + set #ZW_‍_J(param) { stringSet = param; } + + getPrivateReference() { + return this.#ZW_‍_J; + } + + setPrivateReference(value) { + this.#ZW_‍_J = value; + } +}; + +var inst = new C(); + +assert.sameValue(inst.getPrivateReference(), 'get string'); + +inst.setPrivateReference('set string'); +assert.sameValue(stringSet, 'set string'); diff --git a/test/language/statements/class/private-accessor-name/inst-private-name-ZWNJ.js b/test/language/statements/class/private-accessor-name/inst-private-name-ZWNJ.js new file mode 100644 index 0000000000..ceda684296 --- /dev/null +++ b/test/language/statements/class/private-accessor-name/inst-private-name-ZWNJ.js @@ -0,0 +1,78 @@ +// This file was procedurally generated from the following sources: +// - src/accessor-names/private-name-ZWNJ.case +// - src/accessor-names/private/cls-private-decl-inst.template +/*--- +description: Private IdentifierName - ZWNJ (Class declaration, private instance method) +features: [class-methods-private] +flags: [generated] +info: | + ClassElement : + MethodDefinition + static MethodDefinition + FieldDefinition ; + ; + + FieldDefinition : + ClassElementName Initializer _opt + + ClassElementName : + PropertyName + PrivateName + + PrivateName :: + # IdentifierName + + Initializer : + = AssignmentExpression + + IdentifierName :: + IdentifierStart + IdentifierName IdentifierPart + + IdentifierStart :: + UnicodeIDStart + $ + _ + \ UnicodeEscapeSequence + + IdentifierPart:: + UnicodeIDContinue + $ + \ UnicodeEscapeSequence + + + 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 stringSet; + +class C { + get #ZW_‌_NJ() { return 'get string'; } + set #ZW_‌_NJ(param) { stringSet = param; } + + getPrivateReference() { + return this.#ZW_‌_NJ; + } + + setPrivateReference(value) { + this.#ZW_‌_NJ = value; + } +}; + +var inst = new C(); + +assert.sameValue(inst.getPrivateReference(), 'get string'); + +inst.setPrivateReference('set string'); +assert.sameValue(stringSet, 'set string'); diff --git a/test/language/statements/class/private-accessor-name/inst-private-name-common.js b/test/language/statements/class/private-accessor-name/inst-private-name-common.js new file mode 100644 index 0000000000..b4146435cc --- /dev/null +++ b/test/language/statements/class/private-accessor-name/inst-private-name-common.js @@ -0,0 +1,78 @@ +// This file was procedurally generated from the following sources: +// - src/accessor-names/private-name-common.case +// - src/accessor-names/private/cls-private-decl-inst.template +/*--- +description: Private IdentifierName - common (Class declaration, private instance method) +features: [class-methods-private] +flags: [generated] +info: | + ClassElement : + MethodDefinition + static MethodDefinition + FieldDefinition ; + ; + + FieldDefinition : + ClassElementName Initializer _opt + + ClassElementName : + PropertyName + PrivateName + + PrivateName :: + # IdentifierName + + Initializer : + = AssignmentExpression + + IdentifierName :: + IdentifierStart + IdentifierName IdentifierPart + + IdentifierStart :: + UnicodeIDStart + $ + _ + \ UnicodeEscapeSequence + + IdentifierPart:: + UnicodeIDContinue + $ + \ UnicodeEscapeSequence + + + 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 stringSet; + +class C { + get #test262() { return 'get string'; } + set #test262(param) { stringSet = param; } + + getPrivateReference() { + return this.#test262; + } + + setPrivateReference(value) { + this.#test262 = value; + } +}; + +var inst = new C(); + +assert.sameValue(inst.getPrivateReference(), 'get string'); + +inst.setPrivateReference('set string'); +assert.sameValue(stringSet, 'set string'); diff --git a/test/language/statements/class/private-accessor-name/inst-private-name-dollar.js b/test/language/statements/class/private-accessor-name/inst-private-name-dollar.js new file mode 100644 index 0000000000..8d4b53f563 --- /dev/null +++ b/test/language/statements/class/private-accessor-name/inst-private-name-dollar.js @@ -0,0 +1,78 @@ +// This file was procedurally generated from the following sources: +// - src/accessor-names/private-name-dollar.case +// - src/accessor-names/private/cls-private-decl-inst.template +/*--- +description: Private IdentifierName - $ (Class declaration, private instance method) +features: [class-methods-private] +flags: [generated] +info: | + ClassElement : + MethodDefinition + static MethodDefinition + FieldDefinition ; + ; + + FieldDefinition : + ClassElementName Initializer _opt + + ClassElementName : + PropertyName + PrivateName + + PrivateName :: + # IdentifierName + + Initializer : + = AssignmentExpression + + IdentifierName :: + IdentifierStart + IdentifierName IdentifierPart + + IdentifierStart :: + UnicodeIDStart + $ + _ + \ UnicodeEscapeSequence + + IdentifierPart:: + UnicodeIDContinue + $ + \ UnicodeEscapeSequence + + + 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 stringSet; + +class C { + get #$() { return 'get string'; } + set #$(param) { stringSet = param; } + + getPrivateReference() { + return this.#$; + } + + setPrivateReference(value) { + this.#$ = value; + } +}; + +var inst = new C(); + +assert.sameValue(inst.getPrivateReference(), 'get string'); + +inst.setPrivateReference('set string'); +assert.sameValue(stringSet, 'set string'); diff --git a/test/language/statements/class/private-accessor-name/inst-private-name-u2118.js b/test/language/statements/class/private-accessor-name/inst-private-name-u2118.js new file mode 100644 index 0000000000..d5415324dc --- /dev/null +++ b/test/language/statements/class/private-accessor-name/inst-private-name-u2118.js @@ -0,0 +1,78 @@ +// This file was procedurally generated from the following sources: +// - src/accessor-names/private-name-u2118.case +// - src/accessor-names/private/cls-private-decl-inst.template +/*--- +description: Private IdentifierName - ℘ (Class declaration, private instance method) +features: [class-methods-private] +flags: [generated] +info: | + ClassElement : + MethodDefinition + static MethodDefinition + FieldDefinition ; + ; + + FieldDefinition : + ClassElementName Initializer _opt + + ClassElementName : + PropertyName + PrivateName + + PrivateName :: + # IdentifierName + + Initializer : + = AssignmentExpression + + IdentifierName :: + IdentifierStart + IdentifierName IdentifierPart + + IdentifierStart :: + UnicodeIDStart + $ + _ + \ UnicodeEscapeSequence + + IdentifierPart:: + UnicodeIDContinue + $ + \ UnicodeEscapeSequence + + + 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 stringSet; + +class C { + get #℘() { return 'get string'; } + set #℘(param) { stringSet = param; } + + getPrivateReference() { + return this.#℘; + } + + setPrivateReference(value) { + this.#℘ = value; + } +}; + +var inst = new C(); + +assert.sameValue(inst.getPrivateReference(), 'get string'); + +inst.setPrivateReference('set string'); +assert.sameValue(stringSet, 'set string'); diff --git a/test/language/statements/class/private-accessor-name/inst-private-name-underscore.js b/test/language/statements/class/private-accessor-name/inst-private-name-underscore.js new file mode 100644 index 0000000000..269b8563b3 --- /dev/null +++ b/test/language/statements/class/private-accessor-name/inst-private-name-underscore.js @@ -0,0 +1,78 @@ +// This file was procedurally generated from the following sources: +// - src/accessor-names/private-name-underscore.case +// - src/accessor-names/private/cls-private-decl-inst.template +/*--- +description: Private IdentifierName - _ (Class declaration, private instance method) +features: [class-methods-private] +flags: [generated] +info: | + ClassElement : + MethodDefinition + static MethodDefinition + FieldDefinition ; + ; + + FieldDefinition : + ClassElementName Initializer _opt + + ClassElementName : + PropertyName + PrivateName + + PrivateName :: + # IdentifierName + + Initializer : + = AssignmentExpression + + IdentifierName :: + IdentifierStart + IdentifierName IdentifierPart + + IdentifierStart :: + UnicodeIDStart + $ + _ + \ UnicodeEscapeSequence + + IdentifierPart:: + UnicodeIDContinue + $ + \ UnicodeEscapeSequence + + + 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 stringSet; + +class C { + get #_() { return 'get string'; } + set #_(param) { stringSet = param; } + + getPrivateReference() { + return this.#_; + } + + setPrivateReference(value) { + this.#_ = value; + } +}; + +var inst = new C(); + +assert.sameValue(inst.getPrivateReference(), 'get string'); + +inst.setPrivateReference('set string'); +assert.sameValue(stringSet, 'set string'); diff --git a/test/language/statements/class/private-accessor-name/static-private-escape-sequence-ZWJ.js b/test/language/statements/class/private-accessor-name/static-private-escape-sequence-ZWJ.js new file mode 100644 index 0000000000..d68d074235 --- /dev/null +++ b/test/language/statements/class/private-accessor-name/static-private-escape-sequence-ZWJ.js @@ -0,0 +1,77 @@ +// This file was procedurally generated from the following sources: +// - src/accessor-names/private-escape-sequence-ZWJ.case +// - src/accessor-names/private/cls-private-decl-static.template +/*--- +description: Private IdentifierName - ZWJ (Class declaration, static method) +features: [class-methods-private] +flags: [generated] +info: | + ClassElement : + MethodDefinition + static MethodDefinition + FieldDefinition ; + ; + + FieldDefinition : + ClassElementName Initializer _opt + + ClassElementName : + PropertyName + PrivateName + + PrivateName :: + # IdentifierName + + Initializer : + = AssignmentExpression + + IdentifierName :: + IdentifierStart + IdentifierName IdentifierPart + + IdentifierStart :: + UnicodeIDStart + $ + _ + \ UnicodeEscapeSequence + + IdentifierPart:: + UnicodeIDContinue + $ + \ UnicodeEscapeSequence + + + 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 stringSet; + +class C { + static get #ZW_\u200D_J() { return 'get string'; } + static set #ZW_\u200D_J(param) { stringSet = param; } + + static getPrivateReference() { + return this.#ZW_‍_J; + } + + static setPrivateReference(value) { + this.#ZW_‍_J = value; + } +} + +assert.sameValue(C.getPrivateReference(), 'get string'); + +C.setPrivateReference('set string'); +assert.sameValue(stringSet, 'set string'); + diff --git a/test/language/statements/class/private-accessor-name/static-private-escape-sequence-ZWNJ.js b/test/language/statements/class/private-accessor-name/static-private-escape-sequence-ZWNJ.js new file mode 100644 index 0000000000..2433117af0 --- /dev/null +++ b/test/language/statements/class/private-accessor-name/static-private-escape-sequence-ZWNJ.js @@ -0,0 +1,77 @@ +// This file was procedurally generated from the following sources: +// - src/accessor-names/private-escape-sequence-ZWNJ.case +// - src/accessor-names/private/cls-private-decl-static.template +/*--- +description: Private IdentifierName - ZWNJ (Class declaration, static method) +features: [class-methods-private] +flags: [generated] +info: | + ClassElement : + MethodDefinition + static MethodDefinition + FieldDefinition ; + ; + + FieldDefinition : + ClassElementName Initializer _opt + + ClassElementName : + PropertyName + PrivateName + + PrivateName :: + # IdentifierName + + Initializer : + = AssignmentExpression + + IdentifierName :: + IdentifierStart + IdentifierName IdentifierPart + + IdentifierStart :: + UnicodeIDStart + $ + _ + \ UnicodeEscapeSequence + + IdentifierPart:: + UnicodeIDContinue + $ + \ UnicodeEscapeSequence + + + 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 stringSet; + +class C { + static get #ZW_\u200C_NJ() { return 'get string'; } + static set #ZW_\u200C_NJ(param) { stringSet = param; } + + static getPrivateReference() { + return this.#ZW_‌_NJ; + } + + static setPrivateReference(value) { + this.#ZW_‌_NJ = value; + } +} + +assert.sameValue(C.getPrivateReference(), 'get string'); + +C.setPrivateReference('set string'); +assert.sameValue(stringSet, 'set string'); + diff --git a/test/language/statements/class/private-accessor-name/static-private-escape-sequence-u2118.js b/test/language/statements/class/private-accessor-name/static-private-escape-sequence-u2118.js new file mode 100644 index 0000000000..3fc8b0ab38 --- /dev/null +++ b/test/language/statements/class/private-accessor-name/static-private-escape-sequence-u2118.js @@ -0,0 +1,77 @@ +// This file was procedurally generated from the following sources: +// - src/accessor-names/private-escape-sequence-u2118.case +// - src/accessor-names/private/cls-private-decl-static.template +/*--- +description: Private IdentifierName - u2118 (℘) (Class declaration, static method) +features: [class-methods-private] +flags: [generated] +info: | + ClassElement : + MethodDefinition + static MethodDefinition + FieldDefinition ; + ; + + FieldDefinition : + ClassElementName Initializer _opt + + ClassElementName : + PropertyName + PrivateName + + PrivateName :: + # IdentifierName + + Initializer : + = AssignmentExpression + + IdentifierName :: + IdentifierStart + IdentifierName IdentifierPart + + IdentifierStart :: + UnicodeIDStart + $ + _ + \ UnicodeEscapeSequence + + IdentifierPart:: + UnicodeIDContinue + $ + \ UnicodeEscapeSequence + + + 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 stringSet; + +class C { + static get #\u2118() { return 'get string'; } + static set #\u2118(param) { stringSet = param; } + + static getPrivateReference() { + return this.#℘; + } + + static setPrivateReference(value) { + this.#℘ = value; + } +} + +assert.sameValue(C.getPrivateReference(), 'get string'); + +C.setPrivateReference('set string'); +assert.sameValue(stringSet, 'set string'); + diff --git a/test/language/statements/class/private-accessor-name/static-private-escape-sequence-u6F.js b/test/language/statements/class/private-accessor-name/static-private-escape-sequence-u6F.js new file mode 100644 index 0000000000..5b85c4fe6f --- /dev/null +++ b/test/language/statements/class/private-accessor-name/static-private-escape-sequence-u6F.js @@ -0,0 +1,77 @@ +// This file was procedurally generated from the following sources: +// - src/accessor-names/private-escape-sequence-u6F.case +// - src/accessor-names/private/cls-private-decl-static.template +/*--- +description: Private IdentifierName - u6F (o) (Class declaration, static method) +features: [class-methods-private] +flags: [generated] +info: | + ClassElement : + MethodDefinition + static MethodDefinition + FieldDefinition ; + ; + + FieldDefinition : + ClassElementName Initializer _opt + + ClassElementName : + PropertyName + PrivateName + + PrivateName :: + # IdentifierName + + Initializer : + = AssignmentExpression + + IdentifierName :: + IdentifierStart + IdentifierName IdentifierPart + + IdentifierStart :: + UnicodeIDStart + $ + _ + \ UnicodeEscapeSequence + + IdentifierPart:: + UnicodeIDContinue + $ + \ UnicodeEscapeSequence + + + 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 stringSet; + +class C { + static get #\u{6F}() { return 'get string'; } + static set #\u{6F}(param) { stringSet = param; } + + static getPrivateReference() { + return this.#o; + } + + static setPrivateReference(value) { + this.#o = value; + } +} + +assert.sameValue(C.getPrivateReference(), 'get string'); + +C.setPrivateReference('set string'); +assert.sameValue(stringSet, 'set string'); + diff --git a/test/language/statements/class/private-accessor-name/static-private-name-ZWJ.js b/test/language/statements/class/private-accessor-name/static-private-name-ZWJ.js new file mode 100644 index 0000000000..06716aec3a --- /dev/null +++ b/test/language/statements/class/private-accessor-name/static-private-name-ZWJ.js @@ -0,0 +1,77 @@ +// This file was procedurally generated from the following sources: +// - src/accessor-names/private-name-ZWJ.case +// - src/accessor-names/private/cls-private-decl-static.template +/*--- +description: Private IdentifierName - ZWJ (Class declaration, static method) +features: [class-methods-private] +flags: [generated] +info: | + ClassElement : + MethodDefinition + static MethodDefinition + FieldDefinition ; + ; + + FieldDefinition : + ClassElementName Initializer _opt + + ClassElementName : + PropertyName + PrivateName + + PrivateName :: + # IdentifierName + + Initializer : + = AssignmentExpression + + IdentifierName :: + IdentifierStart + IdentifierName IdentifierPart + + IdentifierStart :: + UnicodeIDStart + $ + _ + \ UnicodeEscapeSequence + + IdentifierPart:: + UnicodeIDContinue + $ + \ UnicodeEscapeSequence + + + 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 stringSet; + +class C { + static get #ZW_‍_J() { return 'get string'; } + static set #ZW_‍_J(param) { stringSet = param; } + + static getPrivateReference() { + return this.#ZW_‍_J; + } + + static setPrivateReference(value) { + this.#ZW_‍_J = value; + } +} + +assert.sameValue(C.getPrivateReference(), 'get string'); + +C.setPrivateReference('set string'); +assert.sameValue(stringSet, 'set string'); + diff --git a/test/language/statements/class/private-accessor-name/static-private-name-ZWNJ.js b/test/language/statements/class/private-accessor-name/static-private-name-ZWNJ.js new file mode 100644 index 0000000000..9e739658ca --- /dev/null +++ b/test/language/statements/class/private-accessor-name/static-private-name-ZWNJ.js @@ -0,0 +1,77 @@ +// This file was procedurally generated from the following sources: +// - src/accessor-names/private-name-ZWNJ.case +// - src/accessor-names/private/cls-private-decl-static.template +/*--- +description: Private IdentifierName - ZWNJ (Class declaration, static method) +features: [class-methods-private] +flags: [generated] +info: | + ClassElement : + MethodDefinition + static MethodDefinition + FieldDefinition ; + ; + + FieldDefinition : + ClassElementName Initializer _opt + + ClassElementName : + PropertyName + PrivateName + + PrivateName :: + # IdentifierName + + Initializer : + = AssignmentExpression + + IdentifierName :: + IdentifierStart + IdentifierName IdentifierPart + + IdentifierStart :: + UnicodeIDStart + $ + _ + \ UnicodeEscapeSequence + + IdentifierPart:: + UnicodeIDContinue + $ + \ UnicodeEscapeSequence + + + 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 stringSet; + +class C { + static get #ZW_‌_NJ() { return 'get string'; } + static set #ZW_‌_NJ(param) { stringSet = param; } + + static getPrivateReference() { + return this.#ZW_‌_NJ; + } + + static setPrivateReference(value) { + this.#ZW_‌_NJ = value; + } +} + +assert.sameValue(C.getPrivateReference(), 'get string'); + +C.setPrivateReference('set string'); +assert.sameValue(stringSet, 'set string'); + diff --git a/test/language/statements/class/private-accessor-name/static-private-name-common.js b/test/language/statements/class/private-accessor-name/static-private-name-common.js new file mode 100644 index 0000000000..364b0d4153 --- /dev/null +++ b/test/language/statements/class/private-accessor-name/static-private-name-common.js @@ -0,0 +1,77 @@ +// This file was procedurally generated from the following sources: +// - src/accessor-names/private-name-common.case +// - src/accessor-names/private/cls-private-decl-static.template +/*--- +description: Private IdentifierName - common (Class declaration, static method) +features: [class-methods-private] +flags: [generated] +info: | + ClassElement : + MethodDefinition + static MethodDefinition + FieldDefinition ; + ; + + FieldDefinition : + ClassElementName Initializer _opt + + ClassElementName : + PropertyName + PrivateName + + PrivateName :: + # IdentifierName + + Initializer : + = AssignmentExpression + + IdentifierName :: + IdentifierStart + IdentifierName IdentifierPart + + IdentifierStart :: + UnicodeIDStart + $ + _ + \ UnicodeEscapeSequence + + IdentifierPart:: + UnicodeIDContinue + $ + \ UnicodeEscapeSequence + + + 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 stringSet; + +class C { + static get #test262() { return 'get string'; } + static set #test262(param) { stringSet = param; } + + static getPrivateReference() { + return this.#test262; + } + + static setPrivateReference(value) { + this.#test262 = value; + } +} + +assert.sameValue(C.getPrivateReference(), 'get string'); + +C.setPrivateReference('set string'); +assert.sameValue(stringSet, 'set string'); + diff --git a/test/language/statements/class/private-accessor-name/static-private-name-dollar.js b/test/language/statements/class/private-accessor-name/static-private-name-dollar.js new file mode 100644 index 0000000000..586222d836 --- /dev/null +++ b/test/language/statements/class/private-accessor-name/static-private-name-dollar.js @@ -0,0 +1,77 @@ +// This file was procedurally generated from the following sources: +// - src/accessor-names/private-name-dollar.case +// - src/accessor-names/private/cls-private-decl-static.template +/*--- +description: Private IdentifierName - $ (Class declaration, static method) +features: [class-methods-private] +flags: [generated] +info: | + ClassElement : + MethodDefinition + static MethodDefinition + FieldDefinition ; + ; + + FieldDefinition : + ClassElementName Initializer _opt + + ClassElementName : + PropertyName + PrivateName + + PrivateName :: + # IdentifierName + + Initializer : + = AssignmentExpression + + IdentifierName :: + IdentifierStart + IdentifierName IdentifierPart + + IdentifierStart :: + UnicodeIDStart + $ + _ + \ UnicodeEscapeSequence + + IdentifierPart:: + UnicodeIDContinue + $ + \ UnicodeEscapeSequence + + + 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 stringSet; + +class C { + static get #$() { return 'get string'; } + static set #$(param) { stringSet = param; } + + static getPrivateReference() { + return this.#$; + } + + static setPrivateReference(value) { + this.#$ = value; + } +} + +assert.sameValue(C.getPrivateReference(), 'get string'); + +C.setPrivateReference('set string'); +assert.sameValue(stringSet, 'set string'); + diff --git a/test/language/statements/class/private-accessor-name/static-private-name-u2118.js b/test/language/statements/class/private-accessor-name/static-private-name-u2118.js new file mode 100644 index 0000000000..09af0ff38e --- /dev/null +++ b/test/language/statements/class/private-accessor-name/static-private-name-u2118.js @@ -0,0 +1,77 @@ +// This file was procedurally generated from the following sources: +// - src/accessor-names/private-name-u2118.case +// - src/accessor-names/private/cls-private-decl-static.template +/*--- +description: Private IdentifierName - ℘ (Class declaration, static method) +features: [class-methods-private] +flags: [generated] +info: | + ClassElement : + MethodDefinition + static MethodDefinition + FieldDefinition ; + ; + + FieldDefinition : + ClassElementName Initializer _opt + + ClassElementName : + PropertyName + PrivateName + + PrivateName :: + # IdentifierName + + Initializer : + = AssignmentExpression + + IdentifierName :: + IdentifierStart + IdentifierName IdentifierPart + + IdentifierStart :: + UnicodeIDStart + $ + _ + \ UnicodeEscapeSequence + + IdentifierPart:: + UnicodeIDContinue + $ + \ UnicodeEscapeSequence + + + 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 stringSet; + +class C { + static get #℘() { return 'get string'; } + static set #℘(param) { stringSet = param; } + + static getPrivateReference() { + return this.#℘; + } + + static setPrivateReference(value) { + this.#℘ = value; + } +} + +assert.sameValue(C.getPrivateReference(), 'get string'); + +C.setPrivateReference('set string'); +assert.sameValue(stringSet, 'set string'); + diff --git a/test/language/statements/class/private-accessor-name/static-private-name-underscore.js b/test/language/statements/class/private-accessor-name/static-private-name-underscore.js new file mode 100644 index 0000000000..9a5373d8fb --- /dev/null +++ b/test/language/statements/class/private-accessor-name/static-private-name-underscore.js @@ -0,0 +1,77 @@ +// This file was procedurally generated from the following sources: +// - src/accessor-names/private-name-underscore.case +// - src/accessor-names/private/cls-private-decl-static.template +/*--- +description: Private IdentifierName - _ (Class declaration, static method) +features: [class-methods-private] +flags: [generated] +info: | + ClassElement : + MethodDefinition + static MethodDefinition + FieldDefinition ; + ; + + FieldDefinition : + ClassElementName Initializer _opt + + ClassElementName : + PropertyName + PrivateName + + PrivateName :: + # IdentifierName + + Initializer : + = AssignmentExpression + + IdentifierName :: + IdentifierStart + IdentifierName IdentifierPart + + IdentifierStart :: + UnicodeIDStart + $ + _ + \ UnicodeEscapeSequence + + IdentifierPart:: + UnicodeIDContinue + $ + \ UnicodeEscapeSequence + + + 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 stringSet; + +class C { + static get #_() { return 'get string'; } + static set #_(param) { stringSet = param; } + + static getPrivateReference() { + return this.#_; + } + + static setPrivateReference(value) { + this.#_ = value; + } +} + +assert.sameValue(C.getPrivateReference(), 'get string'); + +C.setPrivateReference('set string'); +assert.sameValue(stringSet, 'set string'); +