Espruino (you?) is(are) are not so happy with it - understandably:
Uncaught Error: Unable to assign value to non-reference Function
at line 6 col 2
};
^
If require() has the same issue, could you 'fix' that too? ...I'm milling around the require() as from require.js (requireJS.org - as it works in the browser) to make AMDs available on Espruino (via communication connection). Detection of alternative implementation is by number of arguments > 1).
If setWatch() cannot or should not be modified to become assignable, add a property to the options, add a property to the setWatch / clearWatch function that allows alternative implementations... for example:
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.
And here it is this ... (from post #7):
Espruino (you?) is(are) are not so happy with it - understandably:
If
require()
has the same issue, could you 'fix' that too? ...I'm milling around therequire()
as fromrequire.js
(requireJS.org - as it works in the browser) to make AMDs available on Espruino (via communication connection). Detection of alternative implementation is by number of arguments > 1).If
setWatch()
cannot or should not be modified to become assignable, add a property to the options, add a property to the setWatch / clearWatch function that allows alternative implementations... for example: