aboutsummaryrefslogtreecommitdiff
path: root/emlink.py
diff options
context:
space:
mode:
Diffstat (limited to 'emlink.py')
-rw-r--r--emlink.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/emlink.py b/emlink.py
index e2dd996c..66c81342 100644
--- a/emlink.py
+++ b/emlink.py
@@ -135,7 +135,14 @@ class AsmModule():
# tables TODO
# exports
- exports = main.exports.union(self.exports)
+ def rep_exp(export):
+ key, value = export.split(':')
+ if key in replacements:
+ repped = replacements[key]
+ return repped + ': ' + repped
+ return export
+ my_exports = map(rep_exp, self.exports)
+ exports = main.exports.union(my_exports)
main.exports_js = 'return {' + ','.join(list(exports)) + '};\n})\n'
# post