summaryrefslogtreecommitdiff
path: root/src/js
diff options
context:
space:
mode:
Diffstat (limited to 'src/js')
-rw-r--r--src/js/post.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/js/post.js b/src/js/post.js
index 45d850f10..6406674ba 100644
--- a/src/js/post.js
+++ b/src/js/post.js
@@ -28,6 +28,11 @@
var info = wasmJS['info'] = {
global: null,
env: null,
+ asm2wasm: { // special asm2wasm imports
+ "f64-rem": function(x, y) {
+ return x % y;
+ },
+ },
parent: Module // Module inside wasm-js.cpp refers to wasm-js.cpp; this allows access to the outside program.
};