Jump to content

ES6 everywhere yet or close enough?


JCPalmer
 Share

Recommended Posts

I am working on another code generating tool, not Tower of Babel, and was wondering what would the implications of using ES6 classes instead of this garbage?

var __extends = (this && this.__extends) || (function () {
            var extendStatics = Object.setPrototypeOf ||
                ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
                function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
            return function (d, b) {
                extendStatics(d, b);
                function __() { this.constructor = d; }
                d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
            };
        })();

I remember someone referenced a site like "workswhere", which lists how things are currently on different platforms, but cannot remember the name.

Link to comment
Share on other sites

That's the one.  ES6 has some holdouts (IE, Opera Mini, Android Browser 4.4 & 4.4.4).  Looks like  I also need to check the latest Crosswalk is using "Chrome for Android".

If you also check for WebGL presents, the only one that has WebGL but not ES6 is IE.  Given how long it took for Windows XP to die,  I guess ES6 will never be a reality.

Link to comment
Share on other sites

I think https://kangax.github.io/compat-table/es6/ is pretty good for a birds-eye view. I've been tempted to go with ES6 myself, but IE11 has basically no support, and according to MS, it never will. Edge has excellent support, however. It's only taken Microsoft two decades to get off their high-horse and finally put some effort into supporting standards that they don't own. Give it a couple more years, though by that time, MS will probably be dragging their heels on ES7.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...