rename fields to elements in src/class-elements

This commit is contained in:
Leo Balter 2018-11-15 13:27:33 -05:00 committed by Rick Waldron
parent 9084e6cea9
commit 41844c7c08
91 changed files with 91 additions and 91 deletions

View File

@ -10,7 +10,7 @@ esid: sec-runtime-semantics-classdefinitionevaluation
function evaluate() {
class C {
/*{ fields }*/
/*{ elements }*/
}
}

View File

@ -10,7 +10,7 @@ esid: sec-runtime-semantics-classdefinitionevaluation
function evaluate() {
var C = class {
/*{ fields }*/
/*{ elements }*/
};
}

View File

@ -45,7 +45,7 @@ function fn() {
throw new Test262Error();
}
//- fields
//- elements
[noRef] = fn();
//- error
ReferenceError

View File

@ -47,7 +47,7 @@ var obj = {
}
};
//- fields
//- elements
[obj]
//- error
Test262Error

View File

@ -45,7 +45,7 @@ var obj = {
[Symbol.toPrimitive]: {}
};
//- fields
//- elements
[obj] = refErrorIfEvaluated;
//- error
TypeError

View File

@ -45,7 +45,7 @@ var obj = {
[Symbol.toPrimitive]: 42
};
//- fields
//- elements
[obj] = refErrorIfEvaluated;
//- error
TypeError

View File

@ -62,7 +62,7 @@ var obj3 = {
valueOf: function() { return s3; }
};
//- fields
//- elements
[obj1] = 42;
[obj2] = 43;
[obj3] = 44;

View File

@ -59,7 +59,7 @@ var obj3 = {
valueOf: function() { return "f"; }
};
//- fields
//- elements
[obj1] = 42;
[obj2] = 43;
[obj3] = 44;

View File

@ -47,7 +47,7 @@ var obj = {
}
};
//- fields
//- elements
[obj]
//- error
Test262Error

View File

@ -48,7 +48,7 @@ var obj = {
}
};
//- fields
//- elements
[obj]
//- error
Test262Error

View File

@ -21,7 +21,7 @@ features: [class-fields-public, computed-property-names]
//- setup
var x = "b";
//- fields
//- elements
[x] = 42; [10] = "meep"; ["not initialized"]
//- assertions

View File

@ -22,7 +22,7 @@ features: [class-fields-public, Symbol, computed-property-names]
var x = Symbol();
var y = Symbol();
//- fields
//- elements
[x]; [y] = 42
//- assertions
assert.sameValue(Object.hasOwnProperty.call(C.prototype, x), false);

View File

@ -19,7 +19,7 @@ features: [class-fields-public]
//- setup
var ctor;
//- fields
//- elements
constructor() {
ctor = this.foo;
}

View File

@ -9,7 +9,7 @@ esid: prod-FieldDefinition
---*/
class C {
/*{ fields }*/
/*{ elements }*/
}
/*{ assertions }*/

View File

@ -9,7 +9,7 @@ esid: prod-FieldDefinition
---*/
var C = class {
/*{ fields }*/
/*{ elements }*/
}
/*{ assertions }*/

View File

@ -62,7 +62,7 @@ template: productions
features: [class-fields-private]
---*/
//- fields
//- elements
#\u{6F};
#\u2118;
#ZW_\u200C_NJ;

View File

@ -21,7 +21,7 @@ features: [class-fields-public]
var x = 0;
function fn1() { x += 1; }
function fn2() { throw new Test262Error(); }
//- fields
//- elements
x = fn1();
y = fn2();
z = fn1();

View File

@ -20,7 +20,7 @@ includes: [propertyHelper.js]
//- setup
var x = false;
//- fields
//- elements
[x] = x;
//- assertions
var c1 = new C();

View File

@ -29,7 +29,7 @@ includes: [propertyHelper.js]
//- setup
var x = 1;
//- fields
//- elements
[x++] = x++;
[x++] = x++;
//- assertions

View File

@ -18,7 +18,7 @@ includes: [propertyHelper.js]
features: [class-fields-public]
---*/
//- fields
//- elements
a
b = 42;
//- assertions

View File

@ -21,7 +21,7 @@ features: [class-fields-public]
//- setup
const fn = function() {}
//- fields
//- elements
a; b = 42;
c = fn
//- assertions

View File

@ -20,7 +20,7 @@ template: productions
features: [class-methods-private]
---*/
//- fields
//- elements
#m = 'test262';
//- privateinspectionfunctions
method() {

View File

@ -20,7 +20,7 @@ template: productions
features: [class-methods-private]
---*/
//- fields
//- elements
get #m() { return 'test262'; }
//- privateinspectionfunctions
method() {

View File

@ -20,7 +20,7 @@ template: productions
features: [class-methods-private]
---*/
//- fields
//- elements
#m() { return 'test262'; }
//- privateinspectionfunctions
method() {

View File

@ -21,7 +21,7 @@ template: productions
features: [class-fields-private]
---*/
//- fields
//- elements
#x; #y
//- privateinspectionfunctions
x() {

View File

@ -11,7 +11,7 @@ includes: [propertyHelper.js]
---*/
class C {
async *m() { return 42; } /*{ fields }*/;
async *m() { return 42; } /*{ elements }*/;
/*{ privateinspectionfunctions }*/
}

View File

@ -11,7 +11,7 @@ includes: [propertyHelper.js]
---*/
class C {
async m() { return 42; } /*{ fields }*/;
async m() { return 42; } /*{ elements }*/;
/*{ privateinspectionfunctions }*/
}

View File

@ -10,7 +10,7 @@ includes: [propertyHelper.js]
---*/
class C {
*m() { return 42; } /*{ fields }*/;
*m() { return 42; } /*{ elements }*/;
/*{ privateinspectionfunctions }*/
}

View File

@ -10,7 +10,7 @@ includes: [propertyHelper.js]
---*/
class C {
m() { return 42; } /*{ fields }*/;
m() { return 42; } /*{ elements }*/;
/*{ privateinspectionfunctions }*/
}

View File

@ -11,7 +11,7 @@ includes: [propertyHelper.js]
---*/
class C {
static async *m() { return 42; } /*{ fields }*/;
static async *m() { return 42; } /*{ elements }*/;
/*{ privateinspectionfunctions }*/
}

View File

@ -11,7 +11,7 @@ includes: [propertyHelper.js]
---*/
class C {
static async m() { return 42; } /*{ fields }*/;
static async m() { return 42; } /*{ elements }*/;
/*{ privateinspectionfunctions }*/
}

View File

@ -10,7 +10,7 @@ includes: [propertyHelper.js]
---*/
class C {
static *m() { return 42; } /*{ fields }*/;
static *m() { return 42; } /*{ elements }*/;
/*{ privateinspectionfunctions }*/
}

View File

@ -10,7 +10,7 @@ includes: [propertyHelper.js]
---*/
class C {
static m() { return 42; } /*{ fields }*/;
static m() { return 42; } /*{ elements }*/;
/*{ privateinspectionfunctions }*/
}

View File

@ -12,7 +12,7 @@ includes: [propertyHelper.js]
class C {
foo = "foobar";
m() { return 42 }
/*{ fields }*/
/*{ elements }*/
m2() { return 39 }
bar = "barbaz";
/*{ privateinspectionfunctions }*/

View File

@ -10,7 +10,7 @@ includes: [propertyHelper.js]
---*/
class C {
/*{ fields }*/
/*{ elements }*/
foo = "foobar"
bar = "barbaz";
/*{ privateinspectionfunctions }*/

View File

@ -10,7 +10,7 @@ includes: [propertyHelper.js]
---*/
class C {
/*{ fields }*/
/*{ elements }*/
m() { return 42; }
/*{ privateinspectionfunctions }*/
}

View File

@ -10,7 +10,7 @@ includes: [propertyHelper.js]
---*/
class C {
/*{ fields }*/;
/*{ elements }*/;
*m() { return 42; }
/*{ privateinspectionfunctions }*/
}

View File

@ -10,7 +10,7 @@ includes: [propertyHelper.js]
---*/
class C {
/*{ fields }*/;
/*{ elements }*/;
m() { return 42; }
/*{ privateinspectionfunctions }*/
}

View File

@ -9,7 +9,7 @@ esid: prod-FieldDefinition
---*/
class C {
/*{ fields }*/
/*{ elements }*/
/*{ privateinspectionfunctions }*/
}

View File

@ -10,7 +10,7 @@ includes: [propertyHelper.js]
---*/
class C {
/*{ fields }*/; *m() { return 42; }
/*{ elements }*/; *m() { return 42; }
/*{ privateinspectionfunctions }*/
}

View File

@ -10,7 +10,7 @@ includes: [propertyHelper.js]
---*/
class C {
/*{ fields }*/; m() { return 42; }
/*{ elements }*/; m() { return 42; }
/*{ privateinspectionfunctions }*/
}

View File

@ -10,7 +10,7 @@ esid: prod-FieldDefinition
class C {
;;;;
;;;;;;/*{ fields }*/;;;;;;;
;;;;;;/*{ elements }*/;;;;;;;
;;;;
/*{ privateinspectionfunctions }*/
}

View File

@ -11,7 +11,7 @@ includes: [propertyHelper.js]
---*/
var C = class {
async *m() { return 42; } /*{ fields }*/;
async *m() { return 42; } /*{ elements }*/;
/*{ privateinspectionfunctions }*/
}

View File

@ -11,7 +11,7 @@ includes: [propertyHelper.js]
---*/
var C = class {
async m() { return 42; } /*{ fields }*/;
async m() { return 42; } /*{ elements }*/;
/*{ privateinspectionfunctions }*/
}

View File

@ -10,7 +10,7 @@ includes: [propertyHelper.js]
---*/
var C = class {
*m() { return 42; } /*{ fields }*/;
*m() { return 42; } /*{ elements }*/;
/*{ privateinspectionfunctions }*/
}

View File

@ -10,7 +10,7 @@ includes: [propertyHelper.js]
---*/
var C = class {
m() { return 42; } /*{ fields }*/;
m() { return 42; } /*{ elements }*/;
/*{ privateinspectionfunctions }*/
}

View File

@ -11,7 +11,7 @@ includes: [propertyHelper.js]
---*/
var C = class {
static async *m() { return 42; } /*{ fields }*/;
static async *m() { return 42; } /*{ elements }*/;
/*{ privateinspectionfunctions }*/
}

View File

@ -11,7 +11,7 @@ includes: [propertyHelper.js]
---*/
var C = class {
static async m() { return 42; } /*{ fields }*/;
static async m() { return 42; } /*{ elements }*/;
/*{ privateinspectionfunctions }*/
}

View File

@ -10,7 +10,7 @@ includes: [propertyHelper.js]
---*/
var C = class {
static *m() { return 42; } /*{ fields }*/;
static *m() { return 42; } /*{ elements }*/;
/*{ privateinspectionfunctions }*/
}

View File

@ -10,7 +10,7 @@ includes: [propertyHelper.js]
---*/
var C = class {
static m() { return 42; } /*{ fields }*/;
static m() { return 42; } /*{ elements }*/;
/*{ privateinspectionfunctions }*/
}

View File

@ -12,7 +12,7 @@ includes: [propertyHelper.js]
var C = class {
foo = "foobar";
m() { return 42 }
/*{ fields }*/
/*{ elements }*/
m2() { return 39 }
bar = "barbaz";
/*{ privateinspectionfunctions }*/

View File

@ -10,7 +10,7 @@ includes: [propertyHelper.js]
---*/
var C = class {
/*{ fields }*/
/*{ elements }*/
foo = "foobar"
bar = "barbaz";
/*{ privateinspectionfunctions }*/

View File

@ -10,7 +10,7 @@ includes: [propertyHelper.js]
---*/
var C = class {
/*{ fields }*/
/*{ elements }*/
m() { return 42; }
/*{ privateinspectionfunctions }*/
}

View File

@ -10,7 +10,7 @@ includes: [propertyHelper.js]
---*/
var C = class {
/*{ fields }*/;
/*{ elements }*/;
*m() { return 42; }
/*{ privateinspectionfunctions }*/
}

View File

@ -10,7 +10,7 @@ includes: [propertyHelper.js]
---*/
var C = class {
/*{ fields }*/;
/*{ elements }*/;
m() { return 42; }
/*{ privateinspectionfunctions }*/
}

View File

@ -9,7 +9,7 @@ esid: prod-FieldDefinition
---*/
var C = class {
/*{ fields }*/
/*{ elements }*/
/*{ privateinspectionfunctions }*/
}

View File

@ -10,7 +10,7 @@ includes: [propertyHelper.js]
---*/
var C = class {
/*{ fields }*/; *m() { return 42; }
/*{ elements }*/; *m() { return 42; }
/*{ privateinspectionfunctions }*/
}

View File

@ -10,7 +10,7 @@ includes: [propertyHelper.js]
---*/
var C = class {
/*{ fields }*/; m() { return 42; }
/*{ elements }*/; m() { return 42; }
/*{ privateinspectionfunctions }*/
}

View File

@ -10,7 +10,7 @@ esid: prod-FieldDefinition
var C = class {
;;;;
;;;;;;/*{ fields }*/;;;;;;;
;;;;;;/*{ elements }*/;;;;;;;
;;;;
/*{ privateinspectionfunctions }*/
}

View File

@ -33,7 +33,7 @@ includes: [propertyHelper.js, compareArray.js]
//- setup
var x = [];
var y = Symbol();
//- fields
//- elements
[y] = (x.push("a"), "old_value");
[y] = (x.push("b"), "same_value");
[y] = (x.push("c"), "same_value");

View File

@ -32,7 +32,7 @@ includes: [propertyHelper.js, compareArray.js]
//- setup
var x = [];
//- fields
//- elements
y = (x.push("a"), "old_value");
["y"] = (x.push("b"), "another_value");
"y" = (x.push("c"), "same_value");

View File

@ -55,7 +55,7 @@ template: productions
features: [class-fields-public]
---*/
//- fields
//- elements
$ = 1; _ = 1; \u{6F} = 1; \u2118 = 1; ZW_\u200C_NJ = 1; ZW_\u200D_J = 1
//- assertions
assert.sameValue(c.$, 1);

View File

@ -55,7 +55,7 @@ template: productions
features: [class-fields-public]
---*/
//- fields
//- elements
$; _; \u{6F}; \u2118; ZW_\u200C_NJ; ZW_\u200D_J
//- assertions
c.$ = 1;

View File

@ -53,7 +53,7 @@ template: productions
features: [class-methods-private]
---*/
//- fields
//- elements
#$_; #__; #\u{6F}_; #℘_; #ZW__NJ_; #ZW__J_;
get #$() {
return this.#$_;

View File

@ -53,7 +53,7 @@ template: productions
features: [class-methods-private]
---*/
//- fields
//- elements
#$_; #__; #\u{6F}_; #\u2118_; #ZW_\u200C_NJ_; #ZW_\u200D_J_;
get #$() {
return this.#$_;

View File

@ -52,7 +52,7 @@ template: productions
features: [class-methods-private]
---*/
//- fields
//- elements
#$_; #__; #\u{6F}_; #℘_; #ZW__NJ_; #ZW__J_;
#$() {
return this.#$_;

View File

@ -52,7 +52,7 @@ template: productions
features: [class-methods-private]
---*/
//- fields
//- elements
#$_; #__; #\u{6F}_; #\u2118_; #ZW_\u200C_NJ_; #ZW_\u200D_J_;
#$() {
return this.#$_;

View File

@ -52,7 +52,7 @@ template: productions
features: [class-methods-private]
---*/
//- fields
//- elements
#$_; #__; #\u{6F}_; #℘_; #ZW__NJ_; #ZW__J_;
set #$(value) {
this.#$_ = value;

View File

@ -52,7 +52,7 @@ template: productions
features: [class-methods-private]
---*/
//- fields
//- elements
#$_; #__; #\u{6F}_; #\u2118_; #ZW_\u200C_NJ_; #ZW_\u200D_J_;
set #$(value) {
this.#$_ = value;

View File

@ -53,7 +53,7 @@ template: productions
features: [class-fields-private]
---*/
//- fields
//- elements
#$; #_; #\u{6F}; #℘; #ZW__NJ; #ZW__J
//- privateinspectionfunctions
$(value) {

View File

@ -53,7 +53,7 @@ template: productions
features: [class-fields-private]
---*/
//- fields
//- elements
#$ = 1; #_ = 1; #\u{6F} = 1; #℘ = 1; #ZW__NJ = 1; #ZW__J = 1
//- privateinspectionfunctions
$() {

View File

@ -53,7 +53,7 @@ template: productions
features: [class-fields-private]
---*/
//- fields
//- elements
#$ = 1; #_ = 1; #\u{6F} = 1; #\u2118 = 1; #ZW_\u200C_NJ = 1; #ZW_\u200D_J = 1
//- privateinspectionfunctions
$() {

View File

@ -53,7 +53,7 @@ template: productions
features: [class-fields-private]
---*/
//- fields
//- elements
#$; #_; #\u{6F}; #\u2118; #ZW_\u200C_NJ; #ZW_\u200D_J
//- privateinspectionfunctions
$(value) {

View File

@ -58,7 +58,7 @@ flags: [async]
features: [class-static-methods-private]
---*/
//- fields
//- elements
static async * #$(value) {
yield * await value;
}

View File

@ -58,7 +58,7 @@ flags: [async]
features: [class-static-methods-private]
---*/
//- fields
//- elements
static async * #$(value) {
yield * await value;
}

View File

@ -58,7 +58,7 @@ flags: [async]
features: [class-static-methods-private]
---*/
//- fields
//- elements
static async #$(value) {
return await value;
}

View File

@ -58,7 +58,7 @@ flags: [async]
features: [class-static-methods-private]
---*/
//- fields
//- elements
static async #$(value) {
return await value;
}

View File

@ -57,7 +57,7 @@ template: productions
features: [class-static-methods-private]
---*/
//- fields
//- elements
static * #$(value) {
yield * value;
}

View File

@ -57,7 +57,7 @@ template: productions
features: [class-static-methods-private]
---*/
//- fields
//- elements
static * #$(value) {
yield * value;
}

View File

@ -54,7 +54,7 @@ template: productions
features: [class-static-methods-private]
---*/
//- fields
//- elements
static #$(value) {
return value;
}

View File

@ -54,7 +54,7 @@ template: productions
features: [class-static-methods-private]
---*/
//- fields
//- elements
static #$(value) {
return value;
}

View File

@ -54,7 +54,7 @@ template: productions
features: [class-static-fields-private]
---*/
//- fields
//- elements
static #$; static #_; static #\u{6F}; static #℘; static #ZW__NJ; static #ZW__J
//- privateinspectionfunctions
static $(value) {

View File

@ -54,7 +54,7 @@ template: productions
features: [class-static-fields-private]
---*/
//- fields
//- elements
static #$; static #_; static #\u{6F}; static #℘; static #ZW__NJ; static #ZW__J
//- privateinspectionfunctions
static $(value) {

View File

@ -54,7 +54,7 @@ template: productions
features: [class-static-fields-private]
---*/
//- fields
//- elements
static #$; static #_; static #\u{6F}; static #\u2118; static #ZW_\u200C_NJ; static #ZW_\u200D_J
//- privateinspectionfunctions
static $(value) {

View File

@ -54,7 +54,7 @@ template: productions
features: [class-static-fields-private]
---*/
//- fields
//- elements
static #$ = 1; static #_ = 1; static #\u{6F} = 1; static #℘ = 1; static #ZW__NJ = 1; static #ZW__J = 1
//- privateinspectionfunctions
static $() {

View File

@ -54,7 +54,7 @@ template: productions
features: [class-static-fields-private]
---*/
//- fields
//- elements
static #$ = 1; static #_ = 1; static #\u{6F} = 1; static #℘ = 1; static #ZW__NJ = 1; static #ZW__J = 1
//- privateinspectionfunctions
static $() {

View File

@ -54,7 +54,7 @@ template: productions
features: [class-static-fields-private]
---*/
//- fields
//- elements
static #$ = 1; static #_ = 1; static #\u{6F} = 1; static #\u2118 = 1; static #ZW_\u200C_NJ = 1; static #ZW_\u200D_J = 1
//- privateinspectionfunctions
static $() {

View File

@ -54,7 +54,7 @@ template: productions
features: [class-static-fields-private]
---*/
//- fields
//- elements
static #$; static #_; static #\u{6F}; static #\u2118; static #ZW_\u200C_NJ; static #ZW_\u200D_J
//- privateinspectionfunctions
static $(value) {

View File

@ -21,7 +21,7 @@ template: productions
features: [class-static-fields-private]
---*/
//- fields
//- elements
static #x; static #y
//- privateinspectionfunctions
static x() {

View File

@ -21,7 +21,7 @@ template: productions
features: [class-static-methods-private, class-static-fields-private]
---*/
//- fields
//- elements
static #xVal; static #yVal
//- privateinspectionfunctions
static #x(value) {

View File

@ -18,7 +18,7 @@ includes: [propertyHelper.js]
features: [class-fields-public]
---*/
//- fields
//- elements
'a'; "b"; 'c' = 39;
"d" = 42
//- assertions