diff --git a/test/language/expressions/class/private-methods/prod-private-async-generator.js b/test/language/expressions/class/private-methods/prod-private-async-generator.js index da9d06baf6..914e1ccf0c 100644 --- a/test/language/expressions/class/private-methods/prod-private-async-generator.js +++ b/test/language/expressions/class/private-methods/prod-private-async-generator.js @@ -95,6 +95,7 @@ var C = class { hasProp(this, '#m', false, 'private methods are defined in an special internal slot and cannot be found as own properties'); assert.sameValue(typeof this.#m, 'function'); assert.sameValue(this.ref, this.#m, 'returns the same value'); + assert.sameValue(this.#m, (() => this)().#m, 'memberexpression and call expression forms'); var ctorIter = this.#m(); var p = ctorIter.next(); diff --git a/test/language/expressions/class/private-methods/prod-private-async-method.js b/test/language/expressions/class/private-methods/prod-private-async-method.js index 138a9e304b..f2247d13fb 100644 --- a/test/language/expressions/class/private-methods/prod-private-async-method.js +++ b/test/language/expressions/class/private-methods/prod-private-async-method.js @@ -95,6 +95,7 @@ var C = class { hasProp(this, '#m', false, 'private methods are defined in an special internal slot and cannot be found as own properties'); assert.sameValue(typeof this.#m, 'function'); assert.sameValue(this.ref, this.#m, 'returns the same value'); + assert.sameValue(this.#m, (() => this)().#m, 'memberexpression and call expression forms'); assert.sameValue(this.#m.name, '#m', 'function name inside constructor'); ctorPromise = this.#m().then(value => { diff --git a/test/language/expressions/class/private-methods/prod-private-generator.js b/test/language/expressions/class/private-methods/prod-private-generator.js index 6ca4547f7a..16e61183d0 100644 --- a/test/language/expressions/class/private-methods/prod-private-generator.js +++ b/test/language/expressions/class/private-methods/prod-private-generator.js @@ -93,6 +93,7 @@ var C = class { hasProp(this, '#m', false, 'private methods are defined in an special internal slot and cannot be found as own properties'); assert.sameValue(typeof this.#m, 'function'); assert.sameValue(this.ref, this.#m, 'returns the same value'); + assert.sameValue(this.#m, (() => this)().#m, 'memberexpression and call expression forms'); var res = this.#m().next(); assert.sameValue(res.value, 42, 'return from generator method, inside ctor'); diff --git a/test/language/expressions/class/private-methods/prod-private-method.js b/test/language/expressions/class/private-methods/prod-private-method.js index 66e45f39bd..d4ffde2416 100644 --- a/test/language/expressions/class/private-methods/prod-private-method.js +++ b/test/language/expressions/class/private-methods/prod-private-method.js @@ -93,6 +93,7 @@ var C = class { hasProp(this, '#m', false, 'private methods are defined in an special internal slot and cannot be found as own properties'); assert.sameValue(typeof this.#m, 'function'); assert.sameValue(this.ref, this.#m, 'returns the same value'); + assert.sameValue(this.#m, (() => this)().#m, 'memberexpression and call expression forms'); assert.sameValue(this.#m(), 42, 'already defined in the ctor'); assert.sameValue(this.#m.name, '#m', 'function name inside constructor'); diff --git a/test/language/statements/class/private-methods/prod-private-async-generator.js b/test/language/statements/class/private-methods/prod-private-async-generator.js index 429175c04d..e01254a141 100644 --- a/test/language/statements/class/private-methods/prod-private-async-generator.js +++ b/test/language/statements/class/private-methods/prod-private-async-generator.js @@ -94,6 +94,7 @@ class C { hasProp(this, '#m', false, 'private methods are defined in an special internal slot and cannot be found as own properties'); assert.sameValue(typeof this.#m, 'function'); assert.sameValue(this.ref, this.#m, 'returns the same value'); + assert.sameValue(this.#m, (() => this)().#m, 'memberexpression and call expression forms'); var ctorIter = this.#m(); var p = ctorIter.next(); diff --git a/test/language/statements/class/private-methods/prod-private-async-method.js b/test/language/statements/class/private-methods/prod-private-async-method.js index cf6a511805..ed14a42147 100644 --- a/test/language/statements/class/private-methods/prod-private-async-method.js +++ b/test/language/statements/class/private-methods/prod-private-async-method.js @@ -94,6 +94,7 @@ class C { hasProp(this, '#m', false, 'private methods are defined in an special internal slot and cannot be found as own properties'); assert.sameValue(typeof this.#m, 'function'); assert.sameValue(this.ref, this.#m, 'returns the same value'); + assert.sameValue(this.#m, (() => this)().#m, 'memberexpression and call expression forms'); assert.sameValue(this.#m.name, '#m', 'function name inside constructor'); ctorPromise = this.#m().then(value => { diff --git a/test/language/statements/class/private-methods/prod-private-generator.js b/test/language/statements/class/private-methods/prod-private-generator.js index ed87d4e3d4..4e45792c85 100644 --- a/test/language/statements/class/private-methods/prod-private-generator.js +++ b/test/language/statements/class/private-methods/prod-private-generator.js @@ -92,6 +92,7 @@ class C { hasProp(this, '#m', false, 'private methods are defined in an special internal slot and cannot be found as own properties'); assert.sameValue(typeof this.#m, 'function'); assert.sameValue(this.ref, this.#m, 'returns the same value'); + assert.sameValue(this.#m, (() => this)().#m, 'memberexpression and call expression forms'); var res = this.#m().next(); assert.sameValue(res.value, 42, 'return from generator method, inside ctor'); diff --git a/test/language/statements/class/private-methods/prod-private-method.js b/test/language/statements/class/private-methods/prod-private-method.js index 151a639ea6..7f4d1e2a0a 100644 --- a/test/language/statements/class/private-methods/prod-private-method.js +++ b/test/language/statements/class/private-methods/prod-private-method.js @@ -92,6 +92,7 @@ class C { hasProp(this, '#m', false, 'private methods are defined in an special internal slot and cannot be found as own properties'); assert.sameValue(typeof this.#m, 'function'); assert.sameValue(this.ref, this.#m, 'returns the same value'); + assert.sameValue(this.#m, (() => this)().#m, 'memberexpression and call expression forms'); assert.sameValue(this.#m(), 42, 'already defined in the ctor'); assert.sameValue(this.#m.name, '#m', 'function name inside constructor');