summaryrefslogtreecommitdiff
path: root/test/built-ins/BigInt/prototype/toString/thisbigintvalue-not-valid-throws.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/BigInt/prototype/toString/thisbigintvalue-not-valid-throws.js')
-rw-r--r--test/built-ins/BigInt/prototype/toString/thisbigintvalue-not-valid-throws.js18
1 files changed, 13 insertions, 5 deletions
diff --git a/test/built-ins/BigInt/prototype/toString/thisbigintvalue-not-valid-throws.js b/test/built-ins/BigInt/prototype/toString/thisbigintvalue-not-valid-throws.js
index 78ae9bd68..f67ca293c 100644
--- a/test/built-ins/BigInt/prototype/toString/thisbigintvalue-not-valid-throws.js
+++ b/test/built-ins/BigInt/prototype/toString/thisbigintvalue-not-valid-throws.js
@@ -22,17 +22,25 @@ features: [BigInt, Symbol.toPrimitive]
var toString = BigInt.prototype.toString;
assert.throws(TypeError, function() {
- toString.call({x: 1n});
+ toString.call({
+ x: 1 n
+ });
}, '{x: 1n}');
assert.throws(TypeError, function() {
- toString.call([1n]);
+ toString.call([1 n]);
}, '[1n]');
var obj = {
- valueOf: function() { throw new Test262Error('no [[BigIntData]]') },
- toString: function() { throw new Test262Error('no [[BigIntData]]') },
- [Symbol.toPrimitive]: function() { throw new Test262Error('no [[BigIntData]]') }
+ valueOf: function() {
+ throw new Test262Error('no [[BigIntData]]')
+ },
+ toString: function() {
+ throw new Test262Error('no [[BigIntData]]')
+ },
+ [Symbol.toPrimitive]: function() {
+ throw new Test262Error('no [[BigIntData]]')
+ }
};
assert.throws(TypeError, function() {
toString.call(obj);