support exponentiation operator (#4593)

This commit is contained in:
Alex Lam S.L
2021-01-24 21:48:51 +00:00
committed by GitHub
parent a08d42555a
commit 9d23ba0a22
6 changed files with 94 additions and 12 deletions

View File

@@ -1254,3 +1254,9 @@ To allow for better optimizations, the compiler makes various assumptions:
}()) => b)());
```
UglifyJS may modify the input which in turn may suppress those errors.
- Some arithmetic operations with `BigInt` may throw `TypeError`:
```javascript
1n + 1;
// TypeError: can't convert BigInt to number
```
UglifyJS may modify the input which in turn may suppress those errors.