--
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 emscripten-disc...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to emscripten-discuss+unsub...@googlegroups.com.
uint32_t objID = ++globalID; val someJSObject; val::global("MyObjectTracker")[objID] = someJSObject; EM_ASM_INT({ var objToUse = MyObjectTracker[$0]; }, objID);
uint32_t objID = 123;
val img = val::global("Image").new_();
val::global("MyObjectTracker")[objID] = img; <-- boom!
The error is:
Exception: TypeError: undefined is not an object (evaluating '__emval_register') error:undefined
I have definitely declared a global Object named MyObjectTracker in my javascript (in the shell file).