S15.7.3.2_A2.js (548B)
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 is ReadOnly 6 es5id: 15.7.3.2_A2 7 description: Checking if varying Number.MAX_VALUE fails 8 includes: [propertyHelper.js] 9 ---*/ 10 11 // CHECK#1 12 var x = Number.MAX_VALUE; 13 verifyNotWritable(Number, "MAX_VALUE", null, 1); 14 assert.sameValue(Number.MAX_VALUE, x, 'The value of Number.MAX_VALUE is expected to equal the value of x'); 15 16 // TODO: Convert to verifyProperty() format. 17 18 reportCompare(0, 0);