summaryrefslogtreecommitdiff
path: root/test/language/expressions/postfix-decrement/S11.3.2_A5_T5.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/language/expressions/postfix-decrement/S11.3.2_A5_T5.js')
-rwxr-xr-xtest/language/expressions/postfix-decrement/S11.3.2_A5_T5.js8
1 files changed, 3 insertions, 5 deletions
diff --git a/test/language/expressions/postfix-decrement/S11.3.2_A5_T5.js b/test/language/expressions/postfix-decrement/S11.3.2_A5_T5.js
index fa8eccfb8..15576f9eb 100755
--- a/test/language/expressions/postfix-decrement/S11.3.2_A5_T5.js
+++ b/test/language/expressions/postfix-decrement/S11.3.2_A5_T5.js
@@ -11,11 +11,9 @@ description: >
created Reference even if the environment binding is no longer present.
No ReferenceError is thrown when 'x--' is in strict-mode code and the
original binding is no longer present.
-includes:
- - fnGlobalObject.js
---*/
-Object.defineProperty(fnGlobalObject(), "x", {
+Object.defineProperty(this, "x", {
configurable: true,
get: function() {
delete this.x;
@@ -28,6 +26,6 @@ Object.defineProperty(fnGlobalObject(), "x", {
x--;
})();
-if (fnGlobalObject().x !== 1) {
- $ERROR('#1: fnGlobalObject().x === 1. Actual: ' + (fnGlobalObject().x));
+if (this.x !== 1) {
+ $ERROR('#1: this.x === 1. Actual: ' + (this.x));
}