Debian Codegraph @

js/src/tests/test262/built-ins/Number/parseInt.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.parseint
6 description: >
7 "parseInt" property descriptor and value of Number
8 info: |
9 Number.parseInt
10
11 The value of the Number.parseInt data property is the same built-in function
12 object that is the value of the parseInt property of the global object
13 defined in 18.2.4.
14
15 17 ECMAScript Standard Built-in Objects:
16
17 Every other data property described in clauses 18 through 26 and in Annex B.2
18 has the attributes { [[Writable]]: true, [[Enumerable]]: false,
19 [[Configurable]]: true } unless otherwise specified.
20 includes: [propertyHelper.js]
21 ---*/
22
23 assert.sameValue(Number.parseInt, parseInt);
24
25 verifyProperty(Number, "parseInt", {
26 writable: true,
27 enumerable: false,
28 configurable: true
29 });
30
31 reportCompare(0, 0);