Debian Codegraph @

js/src/tests/test262/built-ins/Number/NaN.js

raw
1 // Copyright (C) 2016 The V8 Project authors. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
3
4 /*---
5 esid: sec-number.nan
6 description: >
7 "NaN" property descriptor and value of Number
8 info: |
9 20.1.2.10 Number.NaN
10
11 The value of Number.NaN is NaN.
12
13 This property has the attributes { [[Writable]]: false, [[Enumerable]]: false,
14 [[Configurable]]: false }.
15 includes: [propertyHelper.js]
16 ---*/
17
18 assert.sameValue(Number.NaN, NaN);
19
20 verifyProperty(Number, "NaN", {
21 writable: false,
22 enumerable: false,
23 configurable: false,
24 });
25
26 reportCompare(0, 0);