You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Expect this:
console.log(sprintf("%d", 9999999999999999999999999999999999999999n));
// To print this:
// 9999999999999999999999999999999999999999
// But instead, an error such as the following is generated:
sprintf-js/src/sprintf.js:61
if (re.numeric_arg.test(ph.type) && (typeof arg !== 'number' && isNaN(arg))) {
^
TypeError: Cannot convert a BigInt value to a number
Thanks!
The text was updated successfully, but these errors were encountered:
Thanks!
The text was updated successfully, but these errors were encountered: