aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-10-11 18:15:07 -0500
committerAlon Zakai <alonzakai@gmail.com>2012-10-11 18:15:07 -0500
commit9234b190baffc6ad3b81b1db19cef69488724eab (patch)
treefe0fa176b94617d3156998696cc04bbe3c232d66 /src
parentb0098a4be7c3198e67529f6f50ab7e39e79e69cb (diff)
make runtimelink work in the browser
Diffstat (limited to 'src')
-rw-r--r--src/jsifier.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jsifier.js b/src/jsifier.js
index 8021f8a1..b76579cc 100644
--- a/src/jsifier.js
+++ b/src/jsifier.js
@@ -1243,7 +1243,7 @@ function JSify(data, functionsOnly, givenFunctions) {
// Load runtime-linked libraries
RUNTIME_LINKED_LIBS.forEach(function(lib) {
- print('eval(read("' + lib + '"))(FUNCTION_TABLE.length, this);');
+ print('eval(Module["read"]("' + lib + '"))(FUNCTION_TABLE.length, this);');
});
print(postParts[1]);