// minor nitpick...
function f(scope) { scope.someFunc(); } ... f(window);
// works with window = this;, but not with replace window.
@Manxome started
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
// minor nitpick...
function f(scope) { scope.someFunc(); }
...
f(window);
// works with window = this;, but not with replace window.