diff options
author | André Bargull <andre.bargull@gmail.com> | 2014-02-04 20:37:40 +0100 |
---|---|---|
committer | Brian Terlson <brian.terlson@microsoft.com> | 2014-11-11 17:34:23 -0800 |
commit | 5c5dffce8b825404e6ebf73e20b06a57a5742a10 (patch) | |
tree | 7ba6a248c956bd9751544a32befcc14d0f6197d4 /test/suite/ch15/15.2/15.2.3/15.2.3.11/15.2.3.11-1.js | |
parent | c3a803b4a3f9c549c4431590dd7dffc26820dbd1 (diff) |
es6 compatability updates
See also: https://github.com/tc39/test262/pull/29
Diffstat (limited to 'test/suite/ch15/15.2/15.2.3/15.2.3.11/15.2.3.11-1.js')
-rw-r--r-- | test/suite/ch15/15.2/15.2.3/15.2.3.11/15.2.3.11-1.js | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/test/suite/ch15/15.2/15.2.3/15.2.3.11/15.2.3.11-1.js b/test/suite/ch15/15.2/15.2.3/15.2.3.11/15.2.3.11-1.js index 59d4830b0..891dcdd39 100644 --- a/test/suite/ch15/15.2/15.2.3/15.2.3.11/15.2.3.11-1.js +++ b/test/suite/ch15/15.2/15.2.3/15.2.3.11/15.2.3.11-1.js @@ -7,19 +7,13 @@ /*--- es5id: 15.2.3.11-1 description: > - Object.isSealed throws TypeError if type of first param is not - Object + Object.isSealed does not throw TypeError if type of first param is + not Object includes: [runTestCase.js] ---*/ function testcase() { - try { - Object.isSealed(0); - } - catch (e) { - if (e instanceof TypeError) { - return true; - } - } - } + Object.isSealed(0); + return true; +} runTestCase(testcase); |