S15.7.3.2_A4.js (586B)
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.MAX_VALUE has the attribute DontEnum 6 es5id: 15.7.3.2_A4 7 description: Checking if enumerating Number.MAX_VALUE fails 8 ---*/ 9 10 for (var x in Number) { 11 assert.notSameValue(x, "MAX_VALUE", 'The value of x is not "MAX_VALUE"'); 12 } 13 14 assert( 15 !Number.propertyIsEnumerable('MAX_VALUE'), 16 'The value of !Number.propertyIsEnumerable(\'MAX_VALUE\') is expected to be true' 17 ); 18 19 // TODO: Convert to verifyProperty() format. 20 21 reportCompare(0, 0);