No, it's not on the roadmap and afaik there's no technical reason why it's not implemented.
The main reason why it's not in there is that you appear to be the first person who has wanted to use it. Is there any reason that you can't use the 'polyfill' Mozilla provides for older JS implementations that don't support it (minus the exception stuff) - it actually just do what it's doing in your code, instead of doing Object.create?
if (typeof Object.create != 'function') {
(function () {
var F = function () {};
Object.create = function (o) {
F.prototype = o;
return new F();
};
})();
}
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.
No, it's not on the roadmap and afaik there's no technical reason why it's not implemented.
The main reason why it's not in there is that you appear to be the first person who has wanted to use it. Is there any reason that you can't use the 'polyfill' Mozilla provides for older JS implementations that don't support it (minus the exception stuff) - it actually just do what it's doing in your code, instead of doing Object.create?