Debian Codegraph @

js/src/tests/test262/built-ins/Number/POSITIVE_INFINITY/S15.7.3.6_A2.js

raw
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.POSITIVE_INFINITY is ReadOnly
6 es5id: 15.7.3.6_A2
7 description: Checking if varying Number.POSITIVE_INFINITY fails
8 includes: [propertyHelper.js]
9 ---*/
10
11 // CHECK#1
12 verifyNotWritable(Number, "POSITIVE_INFINITY", null, 1);
13
14 assert(
15 !isFinite(Number.POSITIVE_INFINITY),
16 'The value of !isFinite(Number.POSITIVE_INFINITY) is expected to be true'
17 );
18
19 // TODO: Convert to verifyProperty() format.
20
21 reportCompare(0, 0);