exports.constructor = function() {
return new Date();
}
like the example modules do.
Last time I tried optimization from WebIDE, it didn't work. Try turning off minification for now. I was asked to provide simplified code that would make it fail, but I've been super busy lately, and haven't had any time to fiddle with that and cut the code that caused it to a smaller size than "my whole project"
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.
exports.constructor=Date;
I've always done:
like the example modules do.
Last time I tried optimization from WebIDE, it didn't work. Try turning off minification for now. I was asked to provide simplified code that would make it fail, but I've been super busy lately, and haven't had any time to fiddle with that and cut the code that caused it to a smaller size than "my whole project"