| 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.NEGATIVE_INFINITY is ReadOnly |
| 6 |
es5id: 15.7.3.5_A2 |
| 7 |
description: Checking if varying Number.NEGATIVE_INFINITY fails |
| 8 |
includes: [propertyHelper.js] |
| 9 |
---*/ |
| 10 |
|
| 11 |
// CHECK#1 |
| 12 |
verifyNotWritable(Number, "NEGATIVE_INFINITY", null, 1); |
| 13 |
if (isFinite(Number.NEGATIVE_INFINITY)) { |
| 14 |
$ERROR('#1: Number.NEGATIVE_INFINITY = 1; Number.NEGATIVE_INFINITY === -Infinity'); |
| 15 |
} else { |
| 16 |
if (Number.NEGATIVE_INFINITY >= 0) { |
| 17 |
$ERROR('#1: Number.NEGATIVE_INFINITY = 1; Number.NEGATIVE_INFINITY === -Infinity'); |
| 18 |
} |
| 19 |
} |