JCPalmer Posted August 21, 2017 Share Posted August 21, 2017 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. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted August 21, 2017 Share Posted August 21, 2017 I guess it was caniuse.com JCPalmer 1 Quote Link to comment Share on other sites More sharing options...
JCPalmer Posted August 21, 2017 Author Share Posted August 21, 2017 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. Quote Link to comment Share on other sites More sharing options...
FunFetched Posted August 21, 2017 Share Posted August 21, 2017 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.