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
and no, SyntaxErrors won't get caught even with try-catch, the entire script will just refuse to run
suggestion:
create a different import for no-bigint import("buffer/no-bigint")
and replace all the bigint related methods with the bigint unsupported error function
for the default import("buffer")
it should import("buffer/no-bigint") and set the bigint related methods
The text was updated successfully, but these errors were encountered:
this library seems to check for BigInt support, however a simple
typeof BigInt
won't sufficeusing the BigInt syntax (ex.
1n
,345n
) would cause aSyntaxError: identifier starts immediately after numeric literal
on browsers that don't support it, so the entire script file won't work if this library is presentand no, SyntaxErrors won't get caught even with try-catch, the entire script will just refuse to run
suggestion:
create a different import for no-bigint
import("buffer/no-bigint")
and replace all the bigint related methods with the bigint unsupported error function
for the default
import("buffer")
it should
import("buffer/no-bigint")
and set the bigint related methodsThe text was updated successfully, but these errors were encountered: