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 da9d06baf6c32fcc8f199d930375ea3ff4331226..914e1ccf0c372eab598067ff671665e82429e262 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 138a9e304b77a287c90c4cf37b810441c6eb6d3d..f2247d13fbf8217e7a2c02367fef192221afc8b2 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 6ca4547f7a4024153139c2ced3f3e376c4d50f95..16e61183d08517d831b8737e9ea1c525ec6aef89 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 66e45f39bde3507ab3758e01585fccf3bb7fc573..d4ffde2416e2f3e19da81a404757a12cdf021678 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 429175c04de2ef1530899531283683db0ba242aa..e01254a1419c9debb61986b5452ce01b984fd391 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 cf6a51180531d443620488909d91e2c07662d187..ed14a42147b564ced24620d5e08042f0e3f15176 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 ed87d4e3d4a1a4e58df069c3071cdfffcb404531..4e45792c85f8ee2bb06885a7e665092a4a3920d5 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 151a639ea66226ce6013e6bf4adc7d36821137dc..7f4d1e2a0ad8f1c685113a22bca8e398c2d823ef 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');