summaryrefslogtreecommitdiff
path: root/test/built-ins/Number/bigint-conversion.js
blob: 12fe032295ca15939175c277354779f35008236a (plain)
1
2
3
4
5
6
7
8
9
10
11
// Copyright (C) 2017 Robin Templeton. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.

/*---
description: BigInt to Number conversion
esid: pending
features: [BigInt]
---*/

assert.sameValue(Number(0n), 0);
assert.sameValue(+(new Number(0n)), +(new Number(0)));