diff options
Diffstat (limited to 'test/language/expressions/compound-assignment/S11.13.2_A5.11_T5.js')
-rwxr-xr-x | test/language/expressions/compound-assignment/S11.13.2_A5.11_T5.js | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/test/language/expressions/compound-assignment/S11.13.2_A5.11_T5.js b/test/language/expressions/compound-assignment/S11.13.2_A5.11_T5.js index 50123ae5f..ecbed1071 100755 --- a/test/language/expressions/compound-assignment/S11.13.2_A5.11_T5.js +++ b/test/language/expressions/compound-assignment/S11.13.2_A5.11_T5.js @@ -12,11 +12,9 @@ description: > No ReferenceError is thrown when 'x |= y' is in strict-mode code and the original binding is no longer present. Check operator is "x |= y". -includes: - - fnGlobalObject.js ---*/ -Object.defineProperty(fnGlobalObject(), "x", { +Object.defineProperty(this, "x", { configurable: true, get: function() { delete this.x; @@ -29,6 +27,6 @@ Object.defineProperty(fnGlobalObject(), "x", { x |= 4; })(); -if (fnGlobalObject().x !== 6) { - $ERROR('#1: fnGlobalObject().x === 6. Actual: ' + (fnGlobalObject().x)); +if (this.x !== 6) { + $ERROR('#1: this.x === 6. Actual: ' + (this.x)); } |