tests/auto/qml/ecmascripttests/test262/test/built-ins/Number/bigint-conversion.js
raw| 1 | // Copyright (C) 2017 Robin Templeton. All rights reserved. |
| 2 | // This code is governed by the BSD license found in the LICENSE file. |
| 3 | |
| 4 | /*--- |
| 5 | description: BigInt to Number conversion |
| 6 | esid: pending |
| 7 | features: [BigInt] |
| 8 | ---*/ |
| 9 | |
| 10 | assert.sameValue(Number(0n), 0); |
| 11 | assert.sameValue(+(new Number(0n)), +(new Number(0))); |