Ahh - I think I'd added getOwnPropertyDescriptor possibly to enable some of the test262 tests to work. defineProperty is something I've been meaning to add (but not with high priority), but support will never be perfect as Espruino doesn't internally store some flags (enumerable/writable) on variables. It doesn't actually do getters/setters (yet) either.
While you might use these functions for extending the language, I'd be surprised if that kind of stuff got used when actually 'doing stuff' with the microcontroller - hence it hasn't really taken priority.
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.
Ahh - I think I'd added
getOwnPropertyDescriptor
possibly to enable some of the test262 tests to work. defineProperty is something I've been meaning to add (but not with high priority), but support will never be perfect as Espruino doesn't internally store some flags (enumerable/writable) on variables. It doesn't actually do getters/setters (yet) either.While you might use these functions for extending the language, I'd be surprised if that kind of stuff got used when actually 'doing stuff' with the microcontroller - hence it hasn't really taken priority.