aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChad Austin <chad@chadaustin.me>2014-04-24 01:43:38 -0700
committerChad Austin <chad@chadaustin.me>2014-04-24 01:43:38 -0700
commit9a530d0e76ea951f761d93ce3aa739b5605acb25 (patch)
treefe0adc8c725a6bdf736b3c8840bbd1ce095e0449 /src
parent0471c2bf4fbdf9cc407ec01e3cabd04095c843d0 (diff)
passes tests
Diffstat (limited to 'src')
-rw-r--r--src/embind/embind.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/embind/embind.js b/src/embind/embind.js
index c729aff5..bb979365 100644
--- a/src/embind/embind.js
+++ b/src/embind/embind.js
@@ -721,6 +721,10 @@ function requireFunction(signature, rawFunction) {
// - Function.prototype.bind generally benchmarks poorly relative to
// function objects, but using 'arguments' would confound JITs and
// possibly allocate.
+ var dc = asm['dynCall_' + signature];
+ if (dc === undefined) {
+ throwBindingError("No dynCall invoker for signature: " + signature);
+ }
fp = asm['dynCall_' + signature].bind(undefined, rawFunction);
} else {
fp = FUNCTION_TABLE[rawFunction];