core-js 2.5.4 → 2.5.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +3 -0
- package/README.md +62 -62
- package/bower.json +1 -1
- package/client/core.js +7 -5
- package/client/core.min.js +4 -4
- package/client/core.min.js.map +1 -1
- package/client/library.js +7 -5
- package/client/library.min.js +4 -4
- package/client/library.min.js.map +1 -1
- package/client/shim.js +7 -5
- package/client/shim.min.js +4 -4
- package/client/shim.min.js.map +1 -1
- package/library/modules/_core.js +1 -1
- package/library/modules/es6.reflect.set.js +5 -3
- package/modules/_core.js +1 -1
- package/modules/es6.reflect.set.js +5 -3
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
## Changelog
|
|
2
|
+
##### 2.5.5 - 2018.04.08
|
|
3
|
+
- Fix some edge cases of `Reflect.set`, [#392](https://github.com/zloirock/core-js/issues/392) and [#393](https://github.com/zloirock/core-js/issues/393)
|
|
4
|
+
|
|
2
5
|
##### 2.5.4 - 2018.03.27
|
|
3
6
|
- Fixed one case of deoptimization built-in iterators in V8, related [#377](https://github.com/zloirock/core-js/issues/377)
|
|
4
7
|
- Fixed some cases of iterators feature detection, [#368](https://github.com/zloirock/core-js/issues/368)
|
package/README.md
CHANGED
|
@@ -83,9 +83,9 @@ require('core-js/shim');
|
|
|
83
83
|
```
|
|
84
84
|
If you need complete build for browser, use builds from `core-js/client` path:
|
|
85
85
|
|
|
86
|
-
* [default](https://raw.githack.com/zloirock/core-js/v2.5.
|
|
87
|
-
* [as a library](https://raw.githack.com/zloirock/core-js/v2.5.
|
|
88
|
-
* [shim only](https://raw.githack.com/zloirock/core-js/v2.5.
|
|
86
|
+
* [default](https://raw.githack.com/zloirock/core-js/v2.5.5/client/core.min.js): Includes all features, standard and non-standard.
|
|
87
|
+
* [as a library](https://raw.githack.com/zloirock/core-js/v2.5.5/client/library.min.js): Like "default", but does not pollute the global namespace (see [2nd example at the top](#core-js)).
|
|
88
|
+
* [shim only](https://raw.githack.com/zloirock/core-js/v2.5.5/client/shim.min.js): Only includes the standard methods.
|
|
89
89
|
|
|
90
90
|
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.
|
|
91
91
|
|
|
@@ -235,11 +235,11 @@ core-js(/library)/es5
|
|
|
235
235
|
core-js(/library)/es6
|
|
236
236
|
```
|
|
237
237
|
#### ECMAScript 6: Object
|
|
238
|
-
Modules [`es6.object.assign`](https://github.com/zloirock/core-js/blob/v2.5.
|
|
238
|
+
Modules [`es6.object.assign`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es6.object.assign.js), [`es6.object.is`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es6.object.is.js), [`es6.object.set-prototype-of`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es6.object.set-prototype-of.js) and [`es6.object.to-string`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es6.object.to-string.js).
|
|
239
239
|
|
|
240
|
-
In ES6 most `Object` static methods should work with primitives. Modules [`es6.object.freeze`](https://github.com/zloirock/core-js/blob/v2.5.
|
|
240
|
+
In ES6 most `Object` static methods should work with primitives. Modules [`es6.object.freeze`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es6.object.freeze.js), [`es6.object.seal`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es6.object.seal.js), [`es6.object.prevent-extensions`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es6.object.prevent-extensions.js), [`es6.object.is-frozen`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es6.object.is-frozen.js), [`es6.object.is-sealed`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es6.object.is-sealed.js), [`es6.object.is-extensible`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es6.object.is-extensible.js), [`es6.object.get-own-property-descriptor`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es6.object.get-own-property-descriptor.js), [`es6.object.get-prototype-of`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es6.object.get-prototype-of.js), [`es6.object.keys`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es6.object.keys.js) and [`es6.object.get-own-property-names`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es6.object.get-own-property-names.js).
|
|
241
241
|
|
|
242
|
-
Just ES5 features: [`es6.object.create`](https://github.com/zloirock/core-js/blob/v2.5.
|
|
242
|
+
Just ES5 features: [`es6.object.create`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es6.object.create.js), [`es6.object.define-property`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es6.object.define-property.js) and [`es6.object.define-properties`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es6.object.es6.object.define-properties.js).
|
|
243
243
|
```js
|
|
244
244
|
Object
|
|
245
245
|
.assign(target, ...src) -> target
|
|
@@ -307,7 +307,7 @@ Object.keys('qwe'); // => ['0', '1', '2']
|
|
|
307
307
|
Object.getPrototypeOf('qwe') === String.prototype; // => true
|
|
308
308
|
```
|
|
309
309
|
#### ECMAScript 6: Function
|
|
310
|
-
Modules [`es6.function.name`](https://github.com/zloirock/core-js/blob/v2.5.
|
|
310
|
+
Modules [`es6.function.name`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es6.function.name.js), [`es6.function.has-instance`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es6.function.has-instance.js). Just ES5: [`es6.function.bind`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es6.function.bind.js).
|
|
311
311
|
```js
|
|
312
312
|
Function
|
|
313
313
|
#bind(object, ...args) -> boundFn(...args)
|
|
@@ -329,7 +329,7 @@ core-js/fn/function/virtual/bind
|
|
|
329
329
|
console.log.bind(console, 42)(43); // => 42 43
|
|
330
330
|
```
|
|
331
331
|
#### ECMAScript 6: Array
|
|
332
|
-
Modules [`es6.array.from`](https://github.com/zloirock/core-js/blob/v2.5.
|
|
332
|
+
Modules [`es6.array.from`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es6.array.from.js), [`es6.array.of`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es6.array.of.js), [`es6.array.copy-within`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es6.array.copy-within.js), [`es6.array.fill`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es6.array.fill.js), [`es6.array.find`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es6.array.find.js), [`es6.array.find-index`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es6.array.find-index.js), [`es6.array.iterator`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es6.array.iterator.js). ES5 features with fixes: [`es6.array.is-array`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es6.array.is-array.js), [`es6.array.slice`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es6.array.slice.js), [`es6.array.join`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es6.array.join.js), [`es6.array.index-of`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es6.array.index-of.js), [`es6.array.last-index-of`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es6.array.last-index-of.js), [`es6.array.every`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es6.array.every.js), [`es6.array.some`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es6.array.some.js), [`es6.array.for-each`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es6.array.for-each.js), [`es6.array.map`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es6.array.map.js), [`es6.array.filter`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es6.array.filter.js), [`es6.array.reduce`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es6.array.reduce.js), [`es6.array.reduce-right`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es6.array.reduce-right.js), [`es6.array.sort`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es6.array.sort.js).
|
|
333
333
|
```js
|
|
334
334
|
Array
|
|
335
335
|
.from(iterable | array-like, mapFn(val, index)?, that) -> array
|
|
@@ -441,9 +441,9 @@ Array(5).fill(42); // => [42, 42, 42, 42, 42]
|
|
|
441
441
|
[1, 2, 3, 4, 5].copyWithin(0, 3); // => [4, 5, 3, 4, 5]
|
|
442
442
|
```
|
|
443
443
|
#### ECMAScript 6: String
|
|
444
|
-
Modules [`es6.string.from-code-point`](https://github.com/zloirock/core-js/blob/v2.5.
|
|
444
|
+
Modules [`es6.string.from-code-point`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es6.string.from-code-point.js), [`es6.string.raw`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es6.string.raw.js), [`es6.string.iterator`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es6.string.iterator.js), [`es6.string.code-point-at`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es6.string.code-point-at.js), [`es6.string.ends-with`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es6.string.ends-with.js), [`es6.string.includes`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es6.string.includes.js), [`es6.string.repeat`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es6.string.repeat.js), [`es6.string.starts-with`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es6.string.starts-with.js) and [`es6.string.trim`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es6.string.trim.js).
|
|
445
445
|
|
|
446
|
-
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.5.
|
|
446
|
+
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.5.5/modules/es6.string.anchor.js), [`es6.string.big`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es6.string.big.js), [`es6.string.blink`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es6.string.blink.js), [`es6.string.bold`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es6.string.bold.js), [`es6.string.fixed`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es6.string.fixed.js), [`es6.string.fontcolor`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es6.string.fontcolor.js), [`es6.string.fontsize`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es6.string.fontsize.js), [`es6.string.italics`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es6.string.italics.js), [`es6.string.link`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es6.string.link.js), [`es6.string.small`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es6.string.small.js), [`es6.string.strike`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es6.string.strike.js), [`es6.string.sub`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es6.string.sub.js) and [`es6.string.sup`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es6.string.sup.js).
|
|
447
447
|
```js
|
|
448
448
|
String
|
|
449
449
|
.fromCodePoint(...codePoints) -> str
|
|
@@ -542,9 +542,9 @@ String.raw({raw: 'test'}, 0, 1, 2); // => 't0e1s2t'
|
|
|
542
542
|
'baz'.link('http://example.com'); // => '<a href="http://example.com">baz</a>'
|
|
543
543
|
```
|
|
544
544
|
#### ECMAScript 6: RegExp
|
|
545
|
-
Modules [`es6.regexp.constructor`](https://github.com/zloirock/core-js/blob/v2.5.
|
|
545
|
+
Modules [`es6.regexp.constructor`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es6.regexp.constructor.js) and [`es6.regexp.flags`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es6.regexp.flags.js).
|
|
546
546
|
|
|
547
|
-
Support well-known [symbols](#ecmascript-6-symbol) `@@match`, `@@replace`, `@@search` and `@@split`, modules [`es6.regexp.match`](https://github.com/zloirock/core-js/blob/v2.5.
|
|
547
|
+
Support well-known [symbols](#ecmascript-6-symbol) `@@match`, `@@replace`, `@@search` and `@@split`, modules [`es6.regexp.match`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es6.regexp.match.js), [`es6.regexp.replace`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es6.regexp.replace.js), [`es6.regexp.search`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es6.regexp.search.js) and [`es6.regexp.split`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es6.regexp.split.js).
|
|
548
548
|
```
|
|
549
549
|
[new] RegExp(pattern, flags?) -> regexp, ES6 fix: can alter flags (IE9+)
|
|
550
550
|
#flags -> str (IE9+)
|
|
@@ -585,12 +585,12 @@ RegExp(/./g, 'm'); // => /./m
|
|
|
585
585
|
RegExp.prototype.toString.call({source: 'foo', flags: 'bar'}); // => '/foo/bar'
|
|
586
586
|
```
|
|
587
587
|
#### ECMAScript 6: Number
|
|
588
|
-
Module [`es6.number.constructor`](https://github.com/zloirock/core-js/blob/v2.5.
|
|
588
|
+
Module [`es6.number.constructor`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es6.number.constructor.js). `Number` constructor support binary and octal literals, [*example*](http://goo.gl/jRd6b3):
|
|
589
589
|
```js
|
|
590
590
|
Number('0b1010101'); // => 85
|
|
591
591
|
Number('0o7654321'); // => 2054353
|
|
592
592
|
```
|
|
593
|
-
Modules [`es6.number.epsilon`](https://github.com/zloirock/core-js/blob/v2.5.
|
|
593
|
+
Modules [`es6.number.epsilon`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es6.number.epsilon.js), [`es6.number.is-finite`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es6.number.is-finite.js), [`es6.number.is-integer`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es6.number.is-integer.js), [`es6.number.is-nan`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es6.number.is-nan.js), [`es6.number.is-safe-integer`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es6.number.is-safe-integer.js), [`es6.number.max-safe-integer`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es6.number.max-safe-integer.js), [`es6.number.min-safe-integer`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es6.number.min-safe-integer.js), [`es6.number.parse-float`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es6.number.parse-float.js), [`es6.number.parse-int`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es6.number.parse-int.js), [`es6.number.to-fixed`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es6.number.to-fixed.js), [`es6.number.to-precision`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es6.number.to-precision.js), [`es6.parse-int`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es6.parse-int.js), [`es6.parse-float`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es6.parse-float.js).
|
|
594
594
|
```js
|
|
595
595
|
[new] Number(var) -> number | number object
|
|
596
596
|
.isFinite(num) -> bool
|
|
@@ -626,7 +626,7 @@ core-js(/library)/fn/parse-float
|
|
|
626
626
|
core-js(/library)/fn/parse-int
|
|
627
627
|
```
|
|
628
628
|
#### ECMAScript 6: Math
|
|
629
|
-
Modules [`es6.math.acosh`](https://github.com/zloirock/core-js/blob/v2.5.
|
|
629
|
+
Modules [`es6.math.acosh`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es6.math.acosh.js), [`es6.math.asinh`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es6.math.asinh.js), [`es6.math.atanh`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es6.math.atanh.js), [`es6.math.cbrt`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es6.math.cbrt.js), [`es6.math.clz32`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es6.math.clz32.js), [`es6.math.cosh`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es6.math.cosh.js), [`es6.math.expm1`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es6.math.expm1.js), [`es6.math.fround`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es6.math.fround.js), [`es6.math.hypot`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es6.math.hypot.js), [`es6.math.imul`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es6.math.imul.js), [`es6.math.log10`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es6.math.log10.js), [`es6.math.log1p`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es6.math.log1p.js), [`es6.math.log2`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es6.math.log2.js), [`es6.math.sign`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es6.math.sign.js), [`es6.math.sinh`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es6.math.sinh.js), [`es6.math.tanh`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es6.math.tanh.js), [`es6.math.trunc`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es6.math.trunc.js).
|
|
630
630
|
```js
|
|
631
631
|
Math
|
|
632
632
|
.acosh(num) -> num
|
|
@@ -669,7 +669,7 @@ core-js(/library)/fn/math/tanh
|
|
|
669
669
|
core-js(/library)/fn/math/trunc
|
|
670
670
|
```
|
|
671
671
|
#### ECMAScript 6: Date
|
|
672
|
-
Modules [`es6.date.to-string`](https://github.com/zloirock/core-js/blob/v2.5.
|
|
672
|
+
Modules [`es6.date.to-string`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es6.date.to-string.js), ES5 features with fixes: [`es6.date.now`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es6.date.now.js), [`es6.date.to-iso-string`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es6.date.to-iso-string.js), [`es6.date.to-json`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es6.date.to-json.js) and [`es6.date.to-primitive`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es6.date.to-primitive.js).
|
|
673
673
|
```js
|
|
674
674
|
Date
|
|
675
675
|
.now() -> int
|
|
@@ -693,7 +693,7 @@ new Date(NaN).toString(); // => 'Invalid Date'
|
|
|
693
693
|
```
|
|
694
694
|
|
|
695
695
|
#### ECMAScript 6: Promise
|
|
696
|
-
Module [`es6.promise`](https://github.com/zloirock/core-js/blob/v2.5.
|
|
696
|
+
Module [`es6.promise`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es6.promise.js).
|
|
697
697
|
```js
|
|
698
698
|
new Promise(executor(resolve(var), reject(var))) -> promise
|
|
699
699
|
#then(resolved(var), rejected(var)) -> promise
|
|
@@ -813,7 +813,7 @@ setTimeout(() => p.catch(_ => _), 1e3);
|
|
|
813
813
|
```
|
|
814
814
|
|
|
815
815
|
#### ECMAScript 6: Symbol
|
|
816
|
-
Module [`es6.symbol`](https://github.com/zloirock/core-js/blob/v2.5.
|
|
816
|
+
Module [`es6.symbol`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es6.symbol.js).
|
|
817
817
|
```js
|
|
818
818
|
Symbol(description?) -> symbol
|
|
819
819
|
.hasInstance -> @@hasInstance
|
|
@@ -925,7 +925,7 @@ for(var key in o2)console.log(key); // nothing
|
|
|
925
925
|
#### ECMAScript 6: Collections
|
|
926
926
|
`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).
|
|
927
927
|
#### Map
|
|
928
|
-
Module [`es6.map`](https://github.com/zloirock/core-js/blob/v2.5.
|
|
928
|
+
Module [`es6.map`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es6.map.js).
|
|
929
929
|
```js
|
|
930
930
|
new Map(iterable (entries) ?) -> map
|
|
931
931
|
#clear() -> void
|
|
@@ -979,7 +979,7 @@ for(var [key, val] of map.entries()){
|
|
|
979
979
|
}
|
|
980
980
|
```
|
|
981
981
|
#### Set
|
|
982
|
-
Module [`es6.set`](https://github.com/zloirock/core-js/blob/v2.5.
|
|
982
|
+
Module [`es6.set`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es6.set.js).
|
|
983
983
|
```js
|
|
984
984
|
new Set(iterable?) -> set
|
|
985
985
|
#add(key) -> @
|
|
@@ -1023,7 +1023,7 @@ for(var [key, val] of set.entries()){
|
|
|
1023
1023
|
}
|
|
1024
1024
|
```
|
|
1025
1025
|
#### WeakMap
|
|
1026
|
-
Module [`es6.weak-map`](https://github.com/zloirock/core-js/blob/v2.5.
|
|
1026
|
+
Module [`es6.weak-map`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es6.weak-map.js).
|
|
1027
1027
|
```js
|
|
1028
1028
|
new WeakMap(iterable (entries) ?) -> weakmap
|
|
1029
1029
|
#delete(key) -> bool
|
|
@@ -1067,7 +1067,7 @@ console.log(person.getName()); // => 'Vasya'
|
|
|
1067
1067
|
for(var key in person)console.log(key); // => only 'getName'
|
|
1068
1068
|
```
|
|
1069
1069
|
#### WeakSet
|
|
1070
|
-
Module [`es6.weak-set`](https://github.com/zloirock/core-js/blob/v2.5.
|
|
1070
|
+
Module [`es6.weak-set`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es6.weak-set.js).
|
|
1071
1071
|
```js
|
|
1072
1072
|
new WeakSet(iterable?) -> weakset
|
|
1073
1073
|
#add(key) -> @
|
|
@@ -1099,7 +1099,7 @@ console.log(wset.has(b)); // => false
|
|
|
1099
1099
|
#### ECMAScript 6: Typed Arrays
|
|
1100
1100
|
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.
|
|
1101
1101
|
|
|
1102
|
-
Modules [`es6.typed.array-buffer`](https://github.com/zloirock/core-js/blob/v2.5.
|
|
1102
|
+
Modules [`es6.typed.array-buffer`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es6.typed.array-buffer.js), [`es6.typed.data-view`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es6.typed.data-view.js), [`es6.typed.int8-array`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es6.typed.int8-array.js), [`es6.typed.uint8-array`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es6.typed.uint8-array.js), [`es6.typed.uint8-clamped-array`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es6.typed.uint8-clamped-array.js), [`es6.typed.int16-array`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es6.typed.int16-array.js), [`es6.typed.uint16-array`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es6.typed.uint16-array.js), [`es6.typed.int32-array`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es6.typed.int32-array.js), [`es6.typed.uint32-array`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es6.typed.uint32-array.js), [`es6.typed.float32-array`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es6.typed.float32-array.js) and [`es6.typed.float64-array`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es6.typed.float64-array.js).
|
|
1103
1103
|
```js
|
|
1104
1104
|
new ArrayBuffer(length) -> buffer
|
|
1105
1105
|
.isView(var) -> bool
|
|
@@ -1232,7 +1232,7 @@ for(var [key, val] of typed.entries()){
|
|
|
1232
1232
|
* In the `library` version we can't pollute native prototypes, so prototype methods available as constructors static.
|
|
1233
1233
|
|
|
1234
1234
|
#### ECMAScript 6: Reflect
|
|
1235
|
-
Modules [`es6.reflect.apply`](https://github.com/zloirock/core-js/blob/v2.5.
|
|
1235
|
+
Modules [`es6.reflect.apply`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es6.reflect.apply.js), [`es6.reflect.construct`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es6.reflect.construct.js), [`es6.reflect.define-property`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es6.reflect.define-property.js), [`es6.reflect.delete-property`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es6.reflect.delete-property.js), [`es6.reflect.enumerate`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es6.reflect.enumerate.js), [`es6.reflect.get`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es6.reflect.get.js), [`es6.reflect.get-own-property-descriptor`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es6.reflect.get-own-property-descriptor.js), [`es6.reflect.get-prototype-of`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es6.reflect.get-prototype-of.js), [`es6.reflect.has`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es6.reflect.has.js), [`es6.reflect.is-extensible`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es6.reflect.is-extensible.js), [`es6.reflect.own-keys`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es6.reflect.own-keys.js), [`es6.reflect.prevent-extensions`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es6.reflect.prevent-extensions.js), [`es6.reflect.set`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es6.reflect.set.js), [`es6.reflect.set-prototype-of`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es6.reflect.set-prototype-of.js).
|
|
1236
1236
|
```js
|
|
1237
1237
|
Reflect
|
|
1238
1238
|
.apply(target, thisArgument, argumentsList) -> var
|
|
@@ -1309,7 +1309,7 @@ core-js(/library)/es7/observable
|
|
|
1309
1309
|
```js
|
|
1310
1310
|
core-js(/library)/stage/4
|
|
1311
1311
|
```
|
|
1312
|
-
* `{Array, %TypedArray%}#includes` [proposal](https://github.com/tc39/Array.prototype.includes) - module [`es7.array.includes`](https://github.com/zloirock/core-js/blob/v2.5.
|
|
1312
|
+
* `{Array, %TypedArray%}#includes` [proposal](https://github.com/tc39/Array.prototype.includes) - module [`es7.array.includes`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es7.array.includes.js), `%TypedArray%` version in modules from [this section](#ecmascript-6-typed-arrays).
|
|
1313
1313
|
```js
|
|
1314
1314
|
Array
|
|
1315
1315
|
#includes(var, from?) -> bool
|
|
@@ -1341,7 +1341,7 @@ core-js(/library)/fn/array/includes
|
|
|
1341
1341
|
Array(1).indexOf(undefined); // => -1
|
|
1342
1342
|
Array(1).includes(undefined); // => true
|
|
1343
1343
|
```
|
|
1344
|
-
* `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.5.
|
|
1344
|
+
* `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.5.5/modules/es7.object.values.js), [`es7.object.entries`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es7.object.entries.js)
|
|
1345
1345
|
```js
|
|
1346
1346
|
Object
|
|
1347
1347
|
.values(object) -> array
|
|
@@ -1362,7 +1362,7 @@ for(let [key, value] of Object.entries({a: 1, b: 2, c: 3})){
|
|
|
1362
1362
|
console.log(value); // => 1, 2, 3
|
|
1363
1363
|
}
|
|
1364
1364
|
```
|
|
1365
|
-
* `Object.getOwnPropertyDescriptors` [proposal](https://github.com/tc39/proposal-object-getownpropertydescriptors) - module [`es7.object.get-own-property-descriptors`](https://github.com/zloirock/core-js/blob/v2.5.
|
|
1365
|
+
* `Object.getOwnPropertyDescriptors` [proposal](https://github.com/tc39/proposal-object-getownpropertydescriptors) - module [`es7.object.get-own-property-descriptors`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es7.object.get-own-property-descriptors.js)
|
|
1366
1366
|
```js
|
|
1367
1367
|
Object
|
|
1368
1368
|
.getOwnPropertyDescriptors(object) -> object
|
|
@@ -1378,7 +1378,7 @@ var copy = Object.create(Object.getPrototypeOf(O), Object.getOwnPropertyDescript
|
|
|
1378
1378
|
// Mixin:
|
|
1379
1379
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
1380
1380
|
```
|
|
1381
|
-
* `String#padStart`, `String#padEnd` [proposal](https://github.com/tc39/proposal-string-pad-start-end) - modules [`es7.string.pad-start`](https://github.com/zloirock/core-js/blob/v2.5.
|
|
1381
|
+
* `String#padStart`, `String#padEnd` [proposal](https://github.com/tc39/proposal-string-pad-start-end) - modules [`es7.string.pad-start`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es7.string.pad-start.js), [`es7.string.pad-end`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es7.string.pad-end.js)
|
|
1382
1382
|
```js
|
|
1383
1383
|
String
|
|
1384
1384
|
#padStart(length, fillStr = ' ') -> string
|
|
@@ -1398,7 +1398,7 @@ core-js(/library)/fn/string/virtual/pad-end
|
|
|
1398
1398
|
'hello'.padEnd(10); // => 'hello '
|
|
1399
1399
|
'hello'.padEnd(10, '1234'); // => 'hello12341'
|
|
1400
1400
|
```
|
|
1401
|
-
* `Object#__(define|lookup)[GS]etter__`, [annex B ES2017](https://github.com/tc39/ecma262/pull/381), but we haven't special namespace for that - modules [`es7.object.define-setter`](https://github.com/zloirock/core-js/blob/v2.5.
|
|
1401
|
+
* `Object#__(define|lookup)[GS]etter__`, [annex B ES2017](https://github.com/tc39/ecma262/pull/381), but we haven't special namespace for that - modules [`es7.object.define-setter`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es7.object.define-setter.js), [`es7.object.define-getter`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es7.object.define-getter.js), [`es7.object.lookup-setter`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es7.object.lookup-setter.js) and [`es7.object.lookup-getter`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es7.object.lookup-getter.js).
|
|
1402
1402
|
```js
|
|
1403
1403
|
Object
|
|
1404
1404
|
#__defineSetter__(key, fn) -> void
|
|
@@ -1419,7 +1419,7 @@ core-js(/library)/fn/object/lookup-setter
|
|
|
1419
1419
|
```js
|
|
1420
1420
|
core-js(/library)/stage/3
|
|
1421
1421
|
```
|
|
1422
|
-
* `global` [proposal](https://github.com/tc39/proposal-global) - modules [`es7.global`](https://github.com/zloirock/core-js/blob/v2.5.
|
|
1422
|
+
* `global` [proposal](https://github.com/tc39/proposal-global) - modules [`es7.global`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es7.global.js) and [`es7.system.global`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es7.system.global.js) (obsolete)
|
|
1423
1423
|
```js
|
|
1424
1424
|
global -> object
|
|
1425
1425
|
System
|
|
@@ -1434,7 +1434,7 @@ core-js(/library)/fn/system/global (obsolete)
|
|
|
1434
1434
|
```js
|
|
1435
1435
|
global.Array === Array; // => true
|
|
1436
1436
|
```
|
|
1437
|
-
* `Promise#finally` [proposal](https://github.com/tc39/proposal-promise-finally) - module [`es7.promise.finally`](https://github.com/zloirock/core-js/blob/v2.5.
|
|
1437
|
+
* `Promise#finally` [proposal](https://github.com/tc39/proposal-promise-finally) - module [`es7.promise.finally`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es7.promise.finally.js)
|
|
1438
1438
|
```js
|
|
1439
1439
|
Promise
|
|
1440
1440
|
#finally(onFinally()) -> promise
|
|
@@ -1454,7 +1454,7 @@ Promise.reject(42).finally(() => console.log('You will see it anyway'));
|
|
|
1454
1454
|
```js
|
|
1455
1455
|
core-js(/library)/stage/2
|
|
1456
1456
|
```
|
|
1457
|
-
* `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.5.
|
|
1457
|
+
* `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.5.5/modules/es7.string.trim-right.js), [`es7.string.trim-right`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es7.string.trim-right.js)
|
|
1458
1458
|
```js
|
|
1459
1459
|
String
|
|
1460
1460
|
#trimLeft() -> string
|
|
@@ -1479,7 +1479,7 @@ core-js(/library)/fn/string/virtual/trim-right
|
|
|
1479
1479
|
' hello '.trimRight(); // => ' hello'
|
|
1480
1480
|
```
|
|
1481
1481
|
```
|
|
1482
|
-
* `Symbol.asyncIterator` for [async iteration proposal](https://github.com/tc39/proposal-async-iteration) - module [`es7.symbol.async-iterator`](https://github.com/zloirock/core-js/blob/v2.5.
|
|
1482
|
+
* `Symbol.asyncIterator` for [async iteration proposal](https://github.com/tc39/proposal-async-iteration) - module [`es7.symbol.async-iterator`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es7.symbol.async-iterator.js)
|
|
1483
1483
|
```js
|
|
1484
1484
|
Symbol
|
|
1485
1485
|
.asyncIterator -> @@asyncIterator
|
|
@@ -1494,7 +1494,7 @@ core-js(/library)/fn/symbol/async-iterator
|
|
|
1494
1494
|
```js
|
|
1495
1495
|
core-js(/library)/stage/1
|
|
1496
1496
|
```
|
|
1497
|
-
* `Promise.try` [proposal](https://github.com/tc39/proposal-promise-try) - module [`es7.promise.try`](https://github.com/zloirock/core-js/blob/v2.5.
|
|
1497
|
+
* `Promise.try` [proposal](https://github.com/tc39/proposal-promise-try) - module [`es7.promise.try`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es7.promise.try.js)
|
|
1498
1498
|
```js
|
|
1499
1499
|
Promise
|
|
1500
1500
|
.try(function()) -> promise
|
|
@@ -1509,7 +1509,7 @@ Promise.try(() => 42).then(it => console.log(`Promise, resolved as ${it}`));
|
|
|
1509
1509
|
|
|
1510
1510
|
Promise.try(() => { throw 42; }).catch(it => console.log(`Promise, rejected as ${it}`));
|
|
1511
1511
|
```
|
|
1512
|
-
* `Array#flatten` and `Array#flatMap` [proposal](https://tc39.github.io/proposal-flatMap) - modules [`es7.array.flatten`](https://github.com/zloirock/core-js/blob/v2.5.
|
|
1512
|
+
* `Array#flatten` and `Array#flatMap` [proposal](https://tc39.github.io/proposal-flatMap) - modules [`es7.array.flatten`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es7.array.flatten.js) and [`es7.array.flat-map`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es7.array.flat-map.js)
|
|
1513
1513
|
```js
|
|
1514
1514
|
Array
|
|
1515
1515
|
#flatten(depthArg = 1) -> array
|
|
@@ -1530,7 +1530,7 @@ core-js(/library)/fn/array/virtual/flat-map
|
|
|
1530
1530
|
|
|
1531
1531
|
[{a: 1, b: 2}, {a: 3, b: 4}, {a: 5, b: 6}].flatMap(it => [it.a, it.b]); // => [1, 2, 3, 4, 5, 6]
|
|
1532
1532
|
```
|
|
1533
|
-
* `.of` and `.from` methods on collection constructors [proposal](https://github.com/tc39/proposal-setmap-offrom) - modules [`es7.set.of`](https://github.com/zloirock/core-js/blob/v2.5.
|
|
1533
|
+
* `.of` and `.from` methods on collection constructors [proposal](https://github.com/tc39/proposal-setmap-offrom) - modules [`es7.set.of`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es7.set.of.js), [`es7.set.from`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es7.set.from.js), [`es7.map.of`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es7.map.of.js), [`es7.map.from`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es7.map.from.js), [`es7.weak-set.of`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es7.weak-set.of.js), [`es7.weak-set.from`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es7.weak-set.from.js), [`es7.weak-map.of`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es7.weak-map.of.js), [`es7.weak-map.from`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es7.weak-map.from.js)
|
|
1534
1534
|
```js
|
|
1535
1535
|
Set
|
|
1536
1536
|
.of(...args) -> set
|
|
@@ -1562,7 +1562,7 @@ Set.of(1, 2, 3, 2, 1); // => Set {1, 2, 3}
|
|
|
1562
1562
|
|
|
1563
1563
|
Map.from([[1, 2], [3, 4]], ([key, val]) => [key ** 2, val ** 2]); // => Map {1: 4, 9: 16}
|
|
1564
1564
|
```
|
|
1565
|
-
* `String#matchAll` [proposal](https://github.com/tc39/String.prototype.matchAll) - module [`es7.string.match-all`](https://github.com/zloirock/core-js/blob/v2.5.
|
|
1565
|
+
* `String#matchAll` [proposal](https://github.com/tc39/String.prototype.matchAll) - module [`es7.string.match-all`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es7.string.match-all.js)
|
|
1566
1566
|
```js
|
|
1567
1567
|
String
|
|
1568
1568
|
#matchAll(regexp) -> iterator
|
|
@@ -1578,7 +1578,7 @@ for(let [_, d, D] of '1111a2b3cccc'.matchAll(/(\d)(\D)/)){
|
|
|
1578
1578
|
console.log(d, D); // => 1 a, 2 b, 3 c
|
|
1579
1579
|
}
|
|
1580
1580
|
```
|
|
1581
|
-
* `Observable` [proposal](https://github.com/zenparsing/es-observable) - modules [`es7.observable`](https://github.com/zloirock/core-js/blob/v2.5.
|
|
1581
|
+
* `Observable` [proposal](https://github.com/zenparsing/es-observable) - modules [`es7.observable`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es7.observable.js) and [`es7.symbol.observable`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es7.symbol.observable.js)
|
|
1582
1582
|
```js
|
|
1583
1583
|
new Observable(fn) -> observable
|
|
1584
1584
|
#subscribe(observer) -> subscription
|
|
@@ -1606,13 +1606,13 @@ new Observable(observer => {
|
|
|
1606
1606
|
```
|
|
1607
1607
|
* `Math.{clamp, DEG_PER_RAD, degrees, fscale, rad-per-deg, radians, scale}`
|
|
1608
1608
|
[proposal](https://github.com/rwaldron/proposal-math-extensions) - modules
|
|
1609
|
-
[`es7.math.clamp`](https://github.com/zloirock/core-js/blob/v2.5.
|
|
1610
|
-
[`es7.math.DEG_PER_RAD`](https://github.com/zloirock/core-js/blob/v2.5.
|
|
1611
|
-
[`es7.math.degrees`](https://github.com/zloirock/core-js/blob/v2.5.
|
|
1612
|
-
[`es7.math.fscale`](https://github.com/zloirock/core-js/blob/v2.5.
|
|
1613
|
-
[`es7.math.RAD_PER_DEG`](https://github.com/zloirock/core-js/blob/v2.5.
|
|
1614
|
-
[`es7.math.radians`](https://github.com/zloirock/core-js/blob/v2.5.
|
|
1615
|
-
[`es7.math.scale`](https://github.com/zloirock/core-js/blob/v2.5.
|
|
1609
|
+
[`es7.math.clamp`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es7.math.clamp.js),
|
|
1610
|
+
[`es7.math.DEG_PER_RAD`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es7.math.DEG_PER_RAD.js),
|
|
1611
|
+
[`es7.math.degrees`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es7.math.degrees.js),
|
|
1612
|
+
[`es7.math.fscale`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es7.math.fscale.js),
|
|
1613
|
+
[`es7.math.RAD_PER_DEG`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es7.math.RAD_PER_DEG.js),
|
|
1614
|
+
[`es7.math.radians`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es7.math.radians.js) and
|
|
1615
|
+
[`es7.math.scale`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es7.math.scale.js)
|
|
1616
1616
|
```js
|
|
1617
1617
|
Math
|
|
1618
1618
|
.DEG_PER_RAD -> number
|
|
@@ -1633,7 +1633,7 @@ core-js(/library)/fn/math/rad-per-deg
|
|
|
1633
1633
|
core-js(/library)/fn/math/radians
|
|
1634
1634
|
core-js(/library)/fn/math/scale
|
|
1635
1635
|
```
|
|
1636
|
-
* `Math.signbit` [proposal](http://jfbastien.github.io/papers/Math.signbit.html) - module [`es7.math.signbit`](https://github.com/zloirock/core-js/blob/v2.5.
|
|
1636
|
+
* `Math.signbit` [proposal](http://jfbastien.github.io/papers/Math.signbit.html) - module [`es7.math.signbit`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es7.math.signbit.js)
|
|
1637
1637
|
```js
|
|
1638
1638
|
Math
|
|
1639
1639
|
.signbit(x) -> bool
|
|
@@ -1656,7 +1656,7 @@ Math.signbit(-0); // => false
|
|
|
1656
1656
|
```js
|
|
1657
1657
|
core-js(/library)/stage/0
|
|
1658
1658
|
```
|
|
1659
|
-
* `String#at` [proposal](https://github.com/mathiasbynens/String.prototype.at) - module [`es7.string.at`](https://github.com/zloirock/core-js/blob/v2.5.
|
|
1659
|
+
* `String#at` [proposal](https://github.com/mathiasbynens/String.prototype.at) - module [`es7.string.at`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es7.string.at.js)
|
|
1660
1660
|
```js
|
|
1661
1661
|
String
|
|
1662
1662
|
#at(index) -> string
|
|
@@ -1671,7 +1671,7 @@ core-js(/library)/fn/string/virtual/at
|
|
|
1671
1671
|
'a𠮷b'.at(1); // => '𠮷'
|
|
1672
1672
|
'a𠮷b'.at(1).length; // => 2
|
|
1673
1673
|
```
|
|
1674
|
-
* `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.5.
|
|
1674
|
+
* `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.5.5/modules/es7.map.to-json.js), [`es7.set.to-json`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es7.set.to-json.js) (rejected and will be removed from `core-js@3`)
|
|
1675
1675
|
```js
|
|
1676
1676
|
Map
|
|
1677
1677
|
#toJSON() -> array (rejected and will be removed from core-js@3)
|
|
@@ -1683,7 +1683,7 @@ Set
|
|
|
1683
1683
|
core-js(/library)/fn/map
|
|
1684
1684
|
core-js(/library)/fn/set
|
|
1685
1685
|
```
|
|
1686
|
-
* `Error.isError` [proposal](https://github.com/ljharb/proposal-is-error) - module [`es7.error.is-error`](https://github.com/zloirock/core-js/blob/v2.5.
|
|
1686
|
+
* `Error.isError` [proposal](https://github.com/ljharb/proposal-is-error) - module [`es7.error.is-error`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es7.error.is-error.js) (withdrawn and will be removed from `core-js@3`)
|
|
1687
1687
|
```js
|
|
1688
1688
|
Error
|
|
1689
1689
|
.isError(it) -> bool (withdrawn and will be removed from core-js@3)
|
|
@@ -1692,7 +1692,7 @@ Error
|
|
|
1692
1692
|
```js
|
|
1693
1693
|
core-js(/library)/fn/error/is-error
|
|
1694
1694
|
```
|
|
1695
|
-
* `Math.{iaddh, isubh, imulh, umulh}` [proposal](https://gist.github.com/BrendanEich/4294d5c212a6d2254703) - modules [`es7.math.iaddh`](https://github.com/zloirock/core-js/blob/v2.5.
|
|
1695
|
+
* `Math.{iaddh, isubh, imulh, umulh}` [proposal](https://gist.github.com/BrendanEich/4294d5c212a6d2254703) - modules [`es7.math.iaddh`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es7.math.iaddh.js), [`es7.math.isubh`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es7.math.isubh.js), [`es7.math.imulh`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es7.math.imulh.js) and [`es7.math.umulh`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es7.math.umulh.js)
|
|
1696
1696
|
```js
|
|
1697
1697
|
Math
|
|
1698
1698
|
.iaddh(lo0, hi0, lo1, hi1) -> int32
|
|
@@ -1707,7 +1707,7 @@ core-js(/library)/fn/math/isubh
|
|
|
1707
1707
|
core-js(/library)/fn/math/imulh
|
|
1708
1708
|
core-js(/library)/fn/math/umulh
|
|
1709
1709
|
```
|
|
1710
|
-
* `global.asap`, [TC39 discussion](https://github.com/rwaldron/tc39-notes/blob/master/es6/2014-09/sept-25.md#510-globalasap-for-enqueuing-a-microtask), module [`es7.asap`](https://github.com/zloirock/core-js/blob/v2.5.
|
|
1710
|
+
* `global.asap`, [TC39 discussion](https://github.com/rwaldron/tc39-notes/blob/master/es6/2014-09/sept-25.md#510-globalasap-for-enqueuing-a-microtask), module [`es7.asap`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es7.asap.js)
|
|
1711
1711
|
```js
|
|
1712
1712
|
asap(fn) -> void
|
|
1713
1713
|
```
|
|
@@ -1725,7 +1725,7 @@ asap(() => console.log('called as microtask'));
|
|
|
1725
1725
|
```js
|
|
1726
1726
|
core-js(/library)/stage/pre
|
|
1727
1727
|
```
|
|
1728
|
-
* `Reflect` metadata [proposal](https://github.com/jonathandturner/decorators/blob/master/specs/metadata.md) - modules [`es7.reflect.define-metadata`](https://github.com/zloirock/core-js/blob/v2.5.
|
|
1728
|
+
* `Reflect` metadata [proposal](https://github.com/jonathandturner/decorators/blob/master/specs/metadata.md) - modules [`es7.reflect.define-metadata`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es7.reflect.define-metadata.js), [`es7.reflect.delete-metadata`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es7.reflect.delete-metadata.js), [`es7.reflect.get-metadata`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es7.reflect.get-metadata.js), [`es7.reflect.get-metadata-keys`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es7.reflect.get-metadata-keys.js), [`es7.reflect.get-own-metadata`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es7.reflect.get-own-metadata.js), [`es7.reflect.get-own-metadata-keys`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es7.reflect.get-own-metadata-keys.js), [`es7.reflect.has-metadata`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es7.reflect.has-metadata.js), [`es7.reflect.has-own-metadata`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es7.reflect.has-own-metadata.js) and [`es7.reflect.metadata`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/es7.reflect.metadata.js).
|
|
1729
1729
|
```js
|
|
1730
1730
|
Reflect
|
|
1731
1731
|
.defineMetadata(metadataKey, metadataValue, target, propertyKey?) -> void
|
|
@@ -1765,7 +1765,7 @@ Reflect.getOwnMetadata('foo', O); // => 'bar'
|
|
|
1765
1765
|
core-js(/library)/web
|
|
1766
1766
|
```
|
|
1767
1767
|
#### setTimeout / setInterval
|
|
1768
|
-
Module [`web.timers`](https://github.com/zloirock/core-js/blob/v2.5.
|
|
1768
|
+
Module [`web.timers`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/web.timers.js). Additional arguments fix for IE9-.
|
|
1769
1769
|
```js
|
|
1770
1770
|
setTimeout(fn(...args), time, ...args) -> id
|
|
1771
1771
|
setInterval(fn(...args), time, ...args) -> id
|
|
@@ -1783,7 +1783,7 @@ setTimeout(log.bind(null, 42), 1000);
|
|
|
1783
1783
|
setTimeout(log, 1000, 42);
|
|
1784
1784
|
```
|
|
1785
1785
|
#### setImmediate
|
|
1786
|
-
Module [`web.immediate`](https://github.com/zloirock/core-js/blob/v2.5.
|
|
1786
|
+
Module [`web.immediate`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/web.immediate.js). [`setImmediate` proposal](https://developer.mozilla.org/en-US/docs/Web/API/Window.setImmediate) polyfill.
|
|
1787
1787
|
```js
|
|
1788
1788
|
setImmediate(fn(...args), ...args) -> id
|
|
1789
1789
|
clearImmediate(id) -> void
|
|
@@ -1805,7 +1805,7 @@ clearImmediate(setImmediate(function(){
|
|
|
1805
1805
|
}));
|
|
1806
1806
|
```
|
|
1807
1807
|
#### Iterable DOM collections
|
|
1808
|
-
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.5.
|
|
1808
|
+
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.5.5/modules/web.dom.iterable.js):
|
|
1809
1809
|
```js
|
|
1810
1810
|
{
|
|
1811
1811
|
CSSRuleList,
|
|
@@ -1871,7 +1871,7 @@ for(var [index, {id}] of document.querySelectorAll('*').entries()){
|
|
|
1871
1871
|
core-js(/library)/core
|
|
1872
1872
|
```
|
|
1873
1873
|
#### Object
|
|
1874
|
-
Modules [`core.object.is-object`](https://github.com/zloirock/core-js/blob/v2.5.
|
|
1874
|
+
Modules [`core.object.is-object`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/core.object.is-object.js), [`core.object.classof`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/core.object.classof.js), [`core.object.define`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/core.object.define.js), [`core.object.make`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/core.object.make.js).
|
|
1875
1875
|
```js
|
|
1876
1876
|
Object
|
|
1877
1877
|
.isObject(var) -> bool
|
|
@@ -1984,7 +1984,7 @@ console.log(vector.xy); // => 15.811388300841896
|
|
|
1984
1984
|
console.log(vector.xyz); // => 25.495097567963924
|
|
1985
1985
|
```
|
|
1986
1986
|
#### Dict
|
|
1987
|
-
Module [`core.dict`](https://github.com/zloirock/core-js/blob/v2.5.
|
|
1987
|
+
Module [`core.dict`](https://github.com/zloirock/core-js/blob/v2.5.5/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).
|
|
1988
1988
|
```js
|
|
1989
1989
|
[new] Dict(iterable (entries) | object ?) -> dict
|
|
1990
1990
|
.isDict(var) -> bool
|
|
@@ -2137,7 +2137,7 @@ Dict.reduce(dict, function(memo, it){
|
|
|
2137
2137
|
}, ''); // => '123'
|
|
2138
2138
|
```
|
|
2139
2139
|
#### Partial application
|
|
2140
|
-
Module [`core.function.part`](https://github.com/zloirock/core-js/blob/v2.5.
|
|
2140
|
+
Module [`core.function.part`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/core.function.part.js).
|
|
2141
2141
|
```js
|
|
2142
2142
|
Function
|
|
2143
2143
|
#part(...args | _) -> fn(...args)
|
|
@@ -2167,7 +2167,7 @@ fn2(1, 3, 5); // => 1, 2, 3, 4, 5
|
|
|
2167
2167
|
fn2(1); // => 1, 2, undefined, 4
|
|
2168
2168
|
```
|
|
2169
2169
|
#### Number Iterator
|
|
2170
|
-
Module [`core.number.iterator`](https://github.com/zloirock/core-js/blob/v2.5.
|
|
2170
|
+
Module [`core.number.iterator`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/core.number.iterator.js).
|
|
2171
2171
|
```js
|
|
2172
2172
|
Number
|
|
2173
2173
|
#@@iterator() -> iterator
|
|
@@ -2192,7 +2192,7 @@ Array.from(10, function(it){
|
|
|
2192
2192
|
}, .42); // => [0.42, 1.42, 4.42, 9.42, 16.42, 25.42, 36.42, 49.42, 64.42, 81.42]
|
|
2193
2193
|
```
|
|
2194
2194
|
#### Escaping strings
|
|
2195
|
-
Modules [`core.regexp.escape`](https://github.com/zloirock/core-js/blob/v2.5.
|
|
2195
|
+
Modules [`core.regexp.escape`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/core.regexp.escape.js), [`core.string.escape-html`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/core.string.escape-html.js) and [`core.string.unescape-html`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/core.string.unescape-html.js).
|
|
2196
2196
|
```js
|
|
2197
2197
|
RegExp
|
|
2198
2198
|
.escape(str) -> str
|
|
@@ -2218,7 +2218,7 @@ RegExp.escape('Hello, []{}()*+?.\\^$|!'); // => 'Hello, \[\]\{\}\(\)\*\+\?\.\\\^
|
|
|
2218
2218
|
'<script>doSomething();</script>'.unescapeHTML(); // => '<script>doSomething();</script>'
|
|
2219
2219
|
```
|
|
2220
2220
|
#### delay
|
|
2221
|
-
Module [`core.delay`](https://github.com/zloirock/core-js/blob/v2.5.
|
|
2221
|
+
Module [`core.delay`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/core.delay.js). [Promise](#ecmascript-6-promise)-returning delay function, [esdiscuss](https://esdiscuss.org/topic/promise-returning-delay-function).
|
|
2222
2222
|
```js
|
|
2223
2223
|
delay(ms) -> promise
|
|
2224
2224
|
```
|
|
@@ -2239,7 +2239,7 @@ delay(1e3).then(() => console.log('after 1 sec'));
|
|
|
2239
2239
|
})();
|
|
2240
2240
|
```
|
|
2241
2241
|
#### Helpers for iterators
|
|
2242
|
-
Modules [`core.is-iterable`](https://github.com/zloirock/core-js/blob/v2.5.
|
|
2242
|
+
Modules [`core.is-iterable`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/core.is-iterable.js), [`core.get-iterator`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/core.get-iterator.js), [`core.get-iterator-method`](https://github.com/zloirock/core-js/blob/v2.5.5/modules/core.get-iterator-method.js) - helpers for check iterability / get iterator in the `library` version or, for example, for `arguments` object:
|
|
2243
2243
|
```js
|
|
2244
2244
|
core
|
|
2245
2245
|
.isIterable(var) -> bool
|
package/bower.json
CHANGED
package/client/core.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* core-js 2.5.
|
|
2
|
+
* core-js 2.5.5
|
|
3
3
|
* https://github.com/zloirock/core-js
|
|
4
4
|
* License: http://rock.mit-license.org
|
|
5
5
|
* © 2018 Denis Pushkarev
|
|
@@ -390,7 +390,7 @@ module.exports = function (NAME, exec) {
|
|
|
390
390
|
/* 18 */
|
|
391
391
|
/***/ (function(module, exports) {
|
|
392
392
|
|
|
393
|
-
var core = module.exports = { version: '2.5.
|
|
393
|
+
var core = module.exports = { version: '2.5.5' };
|
|
394
394
|
if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef
|
|
395
395
|
|
|
396
396
|
|
|
@@ -6770,9 +6770,11 @@ function set(target, propertyKey, V /* , receiver */) {
|
|
|
6770
6770
|
}
|
|
6771
6771
|
if (has(ownDesc, 'value')) {
|
|
6772
6772
|
if (ownDesc.writable === false || !isObject(receiver)) return false;
|
|
6773
|
-
existingDescriptor = gOPD.f(receiver, propertyKey)
|
|
6774
|
-
|
|
6775
|
-
|
|
6773
|
+
if (existingDescriptor = gOPD.f(receiver, propertyKey)) {
|
|
6774
|
+
if (existingDescriptor.get || existingDescriptor.set || existingDescriptor.writable === false) return false;
|
|
6775
|
+
existingDescriptor.value = V;
|
|
6776
|
+
dP.f(receiver, propertyKey, existingDescriptor);
|
|
6777
|
+
} else dP.f(receiver, propertyKey, createDesc(0, V));
|
|
6776
6778
|
return true;
|
|
6777
6779
|
}
|
|
6778
6780
|
return ownDesc.set === undefined ? false : (ownDesc.set.call(receiver, V), true);
|