diff options
author | Chad Austin <chad@chadaustin.me> | 2014-04-24 01:43:38 -0700 |
---|---|---|
committer | Chad Austin <chad@chadaustin.me> | 2014-04-24 01:43:38 -0700 |
commit | 9a530d0e76ea951f761d93ce3aa739b5605acb25 (patch) | |
tree | fe0adc8c725a6bdf736b3c8840bbd1ce095e0449 /src | |
parent | 0471c2bf4fbdf9cc407ec01e3cabd04095c843d0 (diff) |
passes tests
Diffstat (limited to 'src')
-rw-r--r-- | src/embind/embind.js | 4 |
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]; |