The IDE shows correct syntax check in right-hand editor pane.
On immediate send to device, Uncaught ReferenceError: "testUR" is not defined
despite the fact I just created the function definition. Observing the 'this' contents confirms this
1v99 (c) 2018 G.Williams
>Uncaught ReferenceError: "testUR" is not defined
at line 1 col 11
exports = testUR;
^
=undefined
>this
={
"E": function () { [native code] },
"exports": { },
"testLED": function (pin) { ... },
"ReferenceError": function () { [native code] },
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.
Sat 2018.09.08
I am attempting to test a module function between
var exports={};
statements.The IDE shows correct syntax check in right-hand editor pane.
On immediate send to device, Uncaught ReferenceError: "testUR" is not defined
despite the fact I just created the function definition. Observing the 'this' contents confirms this
Ideas anyone?