The error is generated here: https://github.com/espruino/Espruino/blob/2485bac1862c111a66acf077803bb49c3bc8a15c/src/jsvar.c#L870
Seems like it tries to dump a jsVar into a string buffer but fails as it iterates beyond the reported length of the string buffer.
EDIT: I do not get the error when running locally, though I've changed safeGetTime to simply return a number or an object literal. Both works.
safeGetTime
@alexanderbrevig 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.
The error is generated here: https://github.com/espruino/Espruino/blob/2485bac1862c111a66acf077803bb49c3bc8a15c/src/jsvar.c#L870
Seems like it tries to dump a jsVar into a string buffer but fails as it iterates beyond the reported length of the string buffer.
EDIT: I do not get the error when running locally, though I've changed
safeGetTime
to simply return a number or an object literal. Both works.