diff options
Diffstat (limited to 'test/built-ins/BigInt/asUintN/bigint-tobigint-toprimitive.js')
-rw-r--r-- | test/built-ins/BigInt/asUintN/bigint-tobigint-toprimitive.js | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/test/built-ins/BigInt/asUintN/bigint-tobigint-toprimitive.js b/test/built-ins/BigInt/asUintN/bigint-tobigint-toprimitive.js index 65008e1aa..15bfa4775 100644 --- a/test/built-ins/BigInt/asUintN/bigint-tobigint-toprimitive.js +++ b/test/built-ins/BigInt/asUintN/bigint-tobigint-toprimitive.js @@ -22,48 +22,48 @@ assert.sameValue(BigInt.asUintN(2, { }, valueOf: err, toString: err -}), 1 n, "ToPrimitive: @@toPrimitive takes precedence"); +}), 1n, "ToPrimitive: @@toPrimitive takes precedence"); assert.sameValue(BigInt.asUintN(2, { valueOf: function() { return "1"; }, toString: err -}), 1 n, "ToPrimitive: valueOf takes precedence over toString"); +}), 1n, "ToPrimitive: valueOf takes precedence over toString"); assert.sameValue(BigInt.asUintN(2, { toString: function() { return "1"; } -}), 1 n, "ToPrimitive: toString with no valueOf"); +}), 1n, "ToPrimitive: toString with no valueOf"); assert.sameValue(BigInt.asUintN(2, { [Symbol.toPrimitive]: undefined, valueOf: function() { return "1"; } -}), 1 n, "ToPrimitive: skip @@toPrimitive when it's undefined"); +}), 1n, "ToPrimitive: skip @@toPrimitive when it's undefined"); assert.sameValue(BigInt.asUintN(2, { [Symbol.toPrimitive]: null, valueOf: function() { return "1"; } -}), 1 n, "ToPrimitive: skip @@toPrimitive when it's null"); +}), 1n, "ToPrimitive: skip @@toPrimitive when it's null"); assert.sameValue(BigInt.asUintN(2, { valueOf: null, toString: function() { return "1"; } -}), 1 n, "ToPrimitive: skip valueOf when it's not callable"); +}), 1n, "ToPrimitive: skip valueOf when it's not callable"); assert.sameValue(BigInt.asUintN(2, { valueOf: 1, toString: function() { return "1"; } -}), 1 n, "ToPrimitive: skip valueOf when it's not callable"); +}), 1n, "ToPrimitive: skip valueOf when it's not callable"); assert.sameValue(BigInt.asUintN(2, { valueOf: {}, toString: function() { return "1"; } -}), 1 n, "ToPrimitive: skip valueOf when it's not callable"); +}), 1n, "ToPrimitive: skip valueOf when it's not callable"); assert.sameValue(BigInt.asUintN(2, { valueOf: function() { return {}; @@ -71,7 +71,7 @@ assert.sameValue(BigInt.asUintN(2, { toString: function() { return "1"; } -}), 1 n, "ToPrimitive: skip valueOf when it returns an object"); +}), 1n, "ToPrimitive: skip valueOf when it returns an object"); assert.sameValue(BigInt.asUintN(2, { valueOf: function() { return Object(12345); @@ -79,7 +79,7 @@ assert.sameValue(BigInt.asUintN(2, { toString: function() { return "1"; } -}), 1 n, "ToPrimitive: skip valueOf when it returns an object"); +}), 1n, "ToPrimitive: skip valueOf when it returns an object"); assert.throws(TypeError, function() { BigInt.asUintN(0, { [Symbol.toPrimitive]: 1 |