diff options
author | Alex Lam S.L <alexlamsl@gmail.com> | 2021-05-15 19:13:30 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-16 02:13:30 +0800 |
commit | ae4dbcb5b96ddb2696de1d890e6a71b2445f7ec5 (patch) | |
tree | e9b85d4d72f78681279d12889228dadc3b03e06e | |
parent | e13615549ef15954fa7317a504652b82cbb93c1c (diff) | |
download | tracifyjs-ae4dbcb5b96ddb2696de1d890e6a71b2445f7ec5.tar.gz tracifyjs-ae4dbcb5b96ddb2696de1d890e6a71b2445f7ec5.zip |
document v8 quirks (#4942)
closes #4941
-rw-r--r-- | README.md | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -1327,3 +1327,17 @@ To allow for better optimizations, the compiler makes various assumptions: // SyntaxError: The left-hand side of a for-of loop may not be 'async'. ``` UglifyJS may modify the input which in turn may suppress those errors. +- Later versions of Chrome and Node.js will give incorrect results with the + following: + ```javascript + console.log({ + ...console, + get 42() { + return "FAIL"; + }, + [42]: "PASS", + }[42]); + // Expected: "PASS" + // Actual: "FAIL" + ``` + UglifyJS may modify the input which in turn may suppress those errors. |