We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2f0b910 commit 55bd68cCopy full SHA for 55bd68c
big.js
@@ -98,8 +98,8 @@
98
x.c = n.c.slice();
99
} else {
100
if (typeof n !== 'string') {
101
- if (Big.strict === true) {
102
- throw TypeError(INVALID + 'number');
+ if (Big.strict === true && typeof n !== 'bigint') {
+ throw TypeError(INVALID + 'value');
103
}
104
105
// Minus zero?
big.mjs
@@ -95,8 +95,8 @@ function _Big_() {
95
96
97
0 commit comments