diff options
Diffstat (limited to 'lib/scope.js')
-rw-r--r-- | lib/scope.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/scope.js b/lib/scope.js index edefc29b..896efacc 100644 --- a/lib/scope.js +++ b/lib/scope.js @@ -428,6 +428,11 @@ AST_Toplevel.DEFMETHOD("mangle_names", function(options) { if (options.cache && node instanceof AST_Toplevel) { node.globals.each(mangle); } + if (node instanceof AST_Defun && tw.has_directive("use asm")) { + var sym = new AST_SymbolRef(node.name); + sym.scope = node; + sym.reference(options); + } node.variables.each(function(def) { if (!defer_redef(def)) mangle(def); }); |