aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rw-r--r--README.md13
1 files changed, 13 insertions, 0 deletions
diff --git a/README.md b/README.md
index 760fac53..06b16551 100644
--- a/README.md
+++ b/README.md
@@ -1341,3 +1341,16 @@ To allow for better optimizations, the compiler makes various assumptions:
// Actual: "FAIL"
```
UglifyJS may modify the input which in turn may suppress those errors.
+- Earlier versions of JavaScript will throw `TypeError` with the following:
+ ```javascript
+ (function() {
+ {
+ const a = "foo";
+ }
+ {
+ const a = "bar";
+ }
+ })();
+ // TypeError: const 'a' has already been declared
+ ```
+ UglifyJS may modify the input which in turn may suppress those errors.