Skip to content

Commit

Permalink
fixup! typed-arrays/bigint: fixes per recommendation. Closes tc39gh-1467
Browse files Browse the repository at this point in the history
  • Loading branch information
rwaldron committed Mar 6, 2018
1 parent 0ba62d9 commit 3d987f0
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 17 deletions.
15 changes: 0 additions & 15 deletions test/built-ins/BigInt/prototype/Symbol.toStringTag.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,4 @@ verifyProperty(BigInt.prototype, Symbol.toStringTag, {
writable: false,
enumerable: false,
configurable: true
}, {restore: true});

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, Symbol.toStringTag, {
value: "FooBar",
writable: false,
enumerable: false,
configurable: true
});

assert.sameValue(Object.prototype.toString.call(3n), "[object FooBar]");
assert.sameValue(Object.prototype.toString.call(Object(3n)), "[object FooBar]");
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-typedarray-typedarray
description: >
Return abrupt from getting typedArray argument's buffer.constructor.@@species
info: |
22.2.4.3 TypedArray ( typedArray )
Expand Down

0 comments on commit 3d987f0

Please sign in to comment.