-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
Description
Expected Behavior
BigInt literals are supported properly as normal numbers.
Current Behavior
ESNext bigint literals are converted to normal numbers, resulting in broken code.
function a(b){return b<<10&4660;}a(123);
Stack trace
TypeError: Cannot mix BigInt and other types, use explicit conversions
Your Environment
- Obfuscator version used: 0.27.2
- Node version used: v12.10.0
Minimal working example that will help to reproduce issue
function test(a) {
return a << 10n & 0x1234n
}
test(123n);