document various v8 bugs (#4808)

closes #4805
This commit is contained in:
Alex Lam S.L
2021-03-20 22:33:45 +00:00
committed by GitHub
parent 24619daf68
commit 8ea1ced389
4 changed files with 30 additions and 41 deletions

View File

@@ -1296,3 +1296,16 @@ To allow for better optimizations, the compiler makes various assumptions:
// SyntaxError: Identifier 'e' has already been declared
```
UglifyJS may modify the input which in turn may suppress those errors.
- Some versions of Chrome and Node.js will give incorrect results with the
following:
```javascript
console.log({
...{
set 42(v) {},
42: "PASS",
},
});
// Expected: { '42': 'PASS' }
// Actual: { '42': undefined }
```
UglifyJS may modify the input which in turn may suppress those errors.