You are reading a single comment by @Gordon and its replies. Click here to read the full conversation.
  • 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();
            };
        })();
    }
    
About

Avatar for Gordon @Gordon started