15.12-0-3.js (532B)
1 // Copyright (c) 2012 Ecma International. All rights reserved. 2 // This code is governed by the BSD license found in the LICENSE file. 3 4 /*--- 5 info: | 6 This test should be run without any built-ins being added/augmented. 7 The name JSON must be bound to an object, and must not support [[Call]]. 8 step 5 in 11.2.3 should throw a TypeError exception. 9 es5id: 15.12-0-3 10 description: JSON must not support the [[Call]] method 11 ---*/ 12 13 var o = JSON; 14 assert.throws(TypeError, function() { 15 var j = JSON(); 16 }); 17 18 reportCompare(0, 0);