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
Running into a problem with trying to package bcoin while uglifying it. The latest version of uglify-es still does not support BigInt literals, ie 21n. I think the the parser just hasn't been updated to support that syntax. GitHub also seems to act strangely with their parser, BigInts appear highlighted and red.
The BigInt function is the same as using a literal. It may be easier to be compatible with the wider JS ecosystem if the function syntax was used, as old parsers will not break on it. Then the BigInt functionality could be polyfilled if need be.
consta=BigInt(21);constb=21n;
The text was updated successfully, but these errors were encountered:
Running into a problem with trying to package
bcoin
while uglifying it. The latest version ofuglify-es
still does not supportBigInt
literals, ie21n
. I think the the parser just hasn't been updated to support that syntax. GitHub also seems to act strangely with their parser,BigInts
appear highlighted and red.The
BigInt
function is the same as using a literal. It may be easier to be compatible with the wider JS ecosystem if the function syntax was used, as old parsers will not break on it. Then theBigInt
functionality could be polyfilled if need be.The text was updated successfully, but these errors were encountered: