diff options
Diffstat (limited to 'lib/compress.js')
-rw-r--r-- | lib/compress.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/compress.js b/lib/compress.js index 2fdfc89e..f5479bef 100644 --- a/lib/compress.js +++ b/lib/compress.js @@ -3602,7 +3602,7 @@ merge(Compressor.prototype, { compressor.warn("Declaring {name} as function [{file}:{line},{col}]", template(def.name)); var defun = make_node(AST_Defun, def, def.value); defun.name = make_node(AST_SymbolDefun, def.name, def.name); - self.def_function(defun.name); + defun.parent_scope.resolve().def_function(defun.name); body.push(defun); } else { if (side_effects.length > 0) { |