diff options
Diffstat (limited to 'test/built-ins/Function/prototype/S15.3.4_A5.js')
-rw-r--r-- | test/built-ins/Function/prototype/S15.3.4_A5.js | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/test/built-ins/Function/prototype/S15.3.4_A5.js b/test/built-ins/Function/prototype/S15.3.4_A5.js index e691fb2f8..49886228f 100644 --- a/test/built-ins/Function/prototype/S15.3.4_A5.js +++ b/test/built-ins/Function/prototype/S15.3.4_A5.js @@ -7,15 +7,8 @@ info: > [[Construct]] property es5id: 15.3.4_A5 description: Checking if creating "new Function.prototype object" fails -includes: - - $PRINT.js ---*/ -//CHECK# -try { - var obj = new Function.prototype; - $ERROR('#1: The Function prototype object is itself a Function object without [[Construct]] property: '+e); -} catch (e) { - $PRINT("#1.1: The Function prototype object is itself a Function object without [[Construct]] property "+e); - -} +assert.throws(TypeError, function() { + new Function.prototype; +}); |