Skip to content
Snippets Groups Projects
Unverified Commit 21b7e4a7 authored by Leo Balter's avatar Leo Balter Committed by GitHub
Browse files

Add missing parameter and reorder actual, expected assertion parameters (#1326)

parent f8456c6d
No related branches found
No related tags found
No related merge requests found
...@@ -21,17 +21,17 @@ verifyProperty(BigInt.prototype, Symbol.toStringTag, { ...@@ -21,17 +21,17 @@ verifyProperty(BigInt.prototype, Symbol.toStringTag, {
configurable: true configurable: true
}); });
assert.sameValue("[object BigInt]", Object.prototype.toString.call(3n)); assert.sameValue(Object.prototype.toString.call(3n), "[object BigInt]");
assert.sameValue("[object BigInt]", Object.prototype.toString.call(Object(3n))); assert.sameValue(Object.prototype.toString.call(Object(3n)), "[object BigInt]");
// Verify that Object.prototype.toString does not have special casing for BigInt // Verify that Object.prototype.toString does not have special casing for BigInt
// as it does for most other primitive types // as it does for most other primitive types
Object.defineProperty(BigInt.prototype, { Object.defineProperty(BigInt.prototype, Symbol.toStringTag, {
value: "FooBar", value: "FooBar",
writable: false, writable: false,
enumerable: false, enumerable: false,
configurable: true configurable: true
}); });
assert.sameValue("[object FooBar]", Object.prototype.toString.call(3n)); assert.sameValue(Object.prototype.toString.call(3n), "[object FooBar]");
assert.sameValue("[object FooBar]", Object.prototype.toString.call(Object(3n))); assert.sameValue(Object.prototype.toString.call(Object(3n)), "[object FooBar]");
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment