aboutsummaryrefslogtreecommitdiff
path: root/src/embind
diff options
context:
space:
mode:
authorJukka Jylanki <jjylanki@imvu.com>2013-05-07 14:16:17 +0300
committerChad Austin <chad@imvu.com>2013-05-17 12:57:37 -0700
commit45a122b5d045abfc6d927329aedba79ae465373a (patch)
treebaadf5e20990662aa5ba8ee0d75a4b28925b82e8 /src/embind
parent9f7dad6f76dbfdd7e8dea39ca36885826898f8fd (diff)
embind: Fix issues by js syntax check, and remember to pass all required symbols to new Function.
Diffstat (limited to 'src/embind')
-rw-r--r--src/embind/emval.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/embind/emval.js b/src/embind/emval.js
index c0b8f705..f66bd596 100644
--- a/src/embind/emval.js
+++ b/src/embind/emval.js
@@ -1,5 +1,6 @@
/*global Module, Runtime*/
/*global HEAP32*/
+/*global new_*/
/*global createNamedFunction*/
/*global readLatin1String, writeStringToMemory*/
/*global requireRegisteredType, throwBindingError*/
@@ -221,8 +222,8 @@ function __emval_get_method_caller(argCount, argTypes) {
var retType = types[0];
var signatureName = retType.name + "_$" + types.slice(1).map(function (t) { return t.name; }).join("_") + "$";
- var args1 = ["requireHandle", "getStringOrSymbol", "_emval_handle_array", "retType"];
- var args2 = [requireHandle, getStringOrSymbol, _emval_handle_array, retType];
+ var args1 = ["Runtime", "createNamedFunction", "requireHandle", "getStringOrSymbol", "_emval_handle_array", "retType"];
+ var args2 = [Runtime, createNamedFunction, requireHandle, getStringOrSymbol, _emval_handle_array, retType];
var argsList = ""; // 'arg0, arg1, arg2, ... , argN'
var argsListWired = ""; // 'arg0Wired, ..., argNWired'