I'm actually just trying to be node.js compatible... Can you export functions that way in node.js?
I think the issue right now is that the implementation keeps track of the original exports object, and returns that. However if you overwrite it with something else it may not notice. That could probably be changed though.
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.
I'm actually just trying to be node.js compatible... Can you export functions that way in node.js?
I think the issue right now is that the implementation keeps track of the original
exports
object, and returns that. However if you overwrite it with something else it may not notice. That could probably be changed though.