core-js 3.1.2 → 3.2.1
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/README.md +3 -3
- package/es/array/concat.js +2 -1
- package/es/array/copy-within.js +2 -1
- package/es/array/entries.js +2 -1
- package/es/array/every.js +2 -1
- package/es/array/fill.js +2 -1
- package/es/array/filter.js +2 -1
- package/es/array/find-index.js +2 -1
- package/es/array/find.js +2 -1
- package/es/array/flat-map.js +2 -1
- package/es/array/flat.js +2 -1
- package/es/array/for-each.js +2 -1
- package/es/array/from.js +2 -1
- package/es/array/includes.js +2 -1
- package/es/array/index-of.js +2 -1
- package/es/array/index.js +2 -1
- package/es/array/is-array.js +2 -1
- package/es/array/iterator.js +2 -1
- package/es/array/join.js +2 -1
- package/es/array/keys.js +2 -1
- package/es/array/last-index-of.js +2 -1
- package/es/array/map.js +2 -1
- package/es/array/of.js +2 -1
- package/es/array/reduce-right.js +2 -1
- package/es/array/reduce.js +2 -1
- package/es/array/reverse.js +2 -1
- package/es/array/slice.js +2 -1
- package/es/array/some.js +2 -1
- package/es/array/sort.js +2 -1
- package/es/array/splice.js +2 -1
- package/es/array/values.js +2 -1
- package/es/array/virtual/concat.js +2 -1
- package/es/array/virtual/copy-within.js +2 -1
- package/es/array/virtual/entries.js +2 -1
- package/es/array/virtual/every.js +2 -1
- package/es/array/virtual/fill.js +2 -1
- package/es/array/virtual/filter.js +2 -1
- package/es/array/virtual/find-index.js +2 -1
- package/es/array/virtual/find.js +2 -1
- package/es/array/virtual/flat-map.js +2 -1
- package/es/array/virtual/flat.js +2 -1
- package/es/array/virtual/for-each.js +2 -1
- package/es/array/virtual/includes.js +2 -1
- package/es/array/virtual/index-of.js +2 -1
- package/es/array/virtual/index.js +2 -1
- package/es/array/virtual/iterator.js +2 -1
- package/es/array/virtual/join.js +2 -1
- package/es/array/virtual/keys.js +2 -1
- package/es/array/virtual/last-index-of.js +2 -1
- package/es/array/virtual/map.js +2 -1
- package/es/array/virtual/reduce-right.js +2 -1
- package/es/array/virtual/reduce.js +2 -1
- package/es/array/virtual/reverse.js +2 -1
- package/es/array/virtual/slice.js +2 -1
- package/es/array/virtual/some.js +2 -1
- package/es/array/virtual/sort.js +2 -1
- package/es/array/virtual/splice.js +2 -1
- package/es/array/virtual/values.js +2 -1
- package/es/array-buffer/constructor.js +2 -1
- package/es/array-buffer/index.js +2 -1
- package/es/array-buffer/is-view.js +2 -1
- package/es/data-view/index.js +2 -1
- package/es/date/index.js +2 -1
- package/es/date/now.js +2 -1
- package/es/date/to-iso-string.js +2 -1
- package/es/date/to-json.js +2 -1
- package/es/function/bind.js +2 -1
- package/es/function/has-instance.js +2 -1
- package/es/function/index.js +2 -1
- package/es/function/virtual/bind.js +2 -1
- package/es/function/virtual/index.js +2 -1
- package/es/index.js +1 -0
- package/es/instance/bind.js +1 -0
- package/es/instance/code-point-at.js +1 -0
- package/es/instance/concat.js +1 -0
- package/es/instance/copy-within.js +1 -0
- package/es/instance/ends-with.js +1 -0
- package/es/instance/entries.js +1 -0
- package/es/instance/every.js +1 -0
- package/es/instance/fill.js +1 -0
- package/es/instance/filter.js +1 -0
- package/es/instance/find-index.js +1 -0
- package/es/instance/find.js +1 -0
- package/es/instance/flags.js +1 -0
- package/es/instance/flat-map.js +1 -0
- package/es/instance/flat.js +1 -0
- package/es/instance/for-each.js +1 -0
- package/es/instance/includes.js +1 -0
- package/es/instance/index-of.js +1 -0
- package/es/instance/keys.js +1 -0
- package/es/instance/last-index-of.js +1 -0
- package/es/instance/map.js +1 -0
- package/es/instance/match-all.js +1 -0
- package/es/instance/pad-end.js +1 -0
- package/es/instance/pad-start.js +1 -0
- package/es/instance/reduce-right.js +1 -0
- package/es/instance/reduce.js +1 -0
- package/es/instance/repeat.js +1 -0
- package/es/instance/reverse.js +1 -0
- package/es/instance/slice.js +1 -0
- package/es/instance/some.js +1 -0
- package/es/instance/sort.js +1 -0
- package/es/instance/splice.js +1 -0
- package/es/instance/starts-with.js +1 -0
- package/es/instance/trim-end.js +1 -0
- package/es/instance/trim-left.js +1 -0
- package/es/instance/trim-right.js +1 -0
- package/es/instance/trim-start.js +1 -0
- package/es/instance/trim.js +1 -0
- package/es/instance/values.js +1 -0
- package/es/json/index.js +0 -1
- package/es/map/index.js +2 -1
- package/es/math/acosh.js +2 -1
- package/es/math/asinh.js +2 -1
- package/es/math/atanh.js +2 -1
- package/es/math/cbrt.js +2 -1
- package/es/math/clz32.js +2 -1
- package/es/math/cosh.js +2 -1
- package/es/math/expm1.js +2 -1
- package/es/math/fround.js +2 -1
- package/es/math/hypot.js +2 -1
- package/es/math/imul.js +2 -1
- package/es/math/index.js +2 -1
- package/es/math/log10.js +2 -1
- package/es/math/log1p.js +2 -1
- package/es/math/log2.js +2 -1
- package/es/math/sign.js +2 -1
- package/es/math/sinh.js +2 -1
- package/es/math/tanh.js +2 -1
- package/es/math/trunc.js +2 -1
- package/es/number/index.js +2 -1
- package/es/number/is-finite.js +2 -1
- package/es/number/is-integer.js +2 -1
- package/es/number/is-nan.js +2 -1
- package/es/number/is-safe-integer.js +2 -1
- package/es/number/parse-float.js +2 -1
- package/es/number/parse-int.js +2 -1
- package/es/number/to-fixed.js +2 -1
- package/es/number/to-precision.js +2 -1
- package/es/number/virtual/index.js +2 -1
- package/es/number/virtual/to-fixed.js +2 -1
- package/es/number/virtual/to-precision.js +2 -1
- package/es/object/assign.js +2 -1
- package/es/object/create.js +3 -1
- package/es/object/define-getter.js +2 -1
- package/es/object/define-properties.js +3 -1
- package/es/object/define-property.js +3 -1
- package/es/object/define-setter.js +2 -1
- package/es/object/entries.js +2 -1
- package/es/object/freeze.js +2 -1
- package/es/object/from-entries.js +2 -1
- package/es/object/get-own-property-descriptor.js +3 -1
- package/es/object/get-own-property-descriptors.js +2 -1
- package/es/object/get-own-property-names.js +3 -1
- package/es/object/get-own-property-symbols.js +2 -1
- package/es/object/get-prototype-of.js +2 -1
- package/es/object/index.js +2 -1
- package/es/object/is-extensible.js +2 -1
- package/es/object/is-frozen.js +2 -1
- package/es/object/is-sealed.js +2 -1
- package/es/object/is.js +2 -1
- package/es/object/keys.js +2 -1
- package/es/object/lookup-getter.js +2 -1
- package/es/object/lookup-setter.js +2 -1
- package/es/object/prevent-extensions.js +2 -1
- package/es/object/seal.js +2 -1
- package/es/object/set-prototype-of.js +2 -1
- package/es/object/values.js +2 -1
- package/es/parse-float.js +2 -1
- package/es/parse-int.js +2 -1
- package/es/promise/all-settled.js +11 -0
- package/es/promise/finally.js +2 -1
- package/es/promise/index.js +3 -1
- package/es/reflect/apply.js +2 -1
- package/es/reflect/construct.js +2 -1
- package/es/reflect/define-property.js +2 -1
- package/es/reflect/delete-property.js +2 -1
- package/es/reflect/get-own-property-descriptor.js +2 -1
- package/es/reflect/get-prototype-of.js +2 -1
- package/es/reflect/get.js +2 -1
- package/es/reflect/has.js +2 -1
- package/es/reflect/index.js +2 -1
- package/es/reflect/is-extensible.js +2 -1
- package/es/reflect/own-keys.js +2 -1
- package/es/reflect/prevent-extensions.js +2 -1
- package/es/reflect/set-prototype-of.js +2 -1
- package/es/reflect/set.js +2 -1
- package/es/regexp/match.js +3 -1
- package/es/regexp/replace.js +3 -1
- package/es/regexp/search.js +3 -1
- package/es/regexp/split.js +3 -1
- package/es/set/index.js +2 -1
- package/es/string/anchor.js +2 -1
- package/es/string/big.js +2 -1
- package/es/string/blink.js +2 -1
- package/es/string/bold.js +2 -1
- package/es/string/code-point-at.js +2 -1
- package/es/string/ends-with.js +2 -1
- package/es/string/fixed.js +2 -1
- package/es/string/fontcolor.js +2 -1
- package/es/string/fontsize.js +2 -1
- package/es/string/from-code-point.js +2 -1
- package/es/string/includes.js +2 -1
- package/es/string/index.js +2 -1
- package/es/string/italics.js +2 -1
- package/es/string/iterator.js +3 -1
- package/es/string/link.js +2 -1
- package/es/string/match-all.js +2 -1
- package/es/string/match.js +2 -1
- package/es/string/pad-end.js +2 -1
- package/es/string/pad-start.js +2 -1
- package/es/string/raw.js +2 -1
- package/es/string/repeat.js +2 -1
- package/es/string/replace.js +2 -1
- package/es/string/search.js +2 -1
- package/es/string/small.js +2 -1
- package/es/string/split.js +2 -1
- package/es/string/starts-with.js +2 -1
- package/es/string/strike.js +2 -1
- package/es/string/sub.js +2 -1
- package/es/string/sup.js +2 -1
- package/es/string/trim-end.js +2 -1
- package/es/string/trim-left.js +2 -1
- package/es/string/trim-right.js +2 -1
- package/es/string/trim-start.js +2 -1
- package/es/string/trim.js +2 -1
- package/es/string/virtual/anchor.js +2 -1
- package/es/string/virtual/big.js +2 -1
- package/es/string/virtual/blink.js +2 -1
- package/es/string/virtual/bold.js +2 -1
- package/es/string/virtual/code-point-at.js +2 -1
- package/es/string/virtual/ends-with.js +2 -1
- package/es/string/virtual/fixed.js +2 -1
- package/es/string/virtual/fontcolor.js +2 -1
- package/es/string/virtual/fontsize.js +2 -1
- package/es/string/virtual/includes.js +2 -1
- package/es/string/virtual/index.js +2 -1
- package/es/string/virtual/italics.js +2 -1
- package/es/string/virtual/iterator.js +2 -1
- package/es/string/virtual/link.js +2 -1
- package/es/string/virtual/match-all.js +2 -1
- package/es/string/virtual/pad-end.js +2 -1
- package/es/string/virtual/pad-start.js +2 -1
- package/es/string/virtual/repeat.js +2 -1
- package/es/string/virtual/small.js +2 -1
- package/es/string/virtual/starts-with.js +2 -1
- package/es/string/virtual/strike.js +2 -1
- package/es/string/virtual/sub.js +2 -1
- package/es/string/virtual/sup.js +2 -1
- package/es/string/virtual/trim-end.js +2 -1
- package/es/string/virtual/trim-left.js +2 -1
- package/es/string/virtual/trim-right.js +2 -1
- package/es/string/virtual/trim-start.js +2 -1
- package/es/string/virtual/trim.js +2 -1
- package/es/symbol/async-iterator.js +2 -1
- package/es/symbol/for.js +2 -1
- package/es/symbol/has-instance.js +2 -1
- package/es/symbol/index.js +2 -1
- package/es/symbol/is-concat-spreadable.js +2 -1
- package/es/symbol/iterator.js +2 -1
- package/es/symbol/key-for.js +2 -1
- package/es/symbol/match-all.js +2 -1
- package/es/symbol/match.js +2 -1
- package/es/symbol/replace.js +2 -1
- package/es/symbol/search.js +2 -1
- package/es/symbol/species.js +3 -1
- package/es/symbol/split.js +2 -1
- package/es/symbol/to-primitive.js +2 -1
- package/es/symbol/to-string-tag.js +2 -1
- package/es/symbol/unscopables.js +2 -1
- package/es/typed-array/float32-array.js +2 -1
- package/es/typed-array/float64-array.js +2 -1
- package/es/typed-array/int16-array.js +2 -1
- package/es/typed-array/int32-array.js +2 -1
- package/es/typed-array/int8-array.js +2 -1
- package/es/typed-array/uint16-array.js +2 -1
- package/es/typed-array/uint32-array.js +2 -1
- package/es/typed-array/uint8-array.js +2 -1
- package/es/typed-array/uint8-clamped-array.js +2 -1
- package/es/weak-map/index.js +2 -1
- package/es/weak-set/index.js +2 -1
- package/features/aggregate-error.js +2 -1
- package/features/array/index.js +1 -0
- package/features/array/is-template-object.js +4 -0
- package/features/composite-key.js +2 -1
- package/features/composite-symbol.js +2 -1
- package/features/dom-collections/for-each.js +1 -3
- package/features/dom-collections/index.js +1 -11
- package/features/dom-collections/iterator.js +1 -3
- package/features/global-this.js +1 -1
- package/features/instance/at.js +1 -0
- package/features/instance/code-points.js +1 -0
- package/features/instance/replace-all.js +1 -0
- package/features/map/delete-all.js +2 -1
- package/features/map/every.js +2 -1
- package/features/map/filter.js +2 -1
- package/features/map/find-key.js +2 -1
- package/features/map/find.js +2 -1
- package/features/map/from.js +5 -1
- package/features/map/group-by.js +3 -1
- package/features/map/includes.js +2 -1
- package/features/map/index.js +1 -0
- package/features/map/key-by.js +3 -1
- package/features/map/key-of.js +2 -1
- package/features/map/map-keys.js +2 -1
- package/features/map/map-values.js +2 -1
- package/features/map/merge.js +2 -1
- package/features/map/of.js +5 -1
- package/features/map/reduce.js +2 -1
- package/features/map/some.js +2 -1
- package/features/map/update-or-insert.js +5 -0
- package/features/map/update.js +2 -1
- package/features/math/clamp.js +2 -1
- package/features/math/degrees.js +2 -1
- package/features/math/fscale.js +2 -1
- package/features/math/iaddh.js +2 -1
- package/features/math/imulh.js +2 -1
- package/features/math/isubh.js +2 -1
- package/features/math/radians.js +2 -1
- package/features/math/scale.js +2 -1
- package/features/math/seeded-prng.js +2 -1
- package/features/math/signbit.js +2 -1
- package/features/math/umulh.js +2 -1
- package/features/number/from-string.js +2 -1
- package/features/observable/index.js +2 -1
- package/features/promise/all-settled.js +2 -7
- package/features/promise/any.js +3 -1
- package/features/promise/index.js +1 -0
- package/features/promise/try.js +3 -1
- package/features/reflect/define-metadata.js +2 -1
- package/features/reflect/delete-metadata.js +4 -1
- package/features/reflect/get-metadata-keys.js +2 -1
- package/features/reflect/get-metadata.js +2 -1
- package/features/reflect/get-own-metadata-keys.js +2 -1
- package/features/reflect/get-own-metadata.js +2 -1
- package/features/reflect/has-metadata.js +2 -1
- package/features/reflect/has-own-metadata.js +2 -1
- package/features/reflect/metadata.js +2 -1
- package/features/set/add-all.js +2 -1
- package/features/set/delete-all.js +2 -1
- package/features/set/difference.js +4 -1
- package/features/set/every.js +2 -1
- package/features/set/filter.js +2 -1
- package/features/set/find.js +2 -1
- package/features/set/from.js +5 -1
- package/features/set/intersection.js +2 -1
- package/features/set/is-disjoint-from.js +2 -1
- package/features/set/is-subset-of.js +4 -1
- package/features/set/is-superset-of.js +2 -1
- package/features/set/join.js +2 -1
- package/features/set/map.js +2 -1
- package/features/set/of.js +5 -1
- package/features/set/reduce.js +2 -1
- package/features/set/some.js +2 -1
- package/features/set/symmetric-difference.js +4 -1
- package/features/set/union.js +4 -1
- package/features/string/at.js +2 -1
- package/features/string/replace-all.js +2 -1
- package/features/string/virtual/at.js +2 -1
- package/features/string/virtual/replace-all.js +2 -1
- package/features/symbol/async-dispose.js +4 -0
- package/features/symbol/dispose.js +2 -1
- package/features/symbol/index.js +1 -0
- package/features/symbol/observable.js +2 -1
- package/features/symbol/pattern-match.js +2 -1
- package/features/symbol/replace-all.js +2 -1
- package/features/url/index.js +1 -5
- package/features/url/to-json.js +1 -1
- package/features/url-search-params/index.js +1 -3
- package/features/weak-map/delete-all.js +2 -1
- package/features/weak-map/from.js +5 -1
- package/features/weak-map/of.js +5 -1
- package/features/weak-set/add-all.js +2 -1
- package/features/weak-set/delete-all.js +2 -1
- package/features/weak-set/from.js +5 -1
- package/features/weak-set/of.js +5 -1
- package/internals/a-possible-prototype.js +7 -0
- package/internals/add-to-unscopables.js +3 -1
- package/internals/advance-string-index.js +2 -2
- package/internals/array-buffer-view-core.js +7 -4
- package/internals/array-buffer.js +13 -12
- package/internals/array-copy-within.js +3 -1
- package/internals/array-for-each.js +5 -7
- package/internals/array-from.js +1 -1
- package/internals/array-includes.js +12 -7
- package/internals/{array-methods.js → array-iteration.js} +30 -18
- package/internals/array-last-index-of.js +6 -4
- package/internals/array-method-has-species-support.js +3 -1
- package/internals/array-reduce.js +30 -21
- package/internals/array-species-create.js +3 -1
- package/internals/check-correctness-of-iteration.js +3 -1
- package/internals/classof.js +3 -1
- package/internals/collection-delete-all.js +3 -1
- package/internals/collection-from.js +3 -2
- package/internals/collection-strong.js +1 -0
- package/internals/collection-weak.js +6 -5
- package/internals/collection.js +16 -16
- package/internals/composite-key.js +1 -0
- package/internals/correct-is-regexp-logic.js +3 -1
- package/internals/correct-prototype-getter.js +3 -1
- package/internals/create-html.js +1 -0
- package/internals/date-to-iso-string.js +12 -13
- package/internals/define-iterator.js +5 -3
- package/internals/descriptors.js +3 -1
- package/internals/document-create-element.js +5 -3
- package/internals/entry-unbind.js +1 -0
- package/internals/forced-string-trim-method.js +1 -0
- package/internals/freezing.js +3 -1
- package/internals/function-bind.js +4 -3
- package/internals/function-to-string.js +3 -1
- package/internals/get-iterator-method.js +3 -1
- package/internals/html.js +2 -2
- package/internals/indexed-object.js +2 -1
- package/internals/inherit-if-required.js +13 -6
- package/internals/internal-metadata.js +4 -2
- package/internals/internal-state.js +3 -1
- package/internals/is-array-iterator-method.js +4 -2
- package/internals/is-forced.js +1 -0
- package/internals/is-integer.js +1 -0
- package/internals/is-iterable.js +3 -1
- package/internals/is-regexp.js +3 -1
- package/internals/iterate.js +19 -10
- package/internals/iterators-core.js +3 -1
- package/internals/math-expm1.js +2 -1
- package/internals/math-fround.js +3 -1
- package/internals/math-log1p.js +3 -1
- package/internals/microtask.js +4 -2
- package/internals/native-promise-constructor.js +3 -0
- package/internals/native-url.js +4 -2
- package/internals/native-weak-map.js +3 -1
- package/internals/new-promise-capability.js +1 -1
- package/internals/not-a-regexp.js +7 -0
- package/internals/number-is-finite.js +3 -1
- package/internals/object-assign.js +3 -1
- package/internals/object-create.js +5 -2
- package/internals/object-define-properties.js +4 -2
- package/internals/object-define-property.js +3 -0
- package/internals/object-get-own-property-descriptor.js +3 -0
- package/internals/object-get-own-property-names-external.js +2 -1
- package/internals/object-get-own-property-names.js +5 -2
- package/internals/object-get-prototype-of.js +5 -2
- package/internals/object-keys-internal.js +2 -2
- package/internals/object-keys.js +2 -1
- package/internals/object-property-is-enumerable.js +5 -3
- package/internals/object-set-prototype-of.js +10 -6
- package/internals/object-to-array.js +25 -15
- package/internals/object-to-string.js +3 -1
- package/internals/own-keys.js +2 -2
- package/internals/parse-float.js +10 -6
- package/internals/parse-int.js +9 -5
- package/internals/punycode-to-ascii.js +2 -4
- package/internals/redefine.js +1 -0
- package/internals/reflect-metadata.js +5 -2
- package/internals/regexp-exec.js +0 -1
- package/internals/regexp-flags.js +1 -0
- package/internals/set-species.js +11 -6
- package/internals/set-to-string-tag.js +3 -1
- package/internals/shared-key.js +4 -2
- package/internals/shared.js +2 -1
- package/internals/species-constructor.js +3 -1
- package/internals/string-multibyte.js +27 -0
- package/internals/string-pad.js +25 -11
- package/internals/string-trim.js +23 -9
- package/internals/task.js +1 -0
- package/internals/to-absolute-index.js +1 -0
- package/internals/to-length.js +1 -0
- package/internals/to-primitive.js +8 -6
- package/internals/typed-array-constructor.js +98 -95
- package/internals/typed-arrays-constructors-requires-wrappers.js +1 -0
- package/internals/uid.js +1 -1
- package/internals/user-agent.js +2 -3
- package/internals/well-known-symbol.js +5 -2
- package/modules/es.array-buffer.constructor.js +9 -4
- package/modules/es.array-buffer.is-view.js +3 -1
- package/modules/es.array-buffer.slice.js +5 -2
- package/modules/es.array.concat.js +9 -4
- package/modules/es.array.copy-within.js +7 -3
- package/modules/es.array.every.js +5 -5
- package/modules/es.array.fill.js +8 -2
- package/modules/es.array.filter.js +5 -5
- package/modules/es.array.find-index.js +7 -4
- package/modules/es.array.find.js +7 -4
- package/modules/es.array.flat-map.js +3 -2
- package/modules/es.array.flat.js +3 -2
- package/modules/es.array.for-each.js +4 -1
- package/modules/es.array.from.js +7 -3
- package/modules/es.array.includes.js +6 -4
- package/modules/es.array.index-of.js +7 -4
- package/modules/es.array.is-array.js +6 -1
- package/modules/es.array.iterator.js +1 -0
- package/modules/es.array.join.js +7 -3
- package/modules/es.array.last-index-of.js +4 -3
- package/modules/es.array.map.js +5 -5
- package/modules/es.array.of.js +4 -2
- package/modules/es.array.reduce-right.js +5 -5
- package/modules/es.array.reduce.js +5 -5
- package/modules/es.array.reverse.js +3 -1
- package/modules/es.array.slice.js +6 -4
- package/modules/es.array.some.js +5 -5
- package/modules/es.array.sort.js +5 -2
- package/modules/es.array.species.js +3 -1
- package/modules/es.array.splice.js +4 -3
- package/modules/es.array.unscopables.flat-map.js +3 -1
- package/modules/es.array.unscopables.flat.js +3 -1
- package/modules/es.data-view.js +4 -2
- package/modules/es.date.now.js +3 -1
- package/modules/es.date.to-iso-string.js +2 -1
- package/modules/es.date.to-json.js +4 -2
- package/modules/es.date.to-primitive.js +3 -1
- package/modules/es.date.to-string.js +3 -1
- package/modules/es.function.bind.js +5 -2
- package/modules/es.function.has-instance.js +3 -1
- package/modules/es.function.name.js +1 -0
- package/modules/es.json.to-string-tag.js +4 -1
- package/modules/es.map.js +6 -3
- package/modules/es.math.acosh.js +3 -1
- package/modules/es.math.asinh.js +3 -1
- package/modules/es.math.atanh.js +3 -1
- package/modules/es.math.cbrt.js +3 -1
- package/modules/es.math.clz32.js +3 -1
- package/modules/es.math.cosh.js +3 -1
- package/modules/es.math.expm1.js +3 -4
- package/modules/es.math.fround.js +4 -1
- package/modules/es.math.hypot.js +8 -1
- package/modules/es.math.imul.js +5 -2
- package/modules/es.math.log10.js +3 -1
- package/modules/es.math.log1p.js +4 -1
- package/modules/es.math.log2.js +3 -1
- package/modules/es.math.sign.js +6 -1
- package/modules/es.math.sinh.js +5 -2
- package/modules/es.math.tanh.js +3 -1
- package/modules/es.math.to-string-tag.js +3 -1
- package/modules/es.math.trunc.js +3 -1
- package/modules/es.number.constructor.js +16 -13
- package/modules/es.number.epsilon.js +5 -1
- package/modules/es.number.is-finite.js +4 -3
- package/modules/es.number.is-integer.js +5 -2
- package/modules/es.number.is-nan.js +3 -1
- package/modules/es.number.is-safe-integer.js +3 -1
- package/modules/es.number.max-safe-integer.js +5 -1
- package/modules/es.number.min-safe-integer.js +5 -1
- package/modules/es.number.parse-float.js +2 -1
- package/modules/es.number.parse-int.js +2 -1
- package/modules/es.number.to-fixed.js +67 -58
- package/modules/es.number.to-precision.js +8 -4
- package/modules/es.object.assign.js +4 -1
- package/modules/es.object.create.js +7 -3
- package/modules/es.object.define-getter.js +5 -3
- package/modules/es.object.define-properties.js +4 -2
- package/modules/es.object.define-property.js +4 -2
- package/modules/es.object.define-setter.js +5 -3
- package/modules/es.object.entries.js +4 -3
- package/modules/es.object.freeze.js +6 -3
- package/modules/es.object.from-entries.js +2 -1
- package/modules/es.object.get-own-property-descriptor.js +5 -2
- package/modules/es.object.get-own-property-descriptors.js +5 -4
- package/modules/es.object.get-own-property-names.js +5 -2
- package/modules/es.object.get-prototype-of.js +5 -4
- package/modules/es.object.is-extensible.js +5 -2
- package/modules/es.object.is-frozen.js +5 -2
- package/modules/es.object.is-sealed.js +5 -2
- package/modules/es.object.is.js +6 -1
- package/modules/es.object.keys.js +5 -2
- package/modules/es.object.lookup-getter.js +5 -3
- package/modules/es.object.lookup-setter.js +5 -3
- package/modules/es.object.prevent-extensions.js +6 -3
- package/modules/es.object.seal.js +6 -3
- package/modules/es.object.set-prototype-of.js +5 -2
- package/modules/es.object.to-string.js +3 -1
- package/modules/es.object.values.js +4 -3
- package/modules/es.parse-float.js +2 -1
- package/modules/es.parse-int.js +2 -1
- package/modules/es.promise.all-settled.js +43 -0
- package/modules/es.promise.finally.js +10 -1
- package/modules/es.promise.js +48 -25
- package/modules/es.reflect.apply.js +7 -3
- package/modules/es.reflect.construct.js +7 -4
- package/modules/es.reflect.define-property.js +8 -6
- package/modules/es.reflect.delete-property.js +3 -2
- package/modules/es.reflect.get-own-property-descriptor.js +4 -3
- package/modules/es.reflect.get-prototype-of.js +3 -2
- package/modules/es.reflect.get.js +7 -4
- package/modules/es.reflect.has.js +3 -1
- package/modules/es.reflect.is-extensible.js +3 -1
- package/modules/es.reflect.own-keys.js +6 -1
- package/modules/es.reflect.prevent-extensions.js +2 -1
- package/modules/es.reflect.set-prototype-of.js +6 -3
- package/modules/es.reflect.set.js +7 -4
- package/modules/es.regexp.constructor.js +8 -5
- package/modules/es.regexp.exec.js +4 -4
- package/modules/es.regexp.flags.js +7 -3
- package/modules/es.regexp.to-string.js +4 -2
- package/modules/es.set.js +6 -3
- package/modules/es.string.anchor.js +3 -2
- package/modules/es.string.big.js +3 -2
- package/modules/es.string.blink.js +3 -2
- package/modules/es.string.bold.js +3 -2
- package/modules/es.string.code-point-at.js +4 -3
- package/modules/es.string.ends-with.js +9 -7
- package/modules/es.string.fixed.js +3 -2
- package/modules/es.string.fontcolor.js +3 -2
- package/modules/es.string.fontsize.js +3 -2
- package/modules/es.string.from-code-point.js +3 -1
- package/modules/es.string.includes.js +7 -7
- package/modules/es.string.italics.js +3 -2
- package/modules/es.string.iterator.js +3 -2
- package/modules/es.string.link.js +3 -2
- package/modules/es.string.match-all.js +6 -3
- package/modules/es.string.match.js +32 -36
- package/modules/es.string.pad-end.js +4 -3
- package/modules/es.string.pad-start.js +4 -3
- package/modules/es.string.raw.js +2 -1
- package/modules/es.string.repeat.js +5 -2
- package/modules/es.string.replace.js +95 -98
- package/modules/es.string.search.js +25 -29
- package/modules/es.string.small.js +3 -2
- package/modules/es.string.split.js +107 -111
- package/modules/es.string.starts-with.js +11 -7
- package/modules/es.string.strike.js +3 -2
- package/modules/es.string.sub.js +3 -2
- package/modules/es.string.sup.js +3 -2
- package/modules/es.string.trim-end.js +7 -4
- package/modules/es.string.trim-start.js +7 -4
- package/modules/es.string.trim.js +5 -4
- package/modules/es.symbol.async-iterator.js +3 -1
- package/modules/es.symbol.description.js +7 -2
- package/modules/es.symbol.has-instance.js +3 -1
- package/modules/es.symbol.is-concat-spreadable.js +3 -1
- package/modules/es.symbol.iterator.js +3 -1
- package/modules/es.symbol.js +107 -95
- package/modules/es.symbol.match-all.js +3 -1
- package/modules/es.symbol.match.js +3 -1
- package/modules/es.symbol.replace.js +3 -1
- package/modules/es.symbol.search.js +3 -1
- package/modules/es.symbol.species.js +3 -1
- package/modules/es.symbol.split.js +3 -1
- package/modules/es.symbol.to-primitive.js +3 -1
- package/modules/es.symbol.to-string-tag.js +3 -1
- package/modules/es.symbol.unscopables.js +3 -1
- package/modules/es.typed-array.copy-within.js +3 -2
- package/modules/es.typed-array.every.js +3 -2
- package/modules/es.typed-array.fill.js +3 -2
- package/modules/es.typed-array.filter.js +4 -3
- package/modules/es.typed-array.find-index.js +3 -2
- package/modules/es.typed-array.find.js +3 -2
- package/modules/es.typed-array.float32-array.js +3 -1
- package/modules/es.typed-array.float64-array.js +3 -1
- package/modules/es.typed-array.for-each.js +3 -2
- package/modules/es.typed-array.includes.js +3 -2
- package/modules/es.typed-array.index-of.js +3 -2
- package/modules/es.typed-array.int16-array.js +3 -1
- package/modules/es.typed-array.int32-array.js +3 -1
- package/modules/es.typed-array.int8-array.js +3 -1
- package/modules/es.typed-array.iterator.js +6 -3
- package/modules/es.typed-array.join.js +3 -2
- package/modules/es.typed-array.last-index-of.js +3 -2
- package/modules/es.typed-array.map.js +6 -6
- package/modules/es.typed-array.of.js +2 -1
- package/modules/es.typed-array.reduce-right.js +3 -3
- package/modules/es.typed-array.reduce.js +3 -3
- package/modules/es.typed-array.reverse.js +3 -1
- package/modules/es.typed-array.set.js +5 -3
- package/modules/es.typed-array.slice.js +6 -4
- package/modules/es.typed-array.some.js +3 -2
- package/modules/es.typed-array.sort.js +3 -2
- package/modules/es.typed-array.subarray.js +2 -1
- package/modules/es.typed-array.to-locale-string.js +10 -7
- package/modules/es.typed-array.to-string.js +6 -3
- package/modules/es.typed-array.uint16-array.js +3 -1
- package/modules/es.typed-array.uint32-array.js +3 -1
- package/modules/es.typed-array.uint8-array.js +3 -1
- package/modules/es.typed-array.uint8-clamped-array.js +3 -1
- package/modules/es.weak-map.js +6 -4
- package/modules/es.weak-set.js +6 -3
- package/modules/esnext.aggregate-error.js +6 -4
- package/modules/esnext.array.is-template-object.js +28 -0
- package/modules/esnext.array.last-index.js +2 -1
- package/modules/esnext.array.last-item.js +2 -1
- package/modules/esnext.composite-key.js +2 -1
- package/modules/esnext.composite-symbol.js +2 -1
- package/modules/esnext.global-this.js +6 -1
- package/modules/esnext.map.delete-all.js +3 -3
- package/modules/esnext.map.every.js +7 -6
- package/modules/esnext.map.filter.js +7 -6
- package/modules/esnext.map.find-key.js +7 -6
- package/modules/esnext.map.find.js +7 -6
- package/modules/esnext.map.from.js +5 -2
- package/modules/esnext.map.group-by.js +2 -1
- package/modules/esnext.map.includes.js +7 -8
- package/modules/esnext.map.key-by.js +2 -1
- package/modules/esnext.map.key-of.js +7 -8
- package/modules/esnext.map.map-keys.js +7 -6
- package/modules/esnext.map.map-values.js +7 -6
- package/modules/esnext.map.merge.js +3 -1
- package/modules/esnext.map.of.js +5 -2
- package/modules/esnext.map.reduce.js +8 -6
- package/modules/esnext.map.some.js +7 -6
- package/modules/esnext.map.update-or-insert.js +18 -0
- package/modules/esnext.map.update.js +6 -3
- package/modules/esnext.math.clamp.js +3 -1
- package/modules/esnext.math.deg-per-rad.js +5 -1
- package/modules/esnext.math.degrees.js +5 -3
- package/modules/esnext.math.fscale.js +3 -1
- package/modules/esnext.math.iaddh.js +3 -1
- package/modules/esnext.math.imulh.js +3 -1
- package/modules/esnext.math.isubh.js +3 -1
- package/modules/esnext.math.rad-per-deg.js +5 -1
- package/modules/esnext.math.radians.js +3 -1
- package/modules/esnext.math.scale.js +6 -1
- package/modules/esnext.math.seeded-prng.js +4 -2
- package/modules/esnext.math.signbit.js +8 -4
- package/modules/esnext.math.umulh.js +3 -1
- package/modules/esnext.number.from-string.js +3 -1
- package/modules/esnext.observable.js +33 -26
- package/modules/esnext.promise.all-settled.js +2 -42
- package/modules/esnext.promise.any.js +5 -3
- package/modules/esnext.promise.try.js +4 -3
- package/modules/esnext.reflect.define-metadata.js +3 -1
- package/modules/esnext.reflect.delete-metadata.js +3 -1
- package/modules/esnext.reflect.get-metadata-keys.js +4 -1
- package/modules/esnext.reflect.get-metadata.js +3 -1
- package/modules/esnext.reflect.get-own-metadata-keys.js +3 -1
- package/modules/esnext.reflect.get-own-metadata.js +3 -1
- package/modules/esnext.reflect.has-metadata.js +3 -1
- package/modules/esnext.reflect.has-own-metadata.js +3 -1
- package/modules/esnext.reflect.metadata.js +3 -1
- package/modules/esnext.set.add-all.js +3 -1
- package/modules/esnext.set.delete-all.js +3 -1
- package/modules/esnext.set.difference.js +3 -1
- package/modules/esnext.set.every.js +7 -5
- package/modules/esnext.set.filter.js +7 -5
- package/modules/esnext.set.find.js +7 -5
- package/modules/esnext.set.from.js +5 -2
- package/modules/esnext.set.intersection.js +3 -1
- package/modules/esnext.set.is-disjoint-from.js +6 -5
- package/modules/esnext.set.is-subset-of.js +6 -5
- package/modules/esnext.set.is-superset-of.js +6 -5
- package/modules/esnext.set.join.js +5 -3
- package/modules/esnext.set.map.js +7 -5
- package/modules/esnext.set.of.js +5 -2
- package/modules/esnext.set.reduce.js +8 -5
- package/modules/esnext.set.some.js +7 -5
- package/modules/esnext.set.symmetric-difference.js +3 -1
- package/modules/esnext.set.union.js +3 -1
- package/modules/esnext.string.at.js +4 -3
- package/modules/esnext.string.code-points.js +8 -4
- package/modules/esnext.string.replace-all.js +9 -6
- package/modules/esnext.symbol.async-dispose.js +5 -0
- package/modules/esnext.symbol.dispose.js +4 -2
- package/modules/esnext.symbol.observable.js +4 -1
- package/modules/esnext.symbol.pattern-match.js +3 -1
- package/modules/esnext.symbol.replace-all.js +3 -1
- package/modules/esnext.weak-map.delete-all.js +3 -3
- package/modules/esnext.weak-map.from.js +5 -2
- package/modules/esnext.weak-map.of.js +5 -2
- package/modules/esnext.weak-set.add-all.js +3 -2
- package/modules/esnext.weak-set.delete-all.js +3 -2
- package/modules/esnext.weak-set.from.js +5 -2
- package/modules/esnext.weak-set.of.js +5 -2
- package/modules/web.dom-collections.for-each.js +1 -1
- package/modules/web.dom-collections.iterator.js +2 -1
- package/modules/web.immediate.js +6 -0
- package/modules/web.queue-microtask.js +9 -5
- package/modules/web.timers.js +15 -9
- package/modules/web.url-search-params.js +59 -42
- package/modules/web.url.js +53 -47
- package/modules/web.url.to-json.js +3 -1
- package/package.json +2 -2
- package/proposals/array-is-template-object.js +1 -0
- package/proposals/map-update-or-insert.js +1 -0
- package/proposals/promise-all-settled.js +1 -0
- package/proposals/string-match-all.js +0 -2
- package/proposals/using-statement.js +1 -0
- package/scripts/postinstall.js +20 -8
- package/stable/dom-collections/index.js +2 -1
- package/stable/dom-collections/iterator.js +2 -1
- package/stable/promise/all-settled.js +1 -0
- package/stage/1.js +2 -3
- package/stage/2.js +3 -0
- package/stage/3.js +0 -1
- package/stage/4.js +1 -0
- package/web/queue-microtask.js +2 -1
- package/web/url-search-params.js +2 -1
- package/web/url.js +2 -1
- package/internals/enum-keys.js +0 -16
- package/internals/string-at.js +0 -16
- package/internals/validate-set-prototype-of-arguments.js +0 -9
- package/internals/validate-string-method-arguments.js +0 -9
|
@@ -4,6 +4,7 @@ var addToUnscopables = require('../internals/add-to-unscopables');
|
|
|
4
4
|
var Iterators = require('../internals/iterators');
|
|
5
5
|
var InternalStateModule = require('../internals/internal-state');
|
|
6
6
|
var defineIterator = require('../internals/define-iterator');
|
|
7
|
+
|
|
7
8
|
var ARRAY_ITERATOR = 'Array Iterator';
|
|
8
9
|
var setInternalState = InternalStateModule.set;
|
|
9
10
|
var getInternalState = InternalStateModule.getterFor(ARRAY_ITERATOR);
|
package/modules/es.array.join.js
CHANGED
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
'use strict';
|
|
2
|
+
var $ = require('../internals/export');
|
|
3
|
+
var IndexedObject = require('../internals/indexed-object');
|
|
2
4
|
var toIndexedObject = require('../internals/to-indexed-object');
|
|
5
|
+
var sloppyArrayMethod = require('../internals/sloppy-array-method');
|
|
6
|
+
|
|
3
7
|
var nativeJoin = [].join;
|
|
4
8
|
|
|
5
|
-
var ES3_STRINGS =
|
|
6
|
-
var SLOPPY_METHOD =
|
|
9
|
+
var ES3_STRINGS = IndexedObject != Object;
|
|
10
|
+
var SLOPPY_METHOD = sloppyArrayMethod('join', ',');
|
|
7
11
|
|
|
8
12
|
// `Array.prototype.join` method
|
|
9
13
|
// https://tc39.github.io/ecma262/#sec-array.prototype.join
|
|
10
|
-
|
|
14
|
+
$({ target: 'Array', proto: true, forced: ES3_STRINGS || SLOPPY_METHOD }, {
|
|
11
15
|
join: function join(separator) {
|
|
12
16
|
return nativeJoin.call(toIndexedObject(this), separator === undefined ? ',' : separator);
|
|
13
17
|
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
var
|
|
1
|
+
var $ = require('../internals/export');
|
|
2
|
+
var lastIndexOf = require('../internals/array-last-index-of');
|
|
2
3
|
|
|
3
4
|
// `Array.prototype.lastIndexOf` method
|
|
4
5
|
// https://tc39.github.io/ecma262/#sec-array.prototype.lastindexof
|
|
5
|
-
|
|
6
|
-
lastIndexOf:
|
|
6
|
+
$({ target: 'Array', proto: true, forced: lastIndexOf !== [].lastIndexOf }, {
|
|
7
|
+
lastIndexOf: lastIndexOf
|
|
7
8
|
});
|
package/modules/es.array.map.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
|
-
var
|
|
3
|
-
|
|
4
|
-
var
|
|
2
|
+
var $ = require('../internals/export');
|
|
3
|
+
var $map = require('../internals/array-iteration').map;
|
|
4
|
+
var arrayMethodHasSpeciesSupport = require('../internals/array-method-has-species-support');
|
|
5
5
|
|
|
6
6
|
// `Array.prototype.map` method
|
|
7
7
|
// https://tc39.github.io/ecma262/#sec-array.prototype.map
|
|
8
8
|
// with adding support of @@species
|
|
9
|
-
|
|
9
|
+
$({ target: 'Array', proto: true, forced: !arrayMethodHasSpeciesSupport('map') }, {
|
|
10
10
|
map: function map(callbackfn /* , thisArg */) {
|
|
11
|
-
return
|
|
11
|
+
return $map(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
|
|
12
12
|
}
|
|
13
13
|
});
|
package/modules/es.array.of.js
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
|
+
var $ = require('../internals/export');
|
|
3
|
+
var fails = require('../internals/fails');
|
|
2
4
|
var createProperty = require('../internals/create-property');
|
|
3
5
|
|
|
4
|
-
var ISNT_GENERIC =
|
|
6
|
+
var ISNT_GENERIC = fails(function () {
|
|
5
7
|
function F() { /* empty */ }
|
|
6
8
|
return !(Array.of.call(F) instanceof F);
|
|
7
9
|
});
|
|
@@ -9,7 +11,7 @@ var ISNT_GENERIC = require('../internals/fails')(function () {
|
|
|
9
11
|
// `Array.of` method
|
|
10
12
|
// https://tc39.github.io/ecma262/#sec-array.of
|
|
11
13
|
// WebKit Array.of isn't generic
|
|
12
|
-
|
|
14
|
+
$({ target: 'Array', stat: true, forced: ISNT_GENERIC }, {
|
|
13
15
|
of: function of(/* ...args */) {
|
|
14
16
|
var index = 0;
|
|
15
17
|
var argumentsLength = arguments.length;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
|
-
var
|
|
3
|
-
|
|
4
|
-
var
|
|
2
|
+
var $ = require('../internals/export');
|
|
3
|
+
var $reduceRight = require('../internals/array-reduce').right;
|
|
4
|
+
var sloppyArrayMethod = require('../internals/sloppy-array-method');
|
|
5
5
|
|
|
6
6
|
// `Array.prototype.reduceRight` method
|
|
7
7
|
// https://tc39.github.io/ecma262/#sec-array.prototype.reduceright
|
|
8
|
-
|
|
8
|
+
$({ target: 'Array', proto: true, forced: sloppyArrayMethod('reduceRight') }, {
|
|
9
9
|
reduceRight: function reduceRight(callbackfn /* , initialValue */) {
|
|
10
|
-
return
|
|
10
|
+
return $reduceRight(this, callbackfn, arguments.length, arguments.length > 1 ? arguments[1] : undefined);
|
|
11
11
|
}
|
|
12
12
|
});
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
|
-
var
|
|
3
|
-
|
|
4
|
-
var
|
|
2
|
+
var $ = require('../internals/export');
|
|
3
|
+
var $reduce = require('../internals/array-reduce').left;
|
|
4
|
+
var sloppyArrayMethod = require('../internals/sloppy-array-method');
|
|
5
5
|
|
|
6
6
|
// `Array.prototype.reduce` method
|
|
7
7
|
// https://tc39.github.io/ecma262/#sec-array.prototype.reduce
|
|
8
|
-
|
|
8
|
+
$({ target: 'Array', proto: true, forced: sloppyArrayMethod('reduce') }, {
|
|
9
9
|
reduce: function reduce(callbackfn /* , initialValue */) {
|
|
10
|
-
return
|
|
10
|
+
return $reduce(this, callbackfn, arguments.length, arguments.length > 1 ? arguments[1] : undefined);
|
|
11
11
|
}
|
|
12
12
|
});
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
|
+
var $ = require('../internals/export');
|
|
2
3
|
var isArray = require('../internals/is-array');
|
|
4
|
+
|
|
3
5
|
var nativeReverse = [].reverse;
|
|
4
6
|
var test = [1, 2];
|
|
5
7
|
|
|
@@ -7,7 +9,7 @@ var test = [1, 2];
|
|
|
7
9
|
// https://tc39.github.io/ecma262/#sec-array.prototype.reverse
|
|
8
10
|
// fix for Safari 12.0 bug
|
|
9
11
|
// https://bugs.webkit.org/show_bug.cgi?id=188794
|
|
10
|
-
|
|
12
|
+
$({ target: 'Array', proto: true, forced: String(test) === String(test.reverse()) }, {
|
|
11
13
|
reverse: function reverse() {
|
|
12
14
|
if (isArray(this)) this.length = this.length;
|
|
13
15
|
return nativeReverse.call(this);
|
|
@@ -1,20 +1,22 @@
|
|
|
1
1
|
'use strict';
|
|
2
|
+
var $ = require('../internals/export');
|
|
2
3
|
var isObject = require('../internals/is-object');
|
|
3
4
|
var isArray = require('../internals/is-array');
|
|
4
5
|
var toAbsoluteIndex = require('../internals/to-absolute-index');
|
|
5
6
|
var toLength = require('../internals/to-length');
|
|
6
7
|
var toIndexedObject = require('../internals/to-indexed-object');
|
|
7
8
|
var createProperty = require('../internals/create-property');
|
|
8
|
-
var
|
|
9
|
+
var arrayMethodHasSpeciesSupport = require('../internals/array-method-has-species-support');
|
|
10
|
+
var wellKnownSymbol = require('../internals/well-known-symbol');
|
|
11
|
+
|
|
12
|
+
var SPECIES = wellKnownSymbol('species');
|
|
9
13
|
var nativeSlice = [].slice;
|
|
10
14
|
var max = Math.max;
|
|
11
15
|
|
|
12
|
-
var SPECIES_SUPPORT = require('../internals/array-method-has-species-support')('slice');
|
|
13
|
-
|
|
14
16
|
// `Array.prototype.slice` method
|
|
15
17
|
// https://tc39.github.io/ecma262/#sec-array.prototype.slice
|
|
16
18
|
// fallback for not array-like ES3 strings and DOM objects
|
|
17
|
-
|
|
19
|
+
$({ target: 'Array', proto: true, forced: !arrayMethodHasSpeciesSupport('slice') }, {
|
|
18
20
|
slice: function slice(start, end) {
|
|
19
21
|
var O = toIndexedObject(this);
|
|
20
22
|
var length = toLength(O.length);
|
package/modules/es.array.some.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
|
-
var
|
|
3
|
-
|
|
4
|
-
var
|
|
2
|
+
var $ = require('../internals/export');
|
|
3
|
+
var $some = require('../internals/array-iteration').some;
|
|
4
|
+
var sloppyArrayMethod = require('../internals/sloppy-array-method');
|
|
5
5
|
|
|
6
6
|
// `Array.prototype.some` method
|
|
7
7
|
// https://tc39.github.io/ecma262/#sec-array.prototype.some
|
|
8
|
-
|
|
8
|
+
$({ target: 'Array', proto: true, forced: sloppyArrayMethod('some') }, {
|
|
9
9
|
some: function some(callbackfn /* , thisArg */) {
|
|
10
|
-
return
|
|
10
|
+
return $some(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
|
|
11
11
|
}
|
|
12
12
|
});
|
package/modules/es.array.sort.js
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
|
+
var $ = require('../internals/export');
|
|
2
3
|
var aFunction = require('../internals/a-function');
|
|
3
4
|
var toObject = require('../internals/to-object');
|
|
4
5
|
var fails = require('../internals/fails');
|
|
6
|
+
var sloppyArrayMethod = require('../internals/sloppy-array-method');
|
|
7
|
+
|
|
5
8
|
var nativeSort = [].sort;
|
|
6
9
|
var test = [1, 2, 3];
|
|
7
10
|
|
|
@@ -14,13 +17,13 @@ var FAILS_ON_NULL = fails(function () {
|
|
|
14
17
|
test.sort(null);
|
|
15
18
|
});
|
|
16
19
|
// Old WebKit
|
|
17
|
-
var SLOPPY_METHOD =
|
|
20
|
+
var SLOPPY_METHOD = sloppyArrayMethod('sort');
|
|
18
21
|
|
|
19
22
|
var FORCED = FAILS_ON_UNDEFINED || !FAILS_ON_NULL || SLOPPY_METHOD;
|
|
20
23
|
|
|
21
24
|
// `Array.prototype.sort` method
|
|
22
25
|
// https://tc39.github.io/ecma262/#sec-array.prototype.sort
|
|
23
|
-
|
|
26
|
+
$({ target: 'Array', proto: true, forced: FORCED }, {
|
|
24
27
|
sort: function sort(comparefn) {
|
|
25
28
|
return comparefn === undefined
|
|
26
29
|
? nativeSort.call(toObject(this))
|
|
@@ -1,21 +1,22 @@
|
|
|
1
1
|
'use strict';
|
|
2
|
+
var $ = require('../internals/export');
|
|
2
3
|
var toAbsoluteIndex = require('../internals/to-absolute-index');
|
|
3
4
|
var toInteger = require('../internals/to-integer');
|
|
4
5
|
var toLength = require('../internals/to-length');
|
|
5
6
|
var toObject = require('../internals/to-object');
|
|
6
7
|
var arraySpeciesCreate = require('../internals/array-species-create');
|
|
7
8
|
var createProperty = require('../internals/create-property');
|
|
9
|
+
var arrayMethodHasSpeciesSupport = require('../internals/array-method-has-species-support');
|
|
10
|
+
|
|
8
11
|
var max = Math.max;
|
|
9
12
|
var min = Math.min;
|
|
10
13
|
var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF;
|
|
11
14
|
var MAXIMUM_ALLOWED_LENGTH_EXCEEDED = 'Maximum allowed length exceeded';
|
|
12
15
|
|
|
13
|
-
var SPECIES_SUPPORT = require('../internals/array-method-has-species-support')('splice');
|
|
14
|
-
|
|
15
16
|
// `Array.prototype.splice` method
|
|
16
17
|
// https://tc39.github.io/ecma262/#sec-array.prototype.splice
|
|
17
18
|
// with adding support of @@species
|
|
18
|
-
|
|
19
|
+
$({ target: 'Array', proto: true, forced: !arrayMethodHasSpeciesSupport('splice') }, {
|
|
19
20
|
splice: function splice(start, deleteCount /* , ...items */) {
|
|
20
21
|
var O = toObject(this);
|
|
21
22
|
var len = toLength(O.length);
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
// this method was added to unscopables after implementation
|
|
2
2
|
// in popular engines, so it's moved to a separate module
|
|
3
|
-
require('../internals/add-to-unscopables')
|
|
3
|
+
var addToUnscopables = require('../internals/add-to-unscopables');
|
|
4
|
+
|
|
5
|
+
addToUnscopables('flatMap');
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
// this method was added to unscopables after implementation
|
|
2
2
|
// in popular engines, so it's moved to a separate module
|
|
3
|
-
require('../internals/add-to-unscopables')
|
|
3
|
+
var addToUnscopables = require('../internals/add-to-unscopables');
|
|
4
|
+
|
|
5
|
+
addToUnscopables('flat');
|
package/modules/es.data-view.js
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
var $ = require('../internals/export');
|
|
2
|
+
var ArrayBufferModule = require('../internals/array-buffer');
|
|
1
3
|
var NATIVE_ARRAY_BUFFER = require('../internals/array-buffer-view-core').NATIVE_ARRAY_BUFFER;
|
|
2
4
|
|
|
3
5
|
// `DataView` constructor
|
|
4
6
|
// https://tc39.github.io/ecma262/#sec-dataview-constructor
|
|
5
|
-
|
|
6
|
-
DataView:
|
|
7
|
+
$({ global: true, forced: !NATIVE_ARRAY_BUFFER }, {
|
|
8
|
+
DataView: ArrayBufferModule.DataView
|
|
7
9
|
});
|
package/modules/es.date.now.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
var $ = require('../internals/export');
|
|
2
|
+
|
|
1
3
|
// `Date.now` method
|
|
2
4
|
// https://tc39.github.io/ecma262/#sec-date.now
|
|
3
|
-
|
|
5
|
+
$({ target: 'Date', stat: true }, {
|
|
4
6
|
now: function now() {
|
|
5
7
|
return new Date().getTime();
|
|
6
8
|
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
var $ = require('../internals/export');
|
|
1
2
|
var toISOString = require('../internals/date-to-iso-string');
|
|
2
3
|
|
|
3
4
|
// `Date.prototype.toISOString` method
|
|
4
5
|
// https://tc39.github.io/ecma262/#sec-date.prototype.toisostring
|
|
5
6
|
// PhantomJS / old WebKit has a broken implementations
|
|
6
|
-
|
|
7
|
+
$({ target: 'Date', proto: true, forced: Date.prototype.toISOString !== toISOString }, {
|
|
7
8
|
toISOString: toISOString
|
|
8
9
|
});
|
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
'use strict';
|
|
2
|
+
var $ = require('../internals/export');
|
|
3
|
+
var fails = require('../internals/fails');
|
|
2
4
|
var toObject = require('../internals/to-object');
|
|
3
5
|
var toPrimitive = require('../internals/to-primitive');
|
|
4
6
|
|
|
5
|
-
var FORCED =
|
|
7
|
+
var FORCED = fails(function () {
|
|
6
8
|
return new Date(NaN).toJSON() !== null
|
|
7
9
|
|| Date.prototype.toJSON.call({ toISOString: function () { return 1; } }) !== 1;
|
|
8
10
|
});
|
|
9
11
|
|
|
10
12
|
// `Date.prototype.toJSON` method
|
|
11
13
|
// https://tc39.github.io/ecma262/#sec-date.prototype.tojson
|
|
12
|
-
|
|
14
|
+
$({ target: 'Date', proto: true, forced: FORCED }, {
|
|
13
15
|
// eslint-disable-next-line no-unused-vars
|
|
14
16
|
toJSON: function toJSON(key) {
|
|
15
17
|
var O = toObject(this);
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
var hide = require('../internals/hide');
|
|
2
|
-
var TO_PRIMITIVE = require('../internals/well-known-symbol')('toPrimitive');
|
|
3
2
|
var dateToPrimitive = require('../internals/date-to-primitive');
|
|
3
|
+
var wellKnownSymbol = require('../internals/well-known-symbol');
|
|
4
|
+
|
|
5
|
+
var TO_PRIMITIVE = wellKnownSymbol('toPrimitive');
|
|
4
6
|
var DatePrototype = Date.prototype;
|
|
5
7
|
|
|
6
8
|
// `Date.prototype[@@toPrimitive]` method
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
var redefine = require('../internals/redefine');
|
|
2
|
+
|
|
1
3
|
var DatePrototype = Date.prototype;
|
|
2
4
|
var INVALID_DATE = 'Invalid Date';
|
|
3
5
|
var TO_STRING = 'toString';
|
|
@@ -7,7 +9,7 @@ var getTime = DatePrototype.getTime;
|
|
|
7
9
|
// `Date.prototype.toString` method
|
|
8
10
|
// https://tc39.github.io/ecma262/#sec-date.prototype.tostring
|
|
9
11
|
if (new Date(NaN) + '' != INVALID_DATE) {
|
|
10
|
-
|
|
12
|
+
redefine(DatePrototype, TO_STRING, function toString() {
|
|
11
13
|
var value = getTime.call(this);
|
|
12
14
|
// eslint-disable-next-line no-self-compare
|
|
13
15
|
return value === value ? nativeDateToString.call(this) : INVALID_DATE;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
+
var $ = require('../internals/export');
|
|
2
|
+
var bind = require('../internals/function-bind');
|
|
3
|
+
|
|
1
4
|
// `Function.prototype.bind` method
|
|
2
5
|
// https://tc39.github.io/ecma262/#sec-function.prototype.bind
|
|
3
|
-
|
|
4
|
-
bind:
|
|
6
|
+
$({ target: 'Function', proto: true }, {
|
|
7
|
+
bind: bind
|
|
5
8
|
});
|
|
@@ -2,7 +2,9 @@
|
|
|
2
2
|
var isObject = require('../internals/is-object');
|
|
3
3
|
var definePropertyModule = require('../internals/object-define-property');
|
|
4
4
|
var getPrototypeOf = require('../internals/object-get-prototype-of');
|
|
5
|
-
var
|
|
5
|
+
var wellKnownSymbol = require('../internals/well-known-symbol');
|
|
6
|
+
|
|
7
|
+
var HAS_INSTANCE = wellKnownSymbol('hasInstance');
|
|
6
8
|
var FunctionPrototype = Function.prototype;
|
|
7
9
|
|
|
8
10
|
// `Function.prototype[@@hasInstance]` method
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
var DESCRIPTORS = require('../internals/descriptors');
|
|
2
2
|
var defineProperty = require('../internals/object-define-property').f;
|
|
3
|
+
|
|
3
4
|
var FunctionPrototype = Function.prototype;
|
|
4
5
|
var FunctionPrototypeToString = FunctionPrototype.toString;
|
|
5
6
|
var nameRE = /^\s*function ([^ (]*)/;
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
var global = require('../internals/global');
|
|
2
|
+
var setToStringTag = require('../internals/set-to-string-tag');
|
|
3
|
+
|
|
1
4
|
// JSON[@@toStringTag] property
|
|
2
5
|
// https://tc39.github.io/ecma262/#sec-json-@@tostringtag
|
|
3
|
-
|
|
6
|
+
setToStringTag(global.JSON, 'JSON', true);
|
package/modules/es.map.js
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
|
+
var collection = require('../internals/collection');
|
|
3
|
+
var collectionStrong = require('../internals/collection-strong');
|
|
4
|
+
|
|
2
5
|
// `Map` constructor
|
|
3
6
|
// https://tc39.github.io/ecma262/#sec-map-objects
|
|
4
|
-
module.exports =
|
|
5
|
-
return function Map() { return get(this, arguments.length
|
|
6
|
-
},
|
|
7
|
+
module.exports = collection('Map', function (get) {
|
|
8
|
+
return function Map() { return get(this, arguments.length ? arguments[0] : undefined); };
|
|
9
|
+
}, collectionStrong, true);
|
package/modules/es.math.acosh.js
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
var $ = require('../internals/export');
|
|
1
2
|
var log1p = require('../internals/math-log1p');
|
|
3
|
+
|
|
2
4
|
var nativeAcosh = Math.acosh;
|
|
3
5
|
var log = Math.log;
|
|
4
6
|
var sqrt = Math.sqrt;
|
|
@@ -12,7 +14,7 @@ var FORCED = !nativeAcosh
|
|
|
12
14
|
|
|
13
15
|
// `Math.acosh` method
|
|
14
16
|
// https://tc39.github.io/ecma262/#sec-math.acosh
|
|
15
|
-
|
|
17
|
+
$({ target: 'Math', stat: true, forced: FORCED }, {
|
|
16
18
|
acosh: function acosh(x) {
|
|
17
19
|
return (x = +x) < 1 ? NaN : x > 94906265.62425156
|
|
18
20
|
? log(x) + LN2
|
package/modules/es.math.asinh.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
var $ = require('../internals/export');
|
|
2
|
+
|
|
1
3
|
var nativeAsinh = Math.asinh;
|
|
2
4
|
var log = Math.log;
|
|
3
5
|
var sqrt = Math.sqrt;
|
|
@@ -9,6 +11,6 @@ function asinh(x) {
|
|
|
9
11
|
// `Math.asinh` method
|
|
10
12
|
// https://tc39.github.io/ecma262/#sec-math.asinh
|
|
11
13
|
// Tor Browser bug: Math.asinh(0) -> -0
|
|
12
|
-
|
|
14
|
+
$({ target: 'Math', stat: true, forced: !(nativeAsinh && 1 / nativeAsinh(0) > 0) }, {
|
|
13
15
|
asinh: asinh
|
|
14
16
|
});
|
package/modules/es.math.atanh.js
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
|
+
var $ = require('../internals/export');
|
|
2
|
+
|
|
1
3
|
var nativeAtanh = Math.atanh;
|
|
2
4
|
var log = Math.log;
|
|
3
5
|
|
|
4
6
|
// `Math.atanh` method
|
|
5
7
|
// https://tc39.github.io/ecma262/#sec-math.atanh
|
|
6
8
|
// Tor Browser bug: Math.atanh(-0) -> 0
|
|
7
|
-
|
|
9
|
+
$({ target: 'Math', stat: true, forced: !(nativeAtanh && 1 / nativeAtanh(-0) < 0) }, {
|
|
8
10
|
atanh: function atanh(x) {
|
|
9
11
|
return (x = +x) == 0 ? x : log((1 + x) / (1 - x)) / 2;
|
|
10
12
|
}
|
package/modules/es.math.cbrt.js
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
|
+
var $ = require('../internals/export');
|
|
1
2
|
var sign = require('../internals/math-sign');
|
|
3
|
+
|
|
2
4
|
var abs = Math.abs;
|
|
3
5
|
var pow = Math.pow;
|
|
4
6
|
|
|
5
7
|
// `Math.cbrt` method
|
|
6
8
|
// https://tc39.github.io/ecma262/#sec-math.cbrt
|
|
7
|
-
|
|
9
|
+
$({ target: 'Math', stat: true }, {
|
|
8
10
|
cbrt: function cbrt(x) {
|
|
9
11
|
return sign(x = +x) * pow(abs(x), 1 / 3);
|
|
10
12
|
}
|
package/modules/es.math.clz32.js
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
|
+
var $ = require('../internals/export');
|
|
2
|
+
|
|
1
3
|
var floor = Math.floor;
|
|
2
4
|
var log = Math.log;
|
|
3
5
|
var LOG2E = Math.LOG2E;
|
|
4
6
|
|
|
5
7
|
// `Math.clz32` method
|
|
6
8
|
// https://tc39.github.io/ecma262/#sec-math.clz32
|
|
7
|
-
|
|
9
|
+
$({ target: 'Math', stat: true }, {
|
|
8
10
|
clz32: function clz32(x) {
|
|
9
11
|
return (x >>>= 0) ? 31 - floor(log(x + 0.5) * LOG2E) : 32;
|
|
10
12
|
}
|
package/modules/es.math.cosh.js
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
|
+
var $ = require('../internals/export');
|
|
1
2
|
var expm1 = require('../internals/math-expm1');
|
|
3
|
+
|
|
2
4
|
var nativeCosh = Math.cosh;
|
|
3
5
|
var abs = Math.abs;
|
|
4
6
|
var E = Math.E;
|
|
5
7
|
|
|
6
8
|
// `Math.cosh` method
|
|
7
9
|
// https://tc39.github.io/ecma262/#sec-math.cosh
|
|
8
|
-
|
|
10
|
+
$({ target: 'Math', stat: true, forced: !nativeCosh || nativeCosh(710) === Infinity }, {
|
|
9
11
|
cosh: function cosh(x) {
|
|
10
12
|
var t = expm1(abs(x) - 1) + 1;
|
|
11
13
|
return (t + 1 / (t * E * E)) * (E / 2);
|
package/modules/es.math.expm1.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
var
|
|
1
|
+
var $ = require('../internals/export');
|
|
2
|
+
var expm1 = require('../internals/math-expm1');
|
|
2
3
|
|
|
3
4
|
// `Math.expm1` method
|
|
4
5
|
// https://tc39.github.io/ecma262/#sec-math.expm1
|
|
5
|
-
|
|
6
|
-
expm1: expm1Implementation
|
|
7
|
-
});
|
|
6
|
+
$({ target: 'Math', stat: true, forced: expm1 != Math.expm1 }, { expm1: expm1 });
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
var $ = require('../internals/export');
|
|
2
|
+
var fround = require('../internals/math-fround');
|
|
3
|
+
|
|
1
4
|
// `Math.fround` method
|
|
2
5
|
// https://tc39.github.io/ecma262/#sec-math.fround
|
|
3
|
-
|
|
6
|
+
$({ target: 'Math', stat: true }, { fround: fround });
|
package/modules/es.math.hypot.js
CHANGED
|
@@ -1,9 +1,16 @@
|
|
|
1
|
+
var $ = require('../internals/export');
|
|
2
|
+
|
|
3
|
+
var $hypot = Math.hypot;
|
|
1
4
|
var abs = Math.abs;
|
|
2
5
|
var sqrt = Math.sqrt;
|
|
3
6
|
|
|
7
|
+
// Chrome 77 bug
|
|
8
|
+
// https://bugs.chromium.org/p/v8/issues/detail?id=9546
|
|
9
|
+
var BUGGY = !!$hypot && $hypot(Infinity, NaN) !== Infinity;
|
|
10
|
+
|
|
4
11
|
// `Math.hypot` method
|
|
5
12
|
// https://tc39.github.io/ecma262/#sec-math.hypot
|
|
6
|
-
|
|
13
|
+
$({ target: 'Math', stat: true, forced: BUGGY }, {
|
|
7
14
|
hypot: function hypot(value1, value2) { // eslint-disable-line no-unused-vars
|
|
8
15
|
var sum = 0;
|
|
9
16
|
var i = 0;
|
package/modules/es.math.imul.js
CHANGED
|
@@ -1,13 +1,16 @@
|
|
|
1
|
+
var $ = require('../internals/export');
|
|
2
|
+
var fails = require('../internals/fails');
|
|
3
|
+
|
|
1
4
|
var nativeImul = Math.imul;
|
|
2
5
|
|
|
3
|
-
var FORCED =
|
|
6
|
+
var FORCED = fails(function () {
|
|
4
7
|
return nativeImul(0xFFFFFFFF, 5) != -5 || nativeImul.length != 2;
|
|
5
8
|
});
|
|
6
9
|
|
|
7
10
|
// `Math.imul` method
|
|
8
11
|
// https://tc39.github.io/ecma262/#sec-math.imul
|
|
9
12
|
// some WebKit versions fails with big numbers, some has wrong arity
|
|
10
|
-
|
|
13
|
+
$({ target: 'Math', stat: true, forced: FORCED }, {
|
|
11
14
|
imul: function imul(x, y) {
|
|
12
15
|
var UINT16 = 0xFFFF;
|
|
13
16
|
var xn = +x;
|
package/modules/es.math.log10.js
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
|
+
var $ = require('../internals/export');
|
|
2
|
+
|
|
1
3
|
var log = Math.log;
|
|
2
4
|
var LOG10E = Math.LOG10E;
|
|
3
5
|
|
|
4
6
|
// `Math.log10` method
|
|
5
7
|
// https://tc39.github.io/ecma262/#sec-math.log10
|
|
6
|
-
|
|
8
|
+
$({ target: 'Math', stat: true }, {
|
|
7
9
|
log10: function log10(x) {
|
|
8
10
|
return log(x) * LOG10E;
|
|
9
11
|
}
|
package/modules/es.math.log1p.js
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
var $ = require('../internals/export');
|
|
2
|
+
var log1p = require('../internals/math-log1p');
|
|
3
|
+
|
|
1
4
|
// `Math.log1p` method
|
|
2
5
|
// https://tc39.github.io/ecma262/#sec-math.log1p
|
|
3
|
-
|
|
6
|
+
$({ target: 'Math', stat: true }, { log1p: log1p });
|
package/modules/es.math.log2.js
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
|
+
var $ = require('../internals/export');
|
|
2
|
+
|
|
1
3
|
var log = Math.log;
|
|
2
4
|
var LN2 = Math.LN2;
|
|
3
5
|
|
|
4
6
|
// `Math.log2` method
|
|
5
7
|
// https://tc39.github.io/ecma262/#sec-math.log2
|
|
6
|
-
|
|
8
|
+
$({ target: 'Math', stat: true }, {
|
|
7
9
|
log2: function log2(x) {
|
|
8
10
|
return log(x) / LN2;
|
|
9
11
|
}
|
package/modules/es.math.sign.js
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
var $ = require('../internals/export');
|
|
2
|
+
var sign = require('../internals/math-sign');
|
|
3
|
+
|
|
1
4
|
// `Math.sign` method
|
|
2
5
|
// https://tc39.github.io/ecma262/#sec-math.sign
|
|
3
|
-
|
|
6
|
+
$({ target: 'Math', stat: true }, {
|
|
7
|
+
sign: sign
|
|
8
|
+
});
|
package/modules/es.math.sinh.js
CHANGED
|
@@ -1,16 +1,19 @@
|
|
|
1
|
+
var $ = require('../internals/export');
|
|
2
|
+
var fails = require('../internals/fails');
|
|
1
3
|
var expm1 = require('../internals/math-expm1');
|
|
4
|
+
|
|
2
5
|
var abs = Math.abs;
|
|
3
6
|
var exp = Math.exp;
|
|
4
7
|
var E = Math.E;
|
|
5
8
|
|
|
6
|
-
var FORCED =
|
|
9
|
+
var FORCED = fails(function () {
|
|
7
10
|
return Math.sinh(-2e-17) != -2e-17;
|
|
8
11
|
});
|
|
9
12
|
|
|
10
13
|
// `Math.sinh` method
|
|
11
14
|
// https://tc39.github.io/ecma262/#sec-math.sinh
|
|
12
15
|
// V8 near Chromium 38 has a problem with very small numbers
|
|
13
|
-
|
|
16
|
+
$({ target: 'Math', stat: true, forced: FORCED }, {
|
|
14
17
|
sinh: function sinh(x) {
|
|
15
18
|
return abs(x = +x) < 1 ? (expm1(x) - expm1(-x)) / 2 : (exp(x - 1) - exp(-x - 1)) * (E / 2);
|
|
16
19
|
}
|