I have a JS function like this,

function foo(functionName){ 
  console.log(typeof functionName);
}

My emscripten code looks like this, 


int call() {
emscripten::val Global = emscripten::val::global("window");
emscripten::val FunctionName = emscripten::val::global("window")["zoo"];
emscripten::val GetType = Global.call<emscripten::val>("foo", FunctionName);
};



However, the type that emscripten pass to Function foo is an Object not a 
reference to function

Question maybe vague. I somehow need to pass the right type. 

I tested this in Pure JS and it can differ functions and objects easily. 






-- 
You received this message because you are subscribed to the Google Groups 
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/emscripten-discuss/c93cecb6-22c4-4063-b26e-84810be66dff%40googlegroups.com.

Reply via email to