aboutsummaryrefslogtreecommitdiff
path: root/src/shell_sharedlib.js
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-08-28 18:12:53 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-09-03 14:41:29 -0700
commitc76946b2f3cebf00a5e24c9582eb9b59f1039a6d (patch)
tree26754c6f7429e6a502e222f5d44be31980a87503 /src/shell_sharedlib.js
parentaa1c42a298a568f2910cb0a184824763016ce64f (diff)
support function pointer calls across asm modules by passing them all through invoke (for now), and have a global function table in the Runtime, which modules register their functions to
Diffstat (limited to 'src/shell_sharedlib.js')
-rw-r--r--src/shell_sharedlib.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/shell_sharedlib.js b/src/shell_sharedlib.js
index 505c3d7b..a2956c24 100644
--- a/src/shell_sharedlib.js
+++ b/src/shell_sharedlib.js
@@ -3,6 +3,8 @@
var Module = {};
var args = [];
Module.arguments = [];
+ Module.print = parentModule.print;
+ Module.printErr = parentModule.printErr;
{{BODY}}
@@ -10,3 +12,4 @@
return Module;
});
+