I haven't tested this and am not at my development PC but one item of clarification. Is the above snippet being uploaded from the R-Hand editor side of the WebIDE?
Should this be taken literally as actual error text?
Persusing the source will reveal what var objects are created as the module is fetched/parsed. Maybe a conditional test against 'undefined' or what might be expected as those are initialized, and/or throw your own user defined error to catch?
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 2020.09.26
Hello @user114366,
I haven't tested this and am not at my development PC but one item of clarification. Is the above snippet being uploaded from the R-Hand editor side of the WebIDE?
link from:
Should this be taken literally as actual error text?
Persusing the source will reveal what var objects are created as the module is fetched/parsed. Maybe a conditional test against 'undefined' or what might be expected as those are initialized, and/or throw your own user defined error to catch?
The module source: (link from third line: http://www.espruino.com/SX127x)