suppress invalid test case generation (#5439)

- document v8 quirks

closes #5438
This commit is contained in:
Alex Lam S.L
2022-05-11 21:38:11 +01:00
committed by GitHub
parent a9ef659bcb
commit 8946c87011
2 changed files with 36 additions and 23 deletions

View File

@@ -1389,3 +1389,16 @@ To allow for better optimizations, the compiler makes various assumptions:
// Actual: "FAIL"
```
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
(async function(a) {
(function() {
var b = await => console.log("PASS");
b();
})();
})().catch(console.error);
// Expected: "PASS"
// Actual: SyntaxError: Unexpected reserved word
```
UglifyJS may modify the input which in turn may suppress those errors.