S15.7.1.1_A2.js (419B)
1 // Copyright 2009 the Sputnik authors. All rights reserved. 2 // This code is governed by the BSD license found in the LICENSE file. 3 4 /*--- 5 info: Number() returns +0 6 es5id: 15.7.1.1_A2 7 description: Call Number() and check result 8 ---*/ 9 assert.sameValue(typeof Number(), "number", 'The value of `typeof Number()` is expected to be "number"'); 10 assert.sameValue(Number(), 0, 'Number() must return 0'); 11 12 reportCompare(0, 0);