Skip to content

Commit 685ab35

Browse files
authored
document v8 quirks (#5565)
closes #5564
1 parent 5792f30 commit 685ab35

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

README.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1359,7 +1359,7 @@ To allow for better optimizations, the compiler makes various assumptions:
13591359
// SyntaxError: The left-hand side of a for-of loop may not be 'async'.
13601360
```
13611361
UglifyJS may modify the input which in turn may suppress those errors.
1362-
- Later versions of Chrome and Node.js will give incorrect results with the
1362+
- Some versions of Chrome and Node.js will give incorrect results with the
13631363
following:
13641364
```javascript
13651365
console.log({
@@ -1368,9 +1368,15 @@ To allow for better optimizations, the compiler makes various assumptions:
13681368
return "FAIL";
13691369
},
13701370
[42]: "PASS",
1371+
}[42], {
1372+
...console,
1373+
get 42() {
1374+
return "FAIL";
1375+
},
1376+
42: "PASS",
13711377
}[42]);
1372-
// Expected: "PASS"
1373-
// Actual: "FAIL"
1378+
// Expected: "PASS PASS"
1379+
// Actual: "PASS FAIL"
13741380
```
13751381
UglifyJS may modify the input which in turn may suppress those errors.
13761382
- Earlier versions of JavaScript will throw `TypeError` with the following:

0 commit comments

Comments
 (0)