From ab92628889374b727c9a792c70c51a7f527e3af7 Mon Sep 17 00:00:00 2001 From: Denis Pushkarev Date: Mon, 11 Jan 2016 14:04:22 +0600 Subject: [PATCH] 2.0.3 --- CHANGELOG.md | 6 +- README.md | 88 +- bower.json | 2 +- build/core-js-builder/package.json | 4 +- client/core.js | 23 +- client/core.min.js | 8 +- client/core.min.js.map | 2 +- client/library.js | 23 +- client/library.min.js | 6 +- client/library.min.js.map | 2 +- client/shim.js | 23 +- client/shim.min.js | 8 +- client/shim.min.js.map | 2 +- library/modules/_core.js | 2 +- modules/_core.js | 2 +- package.json | 2 +- tests/tests-library.js | 6603 ---------------------------- 17 files changed, 108 insertions(+), 6698 deletions(-) delete mode 100644 tests/tests-library.js diff --git a/CHANGELOG.md b/CHANGELOG.md index 6077105c2c19..e30a46592d24 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,10 @@ ## Changelog +##### 2.0.3 - 2016.01.11 +- Added fallback for V8 ~ Chrome 49 `Promise` subclassing bug causes unhandled rejection on feature detection, [#159](https://github.com/zloirock/core-js/issues/159) +- Added fix for very specific environments with global `window === null` + ##### 2.0.2 - 2016.01.04 -- Temporarily removed `length` validation from `Uint8Array` constructor wrapper. Reason - [bug in `ws` module](https://github.com/websockets/ws/pull/645) (-> `socket.io`) which passes to `Buffer` constructor -> `Uint8Array` float and uses [the `V8` bug](https://code.google.com/p/v8/issues/detail?id=4552) for conversion to int (by the spec should be thrown an error). [It creates problems for many people.](https://github.com/karma-runner/karma/issues/1768) I hope, it will be returned after fixing this bug in `V8`. +- Temporarily removed `length` validation from `Uint8Array` constructor wrapper. Reason - [bug in `ws` module](https://github.com/websockets/ws/pull/645) (-> `socket.io`) which passes to `Buffer` constructor -> `Uint8Array` float and uses [the `V8` bug](https://code.google.com/p/v8/issues/detail?id=4552) for conversion to int (by the spec should be thrown an error). [It creates problems for many people.](https://github.com/karma-runner/karma/issues/1768) I hope, it will be returned after fixing this bug in `V8`. ##### 2.0.1 - 2015.12.31 - forced usage `Promise.resolve` polyfill in the `library` version for correct work with wrapper diff --git a/README.md b/README.md index 8c2513d53382..8ffd944b5127 100644 --- a/README.md +++ b/README.md @@ -75,9 +75,9 @@ require('core-js/shim'); ``` If you need complete build for browser, use builds from `core-js/client` path: -* [default](https://raw.githack.com/zloirock/core-js/v2.0.2/client/core.min.js): Includes all features, standard and non-standard. -* [as a library](https://raw.githack.com/zloirock/core-js/v2.0.2/client/library.min.js): Like "default", but does not pollute the global namespace (see [2nd example at the top](#core-js)). -* [shim only](https://raw.githack.com/zloirock/core-js/v2.0.2/client/shim.min.js): Only includes the standard methods. +* [default](https://raw.githack.com/zloirock/core-js/v2.0.3/client/core.min.js): Includes all features, standard and non-standard. +* [as a library](https://raw.githack.com/zloirock/core-js/v2.0.3/client/library.min.js): Like "default", but does not pollute the global namespace (see [2nd example at the top](#core-js)). +* [shim only](https://raw.githack.com/zloirock/core-js/v2.0.3/client/shim.min.js): Only includes the standard methods. Warning: if you use `core-js` with the extension of native objects, require all needed `core-js` modules at the beginning of entry point of your application, otherwise, conflicts may occur. @@ -172,7 +172,7 @@ core-js(/library) <- all features core-js(/library)/shim <- only polyfills ``` ### ECMAScript 5 -Module [`es5`](https://github.com/zloirock/core-js/blob/v2.0.2/modules/es5.js), nothing new - without examples. +Module [`es5`](https://github.com/zloirock/core-js/blob/v2.0.3/modules/es5.js), nothing new - without examples. ```js Object .create(proto | null, descriptors?) -> object @@ -224,9 +224,9 @@ core-js(/library)/es5 core-js(/library)/es6 ``` #### ECMAScript 6: Object -Modules [`es6.object.assign`](https://github.com/zloirock/core-js/blob/v2.0.2/modules/es6.object.assign.js), [`es6.object.is`](https://github.com/zloirock/core-js/blob/v2.0.2/modules/es6.object.is.js), [`es6.object.set-prototype-of`](https://github.com/zloirock/core-js/blob/v2.0.2/modules/es6.object.set-prototype-of.js) and [`es6.object.to-string`](https://github.com/zloirock/core-js/blob/v2.0.2/modules/es6.object.to-string.js). +Modules [`es6.object.assign`](https://github.com/zloirock/core-js/blob/v2.0.3/modules/es6.object.assign.js), [`es6.object.is`](https://github.com/zloirock/core-js/blob/v2.0.3/modules/es6.object.is.js), [`es6.object.set-prototype-of`](https://github.com/zloirock/core-js/blob/v2.0.3/modules/es6.object.set-prototype-of.js) and [`es6.object.to-string`](https://github.com/zloirock/core-js/blob/v2.0.3/modules/es6.object.to-string.js). -In ES6 most `Object` static methods should work with primitives. Modules [`es6.object.freeze`](https://github.com/zloirock/core-js/blob/v2.0.2/modules/es6.object.freeze.js), [`es6.object.seal`](https://github.com/zloirock/core-js/blob/v2.0.2/modules/es6.object.seal.js), [`es6.object.prevent-extensions`](https://github.com/zloirock/core-js/blob/v2.0.2/modules/es6.object.prevent-extensions.js), [`es6.object.is-frozen`](https://github.com/zloirock/core-js/blob/v2.0.2/modules/es6.object.is-frozen.js), [`es6.object.is-sealed`](https://github.com/zloirock/core-js/blob/v2.0.2/modules/es6.object.is-sealed.js), [`es6.object.is-extensible`](https://github.com/zloirock/core-js/blob/v2.0.2/modules/es6.object.is-extensible.js), [`es6.object.get-own-property-descriptor`](https://github.com/zloirock/core-js/blob/v2.0.2/modules/es6.object.get-own-property-descriptor.js), [`es6.object.get-prototype-of`](https://github.com/zloirock/core-js/blob/v2.0.2/modules/es6.object.get-prototype-of.js), [`es6.object.keys`](https://github.com/zloirock/core-js/blob/v2.0.2/modules/es6.object.keys.js), [`es6.object.get-own-property-names`](https://github.com/zloirock/core-js/blob/v2.0.2/modules/es6.object.get-own-property-names.js). +In ES6 most `Object` static methods should work with primitives. Modules [`es6.object.freeze`](https://github.com/zloirock/core-js/blob/v2.0.3/modules/es6.object.freeze.js), [`es6.object.seal`](https://github.com/zloirock/core-js/blob/v2.0.3/modules/es6.object.seal.js), [`es6.object.prevent-extensions`](https://github.com/zloirock/core-js/blob/v2.0.3/modules/es6.object.prevent-extensions.js), [`es6.object.is-frozen`](https://github.com/zloirock/core-js/blob/v2.0.3/modules/es6.object.is-frozen.js), [`es6.object.is-sealed`](https://github.com/zloirock/core-js/blob/v2.0.3/modules/es6.object.is-sealed.js), [`es6.object.is-extensible`](https://github.com/zloirock/core-js/blob/v2.0.3/modules/es6.object.is-extensible.js), [`es6.object.get-own-property-descriptor`](https://github.com/zloirock/core-js/blob/v2.0.3/modules/es6.object.get-own-property-descriptor.js), [`es6.object.get-prototype-of`](https://github.com/zloirock/core-js/blob/v2.0.3/modules/es6.object.get-prototype-of.js), [`es6.object.keys`](https://github.com/zloirock/core-js/blob/v2.0.3/modules/es6.object.keys.js), [`es6.object.get-own-property-names`](https://github.com/zloirock/core-js/blob/v2.0.3/modules/es6.object.get-own-property-names.js). ```js Object .assign(target, ...src) -> target @@ -288,7 +288,7 @@ Object.keys('qwe'); // => ['0', '1', '2'] Object.getPrototypeOf('qwe') === String.prototype; // => true ``` #### ECMAScript 6: Function -Modules [`es6.function.name`](https://github.com/zloirock/core-js/blob/v2.0.2/modules/es6.function.name.js) and [`es6.function.has-instance`](https://github.com/zloirock/core-js/blob/v2.0.2/modules/es6.function.has-instance.js). +Modules [`es6.function.name`](https://github.com/zloirock/core-js/blob/v2.0.3/modules/es6.function.name.js) and [`es6.function.has-instance`](https://github.com/zloirock/core-js/blob/v2.0.3/modules/es6.function.has-instance.js). ```js Function #name -> string (IE9+) @@ -305,7 +305,7 @@ core-js/fn/function/has-instance (function foo(){}).name // => 'foo' ``` #### ECMAScript 6: Array -Modules [`es6.array.from`](https://github.com/zloirock/core-js/blob/v2.0.2/modules/es6.array.from.js), [`es6.array.of`](https://github.com/zloirock/core-js/blob/v2.0.2/modules/es6.array.of.js), [`es6.array.copy-within`](https://github.com/zloirock/core-js/blob/v2.0.2/modules/es6.array.copy-within.js), [`es6.array.fill`](https://github.com/zloirock/core-js/blob/v2.0.2/modules/es6.array.fill.js), [`es6.array.find`](https://github.com/zloirock/core-js/blob/v2.0.2/modules/es6.array.find.js), [`es6.array.find-index`](https://github.com/zloirock/core-js/blob/v2.0.2/modules/es6.array.find-index.js) and [`es6.array.iterator`](https://github.com/zloirock/core-js/blob/v2.0.2/modules/es6.array.iterator.js). +Modules [`es6.array.from`](https://github.com/zloirock/core-js/blob/v2.0.3/modules/es6.array.from.js), [`es6.array.of`](https://github.com/zloirock/core-js/blob/v2.0.3/modules/es6.array.of.js), [`es6.array.copy-within`](https://github.com/zloirock/core-js/blob/v2.0.3/modules/es6.array.copy-within.js), [`es6.array.fill`](https://github.com/zloirock/core-js/blob/v2.0.3/modules/es6.array.fill.js), [`es6.array.find`](https://github.com/zloirock/core-js/blob/v2.0.3/modules/es6.array.find.js), [`es6.array.find-index`](https://github.com/zloirock/core-js/blob/v2.0.3/modules/es6.array.find-index.js) and [`es6.array.iterator`](https://github.com/zloirock/core-js/blob/v2.0.3/modules/es6.array.iterator.js). ```js Array .from(iterable | array-like, mapFn(val, index)?, that) -> array @@ -379,9 +379,9 @@ Array(5).fill(42); // => [42, 42, 42, 42, 42] [1, 2, 3, 4, 5].copyWithin(0, 3); // => [4, 5, 3, 4, 5] ``` #### ECMAScript 6: String -Modules [`es6.string.from-code-point`](https://github.com/zloirock/core-js/blob/v2.0.2/modules/es6.string.from-code-point.js), [`es6.string.raw`](https://github.com/zloirock/core-js/blob/v2.0.2/modules/es6.string.raw.js), [`es6.string.iterator`](https://github.com/zloirock/core-js/blob/v2.0.2/modules/es6.string.iterator.js), [`es6.string.code-point-at`](https://github.com/zloirock/core-js/blob/v2.0.2/modules/es6.string.code-point-at.js), [`es6.string.ends-with`](https://github.com/zloirock/core-js/blob/v2.0.2/modules/es6.string.ends-with.js), [`es6.string.includes`](https://github.com/zloirock/core-js/blob/v2.0.2/modules/es6.string.includes.js), [`es6.string.repeat`](https://github.com/zloirock/core-js/blob/v2.0.2/modules/es6.string.repeat.js), [`es6.string.starts-with`](https://github.com/zloirock/core-js/blob/v2.0.2/modules/es6.string.starts-with.js) and [`es6.string.trim`](https://github.com/zloirock/core-js/blob/v2.0.2/modules/es6.string.trim.js). +Modules [`es6.string.from-code-point`](https://github.com/zloirock/core-js/blob/v2.0.3/modules/es6.string.from-code-point.js), [`es6.string.raw`](https://github.com/zloirock/core-js/blob/v2.0.3/modules/es6.string.raw.js), [`es6.string.iterator`](https://github.com/zloirock/core-js/blob/v2.0.3/modules/es6.string.iterator.js), [`es6.string.code-point-at`](https://github.com/zloirock/core-js/blob/v2.0.3/modules/es6.string.code-point-at.js), [`es6.string.ends-with`](https://github.com/zloirock/core-js/blob/v2.0.3/modules/es6.string.ends-with.js), [`es6.string.includes`](https://github.com/zloirock/core-js/blob/v2.0.3/modules/es6.string.includes.js), [`es6.string.repeat`](https://github.com/zloirock/core-js/blob/v2.0.3/modules/es6.string.repeat.js), [`es6.string.starts-with`](https://github.com/zloirock/core-js/blob/v2.0.3/modules/es6.string.starts-with.js) and [`es6.string.trim`](https://github.com/zloirock/core-js/blob/v2.0.3/modules/es6.string.trim.js). -Annex B HTML methods. Ugly, but it's also the part of the spec. Modules [`es6.string.anchor`](https://github.com/zloirock/core-js/blob/v2.0.2/modules/es6.string.anchor.js), [`es6.string.big`](https://github.com/zloirock/core-js/blob/v2.0.2/modules/es6.string.big.js), [`es6.string.blink`](https://github.com/zloirock/core-js/blob/v2.0.2/modules/es6.string.blink.js), [`es6.string.bold`](https://github.com/zloirock/core-js/blob/v2.0.2/modules/es6.string.bold.js), [`es6.string.fixed`](https://github.com/zloirock/core-js/blob/v2.0.2/modules/es6.string.fixed.js), [`es6.string.fontcolor`](https://github.com/zloirock/core-js/blob/v2.0.2/modules/es6.string.fontcolor.js), [`es6.string.fontsize`](https://github.com/zloirock/core-js/blob/v2.0.2/modules/es6.string.fontsize.js), [`es6.string.italics`](https://github.com/zloirock/core-js/blob/v2.0.2/modules/es6.string.italics.js), [`es6.string.link`](https://github.com/zloirock/core-js/blob/v2.0.2/modules/es6.string.link.js), [`es6.string.small`](https://github.com/zloirock/core-js/blob/v2.0.2/modules/es6.string.small.js), [`es6.string.strike`](https://github.com/zloirock/core-js/blob/v2.0.2/modules/es6.string.strike.js), [`es6.string.sub`](https://github.com/zloirock/core-js/blob/v2.0.2/modules/es6.string.sub.js) and [`es6.string.sup`](https://github.com/zloirock/core-js/blob/v2.0.2/modules/es6.string.sup.js). +Annex B HTML methods. Ugly, but it's also the part of the spec. Modules [`es6.string.anchor`](https://github.com/zloirock/core-js/blob/v2.0.3/modules/es6.string.anchor.js), [`es6.string.big`](https://github.com/zloirock/core-js/blob/v2.0.3/modules/es6.string.big.js), [`es6.string.blink`](https://github.com/zloirock/core-js/blob/v2.0.3/modules/es6.string.blink.js), [`es6.string.bold`](https://github.com/zloirock/core-js/blob/v2.0.3/modules/es6.string.bold.js), [`es6.string.fixed`](https://github.com/zloirock/core-js/blob/v2.0.3/modules/es6.string.fixed.js), [`es6.string.fontcolor`](https://github.com/zloirock/core-js/blob/v2.0.3/modules/es6.string.fontcolor.js), [`es6.string.fontsize`](https://github.com/zloirock/core-js/blob/v2.0.3/modules/es6.string.fontsize.js), [`es6.string.italics`](https://github.com/zloirock/core-js/blob/v2.0.3/modules/es6.string.italics.js), [`es6.string.link`](https://github.com/zloirock/core-js/blob/v2.0.3/modules/es6.string.link.js), [`es6.string.small`](https://github.com/zloirock/core-js/blob/v2.0.3/modules/es6.string.small.js), [`es6.string.strike`](https://github.com/zloirock/core-js/blob/v2.0.3/modules/es6.string.strike.js), [`es6.string.sub`](https://github.com/zloirock/core-js/blob/v2.0.3/modules/es6.string.sub.js) and [`es6.string.sup`](https://github.com/zloirock/core-js/blob/v2.0.3/modules/es6.string.sup.js). ```js String .fromCodePoint(...codePoints) -> str @@ -480,9 +480,9 @@ String.raw({raw: 'test'}, 0, 1, 2); // => 't0e1s2t' 'baz'.link('http://example.com'); // => 'baz' ``` #### ECMAScript 6: RegExp -Modules [`es6.regexp.constructor`](https://github.com/zloirock/core-js/blob/v2.0.2/modules/es6.regexp.constructor.js) and [`es6.regexp.flags`](https://github.com/zloirock/core-js/blob/v2.0.2/modules/es6.regexp.flags.js). +Modules [`es6.regexp.constructor`](https://github.com/zloirock/core-js/blob/v2.0.3/modules/es6.regexp.constructor.js) and [`es6.regexp.flags`](https://github.com/zloirock/core-js/blob/v2.0.3/modules/es6.regexp.flags.js). -Support well-known [symbols](#ecmascript-6-symbol) `@@match`, `@@replace`, `@@search` and `@@split`, modules [`es6.regexp.match`](https://github.com/zloirock/core-js/blob/v2.0.2/modules/es6.regexp.match.js), [`es6.regexp.replace`](https://github.com/zloirock/core-js/blob/v2.0.2/modules/es6.regexp.replace.js), [`es6.regexp.search`](https://github.com/zloirock/core-js/blob/v2.0.2/modules/es6.regexp.search.js) and [`es6.regexp.split`](https://github.com/zloirock/core-js/blob/v2.0.2/modules/es6.regexp.split.js). +Support well-known [symbols](#ecmascript-6-symbol) `@@match`, `@@replace`, `@@search` and `@@split`, modules [`es6.regexp.match`](https://github.com/zloirock/core-js/blob/v2.0.3/modules/es6.regexp.match.js), [`es6.regexp.replace`](https://github.com/zloirock/core-js/blob/v2.0.3/modules/es6.regexp.replace.js), [`es6.regexp.search`](https://github.com/zloirock/core-js/blob/v2.0.3/modules/es6.regexp.search.js) and [`es6.regexp.split`](https://github.com/zloirock/core-js/blob/v2.0.3/modules/es6.regexp.split.js). ``` [new] RegExp(pattern, flags?) -> regexp, ES6 fix: can alter flags (IE9+) #flags -> str (IE9+) @@ -519,12 +519,12 @@ RegExp(/./g, 'm'); // => /./m 'foo'.split({[Symbol.split]: _ => 4}); // => 4 ``` #### ECMAScript 6: Number -Module [`es6.number.constructor`](https://github.com/zloirock/core-js/blob/v2.0.2/modules/es6.number.constructor.js). `Number` constructor support binary and octal literals, [*example*](http://goo.gl/jRd6b3): +Module [`es6.number.constructor`](https://github.com/zloirock/core-js/blob/v2.0.3/modules/es6.number.constructor.js). `Number` constructor support binary and octal literals, [*example*](http://goo.gl/jRd6b3): ```js Number('0b1010101'); // => 85 Number('0o7654321'); // => 2054353 ``` -`Number`: modules [`es6.number.epsilon`](https://github.com/zloirock/core-js/blob/v2.0.2/modules/es6.number.epsilon.js), [`es6.number.is-finite`](https://github.com/zloirock/core-js/blob/v2.0.2/modules/es6.number.is-finite.js), [`es6.number.is-integer`](https://github.com/zloirock/core-js/blob/v2.0.2/modules/es6.number.is-integer.js), [`es6.number.is-nan`](https://github.com/zloirock/core-js/blob/v2.0.2/modules/es6.number.is-nan.js), [`es6.number.is-safe-integer`](https://github.com/zloirock/core-js/blob/v2.0.2/modules/es6.number.is-safe-integer.js), [`es6.number.max-safe-integer`](https://github.com/zloirock/core-js/blob/v2.0.2/modules/es6.number.max-safe-integer.js), [`es6.number.min-safe-integer`](https://github.com/zloirock/core-js/blob/v2.0.2/modules/es6.number.min-safe-integer.js), [`es6.number.parse-float`](https://github.com/zloirock/core-js/blob/v2.0.2/modules/es6.number.parse-float.js), [`es6.number.parse-int`](https://github.com/zloirock/core-js/blob/v2.0.2/modules/es6.number.parse-int.js). +`Number`: modules [`es6.number.epsilon`](https://github.com/zloirock/core-js/blob/v2.0.3/modules/es6.number.epsilon.js), [`es6.number.is-finite`](https://github.com/zloirock/core-js/blob/v2.0.3/modules/es6.number.is-finite.js), [`es6.number.is-integer`](https://github.com/zloirock/core-js/blob/v2.0.3/modules/es6.number.is-integer.js), [`es6.number.is-nan`](https://github.com/zloirock/core-js/blob/v2.0.3/modules/es6.number.is-nan.js), [`es6.number.is-safe-integer`](https://github.com/zloirock/core-js/blob/v2.0.3/modules/es6.number.is-safe-integer.js), [`es6.number.max-safe-integer`](https://github.com/zloirock/core-js/blob/v2.0.3/modules/es6.number.max-safe-integer.js), [`es6.number.min-safe-integer`](https://github.com/zloirock/core-js/blob/v2.0.3/modules/es6.number.min-safe-integer.js), [`es6.number.parse-float`](https://github.com/zloirock/core-js/blob/v2.0.3/modules/es6.number.parse-float.js), [`es6.number.parse-int`](https://github.com/zloirock/core-js/blob/v2.0.3/modules/es6.number.parse-int.js). ```js [new] Number(var) -> number | number object .isFinite(num) -> bool @@ -552,7 +552,7 @@ core-js(/library)/fn/number/min-safe-integer core-js/es6/number/constructor ``` #### ECMAScript 6: Math -`Math`: modules [`es6.math.acosh`](https://github.com/zloirock/core-js/blob/v2.0.2/modules/es6.math.acosh.js), [`es6.math.asinh`](https://github.com/zloirock/core-js/blob/v2.0.2/modules/es6.math.asinh.js), [`es6.math.atanh`](https://github.com/zloirock/core-js/blob/v2.0.2/modules/es6.math.atanh.js), [`es6.math.cbrt`](https://github.com/zloirock/core-js/blob/v2.0.2/modules/es6.math.cbrt.js), [`es6.math.clz32`](https://github.com/zloirock/core-js/blob/v2.0.2/modules/es6.math.clz32.js), [`es6.math.cosh`](https://github.com/zloirock/core-js/blob/v2.0.2/modules/es6.math.cosh.js), [`es6.math.expm1`](https://github.com/zloirock/core-js/blob/v2.0.2/modules/es6.math.expm1.js), [`es6.math.fround`](https://github.com/zloirock/core-js/blob/v2.0.2/modules/es6.math.fround.js), [`es6.math.hypot`](https://github.com/zloirock/core-js/blob/v2.0.2/modules/es6.math.hypot.js), [`es6.math.imul`](https://github.com/zloirock/core-js/blob/v2.0.2/modules/es6.math.imul.js), [`es6.math.log10`](https://github.com/zloirock/core-js/blob/v2.0.2/modules/es6.math.log10.js), [`es6.math.log1p`](https://github.com/zloirock/core-js/blob/v2.0.2/modules/es6.math.log1p.js), [`es6.math.log2`](https://github.com/zloirock/core-js/blob/v2.0.2/modules/es6.math.log2.js), [`es6.math.sign`](https://github.com/zloirock/core-js/blob/v2.0.2/modules/es6.math.sign.js), [`es6.math.sinh`](https://github.com/zloirock/core-js/blob/v2.0.2/modules/es6.math.sinh.js), [`es6.math.tanh`](https://github.com/zloirock/core-js/blob/v2.0.2/modules/es6.math.tanh.js), [`es6.math.trunc`](https://github.com/zloirock/core-js/blob/v2.0.2/modules/es6.math.trunc.js). +`Math`: modules [`es6.math.acosh`](https://github.com/zloirock/core-js/blob/v2.0.3/modules/es6.math.acosh.js), [`es6.math.asinh`](https://github.com/zloirock/core-js/blob/v2.0.3/modules/es6.math.asinh.js), [`es6.math.atanh`](https://github.com/zloirock/core-js/blob/v2.0.3/modules/es6.math.atanh.js), [`es6.math.cbrt`](https://github.com/zloirock/core-js/blob/v2.0.3/modules/es6.math.cbrt.js), [`es6.math.clz32`](https://github.com/zloirock/core-js/blob/v2.0.3/modules/es6.math.clz32.js), [`es6.math.cosh`](https://github.com/zloirock/core-js/blob/v2.0.3/modules/es6.math.cosh.js), [`es6.math.expm1`](https://github.com/zloirock/core-js/blob/v2.0.3/modules/es6.math.expm1.js), [`es6.math.fround`](https://github.com/zloirock/core-js/blob/v2.0.3/modules/es6.math.fround.js), [`es6.math.hypot`](https://github.com/zloirock/core-js/blob/v2.0.3/modules/es6.math.hypot.js), [`es6.math.imul`](https://github.com/zloirock/core-js/blob/v2.0.3/modules/es6.math.imul.js), [`es6.math.log10`](https://github.com/zloirock/core-js/blob/v2.0.3/modules/es6.math.log10.js), [`es6.math.log1p`](https://github.com/zloirock/core-js/blob/v2.0.3/modules/es6.math.log1p.js), [`es6.math.log2`](https://github.com/zloirock/core-js/blob/v2.0.3/modules/es6.math.log2.js), [`es6.math.sign`](https://github.com/zloirock/core-js/blob/v2.0.3/modules/es6.math.sign.js), [`es6.math.sinh`](https://github.com/zloirock/core-js/blob/v2.0.3/modules/es6.math.sinh.js), [`es6.math.tanh`](https://github.com/zloirock/core-js/blob/v2.0.3/modules/es6.math.tanh.js), [`es6.math.trunc`](https://github.com/zloirock/core-js/blob/v2.0.3/modules/es6.math.trunc.js). ```js Math .acosh(num) -> num @@ -595,7 +595,7 @@ core-js(/library)/fn/math/tanh core-js(/library)/fn/math/trunc ``` #### ECMAScript 6: Date -Currently - only one little fix for `Date#toString`. Module [`es6.date.to-string`](https://github.com/zloirock/core-js/blob/v2.0.2/modules/es6.date.to-string.js): +Currently - only one little fix for `Date#toString`. Module [`es6.date.to-string`](https://github.com/zloirock/core-js/blob/v2.0.3/modules/es6.date.to-string.js): ```js Date #toString() -> str @@ -611,7 +611,7 @@ new Date(NaN).toString(); // => 'Invalid Date' ``` #### ECMAScript 6: Promise -Module [`es6.promise`](https://github.com/zloirock/core-js/blob/v2.0.2/modules/es6.promise.js). +Module [`es6.promise`](https://github.com/zloirock/core-js/blob/v2.0.3/modules/es6.promise.js). ```js new Promise(executor(resolve(var), reject(var))) -> promise #then(resolved(var), rejected(var)) -> promise @@ -734,7 +734,7 @@ setTimeout(() => p.catch(_ => _), 1e3); **Warning**: The problem here - we can't add it to native `Promise` implementations, but by idea `core-js` should use enough correct native implementation if it's available. Currently, most native implementations are buggy and `core-js` uses polyfill, but the situation will be changed. If someone wanna use this hook everywhere - he should delete `window.Promise` before inclusion `core-js`. #### ECMAScript 6: Symbol -Module [`es6.symbol`](https://github.com/zloirock/core-js/blob/v2.0.2/modules/es6.symbol.js). +Module [`es6.symbol`](https://github.com/zloirock/core-js/blob/v2.0.3/modules/es6.symbol.js). ```js Symbol(description?) -> symbol .hasInstance -> @@hasInstance @@ -845,7 +845,7 @@ for(var key in o2)console.log(key); // nothing #### ECMAScript 6: Collections `core-js` uses native collections in most case, just fixes methods / constructor, if it's required, and in old environment uses fast polyfill (O(1) lookup). #### Map -Module [`es6.map`](https://github.com/zloirock/core-js/blob/v2.0.2/modules/es6.map.js). +Module [`es6.map`](https://github.com/zloirock/core-js/blob/v2.0.3/modules/es6.map.js). ```js new Map(iterable (entries) ?) -> map #clear() -> void @@ -899,7 +899,7 @@ for(var [key, val] of map.entries()){ } ``` #### Set -Module [`es6.set`](https://github.com/zloirock/core-js/blob/v2.0.2/modules/es6.set.js). +Module [`es6.set`](https://github.com/zloirock/core-js/blob/v2.0.3/modules/es6.set.js). ```js new Set(iterable?) -> set #add(key) -> @ @@ -943,7 +943,7 @@ for(var [key, val] of set.entries()){ } ``` #### WeakMap -Module [`es6.weak-map`](https://github.com/zloirock/core-js/blob/v2.0.2/modules/es6.weak-map.js). +Module [`es6.weak-map`](https://github.com/zloirock/core-js/blob/v2.0.3/modules/es6.weak-map.js). ```js new WeakMap(iterable (entries) ?) -> weakmap #delete(key) -> bool @@ -987,7 +987,7 @@ console.log(person.getName()); // => 'Vasya' for(var key in person)console.log(key); // => only 'getName' ``` #### WeakSet -Module [`es6.weak-set`](https://github.com/zloirock/core-js/blob/v2.0.2/modules/es6.weak-set.js). +Module [`es6.weak-set`](https://github.com/zloirock/core-js/blob/v2.0.3/modules/es6.weak-set.js). ```js new WeakSet(iterable?) -> weakset #add(key) -> @ @@ -1019,7 +1019,7 @@ console.log(wset.has(b)); // => false #### ECMAScript 6: Typed Arrays Implementations and fixes `ArrayBuffer`, `DataView`, typed arrays constructors, static and prototype methods. Typed Arrays work only in environments with support descriptors (IE9+), `ArrayBuffer` and `DataView` should work anywhere. -Modules [`es6.typed.array-buffer`](https://github.com/zloirock/core-js/blob/v2.0.2/modules/es6.typed.array-buffer.js), [`es6.typed.data-view`](https://github.com/zloirock/core-js/blob/v2.0.2/modules/es6.typed.data-view.js), [`es6.typed.int8-array`](https://github.com/zloirock/core-js/blob/v2.0.2/modules/es6.typed.int8-array.js), [`es6.typed.uint8-array`](https://github.com/zloirock/core-js/blob/v2.0.2/modules/es6.typed.uint8-array.js), [`es6.typed.uint8-clamped-array`](https://github.com/zloirock/core-js/blob/v2.0.2/modules/es6.typed.uint8-clamped-array.js), [`es6.typed.int16-array`](https://github.com/zloirock/core-js/blob/v2.0.2/modules/es6.typed.int16-array.js), [`es6.typed.uint16-array`](https://github.com/zloirock/core-js/blob/v2.0.2/modules/es6.typed.uint16-array.js), [`es6.typed.int32-array`](https://github.com/zloirock/core-js/blob/v2.0.2/modules/es6.typed.int32-array.js), [`es6.typed.uint32-array`](https://github.com/zloirock/core-js/blob/v2.0.2/modules/es6.typed.uint32-array.js), [`es6.typed.float32-array`](https://github.com/zloirock/core-js/blob/v2.0.2/modules/es6.typed.float32-array.js) and [`es6.typed.float64-array`](https://github.com/zloirock/core-js/blob/v2.0.2/modules/es6.typed.float64-array.js). +Modules [`es6.typed.array-buffer`](https://github.com/zloirock/core-js/blob/v2.0.3/modules/es6.typed.array-buffer.js), [`es6.typed.data-view`](https://github.com/zloirock/core-js/blob/v2.0.3/modules/es6.typed.data-view.js), [`es6.typed.int8-array`](https://github.com/zloirock/core-js/blob/v2.0.3/modules/es6.typed.int8-array.js), [`es6.typed.uint8-array`](https://github.com/zloirock/core-js/blob/v2.0.3/modules/es6.typed.uint8-array.js), [`es6.typed.uint8-clamped-array`](https://github.com/zloirock/core-js/blob/v2.0.3/modules/es6.typed.uint8-clamped-array.js), [`es6.typed.int16-array`](https://github.com/zloirock/core-js/blob/v2.0.3/modules/es6.typed.int16-array.js), [`es6.typed.uint16-array`](https://github.com/zloirock/core-js/blob/v2.0.3/modules/es6.typed.uint16-array.js), [`es6.typed.int32-array`](https://github.com/zloirock/core-js/blob/v2.0.3/modules/es6.typed.int32-array.js), [`es6.typed.uint32-array`](https://github.com/zloirock/core-js/blob/v2.0.3/modules/es6.typed.uint32-array.js), [`es6.typed.float32-array`](https://github.com/zloirock/core-js/blob/v2.0.3/modules/es6.typed.float32-array.js) and [`es6.typed.float64-array`](https://github.com/zloirock/core-js/blob/v2.0.3/modules/es6.typed.float64-array.js). ```js new ArrayBuffer(length) -> buffer .isView(var) -> bool @@ -1153,7 +1153,7 @@ for(var [key, val] of typed.entries()){ * In the `library` version we can't pollute native prototypes, so prototype methods available as constructors static. #### ECMAScript 6: Reflect -Modules [`es6.reflect.apply`](https://github.com/zloirock/core-js/blob/v2.0.2/modules/es6.reflect.apply.js), [`es6.reflect.construct`](https://github.com/zloirock/core-js/blob/v2.0.2/modules/es6.reflect.construct.js), [`es6.reflect.define-property`](https://github.com/zloirock/core-js/blob/v2.0.2/modules/es6.reflect.define-property.js), [`es6.reflect.delete-property`](https://github.com/zloirock/core-js/blob/v2.0.2/modules/es6.reflect.delete-property.js), [`es6.reflect.enumerate`](https://github.com/zloirock/core-js/blob/v2.0.2/modules/es6.reflect.enumerate.js), [`es6.reflect.get`](https://github.com/zloirock/core-js/blob/v2.0.2/modules/es6.reflect.get.js), [`es6.reflect.get-own-property-descriptor`](https://github.com/zloirock/core-js/blob/v2.0.2/modules/es6.reflect.get-own-property-descriptor.js), [`es6.reflect.get-prototype-of`](https://github.com/zloirock/core-js/blob/v2.0.2/modules/es6.reflect.get-prototype-of.js), [`es6.reflect.has`](https://github.com/zloirock/core-js/blob/v2.0.2/modules/es6.reflect.has.js), [`es6.reflect.is-extensible`](https://github.com/zloirock/core-js/blob/v2.0.2/modules/es6.reflect.is-extensible.js), [`es6.reflect.own-keys`](https://github.com/zloirock/core-js/blob/v2.0.2/modules/es6.reflect.own-keys.js), [`es6.reflect.prevent-extensions`](https://github.com/zloirock/core-js/blob/v2.0.2/modules/es6.reflect.prevent-extensions.js), [`es6.reflect.set`](https://github.com/zloirock/core-js/blob/v2.0.2/modules/es6.reflect.set.js), [`es6.reflect.set-prototype-of`](https://github.com/zloirock/core-js/blob/v2.0.2/modules/es6.reflect.set-prototype-of.js). +Modules [`es6.reflect.apply`](https://github.com/zloirock/core-js/blob/v2.0.3/modules/es6.reflect.apply.js), [`es6.reflect.construct`](https://github.com/zloirock/core-js/blob/v2.0.3/modules/es6.reflect.construct.js), [`es6.reflect.define-property`](https://github.com/zloirock/core-js/blob/v2.0.3/modules/es6.reflect.define-property.js), [`es6.reflect.delete-property`](https://github.com/zloirock/core-js/blob/v2.0.3/modules/es6.reflect.delete-property.js), [`es6.reflect.enumerate`](https://github.com/zloirock/core-js/blob/v2.0.3/modules/es6.reflect.enumerate.js), [`es6.reflect.get`](https://github.com/zloirock/core-js/blob/v2.0.3/modules/es6.reflect.get.js), [`es6.reflect.get-own-property-descriptor`](https://github.com/zloirock/core-js/blob/v2.0.3/modules/es6.reflect.get-own-property-descriptor.js), [`es6.reflect.get-prototype-of`](https://github.com/zloirock/core-js/blob/v2.0.3/modules/es6.reflect.get-prototype-of.js), [`es6.reflect.has`](https://github.com/zloirock/core-js/blob/v2.0.3/modules/es6.reflect.has.js), [`es6.reflect.is-extensible`](https://github.com/zloirock/core-js/blob/v2.0.3/modules/es6.reflect.is-extensible.js), [`es6.reflect.own-keys`](https://github.com/zloirock/core-js/blob/v2.0.3/modules/es6.reflect.own-keys.js), [`es6.reflect.prevent-extensions`](https://github.com/zloirock/core-js/blob/v2.0.3/modules/es6.reflect.prevent-extensions.js), [`es6.reflect.set`](https://github.com/zloirock/core-js/blob/v2.0.3/modules/es6.reflect.set.js), [`es6.reflect.set-prototype-of`](https://github.com/zloirock/core-js/blob/v2.0.3/modules/es6.reflect.set-prototype-of.js). ```js Reflect .apply(target, thisArgument, argumentsList) -> var @@ -1220,7 +1220,7 @@ core-js(/library)/es7/error ``` `core-js/stage/4` entry point contains only stage 4 proposals, `core-js/stage/3` - stage 3 and stage 4, etc. ##### Stage 4: -* `{Array, %TypedArray%}#includes` [proposal](https://github.com/tc39/Array.prototype.includes) - module [`es7.array.includes`](https://github.com/zloirock/core-js/blob/v2.0.2/modules/es7.array.includes.js), `%TypedArray%` version in modules from [this section](#ecmascript-6-typed-arrays). +* `{Array, %TypedArray%}#includes` [proposal](https://github.com/tc39/Array.prototype.includes) - module [`es7.array.includes`](https://github.com/zloirock/core-js/blob/v2.0.3/modules/es7.array.includes.js), `%TypedArray%` version in modules from [this section](#ecmascript-6-typed-arrays). [*CommonJS entry points:*](#commonjs) ```js @@ -1229,8 +1229,8 @@ core-js(/library)/fn/array/includes ``` ##### Stage 3: -* `Object.values`, `Object.entries` [proposal](https://github.com/tc39/proposal-object-values-entries) - modules [`es7.object.values`](https://github.com/zloirock/core-js/blob/v2.0.2/modules/es7.object.values.js), [`es7.object.entries`](https://github.com/zloirock/core-js/blob/v2.0.2/modules/es7.object.entries.js) -* `String#padStart`, `String#padEnd` [proposal](https://github.com/tc39/proposal-string-pad-start-end) - modules [`es7.string.pad-left`](https://github.com/zloirock/core-js/blob/v2.0.2/modules/es7.string.pad-left.js), [`es7.string.pad-right`](https://github.com/zloirock/core-js/blob/v2.0.2/modules/es7.string.pad-right.js) +* `Object.values`, `Object.entries` [proposal](https://github.com/tc39/proposal-object-values-entries) - modules [`es7.object.values`](https://github.com/zloirock/core-js/blob/v2.0.3/modules/es7.object.values.js), [`es7.object.entries`](https://github.com/zloirock/core-js/blob/v2.0.3/modules/es7.object.entries.js) +* `String#padStart`, `String#padEnd` [proposal](https://github.com/tc39/proposal-string-pad-start-end) - modules [`es7.string.pad-left`](https://github.com/zloirock/core-js/blob/v2.0.3/modules/es7.string.pad-left.js), [`es7.string.pad-right`](https://github.com/zloirock/core-js/blob/v2.0.3/modules/es7.string.pad-right.js) [*CommonJS entry points:*](#commonjs) ```js @@ -1252,8 +1252,8 @@ core-js(/library)/stage/2 ``` ##### Stage 1: -* `String#trimLeft`, `String#trimRight` / `String#trimStart`, `String#trimEnd` [proposal](https://github.com/sebmarkbage/ecmascript-string-left-right-trim) - modules [`es7.string.trim-left`](https://github.com/zloirock/core-js/blob/v2.0.2/modules/es7.string.trim-right.js), [`es7.string.trim-right`](https://github.com/zloirock/core-js/blob/v2.0.2/modules/es7.string.trim-right.js) -* `System.global` [proposal](https://github.com/tc39/proposal-global) - module [`es7.system.global`](https://github.com/zloirock/core-js/blob/v2.0.2/modules/es7.system.global.js) +* `String#trimLeft`, `String#trimRight` / `String#trimStart`, `String#trimEnd` [proposal](https://github.com/sebmarkbage/ecmascript-string-left-right-trim) - modules [`es7.string.trim-left`](https://github.com/zloirock/core-js/blob/v2.0.3/modules/es7.string.trim-right.js), [`es7.string.trim-right`](https://github.com/zloirock/core-js/blob/v2.0.3/modules/es7.string.trim-right.js) +* `System.global` [proposal](https://github.com/tc39/proposal-global) - module [`es7.system.global`](https://github.com/zloirock/core-js/blob/v2.0.3/modules/es7.system.global.js) [*CommonJS entry points:*](#commonjs) ```js @@ -1270,11 +1270,11 @@ core-js(/library)/fn/system/global ``` ##### Stage 0: -* `String#at` [proposal](https://github.com/mathiasbynens/String.prototype.at) - module [`es7.string.at`](https://github.com/zloirock/core-js/blob/v2.0.2/modules/es7.string.at.js) -* `Object.getOwnPropertyDescriptors` [proposal](https://gist.github.com/WebReflection/9353781) - module [`es7.object.get-own-property-descriptors`](https://github.com/zloirock/core-js/blob/v2.0.2/modules/es7.object.get-own-property-descriptors.js) -* `Map#toJSON`, `Set#toJSON` [proposal](https://github.com/DavidBruant/Map-Set.prototype.toJSON) - modules [`es7.map.to-json`](https://github.com/zloirock/core-js/blob/v2.0.2/modules/es7.map.to-json.js), [`es7.set.to-json`](https://github.com/zloirock/core-js/blob/v2.0.2/modules/es7.set.to-json.js) -* `Error.isError` [proposal](https://github.com/ljharb/proposal-is-error) - module [`es7.error.is-error`](https://github.com/zloirock/core-js/blob/v2.0.2/modules/es7.error.is-error.js) -* `Math.{iaddh, isubh, imulh, umulh}` [proposal](https://gist.github.com/BrendanEich/4294d5c212a6d2254703) - modules [`es7.math.iaddh`](https://github.com/zloirock/core-js/blob/v2.0.2/modules/es7.math.iaddh.js), [`es7.math.isubh`](https://github.com/zloirock/core-js/blob/v2.0.2/modules/es7.math.isubh.js), [`es7.math.imulh`](https://github.com/zloirock/core-js/blob/v2.0.2/modules/es7.math.imulh.js) and [`es7.math.umulh`](https://github.com/zloirock/core-js/blob/v2.0.2/modules/es7.math.umulh.js). +* `String#at` [proposal](https://github.com/mathiasbynens/String.prototype.at) - module [`es7.string.at`](https://github.com/zloirock/core-js/blob/v2.0.3/modules/es7.string.at.js) +* `Object.getOwnPropertyDescriptors` [proposal](https://gist.github.com/WebReflection/9353781) - module [`es7.object.get-own-property-descriptors`](https://github.com/zloirock/core-js/blob/v2.0.3/modules/es7.object.get-own-property-descriptors.js) +* `Map#toJSON`, `Set#toJSON` [proposal](https://github.com/DavidBruant/Map-Set.prototype.toJSON) - modules [`es7.map.to-json`](https://github.com/zloirock/core-js/blob/v2.0.3/modules/es7.map.to-json.js), [`es7.set.to-json`](https://github.com/zloirock/core-js/blob/v2.0.3/modules/es7.set.to-json.js) +* `Error.isError` [proposal](https://github.com/ljharb/proposal-is-error) - module [`es7.error.is-error`](https://github.com/zloirock/core-js/blob/v2.0.3/modules/es7.error.is-error.js) +* `Math.{iaddh, isubh, imulh, umulh}` [proposal](https://gist.github.com/BrendanEich/4294d5c212a6d2254703) - modules [`es7.math.iaddh`](https://github.com/zloirock/core-js/blob/v2.0.3/modules/es7.math.iaddh.js), [`es7.math.isubh`](https://github.com/zloirock/core-js/blob/v2.0.3/modules/es7.math.isubh.js), [`es7.math.imulh`](https://github.com/zloirock/core-js/blob/v2.0.3/modules/es7.math.imulh.js) and [`es7.math.umulh`](https://github.com/zloirock/core-js/blob/v2.0.3/modules/es7.math.umulh.js). [*CommonJS entry points:*](#commonjs) ```js @@ -1373,7 +1373,7 @@ Error.isError(new TypeError); // => true core-js(/library)/web ``` #### setTimeout / setInterval -Module [`web.timers`](https://github.com/zloirock/core-js/blob/v2.0.2/modules/web.timers.js). Additional arguments fix for IE9-. +Module [`web.timers`](https://github.com/zloirock/core-js/blob/v2.0.3/modules/web.timers.js). Additional arguments fix for IE9-. ```js setTimeout(fn(...args), time, ...args) -> id setInterval(fn(...args), time, ...args) -> id @@ -1391,7 +1391,7 @@ setTimeout(log.bind(null, 42), 1000); setTimeout(log, 1000, 42); ``` #### setImmediate -Module [`web.immediate`](https://github.com/zloirock/core-js/blob/v2.0.2/modules/web.immediate.js). [`setImmediate` proposal](https://developer.mozilla.org/en-US/docs/Web/API/Window.setImmediate) polyfill. +Module [`web.immediate`](https://github.com/zloirock/core-js/blob/v2.0.3/modules/web.immediate.js). [`setImmediate` proposal](https://developer.mozilla.org/en-US/docs/Web/API/Window.setImmediate) polyfill. ```js setImmediate(fn(...args), ...args) -> id clearImmediate(id) -> void @@ -1413,7 +1413,7 @@ clearImmediate(setImmediate(function(){ })); ``` #### Iterable DOM collections -Some DOM collections should have [iterable interface](https://heycam.github.io/webidl/#idl-iterable) or should be [inherited from `Array`](https://heycam.github.io/webidl/#LegacyArrayClass). That mean they should have `keys`, `values`, `entries` and `@@iterator` methods for iteration. So add them. Module [`web.dom.iterable`](https://github.com/zloirock/core-js/blob/v2.0.2/modules/web.dom.iterable.js): +Some DOM collections should have [iterable interface](https://heycam.github.io/webidl/#idl-iterable) or should be [inherited from `Array`](https://heycam.github.io/webidl/#LegacyArrayClass). That mean they should have `keys`, `values`, `entries` and `@@iterator` methods for iteration. So add them. Module [`web.dom.iterable`](https://github.com/zloirock/core-js/blob/v2.0.3/modules/web.dom.iterable.js): ```js { NodeList, @@ -1448,7 +1448,7 @@ for(var [index, {id}] of document.querySelectorAll('*').entries()){ core-js(/library)/core ``` #### Object -Modules [`core.object.is-object`](https://github.com/zloirock/core-js/blob/v2.0.2/modules/core.object.is-object.js), [`core.object.classof`](https://github.com/zloirock/core-js/blob/v2.0.2/modules/core.object.classof.js), [`core.object.define`](https://github.com/zloirock/core-js/blob/v2.0.2/modules/core.object.define.js), [`core.object.make`](https://github.com/zloirock/core-js/blob/v2.0.2/modules/core.object.make.js). +Modules [`core.object.is-object`](https://github.com/zloirock/core-js/blob/v2.0.3/modules/core.object.is-object.js), [`core.object.classof`](https://github.com/zloirock/core-js/blob/v2.0.3/modules/core.object.classof.js), [`core.object.define`](https://github.com/zloirock/core-js/blob/v2.0.3/modules/core.object.define.js), [`core.object.make`](https://github.com/zloirock/core-js/blob/v2.0.3/modules/core.object.make.js). ```js Object .isObject(var) -> bool @@ -1561,7 +1561,7 @@ console.log(vector.xy); // => 15.811388300841896 console.log(vector.xyz); // => 25.495097567963924 ``` #### Dict -Module [`core.dict`](https://github.com/zloirock/core-js/blob/v2.0.2/modules/core.dict.js). Based on [TC39 discuss](https://github.com/rwaldron/tc39-notes/blob/master/es6/2012-11/nov-29.md#collection-apis-review) / [strawman](http://wiki.ecmascript.org/doku.php?id=harmony:modules_standard#dictionaries). +Module [`core.dict`](https://github.com/zloirock/core-js/blob/v2.0.3/modules/core.dict.js). Based on [TC39 discuss](https://github.com/rwaldron/tc39-notes/blob/master/es6/2012-11/nov-29.md#collection-apis-review) / [strawman](http://wiki.ecmascript.org/doku.php?id=harmony:modules_standard#dictionaries). ```js [new] Dict(iterable (entries) | object ?) -> dict .isDict(var) -> bool @@ -1714,7 +1714,7 @@ Dict.reduce(dict, function(memo, it){ }, ''); // => '123' ``` #### Partial application -Module [`core.function.part`](https://github.com/zloirock/core-js/blob/v2.0.2/modules/core.function.part.js). +Module [`core.function.part`](https://github.com/zloirock/core-js/blob/v2.0.3/modules/core.function.part.js). ```js Function #part(...args | _) -> fn(...args) @@ -1744,7 +1744,7 @@ fn2(1, 3, 5); // => 1, 2, 3, 4, 5 fn2(1); // => 1, 2, undefined, 4 ``` #### Number Iterator -Module [`core.number.iterator`](https://github.com/zloirock/core-js/blob/v2.0.2/modules/core.number.iterator.js). +Module [`core.number.iterator`](https://github.com/zloirock/core-js/blob/v2.0.3/modules/core.number.iterator.js). ```js Number #@@iterator() -> iterator @@ -1769,7 +1769,7 @@ Array.from(10, function(it){ }, .42); // => [0.42, 1.42, 4.42, 9.42, 16.42, 25.42, 36.42, 49.42, 64.42, 81.42] ``` #### Escaping strings -Modules [`core.regexp.escape`](https://github.com/zloirock/core-js/blob/v2.0.2/modules/core.regexp.escape.js), [`core.string.escape-html`](https://github.com/zloirock/core-js/blob/v2.0.2/modules/core.string.escape-html.js) and [`core.string.unescape-html`](https://github.com/zloirock/core-js/blob/v2.0.2/modules/core.string.unescape-html.js). +Modules [`core.regexp.escape`](https://github.com/zloirock/core-js/blob/v2.0.3/modules/core.regexp.escape.js), [`core.string.escape-html`](https://github.com/zloirock/core-js/blob/v2.0.3/modules/core.string.escape-html.js) and [`core.string.unescape-html`](https://github.com/zloirock/core-js/blob/v2.0.3/modules/core.string.unescape-html.js). ```js RegExp .escape(str) -> str @@ -1795,7 +1795,7 @@ RegExp.escape('Hello, []{}()*+?.\\^$|!'); // => 'Hello, \[\]\{\}\(\)\*\+\?\.\\\^ '<script>doSomething();</script>'.unescapeHTML(); // => '' ``` #### delay -Module [`core.delay`](https://github.com/zloirock/core-js/blob/v2.0.2/modules/core.delay.js). [Promise](#ecmascript-6-promise)-returning delay function, [esdiscuss](https://esdiscuss.org/topic/promise-returning-delay-function). +Module [`core.delay`](https://github.com/zloirock/core-js/blob/v2.0.3/modules/core.delay.js). [Promise](#ecmascript-6-promise)-returning delay function, [esdiscuss](https://esdiscuss.org/topic/promise-returning-delay-function). ```js delay(ms) -> promise ``` @@ -1816,7 +1816,7 @@ delay(1e3).then(() => console.log('after 1 sec')); })(); ``` #### Helpers for iterators -Modules [`core.is-iterable`](https://github.com/zloirock/core-js/blob/v2.0.2/modules/core.is-iterable.js), [`core.get-iterator`](https://github.com/zloirock/core-js/blob/v2.0.2/modules/core.get-iterator.js), [`core.get-iterator-method`](https://github.com/zloirock/core-js/blob/v2.0.2/modules/core.get-iterator-method.js) - helpers for check iterability / get iterator in the `library` version or, for example, for `arguments` object: +Modules [`core.is-iterable`](https://github.com/zloirock/core-js/blob/v2.0.3/modules/core.is-iterable.js), [`core.get-iterator`](https://github.com/zloirock/core-js/blob/v2.0.3/modules/core.get-iterator.js), [`core.get-iterator-method`](https://github.com/zloirock/core-js/blob/v2.0.3/modules/core.get-iterator-method.js) - helpers for check iterability / get iterator in the `library` version or, for example, for `arguments` object: ```js core .isIterable(var) -> bool diff --git a/bower.json b/bower.json index fcd6a414b164..99dd57962061 100644 --- a/bower.json +++ b/bower.json @@ -1,7 +1,7 @@ { "name": "core.js", "main": "client/core.js", - "version": "2.0.2", + "version": "2.0.3", "description": "Standard Library", "keywords": [ "ES3", diff --git a/build/core-js-builder/package.json b/build/core-js-builder/package.json index 98efa671a454..61096732e08d 100644 --- a/build/core-js-builder/package.json +++ b/build/core-js-builder/package.json @@ -1,14 +1,14 @@ { "name": "core-js-builder", "description": "core-js builder", - "version": "2.0.2", + "version": "2.0.3", "repository": { "type": "git", "url": "https://github.com/zloirock/core-js.git" }, "main": "index.js", "dependencies": { - "core-js": "2.0.2", + "core-js": "2.0.3", "webpack": "1.12.x", "temp": "0.8.x" }, diff --git a/client/core.js b/client/core.js index 51d848c98b23..aaa48a7e6bdd 100644 --- a/client/core.js +++ b/client/core.js @@ -1,5 +1,5 @@ /** - * core-js 2.0.2 + * core-js 2.0.3 * https://github.com/zloirock/core-js * License: http://rock.mit-license.org * © 2016 Denis Pushkarev @@ -538,7 +538,7 @@ /* 5 */ /***/ function(module, exports) { - var core = module.exports = {version: '2.0.2'}; + var core = module.exports = {version: '2.0.3'}; if(typeof __e == 'number')__e = core; // eslint-disable-line no-undef /***/ }, @@ -1306,7 +1306,7 @@ , getNames = __webpack_require__(2).getNames , toString = {}.toString; - var windowNames = typeof window == 'object' && Object.getOwnPropertyNames + var windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames ? Object.getOwnPropertyNames(window) : []; var getWindowNames = function(it){ @@ -1318,8 +1318,7 @@ }; module.exports.get = function getOwnPropertyNames(it){ - if(windowNames && toString.call(it) == '[object Window]')return getWindowNames(it); - return getNames(toIObject(it)); + return windowNames && toString.call(it) == '[object Window]' ? getWindowNames(it) : getNames(toIObject(it)); }; /***/ }, @@ -3255,12 +3254,16 @@ , process = global.process , $Promise = global[PROMISE] , isNode = classof(process) == 'process' + , empty = function(){ /* empty */ } , Internal, GenericPromiseCapability, Wrapper; var testResolve = function(sub){ - var test = new $Promise(function(){}); - if(sub)test.constructor = Object; - return $Promise.resolve(test) === test; + var test = new $Promise(empty), promise; + if(sub)test.constructor = function(exec){ + exec(empty, empty); + }; + (promise = $Promise.resolve(test))['catch'](empty); + return promise === test; }; var USE_NATIVE = function(){ @@ -3275,7 +3278,7 @@ setProto(SubPromise, $Promise); SubPromise.prototype = $.create($Promise.prototype, {constructor: {value: SubPromise}}); // actual Firefox has broken subclass support, test that - if(!(SubPromise.resolve(5).then(function(){}) instanceof SubPromise)){ + if(!(SubPromise.resolve(5).then(empty) instanceof SubPromise)){ works = false; } // V8 4.8- bug, https://code.google.com/p/v8/issues/detail?id=4162 @@ -3502,7 +3505,7 @@ } }); $export($export.S + $export.F * !(USE_NATIVE && __webpack_require__(131)(function(iter){ - $Promise.all(iter)['catch'](function(){}); + $Promise.all(iter)['catch'](empty); })), PROMISE, { // 25.4.4.1 Promise.all(iterable) all: function all(iterable){ diff --git a/client/core.min.js b/client/core.min.js index faa243dd332e..95a8a25b36fd 100644 --- a/client/core.min.js +++ b/client/core.min.js @@ -1,10 +1,10 @@ /** - * core-js 2.0.2 + * core-js 2.0.3 * https://github.com/zloirock/core-js * License: http://rock.mit-license.org * © 2016 Denis Pushkarev */ -!function(b,c,a){"use strict";!function(b){function __webpack_require__(c){if(a[c])return a[c].exports;var d=a[c]={exports:{},id:c,loaded:!1};return b[c].call(d.exports,d,d.exports,__webpack_require__),d.loaded=!0,d.exports}var a={};return __webpack_require__.m=b,__webpack_require__.c=a,__webpack_require__.p="",__webpack_require__(0)}([function(b,c,a){a(1),a(35),a(42),a(44),a(46),a(48),a(50),a(52),a(53),a(54),a(55),a(56),a(57),a(58),a(59),a(60),a(61),a(62),a(63),a(66),a(67),a(68),a(70),a(71),a(72),a(73),a(74),a(75),a(76),a(78),a(79),a(80),a(82),a(83),a(84),a(86),a(87),a(88),a(89),a(90),a(91),a(92),a(93),a(94),a(95),a(96),a(97),a(98),a(99),a(101),a(105),a(106),a(108),a(109),a(113),a(115),a(116),a(117),a(118),a(119),a(120),a(121),a(122),a(123),a(124),a(125),a(126),a(127),a(132),a(133),a(136),a(138),a(140),a(142),a(143),a(144),a(146),a(147),a(149),a(150),a(151),a(152),a(160),a(163),a(164),a(166),a(167),a(168),a(169),a(170),a(171),a(172),a(173),a(174),a(175),a(176),a(177),a(179),a(180),a(181),a(182),a(183),a(186),a(187),a(190),a(191),a(192),a(193),a(194),a(195),a(196),a(197),a(198),a(199),a(200),a(202),a(203),a(204),a(205),a(206),a(208),a(209),a(211),a(212),a(213),a(214),a(215),a(216),a(217),a(218),a(219),a(220),a(223),a(130),a(224),a(189),a(225),a(226),a(227),a(228),a(229),a(231),a(232),a(233),a(235),b.exports=a(236)},function(N,M,b){var q,d=b(2),c=b(3),D=b(8),J=b(7),r=b(14),t=b(15),j=b(17),F=b(18),i=b(9),o=b(19),G=b(13),H=(b(16),b(20)),y=b(22),L=b(24),B=b(25),g=b(26),n=b(23),k=b(11)("__proto__"),h=b(27),x=b(32)(!1),u=Object.prototype,v=[].slice,I=[].join,w=d.setDesc,K=d.getDesc,p=d.setDescs;D||(q=!i(function(){return 7!=w(t("div"),"a",{get:function(){return 7}}).a}),d.setDesc=function(b,c,a){if(q)try{return w(b,c,a)}catch(d){}if("get"in a||"set"in a)throw TypeError("Accessors not supported!");return"value"in a&&(o(b)[c]=a.value),b},d.getDesc=function(a,b){if(q)try{return K(a,b)}catch(c){}return j(a,b)?J(!u.propertyIsEnumerable.call(a,b),a[b]):void 0},d.setDescs=p=function(a,b){o(a);for(var c,e=d.getKeys(b),g=e.length,f=0;g>f;)d.setDesc(a,c=e[f++],b[c]);return a}),c(c.S+c.F*!D,"Object",{getOwnPropertyDescriptor:d.getDesc,defineProperty:d.setDesc,defineProperties:p});var l="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","),z=l.concat("length","prototype"),A=l.length,m=function(){var a,b=t("iframe"),c=A,d=">";for(b.style.display="none",r.appendChild(b),b.src="javascript:",a=b.contentWindow.document,a.open(),a.write("