diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-11-24 19:34:25 +0100 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-12-07 14:23:18 -0800 |
commit | df6018759a472685fee5fafd188f091dab5fd4fd (patch) | |
tree | 223143ffb1dd7477a2077143fc9336244c1367e2 /src/jsifier.js | |
parent | 887ef685cd7e6d9af9e45016dc6c714feaf281d3 (diff) |
add asm imports and exports, hello world works
Diffstat (limited to 'src/jsifier.js')
-rw-r--r-- | src/jsifier.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/jsifier.js b/src/jsifier.js index a7c04c89..90e74db6 100644 --- a/src/jsifier.js +++ b/src/jsifier.js @@ -420,6 +420,7 @@ function JSify(data, functionsOnly, givenFunctions) { snippet = snippet.replace('{', '{ var ret = (function() { if (Runtime.debug) Module.printErr("[library call:' + ident + ': " + Array.prototype.slice.call(arguments).map(Runtime.prettyPrint) + "]"); '); snippet = snippet.substr(0, snippet.length-1) + '}).apply(this, arguments); if (Runtime.debug && typeof ret !== "undefined") Module.printErr(" [ return:" + Runtime.prettyPrint(ret)); return ret; }'; } + if (ASM_JS) Functions.libraryFunctions.push(ident); } var postsetId = ident + '__postset'; |