diff options
author | Alex Lam S.L <alexlamsl@gmail.com> | 2020-12-17 10:23:41 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-17 18:23:41 +0800 |
commit | a96f087ac33b6d18d5ffa3cacd39dd693defb7cf (patch) | |
tree | d670eab7971cb7bf27e029319db0357ff38e51d5 /README.md | |
parent | 75e9fd84174eaa8bf97975ad254fe06958564547 (diff) | |
download | tracifyjs-a96f087ac33b6d18d5ffa3cacd39dd693defb7cf.tar.gz tracifyjs-a96f087ac33b6d18d5ffa3cacd39dd693defb7cf.zip |
support arrow function (#4385)
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -1209,3 +1209,11 @@ To allow for better optimizations, the compiler makes various assumptions: `function({}, arguments) {}` will result in `SyntaxError` in earlier versions of Chrome and Node.js - UglifyJS may modify the input which in turn may suppress those errors. +- Later versions of JavaScript will throw `SyntaxError` with the following: + ```js + a => { + let a; + }; + // SyntaxError: Identifier 'a' has already been declared + ``` + UglifyJS may modify the input which in turn may suppress those errors. |