diff --git a/CHANGELOG.md b/CHANGELOG.md index f0e057407f02..e09868c839ef 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,8 @@ ## Changelog +##### 2.0.1 - 2015.12.31 +- forced usage `Promise.resolve` polyfill in the `library` version for correct work with wrapper +- `Object.assign` should be defined in the strict mode -> throw an error on extension non-extensible objects, [#154](https://github.com/zloirock/core-js/issues/154) + ##### 2.0.0 - 2015.12.24 - added implementations and fixes [Typed Arrays](https://github.com/zloirock/core-js#ecmascript-6-typed-arrays)-related features - `ArrayBuffer`, `ArrayBuffer.isView`, `ArrayBuffer#slice` diff --git a/README.md b/README.md index b9a87397532f..43436b85a226 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.0/client/core.min.js): Includes all features, standard and non-standard. -* [as a library](https://raw.githack.com/zloirock/core-js/v2.0.0/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.0/client/shim.min.js): Only includes the standard methods. +* [default](https://raw.githack.com/zloirock/core-js/v2.0.1/client/core.min.js): Includes all features, standard and non-standard. +* [as a library](https://raw.githack.com/zloirock/core-js/v2.0.1/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.1/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.0/modules/es5.js), nothing new - without examples. +Module [`es5`](https://github.com/zloirock/core-js/blob/v2.0.1/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.0/modules/es6.object.assign.js), [`es6.object.is`](https://github.com/zloirock/core-js/blob/v2.0.0/modules/es6.object.is.js), [`es6.object.set-prototype-of`](https://github.com/zloirock/core-js/blob/v2.0.0/modules/es6.object.set-prototype-of.js) and [`es6.object.to-string`](https://github.com/zloirock/core-js/blob/v2.0.0/modules/es6.object.to-string.js). +Modules [`es6.object.assign`](https://github.com/zloirock/core-js/blob/v2.0.1/modules/es6.object.assign.js), [`es6.object.is`](https://github.com/zloirock/core-js/blob/v2.0.1/modules/es6.object.is.js), [`es6.object.set-prototype-of`](https://github.com/zloirock/core-js/blob/v2.0.1/modules/es6.object.set-prototype-of.js) and [`es6.object.to-string`](https://github.com/zloirock/core-js/blob/v2.0.1/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.0/modules/es6.object.freeze.js), [`es6.object.seal`](https://github.com/zloirock/core-js/blob/v2.0.0/modules/es6.object.seal.js), [`es6.object.prevent-extensions`](https://github.com/zloirock/core-js/blob/v2.0.0/modules/es6.object.prevent-extensions.js), [`es6.object.is-frozen`](https://github.com/zloirock/core-js/blob/v2.0.0/modules/es6.object.is-frozen.js), [`es6.object.is-sealed`](https://github.com/zloirock/core-js/blob/v2.0.0/modules/es6.object.is-sealed.js), [`es6.object.is-extensible`](https://github.com/zloirock/core-js/blob/v2.0.0/modules/es6.object.is-extensible.js), [`es6.object.get-own-property-descriptor`](https://github.com/zloirock/core-js/blob/v2.0.0/modules/es6.object.get-own-property-descriptor.js), [`es6.object.get-prototype-of`](https://github.com/zloirock/core-js/blob/v2.0.0/modules/es6.object.get-prototype-of.js), [`es6.object.keys`](https://github.com/zloirock/core-js/blob/v2.0.0/modules/es6.object.keys.js), [`es6.object.get-own-property-names`](https://github.com/zloirock/core-js/blob/v2.0.0/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.1/modules/es6.object.freeze.js), [`es6.object.seal`](https://github.com/zloirock/core-js/blob/v2.0.1/modules/es6.object.seal.js), [`es6.object.prevent-extensions`](https://github.com/zloirock/core-js/blob/v2.0.1/modules/es6.object.prevent-extensions.js), [`es6.object.is-frozen`](https://github.com/zloirock/core-js/blob/v2.0.1/modules/es6.object.is-frozen.js), [`es6.object.is-sealed`](https://github.com/zloirock/core-js/blob/v2.0.1/modules/es6.object.is-sealed.js), [`es6.object.is-extensible`](https://github.com/zloirock/core-js/blob/v2.0.1/modules/es6.object.is-extensible.js), [`es6.object.get-own-property-descriptor`](https://github.com/zloirock/core-js/blob/v2.0.1/modules/es6.object.get-own-property-descriptor.js), [`es6.object.get-prototype-of`](https://github.com/zloirock/core-js/blob/v2.0.1/modules/es6.object.get-prototype-of.js), [`es6.object.keys`](https://github.com/zloirock/core-js/blob/v2.0.1/modules/es6.object.keys.js), [`es6.object.get-own-property-names`](https://github.com/zloirock/core-js/blob/v2.0.1/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.0/modules/es6.function.name.js) and [`es6.function.has-instance`](https://github.com/zloirock/core-js/blob/v2.0.0/modules/es6.function.has-instance.js). +Modules [`es6.function.name`](https://github.com/zloirock/core-js/blob/v2.0.1/modules/es6.function.name.js) and [`es6.function.has-instance`](https://github.com/zloirock/core-js/blob/v2.0.1/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.0/modules/es6.array.from.js), [`es6.array.of`](https://github.com/zloirock/core-js/blob/v2.0.0/modules/es6.array.of.js), [`es6.array.copy-within`](https://github.com/zloirock/core-js/blob/v2.0.0/modules/es6.array.copy-within.js), [`es6.array.fill`](https://github.com/zloirock/core-js/blob/v2.0.0/modules/es6.array.fill.js), [`es6.array.find`](https://github.com/zloirock/core-js/blob/v2.0.0/modules/es6.array.find.js), [`es6.array.find-index`](https://github.com/zloirock/core-js/blob/v2.0.0/modules/es6.array.find-index.js) and [`es6.array.iterator`](https://github.com/zloirock/core-js/blob/v2.0.0/modules/es6.array.iterator.js). +Modules [`es6.array.from`](https://github.com/zloirock/core-js/blob/v2.0.1/modules/es6.array.from.js), [`es6.array.of`](https://github.com/zloirock/core-js/blob/v2.0.1/modules/es6.array.of.js), [`es6.array.copy-within`](https://github.com/zloirock/core-js/blob/v2.0.1/modules/es6.array.copy-within.js), [`es6.array.fill`](https://github.com/zloirock/core-js/blob/v2.0.1/modules/es6.array.fill.js), [`es6.array.find`](https://github.com/zloirock/core-js/blob/v2.0.1/modules/es6.array.find.js), [`es6.array.find-index`](https://github.com/zloirock/core-js/blob/v2.0.1/modules/es6.array.find-index.js) and [`es6.array.iterator`](https://github.com/zloirock/core-js/blob/v2.0.1/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.0/modules/es6.string.from-code-point.js), [`es6.string.raw`](https://github.com/zloirock/core-js/blob/v2.0.0/modules/es6.string.raw.js), [`es6.string.iterator`](https://github.com/zloirock/core-js/blob/v2.0.0/modules/es6.string.iterator.js), [`es6.string.code-point-at`](https://github.com/zloirock/core-js/blob/v2.0.0/modules/es6.string.code-point-at.js), [`es6.string.ends-with`](https://github.com/zloirock/core-js/blob/v2.0.0/modules/es6.string.ends-with.js), [`es6.string.includes`](https://github.com/zloirock/core-js/blob/v2.0.0/modules/es6.string.includes.js), [`es6.string.repeat`](https://github.com/zloirock/core-js/blob/v2.0.0/modules/es6.string.repeat.js), [`es6.string.starts-with`](https://github.com/zloirock/core-js/blob/v2.0.0/modules/es6.string.starts-with.js) and [`es6.string.trim`](https://github.com/zloirock/core-js/blob/v2.0.0/modules/es6.string.trim.js). +Modules [`es6.string.from-code-point`](https://github.com/zloirock/core-js/blob/v2.0.1/modules/es6.string.from-code-point.js), [`es6.string.raw`](https://github.com/zloirock/core-js/blob/v2.0.1/modules/es6.string.raw.js), [`es6.string.iterator`](https://github.com/zloirock/core-js/blob/v2.0.1/modules/es6.string.iterator.js), [`es6.string.code-point-at`](https://github.com/zloirock/core-js/blob/v2.0.1/modules/es6.string.code-point-at.js), [`es6.string.ends-with`](https://github.com/zloirock/core-js/blob/v2.0.1/modules/es6.string.ends-with.js), [`es6.string.includes`](https://github.com/zloirock/core-js/blob/v2.0.1/modules/es6.string.includes.js), [`es6.string.repeat`](https://github.com/zloirock/core-js/blob/v2.0.1/modules/es6.string.repeat.js), [`es6.string.starts-with`](https://github.com/zloirock/core-js/blob/v2.0.1/modules/es6.string.starts-with.js) and [`es6.string.trim`](https://github.com/zloirock/core-js/blob/v2.0.1/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.0/modules/es6.string.anchor.js), [`es6.string.big`](https://github.com/zloirock/core-js/blob/v2.0.0/modules/es6.string.big.js), [`es6.string.blink`](https://github.com/zloirock/core-js/blob/v2.0.0/modules/es6.string.blink.js), [`es6.string.bold`](https://github.com/zloirock/core-js/blob/v2.0.0/modules/es6.string.bold.js), [`es6.string.fixed`](https://github.com/zloirock/core-js/blob/v2.0.0/modules/es6.string.fixed.js), [`es6.string.fontcolor`](https://github.com/zloirock/core-js/blob/v2.0.0/modules/es6.string.fontcolor.js), [`es6.string.fontsize`](https://github.com/zloirock/core-js/blob/v2.0.0/modules/es6.string.fontsize.js), [`es6.string.italics`](https://github.com/zloirock/core-js/blob/v2.0.0/modules/es6.string.italics.js), [`es6.string.link`](https://github.com/zloirock/core-js/blob/v2.0.0/modules/es6.string.link.js), [`es6.string.small`](https://github.com/zloirock/core-js/blob/v2.0.0/modules/es6.string.small.js), [`es6.string.strike`](https://github.com/zloirock/core-js/blob/v2.0.0/modules/es6.string.strike.js), [`es6.string.sub`](https://github.com/zloirock/core-js/blob/v2.0.0/modules/es6.string.sub.js) and [`es6.string.sup`](https://github.com/zloirock/core-js/blob/v2.0.0/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.1/modules/es6.string.anchor.js), [`es6.string.big`](https://github.com/zloirock/core-js/blob/v2.0.1/modules/es6.string.big.js), [`es6.string.blink`](https://github.com/zloirock/core-js/blob/v2.0.1/modules/es6.string.blink.js), [`es6.string.bold`](https://github.com/zloirock/core-js/blob/v2.0.1/modules/es6.string.bold.js), [`es6.string.fixed`](https://github.com/zloirock/core-js/blob/v2.0.1/modules/es6.string.fixed.js), [`es6.string.fontcolor`](https://github.com/zloirock/core-js/blob/v2.0.1/modules/es6.string.fontcolor.js), [`es6.string.fontsize`](https://github.com/zloirock/core-js/blob/v2.0.1/modules/es6.string.fontsize.js), [`es6.string.italics`](https://github.com/zloirock/core-js/blob/v2.0.1/modules/es6.string.italics.js), [`es6.string.link`](https://github.com/zloirock/core-js/blob/v2.0.1/modules/es6.string.link.js), [`es6.string.small`](https://github.com/zloirock/core-js/blob/v2.0.1/modules/es6.string.small.js), [`es6.string.strike`](https://github.com/zloirock/core-js/blob/v2.0.1/modules/es6.string.strike.js), [`es6.string.sub`](https://github.com/zloirock/core-js/blob/v2.0.1/modules/es6.string.sub.js) and [`es6.string.sup`](https://github.com/zloirock/core-js/blob/v2.0.1/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.0/modules/es6.regexp.constructor.js) and [`es6.regexp.flags`](https://github.com/zloirock/core-js/blob/v2.0.0/modules/es6.regexp.flags.js). +Modules [`es6.regexp.constructor`](https://github.com/zloirock/core-js/blob/v2.0.1/modules/es6.regexp.constructor.js) and [`es6.regexp.flags`](https://github.com/zloirock/core-js/blob/v2.0.1/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.0/modules/es6.regexp.match.js), [`es6.regexp.replace`](https://github.com/zloirock/core-js/blob/v2.0.0/modules/es6.regexp.replace.js), [`es6.regexp.search`](https://github.com/zloirock/core-js/blob/v2.0.0/modules/es6.regexp.search.js) and [`es6.regexp.split`](https://github.com/zloirock/core-js/blob/v2.0.0/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.1/modules/es6.regexp.match.js), [`es6.regexp.replace`](https://github.com/zloirock/core-js/blob/v2.0.1/modules/es6.regexp.replace.js), [`es6.regexp.search`](https://github.com/zloirock/core-js/blob/v2.0.1/modules/es6.regexp.search.js) and [`es6.regexp.split`](https://github.com/zloirock/core-js/blob/v2.0.1/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.0/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.1/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.0/modules/es6.number.epsilon.js), [`es6.number.is-finite`](https://github.com/zloirock/core-js/blob/v2.0.0/modules/es6.number.is-finite.js), [`es6.number.is-integer`](https://github.com/zloirock/core-js/blob/v2.0.0/modules/es6.number.is-integer.js), [`es6.number.is-nan`](https://github.com/zloirock/core-js/blob/v2.0.0/modules/es6.number.is-nan.js), [`es6.number.is-safe-integer`](https://github.com/zloirock/core-js/blob/v2.0.0/modules/es6.number.is-safe-integer.js), [`es6.number.max-safe-integer`](https://github.com/zloirock/core-js/blob/v2.0.0/modules/es6.number.max-safe-integer.js), [`es6.number.min-safe-integer`](https://github.com/zloirock/core-js/blob/v2.0.0/modules/es6.number.min-safe-integer.js), [`es6.number.parse-float`](https://github.com/zloirock/core-js/blob/v2.0.0/modules/es6.number.parse-float.js), [`es6.number.parse-int`](https://github.com/zloirock/core-js/blob/v2.0.0/modules/es6.number.parse-int.js). +`Number`: modules [`es6.number.epsilon`](https://github.com/zloirock/core-js/blob/v2.0.1/modules/es6.number.epsilon.js), [`es6.number.is-finite`](https://github.com/zloirock/core-js/blob/v2.0.1/modules/es6.number.is-finite.js), [`es6.number.is-integer`](https://github.com/zloirock/core-js/blob/v2.0.1/modules/es6.number.is-integer.js), [`es6.number.is-nan`](https://github.com/zloirock/core-js/blob/v2.0.1/modules/es6.number.is-nan.js), [`es6.number.is-safe-integer`](https://github.com/zloirock/core-js/blob/v2.0.1/modules/es6.number.is-safe-integer.js), [`es6.number.max-safe-integer`](https://github.com/zloirock/core-js/blob/v2.0.1/modules/es6.number.max-safe-integer.js), [`es6.number.min-safe-integer`](https://github.com/zloirock/core-js/blob/v2.0.1/modules/es6.number.min-safe-integer.js), [`es6.number.parse-float`](https://github.com/zloirock/core-js/blob/v2.0.1/modules/es6.number.parse-float.js), [`es6.number.parse-int`](https://github.com/zloirock/core-js/blob/v2.0.1/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.0/modules/es6.math.acosh.js), [`es6.math.asinh`](https://github.com/zloirock/core-js/blob/v2.0.0/modules/es6.math.asinh.js), [`es6.math.atanh`](https://github.com/zloirock/core-js/blob/v2.0.0/modules/es6.math.atanh.js), [`es6.math.cbrt`](https://github.com/zloirock/core-js/blob/v2.0.0/modules/es6.math.cbrt.js), [`es6.math.clz32`](https://github.com/zloirock/core-js/blob/v2.0.0/modules/es6.math.clz32.js), [`es6.math.cosh`](https://github.com/zloirock/core-js/blob/v2.0.0/modules/es6.math.cosh.js), [`es6.math.expm1`](https://github.com/zloirock/core-js/blob/v2.0.0/modules/es6.math.expm1.js), [`es6.math.fround`](https://github.com/zloirock/core-js/blob/v2.0.0/modules/es6.math.fround.js), [`es6.math.hypot`](https://github.com/zloirock/core-js/blob/v2.0.0/modules/es6.math.hypot.js), [`es6.math.imul`](https://github.com/zloirock/core-js/blob/v2.0.0/modules/es6.math.imul.js), [`es6.math.log10`](https://github.com/zloirock/core-js/blob/v2.0.0/modules/es6.math.log10.js), [`es6.math.log1p`](https://github.com/zloirock/core-js/blob/v2.0.0/modules/es6.math.log1p.js), [`es6.math.log2`](https://github.com/zloirock/core-js/blob/v2.0.0/modules/es6.math.log2.js), [`es6.math.sign`](https://github.com/zloirock/core-js/blob/v2.0.0/modules/es6.math.sign.js), [`es6.math.sinh`](https://github.com/zloirock/core-js/blob/v2.0.0/modules/es6.math.sinh.js), [`es6.math.tanh`](https://github.com/zloirock/core-js/blob/v2.0.0/modules/es6.math.tanh.js), [`es6.math.trunc`](https://github.com/zloirock/core-js/blob/v2.0.0/modules/es6.math.trunc.js). +`Math`: modules [`es6.math.acosh`](https://github.com/zloirock/core-js/blob/v2.0.1/modules/es6.math.acosh.js), [`es6.math.asinh`](https://github.com/zloirock/core-js/blob/v2.0.1/modules/es6.math.asinh.js), [`es6.math.atanh`](https://github.com/zloirock/core-js/blob/v2.0.1/modules/es6.math.atanh.js), [`es6.math.cbrt`](https://github.com/zloirock/core-js/blob/v2.0.1/modules/es6.math.cbrt.js), [`es6.math.clz32`](https://github.com/zloirock/core-js/blob/v2.0.1/modules/es6.math.clz32.js), [`es6.math.cosh`](https://github.com/zloirock/core-js/blob/v2.0.1/modules/es6.math.cosh.js), [`es6.math.expm1`](https://github.com/zloirock/core-js/blob/v2.0.1/modules/es6.math.expm1.js), [`es6.math.fround`](https://github.com/zloirock/core-js/blob/v2.0.1/modules/es6.math.fround.js), [`es6.math.hypot`](https://github.com/zloirock/core-js/blob/v2.0.1/modules/es6.math.hypot.js), [`es6.math.imul`](https://github.com/zloirock/core-js/blob/v2.0.1/modules/es6.math.imul.js), [`es6.math.log10`](https://github.com/zloirock/core-js/blob/v2.0.1/modules/es6.math.log10.js), [`es6.math.log1p`](https://github.com/zloirock/core-js/blob/v2.0.1/modules/es6.math.log1p.js), [`es6.math.log2`](https://github.com/zloirock/core-js/blob/v2.0.1/modules/es6.math.log2.js), [`es6.math.sign`](https://github.com/zloirock/core-js/blob/v2.0.1/modules/es6.math.sign.js), [`es6.math.sinh`](https://github.com/zloirock/core-js/blob/v2.0.1/modules/es6.math.sinh.js), [`es6.math.tanh`](https://github.com/zloirock/core-js/blob/v2.0.1/modules/es6.math.tanh.js), [`es6.math.trunc`](https://github.com/zloirock/core-js/blob/v2.0.1/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.0/modules/web.dom.iterable.js): +Currently - only one little fix for `Date#toString`. Module [`es6.date.to-string`](https://github.com/zloirock/core-js/blob/v2.0.1/modules/web.dom.iterable.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.0/modules/es6.promise.js). +Module [`es6.promise`](https://github.com/zloirock/core-js/blob/v2.0.1/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.0/modules/es6.symbol.js). +Module [`es6.symbol`](https://github.com/zloirock/core-js/blob/v2.0.1/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.0/modules/es6.map.js). +Module [`es6.map`](https://github.com/zloirock/core-js/blob/v2.0.1/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.0/modules/es6.set.js). +Module [`es6.set`](https://github.com/zloirock/core-js/blob/v2.0.1/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.0/modules/es6.weak-map.js). +Module [`es6.weak-map`](https://github.com/zloirock/core-js/blob/v2.0.1/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.0/modules/es6.weak-set.js). +Module [`es6.weak-set`](https://github.com/zloirock/core-js/blob/v2.0.1/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.0/modules/es6.typed.array-buffer.js), [`es6.typed.data-view`](https://github.com/zloirock/core-js/blob/v2.0.0/modules/es6.typed.data-view.js), [`es6.typed.int8-array`](https://github.com/zloirock/core-js/blob/v2.0.0/modules/es6.typed.int8-array.js), [`es6.typed.uint8-array`](https://github.com/zloirock/core-js/blob/v2.0.0/modules/es6.typed.uint8-array.js), [`es6.typed.uint8-clamped-array`](https://github.com/zloirock/core-js/blob/v2.0.0/modules/es6.typed.uint8-clamped-array.js), [`es6.typed.int16-array`](https://github.com/zloirock/core-js/blob/v2.0.0/modules/es6.typed.int16-array.js), [`es6.typed.uint16-array`](https://github.com/zloirock/core-js/blob/v2.0.0/modules/es6.typed.uint16-array.js), [`es6.typed.int32-array`](https://github.com/zloirock/core-js/blob/v2.0.0/modules/es6.typed.int32-array.js), [`es6.typed.uint32-array`](https://github.com/zloirock/core-js/blob/v2.0.0/modules/es6.typed.uint32-array.js), [`es6.typed.float32-array`](https://github.com/zloirock/core-js/blob/v2.0.0/modules/es6.typed.float32-array.js) and [`es6.typed.float64-array`](https://github.com/zloirock/core-js/blob/v2.0.0/modules/es6.typed.float64-array.js). +Modules [`es6.typed.array-buffer`](https://github.com/zloirock/core-js/blob/v2.0.1/modules/es6.typed.array-buffer.js), [`es6.typed.data-view`](https://github.com/zloirock/core-js/blob/v2.0.1/modules/es6.typed.data-view.js), [`es6.typed.int8-array`](https://github.com/zloirock/core-js/blob/v2.0.1/modules/es6.typed.int8-array.js), [`es6.typed.uint8-array`](https://github.com/zloirock/core-js/blob/v2.0.1/modules/es6.typed.uint8-array.js), [`es6.typed.uint8-clamped-array`](https://github.com/zloirock/core-js/blob/v2.0.1/modules/es6.typed.uint8-clamped-array.js), [`es6.typed.int16-array`](https://github.com/zloirock/core-js/blob/v2.0.1/modules/es6.typed.int16-array.js), [`es6.typed.uint16-array`](https://github.com/zloirock/core-js/blob/v2.0.1/modules/es6.typed.uint16-array.js), [`es6.typed.int32-array`](https://github.com/zloirock/core-js/blob/v2.0.1/modules/es6.typed.int32-array.js), [`es6.typed.uint32-array`](https://github.com/zloirock/core-js/blob/v2.0.1/modules/es6.typed.uint32-array.js), [`es6.typed.float32-array`](https://github.com/zloirock/core-js/blob/v2.0.1/modules/es6.typed.float32-array.js) and [`es6.typed.float64-array`](https://github.com/zloirock/core-js/blob/v2.0.1/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.0/modules/es6.reflect.apply.js), [`es6.reflect.construct`](https://github.com/zloirock/core-js/blob/v2.0.0/modules/es6.reflect.construct.js), [`es6.reflect.define-property`](https://github.com/zloirock/core-js/blob/v2.0.0/modules/es6.reflect.define-property.js), [`es6.reflect.delete-property`](https://github.com/zloirock/core-js/blob/v2.0.0/modules/es6.reflect.delete-property.js), [`es6.reflect.enumerate`](https://github.com/zloirock/core-js/blob/v2.0.0/modules/es6.reflect.enumerate.js), [`es6.reflect.get`](https://github.com/zloirock/core-js/blob/v2.0.0/modules/es6.reflect.get.js), [`es6.reflect.get-own-property-descriptor`](https://github.com/zloirock/core-js/blob/v2.0.0/modules/es6.reflect.get-own-property-descriptor.js), [`es6.reflect.get-prototype-of`](https://github.com/zloirock/core-js/blob/v2.0.0/modules/es6.reflect.get-prototype-of.js), [`es6.reflect.has`](https://github.com/zloirock/core-js/blob/v2.0.0/modules/es6.reflect.has.js), [`es6.reflect.is-extensible`](https://github.com/zloirock/core-js/blob/v2.0.0/modules/es6.reflect.is-extensible.js), [`es6.reflect.own-keys`](https://github.com/zloirock/core-js/blob/v2.0.0/modules/es6.reflect.own-keys.js), [`es6.reflect.prevent-extensions`](https://github.com/zloirock/core-js/blob/v2.0.0/modules/es6.reflect.prevent-extensions.js), [`es6.reflect.set`](https://github.com/zloirock/core-js/blob/v2.0.0/modules/es6.reflect.set.js), [`es6.reflect.set-prototype-of`](https://github.com/zloirock/core-js/blob/v2.0.0/modules/es6.reflect.set-prototype-of.js). +Modules [`es6.reflect.apply`](https://github.com/zloirock/core-js/blob/v2.0.1/modules/es6.reflect.apply.js), [`es6.reflect.construct`](https://github.com/zloirock/core-js/blob/v2.0.1/modules/es6.reflect.construct.js), [`es6.reflect.define-property`](https://github.com/zloirock/core-js/blob/v2.0.1/modules/es6.reflect.define-property.js), [`es6.reflect.delete-property`](https://github.com/zloirock/core-js/blob/v2.0.1/modules/es6.reflect.delete-property.js), [`es6.reflect.enumerate`](https://github.com/zloirock/core-js/blob/v2.0.1/modules/es6.reflect.enumerate.js), [`es6.reflect.get`](https://github.com/zloirock/core-js/blob/v2.0.1/modules/es6.reflect.get.js), [`es6.reflect.get-own-property-descriptor`](https://github.com/zloirock/core-js/blob/v2.0.1/modules/es6.reflect.get-own-property-descriptor.js), [`es6.reflect.get-prototype-of`](https://github.com/zloirock/core-js/blob/v2.0.1/modules/es6.reflect.get-prototype-of.js), [`es6.reflect.has`](https://github.com/zloirock/core-js/blob/v2.0.1/modules/es6.reflect.has.js), [`es6.reflect.is-extensible`](https://github.com/zloirock/core-js/blob/v2.0.1/modules/es6.reflect.is-extensible.js), [`es6.reflect.own-keys`](https://github.com/zloirock/core-js/blob/v2.0.1/modules/es6.reflect.own-keys.js), [`es6.reflect.prevent-extensions`](https://github.com/zloirock/core-js/blob/v2.0.1/modules/es6.reflect.prevent-extensions.js), [`es6.reflect.set`](https://github.com/zloirock/core-js/blob/v2.0.1/modules/es6.reflect.set.js), [`es6.reflect.set-prototype-of`](https://github.com/zloirock/core-js/blob/v2.0.1/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.0/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.1/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.0/modules/es7.object.values.js), [`es7.object.entries`](https://github.com/zloirock/core-js/blob/v2.0.0/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.0/modules/es7.string.pad-left.js), [`es7.string.pad-right`](https://github.com/zloirock/core-js/blob/v2.0.0/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.1/modules/es7.object.values.js), [`es7.object.entries`](https://github.com/zloirock/core-js/blob/v2.0.1/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.1/modules/es7.string.pad-left.js), [`es7.string.pad-right`](https://github.com/zloirock/core-js/blob/v2.0.1/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.0/modules/es7.string.trim-right.js), [`es7.string.trim-right`](https://github.com/zloirock/core-js/blob/v2.0.0/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.0/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.1/modules/es7.string.trim-right.js), [`es7.string.trim-right`](https://github.com/zloirock/core-js/blob/v2.0.1/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.1/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.0/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.0/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.0/modules/es7.map.to-json.js), [`es7.set.to-json`](https://github.com/zloirock/core-js/blob/v2.0.0/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.0/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.0/modules/es7.math.iaddh.js), [`es7.math.isubh`](https://github.com/zloirock/core-js/blob/v2.0.0/modules/es7.math.isubh.js), [`es7.math.imulh`](https://github.com/zloirock/core-js/blob/v2.0.0/modules/es7.math.imulh.js) and [`es7.math.umulh`](https://github.com/zloirock/core-js/blob/v2.0.0/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.1/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.1/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.1/modules/es7.map.to-json.js), [`es7.set.to-json`](https://github.com/zloirock/core-js/blob/v2.0.1/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.1/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.1/modules/es7.math.iaddh.js), [`es7.math.isubh`](https://github.com/zloirock/core-js/blob/v2.0.1/modules/es7.math.isubh.js), [`es7.math.imulh`](https://github.com/zloirock/core-js/blob/v2.0.1/modules/es7.math.imulh.js) and [`es7.math.umulh`](https://github.com/zloirock/core-js/blob/v2.0.1/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.0/modules/web.timers.js). Additional arguments fix for IE9-. +Module [`web.timers`](https://github.com/zloirock/core-js/blob/v2.0.1/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.0/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.1/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.0/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.1/modules/web.dom.iterable.js): ```js { NodeList, @@ -1432,7 +1432,7 @@ Some DOM collections should have [iterable interface](https://heycam.github.io/w core-js(/library)/web/dom-collections core-js(/library)/fn/dom-collections/iterator ``` -[*Examples*](http://goo.gl/QlTWVr): +[*Examples*](http://goo.gl/lfXVFl): ```js for(var {id} of document.querySelectorAll('*')){ if(id)console.log(id); @@ -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.0/modules/core.object.is-object.js), [`core.object.classof`](https://github.com/zloirock/core-js/blob/v2.0.0/modules/core.object.classof.js), [`core.object.define`](https://github.com/zloirock/core-js/blob/v2.0.0/modules/core.object.define.js), [`core.object.make`](https://github.com/zloirock/core-js/blob/v2.0.0/modules/core.object.make.js). +Modules [`core.object.is-object`](https://github.com/zloirock/core-js/blob/v2.0.1/modules/core.object.is-object.js), [`core.object.classof`](https://github.com/zloirock/core-js/blob/v2.0.1/modules/core.object.classof.js), [`core.object.define`](https://github.com/zloirock/core-js/blob/v2.0.1/modules/core.object.define.js), [`core.object.make`](https://github.com/zloirock/core-js/blob/v2.0.1/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.0/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.1/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.0/modules/core.function.part.js). +Module [`core.function.part`](https://github.com/zloirock/core-js/blob/v2.0.1/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.0/modules/core.number.iterator.js). +Module [`core.number.iterator`](https://github.com/zloirock/core-js/blob/v2.0.1/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.0/modules/core.regexp.escape.js), [`core.string.escape-html`](https://github.com/zloirock/core-js/blob/v2.0.0/modules/core.string.escape-html.js) and [`core.string.unescape-html`](https://github.com/zloirock/core-js/blob/v2.0.0/modules/core.string.unescape-html.js). +Modules [`core.regexp.escape`](https://github.com/zloirock/core-js/blob/v2.0.1/modules/core.regexp.escape.js), [`core.string.escape-html`](https://github.com/zloirock/core-js/blob/v2.0.1/modules/core.string.escape-html.js) and [`core.string.unescape-html`](https://github.com/zloirock/core-js/blob/v2.0.1/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.0/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.1/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.0/modules/core.is-iterable.js), [`core.get-iterator`](https://github.com/zloirock/core-js/blob/v2.0.0/modules/core.get-iterator.js), [`core.get-iterator-method`](https://github.com/zloirock/core-js/blob/v2.0.0/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.1/modules/core.is-iterable.js), [`core.get-iterator`](https://github.com/zloirock/core-js/blob/v2.0.1/modules/core.get-iterator.js), [`core.get-iterator-method`](https://github.com/zloirock/core-js/blob/v2.0.1/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 5f690f483d9a..52db369363b2 100644 --- a/bower.json +++ b/bower.json @@ -1,7 +1,7 @@ { "name": "core.js", "main": "client/core.js", - "version": "2.0.0", + "version": "2.0.1", "description": "Standard Library", "keywords": [ "ES3", diff --git a/build/core-js-builder/package.json b/build/core-js-builder/package.json index b5a94265cc7d..bc17bc5dc68a 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.0", + "version": "2.0.1", "repository": { "type": "git", "url": "https://github.com/zloirock/core-js.git" }, "main": "index.js", "dependencies": { - "core-js": "2.0.0", + "core-js": "2.0.1", "webpack": "1.12.x", "temp": "0.8.x" }, diff --git a/client/core.js b/client/core.js index a1c290d5a97f..1d99b8ff34e5 100644 --- a/client/core.js +++ b/client/core.js @@ -1,5 +1,5 @@ /** - * core-js 2.0.0 + * core-js 2.0.1 * https://github.com/zloirock/core-js * License: http://rock.mit-license.org * © 2015 Denis Pushkarev @@ -134,10 +134,9 @@ __webpack_require__(150); __webpack_require__(151); __webpack_require__(152); - __webpack_require__(159); - __webpack_require__(162); + __webpack_require__(160); __webpack_require__(163); - __webpack_require__(165); + __webpack_require__(164); __webpack_require__(166); __webpack_require__(167); __webpack_require__(168); @@ -149,14 +148,14 @@ __webpack_require__(174); __webpack_require__(175); __webpack_require__(176); - __webpack_require__(178); + __webpack_require__(177); __webpack_require__(179); __webpack_require__(180); __webpack_require__(181); __webpack_require__(182); - __webpack_require__(185); + __webpack_require__(183); __webpack_require__(186); - __webpack_require__(189); + __webpack_require__(187); __webpack_require__(190); __webpack_require__(191); __webpack_require__(192); @@ -167,14 +166,14 @@ __webpack_require__(197); __webpack_require__(198); __webpack_require__(199); - __webpack_require__(201); + __webpack_require__(200); __webpack_require__(202); __webpack_require__(203); __webpack_require__(204); __webpack_require__(205); - __webpack_require__(207); + __webpack_require__(206); __webpack_require__(208); - __webpack_require__(210); + __webpack_require__(209); __webpack_require__(211); __webpack_require__(212); __webpack_require__(213); @@ -184,20 +183,21 @@ __webpack_require__(217); __webpack_require__(218); __webpack_require__(219); - __webpack_require__(222); - __webpack_require__(130); + __webpack_require__(220); __webpack_require__(223); - __webpack_require__(188); + __webpack_require__(130); __webpack_require__(224); + __webpack_require__(189); __webpack_require__(225); __webpack_require__(226); __webpack_require__(227); __webpack_require__(228); - __webpack_require__(230); + __webpack_require__(229); __webpack_require__(231); __webpack_require__(232); - __webpack_require__(234); - module.exports = __webpack_require__(235); + __webpack_require__(233); + __webpack_require__(235); + module.exports = __webpack_require__(236); /***/ }, @@ -538,7 +538,7 @@ /* 5 */ /***/ function(module, exports) { - var core = module.exports = {version: '2.0.0'}; + var core = module.exports = {version: '2.0.1'}; if(typeof __e == 'number')__e = core; // eslint-disable-line no-undef /***/ }, @@ -1360,6 +1360,7 @@ /* 43 */ /***/ function(module, exports, __webpack_require__) { + 'use strict'; // 19.1.2.1 Object.assign(target, source, ...) var $ = __webpack_require__(2) , toObject = __webpack_require__(20) @@ -3244,10 +3245,11 @@ , aFunction = __webpack_require__(13) , anInstance = __webpack_require__(153) , forOf = __webpack_require__(154) + , from = __webpack_require__(155) , setProto = __webpack_require__(47).set - , speciesConstructor = __webpack_require__(155) - , task = __webpack_require__(156).set - , microtask = __webpack_require__(157) + , speciesConstructor = __webpack_require__(156) + , task = __webpack_require__(157).set + , microtask = __webpack_require__(158) , PROMISE = 'Promise' , TypeError = global.TypeError , process = global.process @@ -3449,7 +3451,7 @@ this._h = 0; // <- rejection state, 0 - default, 1 - handled, 2 - unhandled this._n = false; // <- notify }; - Internal.prototype = __webpack_require__(158)($Promise.prototype, { + Internal.prototype = __webpack_require__(159)($Promise.prototype, { // 25.4.5.3 Promise.prototype.then(onFulfilled, onRejected) then: function then(onFulfilled, onRejected){ var reaction = newPromiseCapability(speciesConstructor(this, $Promise)); @@ -3488,7 +3490,7 @@ return capability.promise; } }); - $export($export.S + $export.F * (!USE_NATIVE || testResolve(true)), PROMISE, { + $export($export.S + $export.F * (LIBRARY || !USE_NATIVE || testResolve(true)), PROMISE, { // 25.4.4.6 Promise.resolve(x) resolve: function resolve(x){ // instanceof instead of internal slot check because we should fix it without replacement native Promise core @@ -3507,11 +3509,10 @@ var C = this , capability = newPromiseCapability(C) , resolve = capability.resolve - , reject = capability.reject - , values = []; + , reject = capability.reject; var abrupt = perform(function(){ - forOf(iterable, false, values.push, values); - var remaining = values.length + var values = from(iterable) + , remaining = values.length , results = Array(remaining); if(remaining)$.each.call(values, function(promise, index){ var alreadyCalled = false; @@ -3562,8 +3563,8 @@ , anObject = __webpack_require__(19) , toLength = __webpack_require__(26) , getIterFn = __webpack_require__(130); - module.exports = function(iterable, entries, fn, that){ - var iterFn = getIterFn(iterable) + module.exports = function(iterable, entries, fn, that, ITERATOR){ + var iterFn = ITERATOR ? function(){ return iterable; } : getIterFn(iterable) , f = ctx(fn, that, entries ? 2 : 1) , index = 0 , length, step, iterator; @@ -3578,6 +3579,19 @@ /***/ }, /* 155 */ +/***/ function(module, exports, __webpack_require__) { + + var forOf = __webpack_require__(154); + + module.exports = function(iter, ITERATOR){ + var result = []; + forOf(iter, false, result.push, result, ITERATOR); + return result; + }; + + +/***/ }, +/* 156 */ /***/ function(module, exports, __webpack_require__) { // 7.3.20 SpeciesConstructor(O, defaultConstructor) @@ -3590,7 +3604,7 @@ }; /***/ }, -/* 156 */ +/* 157 */ /***/ function(module, exports, __webpack_require__) { var ctx = __webpack_require__(12) @@ -3670,11 +3684,11 @@ }; /***/ }, -/* 157 */ +/* 158 */ /***/ function(module, exports, __webpack_require__) { var global = __webpack_require__(4) - , macrotask = __webpack_require__(156).set + , macrotask = __webpack_require__(157).set , Observer = global.MutationObserver || global.WebKitMutationObserver , process = global.process , Promise = global.Promise @@ -3739,7 +3753,7 @@ }; /***/ }, -/* 158 */ +/* 159 */ /***/ function(module, exports, __webpack_require__) { var redefine = __webpack_require__(10); @@ -3749,14 +3763,14 @@ }; /***/ }, -/* 159 */ +/* 160 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; - var strong = __webpack_require__(160); + var strong = __webpack_require__(161); // 23.1 Map Objects - __webpack_require__(161)('Map', function(get){ + module.exports = __webpack_require__(162)('Map', function(get){ return function Map(){ return get(this, arguments.length > 0 ? arguments[0] : undefined); }; }, { // 23.1.3.6 Map.prototype.get(key) @@ -3771,13 +3785,13 @@ }, strong, true); /***/ }, -/* 160 */ +/* 161 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; var $ = __webpack_require__(2) , hide = __webpack_require__(6) - , redefineAll = __webpack_require__(158) + , redefineAll = __webpack_require__(159) , ctx = __webpack_require__(12) , anInstance = __webpack_require__(153) , defined = __webpack_require__(21) @@ -3918,14 +3932,14 @@ }; /***/ }, -/* 161 */ +/* 162 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; var global = __webpack_require__(4) , $export = __webpack_require__(3) , redefine = __webpack_require__(10) - , redefineAll = __webpack_require__(158) + , redefineAll = __webpack_require__(159) , meta = __webpack_require__(36) , forOf = __webpack_require__(154) , anInstance = __webpack_require__(153) @@ -4007,14 +4021,14 @@ }; /***/ }, -/* 162 */ +/* 163 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; - var strong = __webpack_require__(160); + var strong = __webpack_require__(161); // 23.2 Set Objects - __webpack_require__(161)('Set', function(get){ + module.exports = __webpack_require__(162)('Set', function(get){ return function Set(){ return get(this, arguments.length > 0 ? arguments[0] : undefined); }; }, { // 23.2.3.1 Set.prototype.add(value) @@ -4024,7 +4038,7 @@ }, strong); /***/ }, -/* 163 */ +/* 164 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; @@ -4032,7 +4046,7 @@ , redefine = __webpack_require__(10) , meta = __webpack_require__(36) , assign = __webpack_require__(43) - , weak = __webpack_require__(164) + , weak = __webpack_require__(165) , isObject = __webpack_require__(16) , has = __webpack_require__(17) , getWeak = meta.getWeak @@ -4063,7 +4077,7 @@ }; // 23.3 WeakMap Objects - var $WeakMap = __webpack_require__(161)('WeakMap', wrapper, methods, weak, true, true); + var $WeakMap = module.exports = __webpack_require__(162)('WeakMap', wrapper, methods, weak, true, true); // IE11 WeakMap frozen keys fix if(new $WeakMap().set((Object.freeze || Object)(tmp), 7).get(tmp) != 7){ @@ -4086,11 +4100,11 @@ } /***/ }, -/* 164 */ +/* 165 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; - var redefineAll = __webpack_require__(158) + var redefineAll = __webpack_require__(159) , getWeak = __webpack_require__(36).getWeak , anObject = __webpack_require__(19) , isObject = __webpack_require__(16) @@ -4174,14 +4188,14 @@ }; /***/ }, -/* 165 */ +/* 166 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; - var weak = __webpack_require__(164); + var weak = __webpack_require__(165); // 23.4 WeakSet Objects - __webpack_require__(161)('WeakSet', function(get){ + __webpack_require__(162)('WeakSet', function(get){ return function WeakSet(){ return get(this, arguments.length > 0 ? arguments[0] : undefined); }; }, { // 23.4.3.1 WeakSet.prototype.add(value) @@ -4191,7 +4205,7 @@ }, weak, false, true); /***/ }, -/* 166 */ +/* 167 */ /***/ function(module, exports, __webpack_require__) { // 26.1.1 Reflect.apply(target, thisArgument, argumentsList) @@ -4205,7 +4219,7 @@ }); /***/ }, -/* 167 */ +/* 168 */ /***/ function(module, exports, __webpack_require__) { // 26.1.2 Reflect.construct(target, argumentsList [, newTarget]) @@ -4248,7 +4262,7 @@ }); /***/ }, -/* 168 */ +/* 169 */ /***/ function(module, exports, __webpack_require__) { // 26.1.3 Reflect.defineProperty(target, propertyKey, attributes) @@ -4272,7 +4286,7 @@ }); /***/ }, -/* 169 */ +/* 170 */ /***/ function(module, exports, __webpack_require__) { // 26.1.4 Reflect.deleteProperty(target, propertyKey) @@ -4288,7 +4302,7 @@ }); /***/ }, -/* 170 */ +/* 171 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; @@ -4319,7 +4333,7 @@ }); /***/ }, -/* 171 */ +/* 172 */ /***/ function(module, exports, __webpack_require__) { // 26.1.6 Reflect.get(target, propertyKey [, receiver]) @@ -4344,7 +4358,7 @@ $export($export.S, 'Reflect', {get: get}); /***/ }, -/* 172 */ +/* 173 */ /***/ function(module, exports, __webpack_require__) { // 26.1.7 Reflect.getOwnPropertyDescriptor(target, propertyKey) @@ -4359,7 +4373,7 @@ }); /***/ }, -/* 173 */ +/* 174 */ /***/ function(module, exports, __webpack_require__) { // 26.1.8 Reflect.getPrototypeOf(target) @@ -4374,7 +4388,7 @@ }); /***/ }, -/* 174 */ +/* 175 */ /***/ function(module, exports, __webpack_require__) { // 26.1.9 Reflect.has(target, propertyKey) @@ -4387,7 +4401,7 @@ }); /***/ }, -/* 175 */ +/* 176 */ /***/ function(module, exports, __webpack_require__) { // 26.1.10 Reflect.isExtensible(target) @@ -4403,16 +4417,16 @@ }); /***/ }, -/* 176 */ +/* 177 */ /***/ function(module, exports, __webpack_require__) { // 26.1.11 Reflect.ownKeys(target) var $export = __webpack_require__(3); - $export($export.S, 'Reflect', {ownKeys: __webpack_require__(177)}); + $export($export.S, 'Reflect', {ownKeys: __webpack_require__(178)}); /***/ }, -/* 177 */ +/* 178 */ /***/ function(module, exports, __webpack_require__) { // all object keys, includes non-enumerable and symbols @@ -4426,7 +4440,7 @@ }; /***/ }, -/* 178 */ +/* 179 */ /***/ function(module, exports, __webpack_require__) { // 26.1.12 Reflect.preventExtensions(target) @@ -4447,7 +4461,7 @@ }); /***/ }, -/* 179 */ +/* 180 */ /***/ function(module, exports, __webpack_require__) { // 26.1.13 Reflect.set(target, propertyKey, V [, receiver]) @@ -4481,7 +4495,7 @@ $export($export.S, 'Reflect', {set: set}); /***/ }, -/* 180 */ +/* 181 */ /***/ function(module, exports, __webpack_require__) { // 26.1.14 Reflect.setPrototypeOf(target, proto) @@ -4501,7 +4515,7 @@ }); /***/ }, -/* 181 */ +/* 182 */ /***/ function(module, exports, __webpack_require__) { var DateProto = Date.prototype @@ -4516,20 +4530,20 @@ } /***/ }, -/* 182 */ +/* 183 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; var $export = __webpack_require__(3) - , $typed = __webpack_require__(183) - , buffer = __webpack_require__(184) + , $typed = __webpack_require__(184) + , buffer = __webpack_require__(185) , anObject = __webpack_require__(19) , toIndex = __webpack_require__(25) , toLength = __webpack_require__(26) , isObject = __webpack_require__(16) , TYPED_ARRAY = __webpack_require__(30)('typed_array') , ArrayBuffer = __webpack_require__(4).ArrayBuffer - , speciesConstructor = __webpack_require__(155) + , speciesConstructor = __webpack_require__(156) , $ArrayBuffer = buffer.ArrayBuffer , $DataView = buffer.DataView , $isView = $typed.ABV && ArrayBuffer.isView @@ -4568,7 +4582,7 @@ __webpack_require__(137)(ARRAY_BUFFER); /***/ }, -/* 183 */ +/* 184 */ /***/ function(module, exports, __webpack_require__) { var global = __webpack_require__(4) @@ -4599,7 +4613,7 @@ }; /***/ }, -/* 184 */ +/* 185 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; @@ -4607,9 +4621,9 @@ , global = __webpack_require__(4) , DESCRIPTORS = __webpack_require__(8) , LIBRARY = __webpack_require__(41) - , $typed = __webpack_require__(183) + , $typed = __webpack_require__(184) , hide = __webpack_require__(6) - , redefineAll = __webpack_require__(158) + , redefineAll = __webpack_require__(159) , fails = __webpack_require__(9) , anInstance = __webpack_require__(153) , toInteger = __webpack_require__(24) @@ -4880,26 +4894,26 @@ exports[DATA_VIEW] = $DataView; /***/ }, -/* 185 */ +/* 186 */ /***/ function(module, exports, __webpack_require__) { var $export = __webpack_require__(3); - $export($export.G + $export.W + $export.F * !__webpack_require__(183).ABV, { - DataView: __webpack_require__(184).DataView + $export($export.G + $export.W + $export.F * !__webpack_require__(184).ABV, { + DataView: __webpack_require__(185).DataView }); /***/ }, -/* 186 */ +/* 187 */ /***/ function(module, exports, __webpack_require__) { - __webpack_require__(187)('Int8', 1, function(init){ + __webpack_require__(188)('Int8', 1, function(init){ return function Int8Array(data, byteOffset, length){ return init(this, data, byteOffset, length); }; }); /***/ }, -/* 187 */ +/* 188 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; @@ -4909,13 +4923,13 @@ , $ = __webpack_require__(2) , fails = __webpack_require__(9) , $export = __webpack_require__(3) - , $typed = __webpack_require__(183) - , $buffer = __webpack_require__(184) + , $typed = __webpack_require__(184) + , $buffer = __webpack_require__(185) , ctx = __webpack_require__(12) , anInstance = __webpack_require__(153) , propertyDesc = __webpack_require__(7) , hide = __webpack_require__(6) - , redefineAll = __webpack_require__(158) + , redefineAll = __webpack_require__(159) , isInteger = __webpack_require__(69) , toInteger = __webpack_require__(24) , toLength = __webpack_require__(26) @@ -4926,13 +4940,13 @@ , isObject = __webpack_require__(16) , toObject = __webpack_require__(20) , isArrayIter = __webpack_require__(129) - , isIterable = __webpack_require__(188) + , isIterable = __webpack_require__(189) , getIterFn = __webpack_require__(130) , uid = __webpack_require__(11) , wks = __webpack_require__(30) , createArrayMethod = __webpack_require__(27) , createArrayIncludes = __webpack_require__(32) - , speciesConstructor = __webpack_require__(155) + , speciesConstructor = __webpack_require__(156) , ArrayIterators = __webpack_require__(133) , Iterators = __webpack_require__(111) , $iterDetect = __webpack_require__(131) @@ -5305,7 +5319,7 @@ }, true)){ TypedArray = wrapper(function(that, data, $offset, $length){ anInstance(that, TypedArray, NAME); - if(!isObject(data))return new Base(strictToLength(data)) + if(!isObject(data))return new Base(strictToLength(data)); if(data instanceof $ArrayBuffer)return $length !== undefined ? new Base(data, toOffset($offset, BYTES), $length) : $offset !== undefined @@ -5368,7 +5382,7 @@ } else module.exports = function(){ /* empty */ }; /***/ }, -/* 188 */ +/* 189 */ /***/ function(module, exports, __webpack_require__) { var classof = __webpack_require__(49) @@ -5382,87 +5396,87 @@ }; /***/ }, -/* 189 */ +/* 190 */ /***/ function(module, exports, __webpack_require__) { - __webpack_require__(187)('Uint8', 1, function(init){ + __webpack_require__(188)('Uint8', 1, function(init){ return function Uint8Array(data, byteOffset, length){ return init(this, data, byteOffset, length); }; }); /***/ }, -/* 190 */ +/* 191 */ /***/ function(module, exports, __webpack_require__) { - __webpack_require__(187)('Uint8', 1, function(init){ + __webpack_require__(188)('Uint8', 1, function(init){ return function Uint8ClampedArray(data, byteOffset, length){ return init(this, data, byteOffset, length); }; }, true); /***/ }, -/* 191 */ +/* 192 */ /***/ function(module, exports, __webpack_require__) { - __webpack_require__(187)('Int16', 2, function(init){ + __webpack_require__(188)('Int16', 2, function(init){ return function Int16Array(data, byteOffset, length){ return init(this, data, byteOffset, length); }; }); /***/ }, -/* 192 */ +/* 193 */ /***/ function(module, exports, __webpack_require__) { - __webpack_require__(187)('Uint16', 2, function(init){ + __webpack_require__(188)('Uint16', 2, function(init){ return function Uint16Array(data, byteOffset, length){ return init(this, data, byteOffset, length); }; }); /***/ }, -/* 193 */ +/* 194 */ /***/ function(module, exports, __webpack_require__) { - __webpack_require__(187)('Int32', 4, function(init){ + __webpack_require__(188)('Int32', 4, function(init){ return function Int32Array(data, byteOffset, length){ return init(this, data, byteOffset, length); }; }); /***/ }, -/* 194 */ +/* 195 */ /***/ function(module, exports, __webpack_require__) { - __webpack_require__(187)('Uint32', 4, function(init){ + __webpack_require__(188)('Uint32', 4, function(init){ return function Uint32Array(data, byteOffset, length){ return init(this, data, byteOffset, length); }; }); /***/ }, -/* 195 */ +/* 196 */ /***/ function(module, exports, __webpack_require__) { - __webpack_require__(187)('Float32', 4, function(init){ + __webpack_require__(188)('Float32', 4, function(init){ return function Float32Array(data, byteOffset, length){ return init(this, data, byteOffset, length); }; }); /***/ }, -/* 196 */ +/* 197 */ /***/ function(module, exports, __webpack_require__) { - __webpack_require__(187)('Float64', 8, function(init){ + __webpack_require__(188)('Float64', 8, function(init){ return function Float64Array(data, byteOffset, length){ return init(this, data, byteOffset, length); }; }); /***/ }, -/* 197 */ +/* 198 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; @@ -5479,7 +5493,7 @@ __webpack_require__(134)('includes'); /***/ }, -/* 198 */ +/* 199 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; @@ -5494,12 +5508,12 @@ }); /***/ }, -/* 199 */ +/* 200 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; var $export = __webpack_require__(3) - , $pad = __webpack_require__(200); + , $pad = __webpack_require__(201); $export($export.P, 'String', { padStart: function padStart(maxLength /*, fillString = ' ' */){ @@ -5508,7 +5522,7 @@ }); /***/ }, -/* 200 */ +/* 201 */ /***/ function(module, exports, __webpack_require__) { // https://github.com/tc39/proposal-string-pad-start-end @@ -5531,12 +5545,12 @@ /***/ }, -/* 201 */ +/* 202 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; var $export = __webpack_require__(3) - , $pad = __webpack_require__(200); + , $pad = __webpack_require__(201); $export($export.P, 'String', { padEnd: function padEnd(maxLength /*, fillString = ' ' */){ @@ -5545,7 +5559,7 @@ }); /***/ }, -/* 202 */ +/* 203 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; @@ -5557,7 +5571,7 @@ }, 'trimStart'); /***/ }, -/* 203 */ +/* 204 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; @@ -5569,13 +5583,13 @@ }, 'trimEnd'); /***/ }, -/* 204 */ +/* 205 */ /***/ function(module, exports, __webpack_require__) { // https://gist.github.com/WebReflection/9353781 var $ = __webpack_require__(2) , $export = __webpack_require__(3) - , ownKeys = __webpack_require__(177) + , ownKeys = __webpack_require__(178) , toIObject = __webpack_require__(22) , createDesc = __webpack_require__(7); @@ -5597,12 +5611,12 @@ }); /***/ }, -/* 205 */ +/* 206 */ /***/ function(module, exports, __webpack_require__) { // http://goo.gl/XkBrjD var $export = __webpack_require__(3) - , $values = __webpack_require__(206)(false); + , $values = __webpack_require__(207)(false); $export($export.S, 'Object', { values: function values(it){ @@ -5611,7 +5625,7 @@ }); /***/ }, -/* 206 */ +/* 207 */ /***/ function(module, exports, __webpack_require__) { var $ = __webpack_require__(2) @@ -5632,12 +5646,12 @@ }; /***/ }, -/* 207 */ +/* 208 */ /***/ function(module, exports, __webpack_require__) { // http://goo.gl/XkBrjD var $export = __webpack_require__(3) - , $entries = __webpack_require__(206)(true); + , $entries = __webpack_require__(207)(true); $export($export.S, 'Object', { entries: function entries(it){ @@ -5646,41 +5660,39 @@ }); /***/ }, -/* 208 */ +/* 209 */ /***/ function(module, exports, __webpack_require__) { // https://github.com/DavidBruant/Map-Set.prototype.toJSON var $export = __webpack_require__(3); - $export($export.P + $export.R, 'Map', {toJSON: __webpack_require__(209)('Map')}); + $export($export.P + $export.R, 'Map', {toJSON: __webpack_require__(210)('Map')}); /***/ }, -/* 209 */ +/* 210 */ /***/ function(module, exports, __webpack_require__) { // https://github.com/DavidBruant/Map-Set.prototype.toJSON - var forOf = __webpack_require__(154) - , classof = __webpack_require__(49); + var classof = __webpack_require__(49) + , from = __webpack_require__(155); module.exports = function(NAME){ return function toJSON(){ if(classof(this) != NAME)throw TypeError(NAME + "#toJSON isn't generic"); - var arr = []; - forOf(this, false, arr.push, arr); - return arr; + return from(this); }; }; /***/ }, -/* 210 */ +/* 211 */ /***/ function(module, exports, __webpack_require__) { // https://github.com/DavidBruant/Map-Set.prototype.toJSON var $export = __webpack_require__(3); - $export($export.P + $export.R, 'Set', {toJSON: __webpack_require__(209)('Set')}); + $export($export.P + $export.R, 'Set', {toJSON: __webpack_require__(210)('Set')}); /***/ }, -/* 211 */ +/* 212 */ /***/ function(module, exports, __webpack_require__) { // https://github.com/ljharb/proposal-global @@ -5689,7 +5701,7 @@ $export($export.S, 'System', {global: __webpack_require__(4)}); /***/ }, -/* 212 */ +/* 213 */ /***/ function(module, exports, __webpack_require__) { // https://github.com/ljharb/proposal-is-error @@ -5703,7 +5715,7 @@ }); /***/ }, -/* 213 */ +/* 214 */ /***/ function(module, exports, __webpack_require__) { // https://gist.github.com/BrendanEich/4294d5c212a6d2254703 @@ -5719,7 +5731,7 @@ }); /***/ }, -/* 214 */ +/* 215 */ /***/ function(module, exports, __webpack_require__) { // https://gist.github.com/BrendanEich/4294d5c212a6d2254703 @@ -5735,7 +5747,7 @@ }); /***/ }, -/* 215 */ +/* 216 */ /***/ function(module, exports, __webpack_require__) { // https://gist.github.com/BrendanEich/4294d5c212a6d2254703 @@ -5756,7 +5768,7 @@ }); /***/ }, -/* 216 */ +/* 217 */ /***/ function(module, exports, __webpack_require__) { // https://gist.github.com/BrendanEich/4294d5c212a6d2254703 @@ -5777,18 +5789,18 @@ }); /***/ }, -/* 217 */ +/* 218 */ /***/ function(module, exports, __webpack_require__) { var $export = __webpack_require__(3) - , $task = __webpack_require__(156); + , $task = __webpack_require__(157); $export($export.G + $export.B, { setImmediate: $task.set, clearImmediate: $task.clear }); /***/ }, -/* 218 */ +/* 219 */ /***/ function(module, exports, __webpack_require__) { var $iterators = __webpack_require__(133) @@ -5814,14 +5826,14 @@ }); /***/ }, -/* 219 */ +/* 220 */ /***/ function(module, exports, __webpack_require__) { // ie9- setTimeout & setInterval additional parameters fix var global = __webpack_require__(4) , $export = __webpack_require__(3) , invoke = __webpack_require__(34) - , partial = __webpack_require__(220) + , partial = __webpack_require__(221) , navigator = global.navigator , MSIE = !!navigator && /MSIE .\./.test(navigator.userAgent); // <- dirty ie9- check var wrap = function(set){ @@ -5839,11 +5851,11 @@ }); /***/ }, -/* 220 */ +/* 221 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; - var path = __webpack_require__(221) + var path = __webpack_require__(222) , invoke = __webpack_require__(34) , aFunction = __webpack_require__(13); module.exports = function(/* ...pargs */){ @@ -5867,13 +5879,13 @@ }; /***/ }, -/* 221 */ +/* 222 */ /***/ function(module, exports, __webpack_require__) { module.exports = __webpack_require__(4); /***/ }, -/* 222 */ +/* 223 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; @@ -5885,7 +5897,7 @@ , keyOf = __webpack_require__(38) , aFunction = __webpack_require__(13) , forOf = __webpack_require__(154) - , isIterable = __webpack_require__(188) + , isIterable = __webpack_require__(189) , $iterCreate = __webpack_require__(112) , step = __webpack_require__(135) , isObject = __webpack_require__(16) @@ -6031,7 +6043,7 @@ }); /***/ }, -/* 223 */ +/* 224 */ /***/ function(module, exports, __webpack_require__) { var anObject = __webpack_require__(19) @@ -6043,13 +6055,13 @@ }; /***/ }, -/* 224 */ +/* 225 */ /***/ function(module, exports, __webpack_require__) { var global = __webpack_require__(4) , core = __webpack_require__(5) , $export = __webpack_require__(3) - , partial = __webpack_require__(220); + , partial = __webpack_require__(221); // https://esdiscuss.org/topic/promise-returning-delay-function $export($export.G + $export.F, { delay: function delay(time){ @@ -6060,19 +6072,19 @@ }); /***/ }, -/* 225 */ +/* 226 */ /***/ function(module, exports, __webpack_require__) { - var path = __webpack_require__(221) + var path = __webpack_require__(222) , $export = __webpack_require__(3); // Placeholder __webpack_require__(5)._ = path._ = path._ || {}; - $export($export.P + $export.F, 'Function', {part: __webpack_require__(220)}); + $export($export.P + $export.F, 'Function', {part: __webpack_require__(221)}); /***/ }, -/* 226 */ +/* 227 */ /***/ function(module, exports, __webpack_require__) { var $export = __webpack_require__(3); @@ -6080,7 +6092,7 @@ $export($export.S + $export.F, 'Object', {isObject: __webpack_require__(16)}); /***/ }, -/* 227 */ +/* 228 */ /***/ function(module, exports, __webpack_require__) { var $export = __webpack_require__(3); @@ -6088,20 +6100,20 @@ $export($export.S + $export.F, 'Object', {classof: __webpack_require__(49)}); /***/ }, -/* 228 */ +/* 229 */ /***/ function(module, exports, __webpack_require__) { var $export = __webpack_require__(3) - , define = __webpack_require__(229); + , define = __webpack_require__(230); $export($export.S + $export.F, 'Object', {define: define}); /***/ }, -/* 229 */ +/* 230 */ /***/ function(module, exports, __webpack_require__) { var $ = __webpack_require__(2) - , ownKeys = __webpack_require__(177) + , ownKeys = __webpack_require__(178) , toIObject = __webpack_require__(22); module.exports = function define(target, mixin){ @@ -6113,11 +6125,11 @@ }; /***/ }, -/* 230 */ +/* 231 */ /***/ function(module, exports, __webpack_require__) { var $export = __webpack_require__(3) - , define = __webpack_require__(229) + , define = __webpack_require__(230) , create = __webpack_require__(2).create; $export($export.S + $export.F, 'Object', { @@ -6127,7 +6139,7 @@ }); /***/ }, -/* 231 */ +/* 232 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; @@ -6141,18 +6153,18 @@ }); /***/ }, -/* 232 */ +/* 233 */ /***/ function(module, exports, __webpack_require__) { // https://github.com/benjamingr/RexExp.escape var $export = __webpack_require__(3) - , $re = __webpack_require__(233)(/[\\^$*+?.()|[\]{}]/g, '\\$&'); + , $re = __webpack_require__(234)(/[\\^$*+?.()|[\]{}]/g, '\\$&'); $export($export.S, 'RegExp', {escape: function escape(it){ return $re(it); }}); /***/ }, -/* 233 */ +/* 234 */ /***/ function(module, exports) { module.exports = function(regExp, replace){ @@ -6165,12 +6177,12 @@ }; /***/ }, -/* 234 */ +/* 235 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; var $export = __webpack_require__(3); - var $re = __webpack_require__(233)(/[&<>"']/g, { + var $re = __webpack_require__(234)(/[&<>"']/g, { '&': '&', '<': '<', '>': '>', @@ -6181,12 +6193,12 @@ $export($export.P + $export.F, 'String', {escapeHTML: function escapeHTML(){ return $re(this); }}); /***/ }, -/* 235 */ +/* 236 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; var $export = __webpack_require__(3); - var $re = __webpack_require__(233)(/&(?:amp|lt|gt|quot|apos);/g, { + var $re = __webpack_require__(234)(/&(?:amp|lt|gt|quot|apos);/g, { '&': '&', '<': '<', '>': '>', diff --git a/client/core.min.js b/client/core.min.js index fa0828742784..b008488891b0 100644 --- a/client/core.min.js +++ b/client/core.min.js @@ -1,10 +1,10 @@ /** - * core-js 2.0.0 + * core-js 2.0.1 * https://github.com/zloirock/core-js * License: http://rock.mit-license.org * © 2015 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(159),a(162),a(163),a(165),a(166),a(167),a(168),a(169),a(170),a(171),a(172),a(173),a(174),a(175),a(176),a(178),a(179),a(180),a(181),a(182),a(185),a(186),a(189),a(190),a(191),a(192),a(193),a(194),a(195),a(196),a(197),a(198),a(199),a(201),a(202),a(203),a(204),a(205),a(207),a(208),a(210),a(211),a(212),a(213),a(214),a(215),a(216),a(217),a(218),a(219),a(222),a(130),a(223),a(188),a(224),a(225),a(226),a(227),a(228),a(230),a(231),a(232),a(234),b.exports=a(235)},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("