| 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 |
if (Number.MAX_VALUE !== x) { |
| 15 |
$ERROR('#1: x = Number.MAX_VALUE; Number.MAX_VALUE = 1; Number.MAX_VALUE === x'); |
| 16 |
} |