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

This commit is contained in:
Leo Balter 2017-10-30 11:22:13 -04:00 committed by GitHub
parent f8456c6dac
commit 21b7e4a7bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 5 deletions

View File

@ -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]");