## 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 ```javascript function test(a) { return a << 10n & 0x1234n } test(123n); ```
Activity
sanex3339 commentedon Apr 25, 2020
escodegencurrently doesn't support itsanex3339 commentedon Apr 25, 2020
Hmm. Looks like I can fix it on my side.
sanex3339 commentedon Apr 25, 2020
#599
sanex3339 commentedon Apr 25, 2020
Support in master. Expect a release later today.
sanex3339 commentedon Apr 25, 2020
Released as
0.28.0