You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As per:
[global is used in Node.js. Consider using the identical globalThis as it was introduced in the ECMAScript spec.](https://www.espruino.com/ReferenceBANGLEJS2#l__global_global)
If we decide it's worth merging this we should probably bump versions of
the apps as well?
});\n`;// E.getErrorFlags() -> clear flags so we get called next time
75
75
// stop users doing bad things!
76
-
if(global.save)boot+=`global.save = function() { throw new Error("You can't use save() on Bangle.js without overwriting the bootloader!"); }\n`;
76
+
if(globalThis.save)boot+=`globalThis.save = function() { throw new Error("You can't use save() on Bangle.js without overwriting the bootloader!"); }\n`;
0 commit comments