Skip to content

Commit ae4dbcb

Browse files
authored
document v8 quirks (#4942)
closes #4941
1 parent e136155 commit ae4dbcb

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1327,3 +1327,17 @@ To allow for better optimizations, the compiler makes various assumptions:
13271327
// SyntaxError: The left-hand side of a for-of loop may not be 'async'.
13281328
```
13291329
UglifyJS may modify the input which in turn may suppress those errors.
1330+
- Later versions of Chrome and Node.js will give incorrect results with the
1331+
following:
1332+
```javascript
1333+
console.log({
1334+
...console,
1335+
get 42() {
1336+
return "FAIL";
1337+
},
1338+
[42]: "PASS",
1339+
}[42]);
1340+
// Expected: "PASS"
1341+
// Actual: "FAIL"
1342+
```
1343+
UglifyJS may modify the input which in turn may suppress those errors.

0 commit comments

Comments
 (0)