diff --git a/test/built-ins/Function/15.3.2.1-10-6gs.js b/test/built-ins/Function/15.3.2.1-10-6gs.js index 32bb9a0e9b0b41aeb9746567d670c6e5426f8580..9159b21deb00c3237e5de4b9337d25ae54dc8c36 100644 --- a/test/built-ins/Function/15.3.2.1-10-6gs.js +++ b/test/built-ins/Function/15.3.2.1-10-6gs.js @@ -10,10 +10,9 @@ description: > Strict Mode - SyntaxError is thrown if a function using the Function constructor has two identical parameters in (local) strict mode -negative: Test262Error flags: [onlyStrict] -includes: [Test262Error.js] ---*/ -throw new Test262Error(); -var _15_3_2_1_10_6_fun = new Function('param_1', 'param_2', 'param_1', '"use strict";return 0;'); +assert.throws(SyntaxError, function() { + new Function('param_1', 'param_2', 'param_1', '"use strict";return 0;'); +}); diff --git a/test/built-ins/Function/15.3.5-1gs.js b/test/built-ins/Function/15.3.5-1gs.js index 5cbf456d72b7c6557eaff20ed4434d264334f47a..8d4d2910400cacd0887d5faeb68ef8c7db724c6f 100644 --- a/test/built-ins/Function/15.3.5-1gs.js +++ b/test/built-ins/Function/15.3.5-1gs.js @@ -9,12 +9,11 @@ es5id: 15.3.5-1gs description: > StrictMode - error is thrown when reading the 'caller' property of a function object -negative: Test262Error flags: [onlyStrict] -includes: [Test262Error.js] ---*/ -"use strict"; function _15_3_5_1_gs() {} -throw new Test262Error(); -_15_3_5_1_gs.caller; + +assert.throws(TypeError, function() { + _15_3_5_1_gs.caller; +}); diff --git a/test/language/eval-code/10.4.2-2-s.js b/test/language/eval-code/10.4.2-2-s.js index 0f46e9dff797d79e05977373e1e21a0dca0e6bef..7780ef546f4043cea07a95477664a8370894332b 100644 --- a/test/language/eval-code/10.4.2-2-s.js +++ b/test/language/eval-code/10.4.2-2-s.js @@ -15,7 +15,7 @@ includes: [runTestCase.js] function testcase() { "use strict"; - eval("(function fun(x){ return x })(10)"); + eval("function fun(x){ return x }"); return typeof (fun) === "undefined"; } runTestCase(testcase);