blob: c9a0472bcca98c09754e576377c33153405c45f6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
// Copyright (C) 2017 Robin Templeton. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-bigint.prototype.valueof
description: >
BigInt.prototype.valueOf returns the primitive BigInt value.
info: |
BigInt.prototype.valueOf ( )
Return ? thisBigIntValue(this value).
features: [BigInt]
---*/
var valueOf = BigInt.prototype.valueOf;
assert.sameValue(valueOf.call(0n), 0n, "0n");
assert.sameValue(valueOf.call(Object(0n)), 0n, "Object(0n)");
reportCompare(0, 0);
|