summaryrefslogtreecommitdiff
path: root/test/language/expressions/compound-assignment/S11.13.2_A5.1_T5.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/language/expressions/compound-assignment/S11.13.2_A5.1_T5.js')
-rwxr-xr-xtest/language/expressions/compound-assignment/S11.13.2_A5.1_T5.js8
1 files changed, 3 insertions, 5 deletions
diff --git a/test/language/expressions/compound-assignment/S11.13.2_A5.1_T5.js b/test/language/expressions/compound-assignment/S11.13.2_A5.1_T5.js
index e9d23ac6d..ebbf1f6d5 100755
--- a/test/language/expressions/compound-assignment/S11.13.2_A5.1_T5.js
+++ b/test/language/expressions/compound-assignment/S11.13.2_A5.1_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 !== 6) {
- $ERROR('#1: fnGlobalObject().x === 6. Actual: ' + (fnGlobalObject().x));
+if (this.x !== 6) {
+ $ERROR('#1: this.x === 6. Actual: ' + (this.x));
}