File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -1359,7 +1359,7 @@ To allow for better optimizations, the compiler makes various assumptions:
1359
1359
// SyntaxError: The left-hand side of a for-of loop may not be 'async'.
1360
1360
` ` `
1361
1361
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
1363
1363
following:
1364
1364
` ` ` javascript
1365
1365
console.log({
@@ -1368,9 +1368,15 @@ To allow for better optimizations, the compiler makes various assumptions:
1368
1368
return "FAIL";
1369
1369
},
1370
1370
[42]: "PASS",
1371
+ }[42], {
1372
+ ...console,
1373
+ get 42() {
1374
+ return "FAIL";
1375
+ },
1376
+ 42: "PASS",
1371
1377
}[42]);
1372
- // Expected: "PASS"
1373
- // Actual: "FAIL"
1378
+ // Expected: "PASS PASS "
1379
+ // Actual: "PASS FAIL"
1374
1380
` ` `
1375
1381
UglifyJS may modify the input which in turn may suppress those errors.
1376
1382
- Earlier versions of JavaScript will throw ` TypeError` with the following:
You can’t perform that action at this time.
0 commit comments