diff --git a/test/built-ins/BigInt/prototype/Symbol.toStringTag.js b/test/built-ins/BigInt/prototype/Symbol.toStringTag.js index 8cf93d2c501e7d9e9799a529772777ac8900f5cd..0fb13286691d758287c1002ddd19170791a83f7a 100644 --- a/test/built-ins/BigInt/prototype/Symbol.toStringTag.js +++ b/test/built-ins/BigInt/prototype/Symbol.toStringTag.js @@ -21,17 +21,17 @@ verifyProperty(BigInt.prototype, Symbol.toStringTag, { configurable: true }); -assert.sameValue("[object BigInt]", Object.prototype.toString.call(3n)); -assert.sameValue("[object BigInt]", Object.prototype.toString.call(Object(3n))); +assert.sameValue(Object.prototype.toString.call(3n), "[object BigInt]"); +assert.sameValue(Object.prototype.toString.call(Object(3n)), "[object BigInt]"); // Verify that Object.prototype.toString does not have special casing for BigInt // as it does for most other primitive types -Object.defineProperty(BigInt.prototype, { +Object.defineProperty(BigInt.prototype, Symbol.toStringTag, { value: "FooBar", writable: false, enumerable: false, configurable: true }); -assert.sameValue("[object FooBar]", Object.prototype.toString.call(3n)); -assert.sameValue("[object FooBar]", Object.prototype.toString.call(Object(3n))); +assert.sameValue(Object.prototype.toString.call(3n), "[object FooBar]"); +assert.sameValue(Object.prototype.toString.call(Object(3n)), "[object FooBar]");