aboutsummaryrefslogtreecommitdiff
path: root/src/embind/embind.js
diff options
context:
space:
mode:
authorChad Austin <chad@chadaustin.me>2014-04-24 01:18:32 -0700
committerChad Austin <chad@chadaustin.me>2014-04-24 01:18:32 -0700
commit0471c2bf4fbdf9cc407ec01e3cabd04095c843d0 (patch)
tree2ab102caf8f7fcb33f07da834cd45c87137a4e3e /src/embind/embind.js
parentc7b472ab5ac60c67cae8ab95d0363fd328dd4571 (diff)
enable embind/asm.js tests.
Diffstat (limited to 'src/embind/embind.js')
-rw-r--r--src/embind/embind.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/embind/embind.js b/src/embind/embind.js
index 058bd5c1..c729aff5 100644
--- a/src/embind/embind.js
+++ b/src/embind/embind.js
@@ -1,4 +1,4 @@
-/*global Module*/
+/*global Module, asm*/
/*global _malloc, _free, _memcpy*/
/*global FUNCTION_TABLE, HEAP8, HEAPU8, HEAP16, HEAPU16, HEAP32, HEAPU32, HEAPF32, HEAPF64*/
/*global readLatin1String*/
@@ -721,7 +721,7 @@ function requireFunction(signature, rawFunction) {
// - Function.prototype.bind generally benchmarks poorly relative to
// function objects, but using 'arguments' would confound JITs and
// possibly allocate.
- fp = Module['dynCall_' + signature].bind(undefined, rawFunction);
+ fp = asm['dynCall_' + signature].bind(undefined, rawFunction);
} else {
fp = FUNCTION_TABLE[rawFunction];
}