instanceof(global) is undefined rather than "global" (as on native)
YellowAfterlife opened this issue · 2 comments
YellowAfterlife commented
Snippet:
// Script assets have changed for v2.3.0 see
// https://help.yoyogames.com/hc/en-us/articles/360005277377 for more information
show_debug_message("instanceof={0} typeof={1}", instanceof(self), typeof(self));
Windows:
instanceof=global typeof=struct
HTML5:
instanceof=undefined typeof=struct
Adding
this.__type = "global";
to yyGameGlobals
constructor works.
rwkay commented
if you give us a pull request I will accept it...
yoyo-danielc commented
Fixed by #71.