aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorAlex Lam S.L <alexlamsl@gmail.com>2021-02-08 20:28:23 +0000
committerGitHub <noreply@github.com>2021-02-09 04:28:23 +0800
commite13d1e996909f68ee643df17fd7d87773c3e82a5 (patch)
treeb519e7a0cd2c3150de25964aaa3399be135eaa7a /README.md
parentaedc1e7fc9cab772734d559e149c0b4f70454321 (diff)
downloadtracifyjs-e13d1e996909f68ee643df17fd7d87773c3e82a5.tar.gz
tracifyjs-e13d1e996909f68ee643df17fd7d87773c3e82a5.zip
support `for [await]...of` statements (#4627)
Diffstat (limited to 'README.md')
-rw-r--r--README.md9
1 files changed, 9 insertions, 0 deletions
diff --git a/README.md b/README.md
index 6884d8c8..e3d1d677 100644
--- a/README.md
+++ b/README.md
@@ -1272,3 +1272,12 @@ To allow for better optimizations, the compiler makes various assumptions:
// SyntaxError: Invalid Unicode escape sequence
```
UglifyJS may modify the input which in turn may suppress those errors.
+- Some versions of JavaScript will throw `SyntaxError` with the
+ following:
+ ```javascript
+ try {} catch (e) {
+ for (var e of []);
+ }
+ // SyntaxError: Identifier 'e' has already been declared
+ ```
+ UglifyJS may modify the input which in turn may suppress those errors.