From 2c9c72e06c674ae313001d0b5878fe2ccfc31492 Mon Sep 17 00:00:00 2001 From: "Alex Lam S.L" Date: Sat, 19 Dec 2020 18:31:09 +0000 Subject: suppress false positives in `ufuzz` (#4419) --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'README.md') diff --git a/README.md b/README.md index 4753b4c2..c23116bd 100644 --- a/README.md +++ b/README.md @@ -1217,3 +1217,13 @@ To allow for better optimizations, the compiler makes various assumptions: // SyntaxError: Identifier 'a' has already been declared ``` UglifyJS may modify the input which in turn may suppress those errors. +- Later versions of JavaScript will throw `SyntaxError` with the following: + ```js + try { + // ... + } catch ({ message: a }) { + var a; + } + // SyntaxError: Identifier 'a' has already been declared + ``` + UglifyJS may modify the input which in turn may suppress those errors. -- cgit v1.2.3