From a9d4a6291b2f3c2531ff4bdd59ac75edd0a06d60 Mon Sep 17 00:00:00 2001 From: kzc Date: Tue, 15 Mar 2016 11:20:32 -0400 Subject: Do not produce `let` as a variable name in mangle. Would previously occur in large generated functions with 21,000+ variables. Fixes #986. --- lib/parse.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/parse.js') diff --git a/lib/parse.js b/lib/parse.js index f1495153..f16d092b 100644 --- a/lib/parse.js +++ b/lib/parse.js @@ -46,7 +46,7 @@ var KEYWORDS = 'break case catch const continue debugger default delete do else finally for function if in instanceof new return switch throw try typeof var void while with'; var KEYWORDS_ATOM = 'false null true'; -var RESERVED_WORDS = 'abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized this throws transient volatile yield' +var RESERVED_WORDS = 'abstract boolean byte char class double enum export extends final float goto implements import int interface let long native package private protected public short static super synchronized this throws transient volatile yield' + " " + KEYWORDS_ATOM + " " + KEYWORDS; var KEYWORDS_BEFORE_EXPRESSION = 'return new delete throw else case'; -- cgit v1.2.3