diff options
Diffstat (limited to 'test/language/expressions/compound-assignment/11.13.2-40-s.js')
-rw-r--r-- | test/language/expressions/compound-assignment/11.13.2-40-s.js | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/test/language/expressions/compound-assignment/11.13.2-40-s.js b/test/language/expressions/compound-assignment/11.13.2-40-s.js index ac6cd92e6..28f57bd4c 100644 --- a/test/language/expressions/compound-assignment/11.13.2-40-s.js +++ b/test/language/expressions/compound-assignment/11.13.2-40-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'); |