From 1ea06424b9c7d13b40fa4f53e0012de0ff06b9ce Mon Sep 17 00:00:00 2001 From: Anthony Van de Gejuchte Date: Thu, 9 Jun 2016 17:15:25 +0200 Subject: [PATCH] Consider yield in compute_char_frequency --- lib/scope.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/scope.js b/lib/scope.js index 39bd9cbf..7b8d38a0 100644 --- a/lib/scope.js +++ b/lib/scope.js @@ -575,6 +575,8 @@ AST_Toplevel.DEFMETHOD("compute_char_frequency", function(options){ base54.consider("catch"); else if (node instanceof AST_Finally) base54.consider("finally"); + else if (node instanceof AST_Yield) + base54.consider("yield"); else if (node instanceof AST_Symbol && node.unmangleable(options)) base54.consider(node.name); else if (node instanceof AST_Unary || node instanceof AST_Binary)