mirror of
https://github.com/tc39/test262.git
synced 2025-04-08 19:35:28 +02:00
Fix class syntax
This commit is contained in:
parent
9ccf0a822f
commit
f11d0ab3d5
src/accessor-names/default
test/language
expressions/class
private-accessor-name-inst-computed.jsprivate-accessor-name-inst-literal-numeric-binary.jsprivate-accessor-name-inst-literal-numeric-exponent.jsprivate-accessor-name-inst-literal-numeric-hex.jsprivate-accessor-name-inst-literal-numeric-leading-decimal.jsprivate-accessor-name-inst-literal-numeric-non-canonical.jsprivate-accessor-name-inst-literal-numeric-octal.jsprivate-accessor-name-inst-literal-numeric-zero.jsprivate-accessor-name-inst-literal-string-char-escape.jsprivate-accessor-name-inst-literal-string-double-quote.jsprivate-accessor-name-inst-literal-string-empty.jsprivate-accessor-name-inst-literal-string-hex-escape.jsprivate-accessor-name-inst-literal-string-line-continuation.jsprivate-accessor-name-inst-literal-string-single-quote.jsprivate-accessor-name-inst-literal-string-unicode-escape.js
statements/class
private-accessor-name-inst-computed.jsprivate-accessor-name-inst-literal-numeric-binary.jsprivate-accessor-name-inst-literal-numeric-exponent.jsprivate-accessor-name-inst-literal-numeric-hex.jsprivate-accessor-name-inst-literal-numeric-leading-decimal.jsprivate-accessor-name-inst-literal-numeric-non-canonical.jsprivate-accessor-name-inst-literal-numeric-octal.jsprivate-accessor-name-inst-literal-numeric-zero.jsprivate-accessor-name-inst-literal-string-char-escape.jsprivate-accessor-name-inst-literal-string-double-quote.jsprivate-accessor-name-inst-literal-string-empty.jsprivate-accessor-name-inst-literal-string-hex-escape.jsprivate-accessor-name-inst-literal-string-line-continuation.jsprivate-accessor-name-inst-literal-string-single-quote.jsprivate-accessor-name-inst-literal-string-unicode-escape.jsprivate-accessor-name-static-computed.jsprivate-accessor-name-static-literal-numeric-binary.jsprivate-accessor-name-static-literal-numeric-exponent.jsprivate-accessor-name-static-literal-numeric-hex.jsprivate-accessor-name-static-literal-numeric-leading-decimal.jsprivate-accessor-name-static-literal-numeric-non-canonical.jsprivate-accessor-name-static-literal-numeric-octal.jsprivate-accessor-name-static-literal-numeric-zero.jsprivate-accessor-name-static-literal-string-char-escape.jsprivate-accessor-name-static-literal-string-double-quote.jsprivate-accessor-name-static-literal-string-empty.jsprivate-accessor-name-static-literal-string-hex-escape.jsprivate-accessor-name-static-literal-string-line-continuation.jsprivate-accessor-name-static-literal-string-single-quote.jsprivate-accessor-name-static-literal-string-unicode-escape.js
@ -29,15 +29,15 @@ class C {
|
||||
set #/*{ declareWith }*/(param) { stringSet = param; }
|
||||
|
||||
getPrivateReference() {
|
||||
return this.#/*{ referenceWith }*/;
|
||||
return this[#/*{ referenceWith }*/];
|
||||
}
|
||||
|
||||
setPrivateReference(value) {
|
||||
this.#/*{ referenceWith }*/ = value;
|
||||
this[#/*{ referenceWith }*/] = value;
|
||||
}
|
||||
};
|
||||
|
||||
var inst = C();
|
||||
var inst = new C();
|
||||
|
||||
assert.sameValue(inst.getPrivateReference(), 'get string');
|
||||
|
||||
|
@ -29,11 +29,11 @@ class C {
|
||||
static set #/*{ declareWith }*/(param) { stringSet = param; }
|
||||
|
||||
static getPrivateReference() {
|
||||
return this.#/*{ referenceWith }*/;
|
||||
return this[#/*{ referenceWith }*/];
|
||||
}
|
||||
|
||||
static setPrivateReference(value) {
|
||||
this.#/*{ referenceWith }*/ = value;
|
||||
this[#/*{ referenceWith }*/] = value;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -29,15 +29,15 @@ var C = class {
|
||||
set #/*{ declareWith }*/(param) { stringSet = param; }
|
||||
|
||||
getPrivateReference() {
|
||||
return this.#/*{ referenceWith }*/;
|
||||
return this[#/*{ referenceWith }*/];
|
||||
}
|
||||
|
||||
setPrivateReference(value) {
|
||||
this.#/*{ referenceWith }*/ = value;
|
||||
this[#/*{ referenceWith }*/] = value;
|
||||
}
|
||||
};
|
||||
|
||||
var inst = C();
|
||||
var inst = new C();
|
||||
|
||||
assert.sameValue(inst.getPrivateReference(), 'get string');
|
||||
|
||||
|
@ -41,15 +41,15 @@ var C = class {
|
||||
set #[_ = 'str' + 'ing'](param) { stringSet = param; }
|
||||
|
||||
getPrivateReference() {
|
||||
return this.#'string';
|
||||
return this[#'string'];
|
||||
}
|
||||
|
||||
setPrivateReference(value) {
|
||||
this.#'string' = value;
|
||||
this[#'string'] = value;
|
||||
}
|
||||
};
|
||||
|
||||
var inst = C();
|
||||
var inst = new C();
|
||||
|
||||
assert.sameValue(inst.getPrivateReference(), 'get string');
|
||||
|
||||
|
@ -39,15 +39,15 @@ var C = class {
|
||||
set #0b10(param) { stringSet = param; }
|
||||
|
||||
getPrivateReference() {
|
||||
return this.#'2';
|
||||
return this[#'2'];
|
||||
}
|
||||
|
||||
setPrivateReference(value) {
|
||||
this.#'2' = value;
|
||||
this[#'2'] = value;
|
||||
}
|
||||
};
|
||||
|
||||
var inst = C();
|
||||
var inst = new C();
|
||||
|
||||
assert.sameValue(inst.getPrivateReference(), 'get string');
|
||||
|
||||
|
@ -39,15 +39,15 @@ var C = class {
|
||||
set #1E+9(param) { stringSet = param; }
|
||||
|
||||
getPrivateReference() {
|
||||
return this.#'1000000000';
|
||||
return this[#'1000000000'];
|
||||
}
|
||||
|
||||
setPrivateReference(value) {
|
||||
this.#'1000000000' = value;
|
||||
this[#'1000000000'] = value;
|
||||
}
|
||||
};
|
||||
|
||||
var inst = C();
|
||||
var inst = new C();
|
||||
|
||||
assert.sameValue(inst.getPrivateReference(), 'get string');
|
||||
|
||||
|
@ -39,15 +39,15 @@ var C = class {
|
||||
set #0x10(param) { stringSet = param; }
|
||||
|
||||
getPrivateReference() {
|
||||
return this.#'16';
|
||||
return this[#'16'];
|
||||
}
|
||||
|
||||
setPrivateReference(value) {
|
||||
this.#'16' = value;
|
||||
this[#'16'] = value;
|
||||
}
|
||||
};
|
||||
|
||||
var inst = C();
|
||||
var inst = new C();
|
||||
|
||||
assert.sameValue(inst.getPrivateReference(), 'get string');
|
||||
|
||||
|
@ -39,15 +39,15 @@ var C = class {
|
||||
set #.1(param) { stringSet = param; }
|
||||
|
||||
getPrivateReference() {
|
||||
return this.#'0.1';
|
||||
return this[#'0.1'];
|
||||
}
|
||||
|
||||
setPrivateReference(value) {
|
||||
this.#'0.1' = value;
|
||||
this[#'0.1'] = value;
|
||||
}
|
||||
};
|
||||
|
||||
var inst = C();
|
||||
var inst = new C();
|
||||
|
||||
assert.sameValue(inst.getPrivateReference(), 'get string');
|
||||
|
||||
|
@ -39,15 +39,15 @@ var C = class {
|
||||
set #0.0000001(param) { stringSet = param; }
|
||||
|
||||
getPrivateReference() {
|
||||
return this.#'1e-7';
|
||||
return this[#'1e-7'];
|
||||
}
|
||||
|
||||
setPrivateReference(value) {
|
||||
this.#'1e-7' = value;
|
||||
this[#'1e-7'] = value;
|
||||
}
|
||||
};
|
||||
|
||||
var inst = C();
|
||||
var inst = new C();
|
||||
|
||||
assert.sameValue(inst.getPrivateReference(), 'get string');
|
||||
|
||||
|
@ -39,15 +39,15 @@ var C = class {
|
||||
set #0o10(param) { stringSet = param; }
|
||||
|
||||
getPrivateReference() {
|
||||
return this.#'8';
|
||||
return this[#'8'];
|
||||
}
|
||||
|
||||
setPrivateReference(value) {
|
||||
this.#'8' = value;
|
||||
this[#'8'] = value;
|
||||
}
|
||||
};
|
||||
|
||||
var inst = C();
|
||||
var inst = new C();
|
||||
|
||||
assert.sameValue(inst.getPrivateReference(), 'get string');
|
||||
|
||||
|
@ -39,15 +39,15 @@ var C = class {
|
||||
set #0(param) { stringSet = param; }
|
||||
|
||||
getPrivateReference() {
|
||||
return this.#'0';
|
||||
return this[#'0'];
|
||||
}
|
||||
|
||||
setPrivateReference(value) {
|
||||
this.#'0' = value;
|
||||
this[#'0'] = value;
|
||||
}
|
||||
};
|
||||
|
||||
var inst = C();
|
||||
var inst = new C();
|
||||
|
||||
assert.sameValue(inst.getPrivateReference(), 'get string');
|
||||
|
||||
|
@ -39,15 +39,15 @@ var C = class {
|
||||
set #'character\tescape'(param) { stringSet = param; }
|
||||
|
||||
getPrivateReference() {
|
||||
return this.#'character escape';
|
||||
return this[#'character escape'];
|
||||
}
|
||||
|
||||
setPrivateReference(value) {
|
||||
this.#'character escape' = value;
|
||||
this[#'character escape'] = value;
|
||||
}
|
||||
};
|
||||
|
||||
var inst = C();
|
||||
var inst = new C();
|
||||
|
||||
assert.sameValue(inst.getPrivateReference(), 'get string');
|
||||
|
||||
|
@ -39,15 +39,15 @@ var C = class {
|
||||
set #"doubleQuote"(param) { stringSet = param; }
|
||||
|
||||
getPrivateReference() {
|
||||
return this.#"doubleQuote";
|
||||
return this[#"doubleQuote"];
|
||||
}
|
||||
|
||||
setPrivateReference(value) {
|
||||
this.#"doubleQuote" = value;
|
||||
this[#"doubleQuote"] = value;
|
||||
}
|
||||
};
|
||||
|
||||
var inst = C();
|
||||
var inst = new C();
|
||||
|
||||
assert.sameValue(inst.getPrivateReference(), 'get string');
|
||||
|
||||
|
@ -39,15 +39,15 @@ var C = class {
|
||||
set #''(param) { stringSet = param; }
|
||||
|
||||
getPrivateReference() {
|
||||
return this.#'';
|
||||
return this[#''];
|
||||
}
|
||||
|
||||
setPrivateReference(value) {
|
||||
this.#'' = value;
|
||||
this[#''] = value;
|
||||
}
|
||||
};
|
||||
|
||||
var inst = C();
|
||||
var inst = new C();
|
||||
|
||||
assert.sameValue(inst.getPrivateReference(), 'get string');
|
||||
|
||||
|
@ -39,15 +39,15 @@ var C = class {
|
||||
set #'hex\x45scape'(param) { stringSet = param; }
|
||||
|
||||
getPrivateReference() {
|
||||
return this.#'hexEscape';
|
||||
return this[#'hexEscape'];
|
||||
}
|
||||
|
||||
setPrivateReference(value) {
|
||||
this.#'hexEscape' = value;
|
||||
this[#'hexEscape'] = value;
|
||||
}
|
||||
};
|
||||
|
||||
var inst = C();
|
||||
var inst = new C();
|
||||
|
||||
assert.sameValue(inst.getPrivateReference(), 'get string');
|
||||
|
||||
|
@ -41,15 +41,15 @@ Continuation'() { return 'get string'; }
|
||||
Continuation'(param) { stringSet = param; }
|
||||
|
||||
getPrivateReference() {
|
||||
return this.#'lineContinuation';
|
||||
return this[#'lineContinuation'];
|
||||
}
|
||||
|
||||
setPrivateReference(value) {
|
||||
this.#'lineContinuation' = value;
|
||||
this[#'lineContinuation'] = value;
|
||||
}
|
||||
};
|
||||
|
||||
var inst = C();
|
||||
var inst = new C();
|
||||
|
||||
assert.sameValue(inst.getPrivateReference(), 'get string');
|
||||
|
||||
|
@ -39,15 +39,15 @@ var C = class {
|
||||
set #'singleQuote'(param) { stringSet = param; }
|
||||
|
||||
getPrivateReference() {
|
||||
return this.#'singleQuote';
|
||||
return this[#'singleQuote'];
|
||||
}
|
||||
|
||||
setPrivateReference(value) {
|
||||
this.#'singleQuote' = value;
|
||||
this[#'singleQuote'] = value;
|
||||
}
|
||||
};
|
||||
|
||||
var inst = C();
|
||||
var inst = new C();
|
||||
|
||||
assert.sameValue(inst.getPrivateReference(), 'get string');
|
||||
|
||||
|
@ -39,15 +39,15 @@ var C = class {
|
||||
set #'unicod\u{000065}Escape'(param) { stringSet = param; }
|
||||
|
||||
getPrivateReference() {
|
||||
return this.#'unicodeEscape';
|
||||
return this[#'unicodeEscape'];
|
||||
}
|
||||
|
||||
setPrivateReference(value) {
|
||||
this.#'unicodeEscape' = value;
|
||||
this[#'unicodeEscape'] = value;
|
||||
}
|
||||
};
|
||||
|
||||
var inst = C();
|
||||
var inst = new C();
|
||||
|
||||
assert.sameValue(inst.getPrivateReference(), 'get string');
|
||||
|
||||
|
@ -41,15 +41,15 @@ class C {
|
||||
set #[_ = 'str' + 'ing'](param) { stringSet = param; }
|
||||
|
||||
getPrivateReference() {
|
||||
return this.#'string';
|
||||
return this[#'string'];
|
||||
}
|
||||
|
||||
setPrivateReference(value) {
|
||||
this.#'string' = value;
|
||||
this[#'string'] = value;
|
||||
}
|
||||
};
|
||||
|
||||
var inst = C();
|
||||
var inst = new C();
|
||||
|
||||
assert.sameValue(inst.getPrivateReference(), 'get string');
|
||||
|
||||
|
@ -39,15 +39,15 @@ class C {
|
||||
set #0b10(param) { stringSet = param; }
|
||||
|
||||
getPrivateReference() {
|
||||
return this.#'2';
|
||||
return this[#'2'];
|
||||
}
|
||||
|
||||
setPrivateReference(value) {
|
||||
this.#'2' = value;
|
||||
this[#'2'] = value;
|
||||
}
|
||||
};
|
||||
|
||||
var inst = C();
|
||||
var inst = new C();
|
||||
|
||||
assert.sameValue(inst.getPrivateReference(), 'get string');
|
||||
|
||||
|
@ -39,15 +39,15 @@ class C {
|
||||
set #1E+9(param) { stringSet = param; }
|
||||
|
||||
getPrivateReference() {
|
||||
return this.#'1000000000';
|
||||
return this[#'1000000000'];
|
||||
}
|
||||
|
||||
setPrivateReference(value) {
|
||||
this.#'1000000000' = value;
|
||||
this[#'1000000000'] = value;
|
||||
}
|
||||
};
|
||||
|
||||
var inst = C();
|
||||
var inst = new C();
|
||||
|
||||
assert.sameValue(inst.getPrivateReference(), 'get string');
|
||||
|
||||
|
@ -39,15 +39,15 @@ class C {
|
||||
set #0x10(param) { stringSet = param; }
|
||||
|
||||
getPrivateReference() {
|
||||
return this.#'16';
|
||||
return this[#'16'];
|
||||
}
|
||||
|
||||
setPrivateReference(value) {
|
||||
this.#'16' = value;
|
||||
this[#'16'] = value;
|
||||
}
|
||||
};
|
||||
|
||||
var inst = C();
|
||||
var inst = new C();
|
||||
|
||||
assert.sameValue(inst.getPrivateReference(), 'get string');
|
||||
|
||||
|
@ -39,15 +39,15 @@ class C {
|
||||
set #.1(param) { stringSet = param; }
|
||||
|
||||
getPrivateReference() {
|
||||
return this.#'0.1';
|
||||
return this[#'0.1'];
|
||||
}
|
||||
|
||||
setPrivateReference(value) {
|
||||
this.#'0.1' = value;
|
||||
this[#'0.1'] = value;
|
||||
}
|
||||
};
|
||||
|
||||
var inst = C();
|
||||
var inst = new C();
|
||||
|
||||
assert.sameValue(inst.getPrivateReference(), 'get string');
|
||||
|
||||
|
@ -39,15 +39,15 @@ class C {
|
||||
set #0.0000001(param) { stringSet = param; }
|
||||
|
||||
getPrivateReference() {
|
||||
return this.#'1e-7';
|
||||
return this[#'1e-7'];
|
||||
}
|
||||
|
||||
setPrivateReference(value) {
|
||||
this.#'1e-7' = value;
|
||||
this[#'1e-7'] = value;
|
||||
}
|
||||
};
|
||||
|
||||
var inst = C();
|
||||
var inst = new C();
|
||||
|
||||
assert.sameValue(inst.getPrivateReference(), 'get string');
|
||||
|
||||
|
@ -39,15 +39,15 @@ class C {
|
||||
set #0o10(param) { stringSet = param; }
|
||||
|
||||
getPrivateReference() {
|
||||
return this.#'8';
|
||||
return this[#'8'];
|
||||
}
|
||||
|
||||
setPrivateReference(value) {
|
||||
this.#'8' = value;
|
||||
this[#'8'] = value;
|
||||
}
|
||||
};
|
||||
|
||||
var inst = C();
|
||||
var inst = new C();
|
||||
|
||||
assert.sameValue(inst.getPrivateReference(), 'get string');
|
||||
|
||||
|
@ -39,15 +39,15 @@ class C {
|
||||
set #0(param) { stringSet = param; }
|
||||
|
||||
getPrivateReference() {
|
||||
return this.#'0';
|
||||
return this[#'0'];
|
||||
}
|
||||
|
||||
setPrivateReference(value) {
|
||||
this.#'0' = value;
|
||||
this[#'0'] = value;
|
||||
}
|
||||
};
|
||||
|
||||
var inst = C();
|
||||
var inst = new C();
|
||||
|
||||
assert.sameValue(inst.getPrivateReference(), 'get string');
|
||||
|
||||
|
@ -39,15 +39,15 @@ class C {
|
||||
set #'character\tescape'(param) { stringSet = param; }
|
||||
|
||||
getPrivateReference() {
|
||||
return this.#'character escape';
|
||||
return this[#'character escape'];
|
||||
}
|
||||
|
||||
setPrivateReference(value) {
|
||||
this.#'character escape' = value;
|
||||
this[#'character escape'] = value;
|
||||
}
|
||||
};
|
||||
|
||||
var inst = C();
|
||||
var inst = new C();
|
||||
|
||||
assert.sameValue(inst.getPrivateReference(), 'get string');
|
||||
|
||||
|
@ -39,15 +39,15 @@ class C {
|
||||
set #"doubleQuote"(param) { stringSet = param; }
|
||||
|
||||
getPrivateReference() {
|
||||
return this.#"doubleQuote";
|
||||
return this[#"doubleQuote"];
|
||||
}
|
||||
|
||||
setPrivateReference(value) {
|
||||
this.#"doubleQuote" = value;
|
||||
this[#"doubleQuote"] = value;
|
||||
}
|
||||
};
|
||||
|
||||
var inst = C();
|
||||
var inst = new C();
|
||||
|
||||
assert.sameValue(inst.getPrivateReference(), 'get string');
|
||||
|
||||
|
@ -39,15 +39,15 @@ class C {
|
||||
set #''(param) { stringSet = param; }
|
||||
|
||||
getPrivateReference() {
|
||||
return this.#'';
|
||||
return this[#''];
|
||||
}
|
||||
|
||||
setPrivateReference(value) {
|
||||
this.#'' = value;
|
||||
this[#''] = value;
|
||||
}
|
||||
};
|
||||
|
||||
var inst = C();
|
||||
var inst = new C();
|
||||
|
||||
assert.sameValue(inst.getPrivateReference(), 'get string');
|
||||
|
||||
|
@ -39,15 +39,15 @@ class C {
|
||||
set #'hex\x45scape'(param) { stringSet = param; }
|
||||
|
||||
getPrivateReference() {
|
||||
return this.#'hexEscape';
|
||||
return this[#'hexEscape'];
|
||||
}
|
||||
|
||||
setPrivateReference(value) {
|
||||
this.#'hexEscape' = value;
|
||||
this[#'hexEscape'] = value;
|
||||
}
|
||||
};
|
||||
|
||||
var inst = C();
|
||||
var inst = new C();
|
||||
|
||||
assert.sameValue(inst.getPrivateReference(), 'get string');
|
||||
|
||||
|
@ -41,15 +41,15 @@ Continuation'() { return 'get string'; }
|
||||
Continuation'(param) { stringSet = param; }
|
||||
|
||||
getPrivateReference() {
|
||||
return this.#'lineContinuation';
|
||||
return this[#'lineContinuation'];
|
||||
}
|
||||
|
||||
setPrivateReference(value) {
|
||||
this.#'lineContinuation' = value;
|
||||
this[#'lineContinuation'] = value;
|
||||
}
|
||||
};
|
||||
|
||||
var inst = C();
|
||||
var inst = new C();
|
||||
|
||||
assert.sameValue(inst.getPrivateReference(), 'get string');
|
||||
|
||||
|
@ -39,15 +39,15 @@ class C {
|
||||
set #'singleQuote'(param) { stringSet = param; }
|
||||
|
||||
getPrivateReference() {
|
||||
return this.#'singleQuote';
|
||||
return this[#'singleQuote'];
|
||||
}
|
||||
|
||||
setPrivateReference(value) {
|
||||
this.#'singleQuote' = value;
|
||||
this[#'singleQuote'] = value;
|
||||
}
|
||||
};
|
||||
|
||||
var inst = C();
|
||||
var inst = new C();
|
||||
|
||||
assert.sameValue(inst.getPrivateReference(), 'get string');
|
||||
|
||||
|
@ -39,15 +39,15 @@ class C {
|
||||
set #'unicod\u{000065}Escape'(param) { stringSet = param; }
|
||||
|
||||
getPrivateReference() {
|
||||
return this.#'unicodeEscape';
|
||||
return this[#'unicodeEscape'];
|
||||
}
|
||||
|
||||
setPrivateReference(value) {
|
||||
this.#'unicodeEscape' = value;
|
||||
this[#'unicodeEscape'] = value;
|
||||
}
|
||||
};
|
||||
|
||||
var inst = C();
|
||||
var inst = new C();
|
||||
|
||||
assert.sameValue(inst.getPrivateReference(), 'get string');
|
||||
|
||||
|
@ -41,11 +41,11 @@ class C {
|
||||
static set #[_ = 'str' + 'ing'](param) { stringSet = param; }
|
||||
|
||||
static getPrivateReference() {
|
||||
return this.#'string';
|
||||
return this[#'string'];
|
||||
}
|
||||
|
||||
static setPrivateReference(value) {
|
||||
this.#'string' = value;
|
||||
this[#'string'] = value;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -39,11 +39,11 @@ class C {
|
||||
static set #0b10(param) { stringSet = param; }
|
||||
|
||||
static getPrivateReference() {
|
||||
return this.#'2';
|
||||
return this[#'2'];
|
||||
}
|
||||
|
||||
static setPrivateReference(value) {
|
||||
this.#'2' = value;
|
||||
this[#'2'] = value;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -39,11 +39,11 @@ class C {
|
||||
static set #1E+9(param) { stringSet = param; }
|
||||
|
||||
static getPrivateReference() {
|
||||
return this.#'1000000000';
|
||||
return this[#'1000000000'];
|
||||
}
|
||||
|
||||
static setPrivateReference(value) {
|
||||
this.#'1000000000' = value;
|
||||
this[#'1000000000'] = value;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -39,11 +39,11 @@ class C {
|
||||
static set #0x10(param) { stringSet = param; }
|
||||
|
||||
static getPrivateReference() {
|
||||
return this.#'16';
|
||||
return this[#'16'];
|
||||
}
|
||||
|
||||
static setPrivateReference(value) {
|
||||
this.#'16' = value;
|
||||
this[#'16'] = value;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -39,11 +39,11 @@ class C {
|
||||
static set #.1(param) { stringSet = param; }
|
||||
|
||||
static getPrivateReference() {
|
||||
return this.#'0.1';
|
||||
return this[#'0.1'];
|
||||
}
|
||||
|
||||
static setPrivateReference(value) {
|
||||
this.#'0.1' = value;
|
||||
this[#'0.1'] = value;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -39,11 +39,11 @@ class C {
|
||||
static set #0.0000001(param) { stringSet = param; }
|
||||
|
||||
static getPrivateReference() {
|
||||
return this.#'1e-7';
|
||||
return this[#'1e-7'];
|
||||
}
|
||||
|
||||
static setPrivateReference(value) {
|
||||
this.#'1e-7' = value;
|
||||
this[#'1e-7'] = value;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -39,11 +39,11 @@ class C {
|
||||
static set #0o10(param) { stringSet = param; }
|
||||
|
||||
static getPrivateReference() {
|
||||
return this.#'8';
|
||||
return this[#'8'];
|
||||
}
|
||||
|
||||
static setPrivateReference(value) {
|
||||
this.#'8' = value;
|
||||
this[#'8'] = value;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -39,11 +39,11 @@ class C {
|
||||
static set #0(param) { stringSet = param; }
|
||||
|
||||
static getPrivateReference() {
|
||||
return this.#'0';
|
||||
return this[#'0'];
|
||||
}
|
||||
|
||||
static setPrivateReference(value) {
|
||||
this.#'0' = value;
|
||||
this[#'0'] = value;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -39,11 +39,11 @@ class C {
|
||||
static set #'character\tescape'(param) { stringSet = param; }
|
||||
|
||||
static getPrivateReference() {
|
||||
return this.#'character escape';
|
||||
return this[#'character escape'];
|
||||
}
|
||||
|
||||
static setPrivateReference(value) {
|
||||
this.#'character escape' = value;
|
||||
this[#'character escape'] = value;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -39,11 +39,11 @@ class C {
|
||||
static set #"doubleQuote"(param) { stringSet = param; }
|
||||
|
||||
static getPrivateReference() {
|
||||
return this.#"doubleQuote";
|
||||
return this[#"doubleQuote"];
|
||||
}
|
||||
|
||||
static setPrivateReference(value) {
|
||||
this.#"doubleQuote" = value;
|
||||
this[#"doubleQuote"] = value;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -39,11 +39,11 @@ class C {
|
||||
static set #''(param) { stringSet = param; }
|
||||
|
||||
static getPrivateReference() {
|
||||
return this.#'';
|
||||
return this[#''];
|
||||
}
|
||||
|
||||
static setPrivateReference(value) {
|
||||
this.#'' = value;
|
||||
this[#''] = value;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -39,11 +39,11 @@ class C {
|
||||
static set #'hex\x45scape'(param) { stringSet = param; }
|
||||
|
||||
static getPrivateReference() {
|
||||
return this.#'hexEscape';
|
||||
return this[#'hexEscape'];
|
||||
}
|
||||
|
||||
static setPrivateReference(value) {
|
||||
this.#'hexEscape' = value;
|
||||
this[#'hexEscape'] = value;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -41,11 +41,11 @@ Continuation'() { return 'get string'; }
|
||||
Continuation'(param) { stringSet = param; }
|
||||
|
||||
static getPrivateReference() {
|
||||
return this.#'lineContinuation';
|
||||
return this[#'lineContinuation'];
|
||||
}
|
||||
|
||||
static setPrivateReference(value) {
|
||||
this.#'lineContinuation' = value;
|
||||
this[#'lineContinuation'] = value;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -39,11 +39,11 @@ class C {
|
||||
static set #'singleQuote'(param) { stringSet = param; }
|
||||
|
||||
static getPrivateReference() {
|
||||
return this.#'singleQuote';
|
||||
return this[#'singleQuote'];
|
||||
}
|
||||
|
||||
static setPrivateReference(value) {
|
||||
this.#'singleQuote' = value;
|
||||
this[#'singleQuote'] = value;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -39,11 +39,11 @@ class C {
|
||||
static set #'unicod\u{000065}Escape'(param) { stringSet = param; }
|
||||
|
||||
static getPrivateReference() {
|
||||
return this.#'unicodeEscape';
|
||||
return this[#'unicodeEscape'];
|
||||
}
|
||||
|
||||
static setPrivateReference(value) {
|
||||
this.#'unicodeEscape' = value;
|
||||
this[#'unicodeEscape'] = value;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user