diff options
Diffstat (limited to 'test/built-ins/BigInt/asIntN/bigint-tobigint-wrapped-values.js')
-rw-r--r-- | test/built-ins/BigInt/asIntN/bigint-tobigint-wrapped-values.js | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/test/built-ins/BigInt/asIntN/bigint-tobigint-wrapped-values.js b/test/built-ins/BigInt/asIntN/bigint-tobigint-wrapped-values.js index f0cd9807d..2ee3a6c6b 100644 --- a/test/built-ins/BigInt/asIntN/bigint-tobigint-wrapped-values.js +++ b/test/built-ins/BigInt/asIntN/bigint-tobigint-wrapped-values.js @@ -10,53 +10,53 @@ info: | features: [BigInt, Symbol.toPrimitive, computed-property-names] ---*/ -assert.sameValue(BigInt.asIntN(2, Object(0 n)), 0 n, "ToPrimitive: unbox object with internal slot"); +assert.sameValue(BigInt.asIntN(2, Object(0n)), 0n, "ToPrimitive: unbox object with internal slot"); assert.sameValue(BigInt.asIntN(2, { [Symbol.toPrimitive]: function() { - return 0 n; + return 0n; } -}), 0 n, "ToPrimitive: @@toPrimitive"); +}), 0n, "ToPrimitive: @@toPrimitive"); assert.sameValue(BigInt.asIntN(2, { valueOf: function() { - return 0 n; + return 0n; } -}), 0 n, "ToPrimitive: valueOf"); +}), 0n, "ToPrimitive: valueOf"); assert.sameValue(BigInt.asIntN(2, { toString: function() { - return 0 n; + return 0n; } -}), 0 n, "ToPrimitive: toString"); -assert.sameValue(BigInt.asIntN(2, Object(true)), 1 n, +}), 0n, "ToPrimitive: toString"); +assert.sameValue(BigInt.asIntN(2, Object(true)), 1n, "ToBigInt: unbox object with internal slot => true => 1n"); assert.sameValue(BigInt.asIntN(2, { [Symbol.toPrimitive]: function() { return true; } -}), 1 n, "ToBigInt: @@toPrimitive => true => 1n"); +}), 1n, "ToBigInt: @@toPrimitive => true => 1n"); assert.sameValue(BigInt.asIntN(2, { valueOf: function() { return true; } -}), 1 n, "ToBigInt: valueOf => true => 1n"); +}), 1n, "ToBigInt: valueOf => true => 1n"); assert.sameValue(BigInt.asIntN(2, { toString: function() { return true; } -}), 1 n, "ToBigInt: toString => true => 1n"); -assert.sameValue(BigInt.asIntN(2, Object("1")), 1 n, +}), 1n, "ToBigInt: toString => true => 1n"); +assert.sameValue(BigInt.asIntN(2, Object("1")), 1n, "ToBigInt: unbox object with internal slot => parse BigInt"); assert.sameValue(BigInt.asIntN(2, { [Symbol.toPrimitive]: function() { return "1"; } -}), 1 n, "ToBigInt: @@toPrimitive => parse BigInt"); +}), 1n, "ToBigInt: @@toPrimitive => parse BigInt"); assert.sameValue(BigInt.asIntN(2, { valueOf: function() { return "1"; } -}), 1 n, "ToBigInt: valueOf => parse BigInt"); +}), 1n, "ToBigInt: valueOf => parse BigInt"); assert.sameValue(BigInt.asIntN(2, { toString: function() { return "1"; } -}), 1 n, "ToBigInt: toString => parse BigInt"); +}), 1n, "ToBigInt: toString => parse BigInt"); |