From 16cd5d57a5cf7f5750104df0e5af246708fd493f Mon Sep 17 00:00:00 2001 From: "Alex Lam S.L" Date: Sun, 26 Feb 2017 00:40:33 +0800 Subject: consolidate `evaluate` & `reduce_vars` (#1505) - improve marking efficiency - apply smarter `const` replacement to `var` fixes #1501 --- lib/scope.js | 2 -- 1 file changed, 2 deletions(-) (limited to 'lib/scope.js') diff --git a/lib/scope.js b/lib/scope.js index 29e4103a..ae0c5777 100644 --- a/lib/scope.js +++ b/lib/scope.js @@ -51,7 +51,6 @@ function SymbolDef(scope, index, orig) { this.global = false; this.mangled_name = null; this.undeclared = false; - this.constant = false; this.index = index; this.id = SymbolDef.next_id++; }; @@ -156,7 +155,6 @@ AST_Toplevel.DEFMETHOD("figure_out_scope", function(options){ else if (node instanceof AST_SymbolVar || node instanceof AST_SymbolConst) { var def = defun.def_variable(node); - def.constant = node instanceof AST_SymbolConst; def.init = tw.parent().value; } else if (node instanceof AST_SymbolCatch) { -- cgit v1.2.3