| 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 |
description: Property descriptor for `Number.MAX_SAFE_INTEGER` |
| 5 |
esid: sec-number.max_safe_integer |
| 6 |
es6id: 20.1.2.6 |
| 7 |
info: | |
| 8 |
The value of Number.MAX_SAFE_INTEGER is 9007199254740991 |
| 9 |
|
| 10 |
This property has the attributes { [[Writable]]: false, [[Enumerable]]: |
| 11 |
false, [[Configurable]]: false }. |
| 12 |
includes: [propertyHelper.js] |
| 13 |
---*/ |
| 14 |
|
| 15 |
var desc = Object.getOwnPropertyDescriptor(Number, 'MAX_SAFE_INTEGER'); |
| 16 |
|
| 17 |
assert.sameValue(desc.set, undefined, 'Does not define a `get` accessor'); |
| 18 |
assert.sameValue(desc.get, undefined, 'Does not define a `set` accessor'); |
| 19 |
assert.sameValue(desc.value, 9007199254740991); |
| 20 |
|
| 21 |
verifyNotEnumerable(Number, 'MAX_SAFE_INTEGER'); |
| 22 |
verifyNotWritable(Number, 'MAX_SAFE_INTEGER'); |
| 23 |
verifyNotConfigurable(Number, 'MAX_SAFE_INTEGER'); |