I wish to assign some frequently used JS functions to global 'val' 
variables:
*#include <emscripten>*
*#include <emscripten/val.h>*

*val log;*
*int main(){*
*    log = val::global("console")["log"];*
*}*

But faced this error:

*fatal error: call to deleted constructor of 'emscripten::val'val log;*

All other types are fine to be globals.

-- 
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/cb2ea530-7b3c-4e44-b2df-bfbf828f3faen%40googlegroups.com.

Reply via email to