diff options
Diffstat (limited to 'test/language/expressions/compound-assignment/S11.13.2_A5.2_T5.js')
-rwxr-xr-x | test/language/expressions/compound-assignment/S11.13.2_A5.2_T5.js | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/test/language/expressions/compound-assignment/S11.13.2_A5.2_T5.js b/test/language/expressions/compound-assignment/S11.13.2_A5.2_T5.js index eeb64bcb3..e1753f707 100755 --- a/test/language/expressions/compound-assignment/S11.13.2_A5.2_T5.js +++ b/test/language/expressions/compound-assignment/S11.13.2_A5.2_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 /= 3; })(); -if (fnGlobalObject().x !== 2) { - $ERROR('#1: fnGlobalObject().x === 2. Actual: ' + (fnGlobalObject().x)); +if (this.x !== 2) { + $ERROR('#1: this.x === 2. Actual: ' + (this.x)); } |