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