es6-shim
es6-shim copied to clipboard
ECMAScript 6 compatibility shims for legacy JS engines
IE10's DataView does not appear to be ES6 compliant. It's listed as being compatible on MDN. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView/byteOffset ``` try { console.log(DataView.prototype.buffer); } catch (e) { console.log(e); } try { console.log(DataView.prototype.byteLength);...
Similar to the DataView issue. https://github.com/paulmillr/es6-shim/issues/385 Listed as compatible on MDN https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer ``` try { console.log(ArrayBuffer.prototype.byteLength); } catch (e) { console.log(e); } var a = Object.getPrototypeOf(new ArrayBuffer(4)); console.log(a); var x...
Even when overwriting native `Map` that doesn't comply with the spec, we should use the native `Map` internally rather than our O(n) slow path for object keys.
Currently, if there's no `.catch` errors will vanish mysteriously. Native promises in chrome 41.0.2249.0 (current canary) will print a message about unhandled promise errors:  but if the es6-shim is...
It seems like Opera 12.15 has `RegExp.input`, but it's always `undefined`, so the test for it is failing. To fix this issue, either a) we need to discover how to...
I noticed that this shim uses a single regex, while es5-shim uses two, and although I know the es5-shim project didn't want to get into "[performance golfing](https://github.com/es-shims/es5-shim/issues/126)" toward further optimizing...
Originally part of #341. ``` js var c = 0; [].map.call({get length(){c++;return 0}}, isNaN); c; // => 2, should be 1 var O = {length: Math.pow(2, 32) + 1}; O[Math.pow(2,...
We need to create an `es6-sham` file. Anything that doesn't 100% match the spec in either an ES3/shimmed ES5, or true ES5 environment does _not_ belong in `es6-shim` and should...
Would be really nice to have lodash-like custom builds, I guess. Some people need only 1-3 functions from here.