aboutsummaryrefslogtreecommitdiff
path: root/tools/asm_module.py
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-08-08 15:58:02 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-08-08 15:58:20 -0700
commitd3188d30a09767d2bfd693d658c972ccc5713602 (patch)
tree836673c1d7276e594262d65b9335d8800794cc38 /tools/asm_module.py
parent634bac9e1ed719c5779d3116a3797b3aef4b2012 (diff)
generate static linking invokes in the prelude; fixes #1468
Diffstat (limited to 'tools/asm_module.py')
-rw-r--r--tools/asm_module.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/asm_module.py b/tools/asm_module.py
index bf7fa71d..226b66b8 100644
--- a/tools/asm_module.py
+++ b/tools/asm_module.py
@@ -84,7 +84,9 @@ class AsmModule():
for table in self.tables:
if table not in main.tables:
sig = table[table.rfind('_')+1:]
- all_sendings['invoke_%s' % sig] = shared.JS.make_invoke(sig, named=False)
+ func = 'invoke_%s' % sig
+ all_sendings[func] = func
+ main.pre_js += 'var %s = %s;\n' % (func, shared.JS.make_invoke(sig, named=False))
added_sending = True
# imports