summaryrefslogtreecommitdiff
path: root/test/language/expressions/compound-assignment/11.13.2-41-s.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/language/expressions/compound-assignment/11.13.2-41-s.js')
-rw-r--r--test/language/expressions/compound-assignment/11.13.2-41-s.js13
1 files changed, 3 insertions, 10 deletions
diff --git a/test/language/expressions/compound-assignment/11.13.2-41-s.js b/test/language/expressions/compound-assignment/11.13.2-41-s.js
index 707032af8..d5d567d97 100644
--- a/test/language/expressions/compound-assignment/11.13.2-41-s.js
+++ b/test/language/expressions/compound-assignment/11.13.2-41-s.js
@@ -8,10 +8,8 @@ description: >
Compound Assignment operator(>>>=) is a reference to an accessor
property with the attribute value {[[Set]]:undefined}
flags: [onlyStrict]
-includes: [runTestCase.js]
---*/
-function testcase() {
var obj = {};
Object.defineProperty(obj, "prop", {
get: function () {
@@ -21,12 +19,7 @@ function testcase() {
enumerable: true,
configurable: true
});
-
- try {
+assert.throws(TypeError, function() {
obj.prop >>>= 20;
- return false;
- } catch (e) {
- return e instanceof TypeError && obj.prop === 11;
- }
- }
-runTestCase(testcase);
+});
+assert.sameValue(obj.prop, 11, 'obj.prop');