core-js 3.18.3 → 3.20.2
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/LICENSE +1 -1
- package/README.md +27 -17
- package/actual/README.md +1 -0
- package/actual/aggregate-error.js +3 -0
- package/actual/array/at.js +3 -0
- package/actual/array/concat.js +3 -0
- package/actual/array/copy-within.js +3 -0
- package/actual/array/entries.js +3 -0
- package/actual/array/every.js +3 -0
- package/actual/array/fill.js +3 -0
- package/actual/array/filter.js +3 -0
- package/actual/array/find-index.js +3 -0
- package/actual/array/find-last-index.js +4 -0
- package/actual/array/find-last.js +4 -0
- package/actual/array/find.js +3 -0
- package/actual/array/flat-map.js +3 -0
- package/actual/array/flat.js +3 -0
- package/actual/array/for-each.js +3 -0
- package/actual/array/from.js +3 -0
- package/actual/array/group-by-to-map.js +6 -0
- package/actual/array/group-by.js +4 -0
- package/actual/array/includes.js +3 -0
- package/actual/array/index-of.js +3 -0
- package/actual/array/index.js +9 -0
- package/actual/array/is-array.js +3 -0
- package/actual/array/iterator.js +3 -0
- package/actual/array/join.js +3 -0
- package/actual/array/keys.js +3 -0
- package/actual/array/last-index-of.js +3 -0
- package/actual/array/map.js +3 -0
- package/actual/array/of.js +3 -0
- package/actual/array/reduce-right.js +3 -0
- package/actual/array/reduce.js +3 -0
- package/actual/array/reverse.js +3 -0
- package/actual/array/slice.js +3 -0
- package/actual/array/some.js +3 -0
- package/actual/array/sort.js +3 -0
- package/actual/array/splice.js +3 -0
- package/actual/array/values.js +3 -0
- package/actual/array/virtual/at.js +3 -0
- package/actual/array/virtual/concat.js +3 -0
- package/actual/array/virtual/copy-within.js +3 -0
- package/actual/array/virtual/entries.js +3 -0
- package/actual/array/virtual/every.js +3 -0
- package/actual/array/virtual/fill.js +3 -0
- package/actual/array/virtual/filter.js +3 -0
- package/actual/array/virtual/find-index.js +3 -0
- package/actual/array/virtual/find-last-index.js +4 -0
- package/actual/array/virtual/find-last.js +4 -0
- package/actual/array/virtual/find.js +3 -0
- package/actual/array/virtual/flat-map.js +3 -0
- package/actual/array/virtual/flat.js +3 -0
- package/actual/array/virtual/for-each.js +3 -0
- package/actual/array/virtual/group-by-to-map.js +6 -0
- package/actual/array/virtual/group-by.js +4 -0
- package/actual/array/virtual/includes.js +3 -0
- package/actual/array/virtual/index-of.js +3 -0
- package/actual/array/virtual/index.js +9 -0
- package/actual/array/virtual/iterator.js +3 -0
- package/actual/array/virtual/join.js +3 -0
- package/actual/array/virtual/keys.js +3 -0
- package/actual/array/virtual/last-index-of.js +3 -0
- package/actual/array/virtual/map.js +3 -0
- package/actual/array/virtual/reduce-right.js +3 -0
- package/actual/array/virtual/reduce.js +3 -0
- package/actual/array/virtual/reverse.js +3 -0
- package/actual/array/virtual/slice.js +3 -0
- package/actual/array/virtual/some.js +3 -0
- package/actual/array/virtual/sort.js +3 -0
- package/actual/array/virtual/splice.js +3 -0
- package/actual/array/virtual/values.js +3 -0
- package/actual/array-buffer/constructor.js +3 -0
- package/actual/array-buffer/index.js +3 -0
- package/actual/array-buffer/is-view.js +3 -0
- package/actual/array-buffer/slice.js +3 -0
- package/actual/clear-immediate.js +3 -0
- package/actual/data-view/index.js +3 -0
- package/actual/date/get-year.js +3 -0
- package/actual/date/index.js +3 -0
- package/actual/date/now.js +3 -0
- package/actual/date/set-year.js +3 -0
- package/actual/date/to-gmt-string.js +3 -0
- package/actual/date/to-iso-string.js +3 -0
- package/actual/date/to-json.js +3 -0
- package/actual/date/to-primitive.js +3 -0
- package/actual/date/to-string.js +3 -0
- package/actual/dom-collections/for-each.js +3 -0
- package/actual/dom-collections/index.js +3 -0
- package/actual/dom-collections/iterator.js +3 -0
- package/actual/dom-exception/constructor.js +3 -0
- package/actual/dom-exception/index.js +3 -0
- package/actual/dom-exception/to-string-tag.js +3 -0
- package/actual/error/constructor.js +3 -0
- package/actual/error/index.js +3 -0
- package/actual/error/to-string.js +3 -0
- package/actual/escape.js +3 -0
- package/actual/function/bind.js +3 -0
- package/actual/function/has-instance.js +3 -0
- package/actual/function/index.js +3 -0
- package/actual/function/name.js +3 -0
- package/actual/function/virtual/bind.js +3 -0
- package/actual/function/virtual/index.js +3 -0
- package/actual/get-iterator-method.js +3 -0
- package/actual/get-iterator.js +3 -0
- package/actual/global-this.js +3 -0
- package/actual/index.js +4 -0
- package/actual/instance/at.js +3 -0
- package/actual/instance/bind.js +3 -0
- package/actual/instance/code-point-at.js +3 -0
- package/actual/instance/concat.js +3 -0
- package/actual/instance/copy-within.js +3 -0
- package/actual/instance/ends-with.js +3 -0
- package/actual/instance/entries.js +3 -0
- package/actual/instance/every.js +3 -0
- package/actual/instance/fill.js +3 -0
- package/actual/instance/filter.js +3 -0
- package/actual/instance/find-index.js +3 -0
- package/actual/instance/find-last-index.js +9 -0
- package/actual/instance/find-last.js +9 -0
- package/actual/instance/find.js +3 -0
- package/actual/instance/flags.js +3 -0
- package/actual/instance/flat-map.js +3 -0
- package/actual/instance/flat.js +3 -0
- package/actual/instance/for-each.js +3 -0
- package/actual/instance/group-by-to-map.js +9 -0
- package/actual/instance/group-by.js +9 -0
- package/actual/instance/includes.js +3 -0
- package/actual/instance/index-of.js +3 -0
- package/actual/instance/keys.js +3 -0
- package/actual/instance/last-index-of.js +3 -0
- package/actual/instance/map.js +3 -0
- package/actual/instance/match-all.js +3 -0
- package/actual/instance/pad-end.js +3 -0
- package/actual/instance/pad-start.js +3 -0
- package/actual/instance/reduce-right.js +3 -0
- package/actual/instance/reduce.js +3 -0
- package/actual/instance/repeat.js +3 -0
- package/actual/instance/replace-all.js +3 -0
- package/actual/instance/reverse.js +3 -0
- package/actual/instance/slice.js +3 -0
- package/actual/instance/some.js +3 -0
- package/actual/instance/sort.js +3 -0
- package/actual/instance/splice.js +3 -0
- package/actual/instance/starts-with.js +3 -0
- package/actual/instance/trim-end.js +3 -0
- package/actual/instance/trim-left.js +3 -0
- package/actual/instance/trim-right.js +3 -0
- package/actual/instance/trim-start.js +3 -0
- package/actual/instance/trim.js +3 -0
- package/actual/instance/values.js +3 -0
- package/actual/is-iterable.js +3 -0
- package/actual/json/index.js +3 -0
- package/actual/json/stringify.js +3 -0
- package/actual/json/to-string-tag.js +3 -0
- package/actual/map/index.js +3 -0
- package/actual/math/acosh.js +3 -0
- package/actual/math/asinh.js +3 -0
- package/actual/math/atanh.js +3 -0
- package/actual/math/cbrt.js +3 -0
- package/actual/math/clz32.js +3 -0
- package/actual/math/cosh.js +3 -0
- package/actual/math/expm1.js +3 -0
- package/actual/math/fround.js +3 -0
- package/actual/math/hypot.js +3 -0
- package/actual/math/imul.js +3 -0
- package/actual/math/index.js +3 -0
- package/actual/math/log10.js +3 -0
- package/actual/math/log1p.js +3 -0
- package/actual/math/log2.js +3 -0
- package/actual/math/sign.js +3 -0
- package/actual/math/sinh.js +3 -0
- package/actual/math/tanh.js +3 -0
- package/actual/math/to-string-tag.js +3 -0
- package/actual/math/trunc.js +3 -0
- package/actual/number/constructor.js +3 -0
- package/actual/number/epsilon.js +3 -0
- package/actual/number/index.js +3 -0
- package/actual/number/is-finite.js +3 -0
- package/actual/number/is-integer.js +3 -0
- package/actual/number/is-nan.js +3 -0
- package/actual/number/is-safe-integer.js +3 -0
- package/actual/number/max-safe-integer.js +3 -0
- package/actual/number/min-safe-integer.js +3 -0
- package/actual/number/parse-float.js +3 -0
- package/actual/number/parse-int.js +3 -0
- package/actual/number/to-exponential.js +3 -0
- package/actual/number/to-fixed.js +3 -0
- package/actual/number/to-precision.js +3 -0
- package/actual/number/virtual/index.js +3 -0
- package/actual/number/virtual/to-exponential.js +3 -0
- package/actual/number/virtual/to-fixed.js +3 -0
- package/actual/number/virtual/to-precision.js +3 -0
- package/actual/object/assign.js +3 -0
- package/actual/object/create.js +3 -0
- package/actual/object/define-getter.js +3 -0
- package/actual/object/define-properties.js +3 -0
- package/actual/object/define-property.js +3 -0
- package/actual/object/define-setter.js +3 -0
- package/actual/object/entries.js +3 -0
- package/actual/object/freeze.js +3 -0
- package/actual/object/from-entries.js +3 -0
- package/actual/object/get-own-property-descriptor.js +3 -0
- package/actual/object/get-own-property-descriptors.js +3 -0
- package/actual/object/get-own-property-names.js +3 -0
- package/actual/object/get-own-property-symbols.js +3 -0
- package/actual/object/get-prototype-of.js +3 -0
- package/actual/object/has-own.js +3 -0
- package/actual/object/index.js +3 -0
- package/actual/object/is-extensible.js +3 -0
- package/actual/object/is-frozen.js +3 -0
- package/actual/object/is-sealed.js +3 -0
- package/actual/object/is.js +3 -0
- package/actual/object/keys.js +3 -0
- package/actual/object/lookup-getter.js +3 -0
- package/actual/object/lookup-setter.js +3 -0
- package/actual/object/prevent-extensions.js +3 -0
- package/actual/object/seal.js +3 -0
- package/actual/object/set-prototype-of.js +3 -0
- package/actual/object/to-string.js +3 -0
- package/actual/object/values.js +3 -0
- package/actual/parse-float.js +3 -0
- package/actual/parse-int.js +3 -0
- package/actual/promise/all-settled.js +3 -0
- package/actual/promise/any.js +3 -0
- package/actual/promise/finally.js +3 -0
- package/actual/promise/index.js +3 -0
- package/actual/queue-microtask.js +3 -0
- package/actual/reflect/apply.js +3 -0
- package/actual/reflect/construct.js +3 -0
- package/actual/reflect/define-property.js +3 -0
- package/actual/reflect/delete-property.js +3 -0
- package/actual/reflect/get-own-property-descriptor.js +3 -0
- package/actual/reflect/get-prototype-of.js +3 -0
- package/actual/reflect/get.js +3 -0
- package/actual/reflect/has.js +3 -0
- package/actual/reflect/index.js +3 -0
- package/actual/reflect/is-extensible.js +3 -0
- package/actual/reflect/own-keys.js +3 -0
- package/actual/reflect/prevent-extensions.js +3 -0
- package/actual/reflect/set-prototype-of.js +3 -0
- package/actual/reflect/set.js +3 -0
- package/actual/reflect/to-string-tag.js +3 -0
- package/actual/regexp/constructor.js +3 -0
- package/actual/regexp/dot-all.js +3 -0
- package/actual/regexp/flags.js +3 -0
- package/actual/regexp/index.js +3 -0
- package/actual/regexp/match.js +3 -0
- package/actual/regexp/replace.js +3 -0
- package/actual/regexp/search.js +3 -0
- package/actual/regexp/split.js +3 -0
- package/actual/regexp/sticky.js +3 -0
- package/actual/regexp/test.js +3 -0
- package/actual/regexp/to-string.js +3 -0
- package/actual/set/index.js +3 -0
- package/actual/set-immediate.js +3 -0
- package/actual/set-interval.js +3 -0
- package/actual/set-timeout.js +3 -0
- package/actual/string/anchor.js +3 -0
- package/actual/string/at.js +3 -0
- package/actual/string/big.js +3 -0
- package/actual/string/blink.js +3 -0
- package/actual/string/bold.js +3 -0
- package/actual/string/code-point-at.js +3 -0
- package/actual/string/ends-with.js +3 -0
- package/actual/string/fixed.js +3 -0
- package/actual/string/fontcolor.js +3 -0
- package/actual/string/fontsize.js +3 -0
- package/actual/string/from-code-point.js +3 -0
- package/actual/string/includes.js +3 -0
- package/actual/string/index.js +3 -0
- package/actual/string/italics.js +3 -0
- package/actual/string/iterator.js +3 -0
- package/actual/string/link.js +3 -0
- package/actual/string/match-all.js +3 -0
- package/actual/string/match.js +3 -0
- package/actual/string/pad-end.js +3 -0
- package/actual/string/pad-start.js +3 -0
- package/actual/string/raw.js +3 -0
- package/actual/string/repeat.js +3 -0
- package/actual/string/replace-all.js +3 -0
- package/actual/string/replace.js +3 -0
- package/actual/string/search.js +3 -0
- package/actual/string/small.js +3 -0
- package/actual/string/split.js +3 -0
- package/actual/string/starts-with.js +3 -0
- package/actual/string/strike.js +3 -0
- package/actual/string/sub.js +3 -0
- package/actual/string/substr.js +3 -0
- package/actual/string/sup.js +3 -0
- package/actual/string/trim-end.js +3 -0
- package/actual/string/trim-left.js +3 -0
- package/actual/string/trim-right.js +3 -0
- package/actual/string/trim-start.js +3 -0
- package/actual/string/trim.js +3 -0
- package/actual/string/virtual/anchor.js +3 -0
- package/actual/string/virtual/at.js +3 -0
- package/actual/string/virtual/big.js +3 -0
- package/actual/string/virtual/blink.js +3 -0
- package/actual/string/virtual/bold.js +3 -0
- package/actual/string/virtual/code-point-at.js +3 -0
- package/actual/string/virtual/ends-with.js +3 -0
- package/actual/string/virtual/fixed.js +3 -0
- package/actual/string/virtual/fontcolor.js +3 -0
- package/actual/string/virtual/fontsize.js +3 -0
- package/actual/string/virtual/includes.js +3 -0
- package/actual/string/virtual/index.js +3 -0
- package/actual/string/virtual/italics.js +3 -0
- package/actual/string/virtual/iterator.js +3 -0
- package/actual/string/virtual/link.js +3 -0
- package/actual/string/virtual/match-all.js +3 -0
- package/actual/string/virtual/pad-end.js +3 -0
- package/actual/string/virtual/pad-start.js +3 -0
- package/actual/string/virtual/repeat.js +3 -0
- package/actual/string/virtual/replace-all.js +3 -0
- package/actual/string/virtual/small.js +3 -0
- package/actual/string/virtual/starts-with.js +3 -0
- package/actual/string/virtual/strike.js +3 -0
- package/actual/string/virtual/sub.js +3 -0
- package/actual/string/virtual/substr.js +3 -0
- package/actual/string/virtual/sup.js +3 -0
- package/actual/string/virtual/trim-end.js +3 -0
- package/actual/string/virtual/trim-left.js +3 -0
- package/actual/string/virtual/trim-right.js +3 -0
- package/actual/string/virtual/trim-start.js +3 -0
- package/actual/string/virtual/trim.js +3 -0
- package/actual/structured-clone.js +3 -0
- package/actual/symbol/async-iterator.js +3 -0
- package/actual/symbol/description.js +3 -0
- package/actual/symbol/for.js +3 -0
- package/actual/symbol/has-instance.js +3 -0
- package/actual/symbol/index.js +3 -0
- package/actual/symbol/is-concat-spreadable.js +3 -0
- package/actual/symbol/iterator.js +3 -0
- package/actual/symbol/key-for.js +3 -0
- package/actual/symbol/match-all.js +3 -0
- package/actual/symbol/match.js +3 -0
- package/actual/symbol/replace.js +3 -0
- package/actual/symbol/search.js +3 -0
- package/actual/symbol/species.js +3 -0
- package/actual/symbol/split.js +3 -0
- package/actual/symbol/to-primitive.js +3 -0
- package/actual/symbol/to-string-tag.js +3 -0
- package/actual/symbol/unscopables.js +3 -0
- package/actual/typed-array/at.js +3 -0
- package/actual/typed-array/copy-within.js +3 -0
- package/actual/typed-array/entries.js +3 -0
- package/actual/typed-array/every.js +3 -0
- package/actual/typed-array/fill.js +3 -0
- package/actual/typed-array/filter.js +3 -0
- package/actual/typed-array/find-index.js +3 -0
- package/actual/typed-array/find-last-index.js +1 -0
- package/actual/typed-array/find-last.js +1 -0
- package/actual/typed-array/find.js +3 -0
- package/actual/typed-array/float32-array.js +4 -0
- package/actual/typed-array/float64-array.js +4 -0
- package/actual/typed-array/for-each.js +3 -0
- package/actual/typed-array/from.js +3 -0
- package/actual/typed-array/includes.js +3 -0
- package/actual/typed-array/index-of.js +3 -0
- package/actual/typed-array/index.js +5 -0
- package/actual/typed-array/int16-array.js +4 -0
- package/actual/typed-array/int32-array.js +4 -0
- package/actual/typed-array/int8-array.js +4 -0
- package/actual/typed-array/iterator.js +3 -0
- package/actual/typed-array/join.js +3 -0
- package/actual/typed-array/keys.js +3 -0
- package/actual/typed-array/last-index-of.js +3 -0
- package/actual/typed-array/map.js +3 -0
- package/actual/typed-array/methods.js +5 -0
- package/actual/typed-array/of.js +3 -0
- package/actual/typed-array/reduce-right.js +3 -0
- package/actual/typed-array/reduce.js +3 -0
- package/actual/typed-array/reverse.js +3 -0
- package/actual/typed-array/set.js +3 -0
- package/actual/typed-array/slice.js +3 -0
- package/actual/typed-array/some.js +3 -0
- package/actual/typed-array/sort.js +3 -0
- package/actual/typed-array/subarray.js +3 -0
- package/actual/typed-array/to-locale-string.js +3 -0
- package/actual/typed-array/to-string.js +3 -0
- package/actual/typed-array/uint16-array.js +4 -0
- package/actual/typed-array/uint32-array.js +4 -0
- package/actual/typed-array/uint8-array.js +4 -0
- package/actual/typed-array/uint8-clamped-array.js +4 -0
- package/actual/typed-array/values.js +3 -0
- package/actual/unescape.js +3 -0
- package/actual/url/index.js +3 -0
- package/actual/url/to-json.js +3 -0
- package/actual/url-search-params/index.js +3 -0
- package/actual/weak-map/index.js +3 -0
- package/actual/weak-set/index.js +3 -0
- package/es/aggregate-error.js +2 -0
- package/es/array-buffer/constructor.js +1 -0
- package/es/data-view/index.js +2 -0
- package/es/date/to-primitive.js +2 -3
- package/es/date/to-string.js +2 -4
- package/es/error/constructor.js +4 -0
- package/es/error/index.js +5 -0
- package/es/error/to-string.js +4 -0
- package/es/index.js +4 -0
- package/es/instance/at.js +6 -5
- package/es/instance/bind.js +3 -2
- package/es/instance/code-point-at.js +4 -3
- package/es/instance/concat.js +3 -2
- package/es/instance/copy-within.js +3 -2
- package/es/instance/ends-with.js +4 -3
- package/es/instance/entries.js +3 -2
- package/es/instance/every.js +3 -2
- package/es/instance/fill.js +3 -2
- package/es/instance/filter.js +3 -2
- package/es/instance/find-index.js +3 -2
- package/es/instance/find.js +3 -2
- package/es/instance/flags.js +2 -1
- package/es/instance/flat-map.js +3 -2
- package/es/instance/flat.js +3 -2
- package/es/instance/for-each.js +3 -2
- package/es/instance/includes.js +6 -5
- package/es/instance/index-of.js +3 -2
- package/es/instance/keys.js +3 -2
- package/es/instance/last-index-of.js +3 -2
- package/es/instance/map.js +3 -2
- package/es/instance/match-all.js +4 -3
- package/es/instance/pad-end.js +4 -3
- package/es/instance/pad-start.js +4 -3
- package/es/instance/reduce-right.js +3 -2
- package/es/instance/reduce.js +3 -2
- package/es/instance/repeat.js +4 -3
- package/es/instance/replace-all.js +4 -3
- package/es/instance/reverse.js +3 -2
- package/es/instance/slice.js +3 -2
- package/es/instance/some.js +3 -2
- package/es/instance/sort.js +3 -2
- package/es/instance/splice.js +3 -2
- package/es/instance/starts-with.js +4 -3
- package/es/instance/trim-end.js +4 -3
- package/es/instance/trim-left.js +4 -3
- package/es/instance/trim-right.js +4 -3
- package/es/instance/trim-start.js +4 -3
- package/es/instance/trim.js +4 -3
- package/es/instance/values.js +3 -2
- package/es/json/stringify.js +4 -3
- package/es/number/index.js +1 -0
- package/es/number/to-exponential.js +4 -0
- package/es/number/virtual/index.js +1 -0
- package/es/number/virtual/to-exponential.js +4 -0
- package/es/promise/all-settled.js +2 -1
- package/es/promise/any.js +2 -1
- package/es/regexp/flags.js +3 -4
- package/es/regexp/match.js +2 -1
- package/es/regexp/replace.js +2 -1
- package/es/regexp/search.js +2 -1
- package/es/regexp/split.js +2 -1
- package/es/regexp/test.js +2 -3
- package/es/regexp/to-string.js +2 -3
- package/es/string/iterator.js +2 -5
- package/es/typed-array/float32-array.js +2 -0
- package/es/typed-array/float64-array.js +2 -0
- package/es/typed-array/int16-array.js +2 -0
- package/es/typed-array/int32-array.js +2 -0
- package/es/typed-array/int8-array.js +2 -0
- package/es/typed-array/uint16-array.js +2 -0
- package/es/typed-array/uint32-array.js +2 -0
- package/es/typed-array/uint8-array.js +2 -0
- package/es/typed-array/uint8-clamped-array.js +2 -0
- package/features/aggregate-error.js +1 -1
- package/features/array/at.js +1 -1
- package/features/array/concat.js +1 -1
- package/features/array/copy-within.js +1 -1
- package/features/array/entries.js +1 -1
- package/features/array/every.js +1 -1
- package/features/array/fill.js +1 -1
- package/features/array/filter.js +1 -1
- package/features/array/find-index.js +1 -1
- package/features/array/find-last-index.js +2 -3
- package/features/array/find-last.js +2 -3
- package/features/array/find.js +1 -1
- package/features/array/flat-map.js +1 -1
- package/features/array/flat.js +1 -1
- package/features/array/for-each.js +1 -1
- package/features/array/from.js +1 -1
- package/features/array/group-by-to-map.js +3 -0
- package/features/array/group-by.js +2 -3
- package/features/array/includes.js +1 -1
- package/features/array/index-of.js +1 -1
- package/features/array/index.js +5 -5
- package/features/array/is-array.js +1 -1
- package/features/array/iterator.js +1 -1
- package/features/array/join.js +1 -1
- package/features/array/keys.js +1 -1
- package/features/array/last-index-of.js +1 -1
- package/features/array/map.js +1 -1
- package/features/array/of.js +1 -1
- package/features/array/reduce-right.js +1 -1
- package/features/array/reduce.js +1 -1
- package/features/array/reverse.js +1 -1
- package/features/array/slice.js +1 -1
- package/features/array/some.js +1 -1
- package/features/array/sort.js +1 -1
- package/features/array/splice.js +1 -1
- package/features/array/to-reversed.js +4 -0
- package/features/array/to-sorted.js +5 -0
- package/features/array/to-spliced.js +4 -0
- package/features/array/values.js +1 -1
- package/features/array/virtual/at.js +1 -1
- package/features/array/virtual/concat.js +1 -1
- package/features/array/virtual/copy-within.js +1 -1
- package/features/array/virtual/entries.js +1 -1
- package/features/array/virtual/every.js +1 -1
- package/features/array/virtual/fill.js +1 -1
- package/features/array/virtual/filter.js +1 -1
- package/features/array/virtual/find-index.js +1 -1
- package/features/array/virtual/find-last-index.js +2 -3
- package/features/array/virtual/find-last.js +2 -3
- package/features/array/virtual/find.js +1 -1
- package/features/array/virtual/flat-map.js +1 -1
- package/features/array/virtual/flat.js +1 -1
- package/features/array/virtual/for-each.js +1 -1
- package/features/array/virtual/group-by-to-map.js +3 -0
- package/features/array/virtual/group-by.js +2 -3
- package/features/array/virtual/includes.js +1 -1
- package/features/array/virtual/index-of.js +1 -1
- package/features/array/virtual/index.js +5 -5
- package/features/array/virtual/iterator.js +1 -1
- package/features/array/virtual/join.js +1 -1
- package/features/array/virtual/keys.js +1 -1
- package/features/array/virtual/last-index-of.js +1 -1
- package/features/array/virtual/map.js +1 -1
- package/features/array/virtual/reduce-right.js +1 -1
- package/features/array/virtual/reduce.js +1 -1
- package/features/array/virtual/reverse.js +1 -1
- package/features/array/virtual/slice.js +1 -1
- package/features/array/virtual/some.js +1 -1
- package/features/array/virtual/sort.js +1 -1
- package/features/array/virtual/splice.js +1 -1
- package/features/array/virtual/to-reversed.js +4 -0
- package/features/array/virtual/to-sorted.js +5 -0
- package/features/array/virtual/to-spliced.js +4 -0
- package/features/array/virtual/values.js +1 -1
- package/features/array/virtual/with.js +4 -0
- package/features/array/with.js +4 -0
- package/features/array-buffer/constructor.js +1 -1
- package/features/array-buffer/index.js +1 -1
- package/features/array-buffer/is-view.js +1 -1
- package/features/array-buffer/slice.js +1 -1
- package/features/clear-immediate.js +1 -1
- package/features/data-view/index.js +1 -1
- package/features/date/get-year.js +1 -1
- package/features/date/index.js +1 -1
- package/features/date/now.js +1 -1
- package/features/date/set-year.js +1 -1
- package/features/date/to-gmt-string.js +1 -1
- package/features/date/to-iso-string.js +1 -1
- package/features/date/to-json.js +1 -1
- package/features/date/to-primitive.js +1 -1
- package/features/date/to-string.js +1 -1
- package/features/dom-collections/for-each.js +1 -1
- package/features/dom-collections/index.js +1 -1
- package/features/dom-collections/iterator.js +1 -1
- package/features/dom-exception/constructor.js +3 -0
- package/features/dom-exception/index.js +3 -0
- package/features/dom-exception/to-string-tag.js +3 -0
- package/features/error/constructor.js +3 -0
- package/features/error/index.js +3 -0
- package/features/error/to-string.js +3 -0
- package/features/escape.js +1 -1
- package/features/function/bind.js +1 -1
- package/features/function/has-instance.js +1 -1
- package/features/function/index.js +4 -1
- package/features/function/is-callable.js +4 -0
- package/features/function/is-constructor.js +4 -0
- package/features/function/name.js +1 -1
- package/features/function/un-this.js +4 -0
- package/features/function/virtual/bind.js +1 -1
- package/features/function/virtual/index.js +2 -1
- package/features/function/virtual/un-this.js +4 -0
- package/features/get-iterator-method.js +1 -1
- package/features/get-iterator.js +1 -1
- package/features/global-this.js +1 -1
- package/features/index.js +22 -0
- package/features/instance/at.js +6 -5
- package/features/instance/bind.js +1 -1
- package/features/instance/code-point-at.js +1 -1
- package/features/instance/code-points.js +4 -3
- package/features/instance/concat.js +1 -1
- package/features/instance/copy-within.js +1 -1
- package/features/instance/ends-with.js +1 -1
- package/features/instance/entries.js +1 -1
- package/features/instance/every.js +1 -1
- package/features/instance/fill.js +1 -1
- package/features/instance/filter-out.js +3 -2
- package/features/instance/filter-reject.js +3 -2
- package/features/instance/filter.js +1 -1
- package/features/instance/find-index.js +1 -1
- package/features/instance/find-last-index.js +2 -7
- package/features/instance/find-last.js +2 -7
- package/features/instance/find.js +1 -1
- package/features/instance/flags.js +1 -1
- package/features/instance/flat-map.js +1 -1
- package/features/instance/flat.js +1 -1
- package/features/instance/for-each.js +1 -1
- package/features/instance/group-by-to-map.js +3 -0
- package/features/instance/group-by.js +2 -7
- package/features/instance/includes.js +1 -1
- package/features/instance/index-of.js +1 -1
- package/features/instance/keys.js +1 -1
- package/features/instance/last-index-of.js +1 -1
- package/features/instance/map.js +1 -1
- package/features/instance/match-all.js +1 -1
- package/features/instance/pad-end.js +1 -1
- package/features/instance/pad-start.js +1 -1
- package/features/instance/reduce-right.js +1 -1
- package/features/instance/reduce.js +1 -1
- package/features/instance/repeat.js +1 -1
- package/features/instance/replace-all.js +1 -1
- package/features/instance/reverse.js +1 -1
- package/features/instance/slice.js +1 -1
- package/features/instance/some.js +1 -1
- package/features/instance/sort.js +1 -1
- package/features/instance/splice.js +1 -1
- package/features/instance/starts-with.js +1 -1
- package/features/instance/to-reversed.js +9 -0
- package/features/instance/to-sorted.js +9 -0
- package/features/instance/to-spliced.js +9 -0
- package/features/instance/trim-end.js +1 -1
- package/features/instance/trim-left.js +1 -1
- package/features/instance/trim-right.js +1 -1
- package/features/instance/trim-start.js +1 -1
- package/features/instance/trim.js +1 -1
- package/features/instance/un-this.js +9 -0
- package/features/instance/unique-by.js +3 -2
- package/features/instance/values.js +1 -1
- package/features/instance/with.js +9 -0
- package/features/is-iterable.js +1 -1
- package/features/iterator/index.js +2 -0
- package/features/iterator/to-async.js +8 -0
- package/features/json/index.js +1 -1
- package/features/json/stringify.js +1 -1
- package/features/json/to-string-tag.js +1 -1
- package/features/map/from.js +3 -2
- package/features/map/group-by.js +2 -1
- package/features/map/index.js +1 -1
- package/features/map/key-by.js +2 -1
- package/features/map/of.js +3 -2
- package/features/math/acosh.js +1 -1
- package/features/math/asinh.js +1 -1
- package/features/math/atanh.js +1 -1
- package/features/math/cbrt.js +1 -1
- package/features/math/clz32.js +1 -1
- package/features/math/cosh.js +1 -1
- package/features/math/expm1.js +1 -1
- package/features/math/fround.js +1 -1
- package/features/math/hypot.js +1 -1
- package/features/math/imul.js +1 -1
- package/features/math/index.js +1 -1
- package/features/math/log10.js +1 -1
- package/features/math/log1p.js +1 -1
- package/features/math/log2.js +1 -1
- package/features/math/sign.js +1 -1
- package/features/math/sinh.js +1 -1
- package/features/math/tanh.js +1 -1
- package/features/math/to-string-tag.js +1 -1
- package/features/math/trunc.js +1 -1
- package/features/number/constructor.js +1 -1
- package/features/number/epsilon.js +1 -1
- package/features/number/index.js +1 -1
- package/features/number/is-finite.js +1 -1
- package/features/number/is-integer.js +1 -1
- package/features/number/is-nan.js +1 -1
- package/features/number/is-safe-integer.js +1 -1
- package/features/number/max-safe-integer.js +1 -1
- package/features/number/min-safe-integer.js +1 -1
- package/features/number/parse-float.js +1 -1
- package/features/number/parse-int.js +1 -1
- package/features/number/to-exponential.js +3 -0
- package/features/number/to-fixed.js +1 -1
- package/features/number/to-precision.js +1 -1
- package/features/number/virtual/index.js +1 -1
- package/features/number/virtual/to-exponential.js +3 -0
- package/features/number/virtual/to-fixed.js +1 -1
- package/features/number/virtual/to-precision.js +1 -1
- package/features/object/assign.js +1 -1
- package/features/object/create.js +1 -1
- package/features/object/define-getter.js +1 -1
- package/features/object/define-properties.js +1 -1
- package/features/object/define-property.js +1 -1
- package/features/object/define-setter.js +1 -1
- package/features/object/entries.js +1 -1
- package/features/object/freeze.js +1 -1
- package/features/object/from-entries.js +1 -1
- package/features/object/get-own-property-descriptor.js +1 -1
- package/features/object/get-own-property-descriptors.js +1 -1
- package/features/object/get-own-property-names.js +1 -1
- package/features/object/get-own-property-symbols.js +1 -1
- package/features/object/get-prototype-of.js +1 -1
- package/features/object/has-own.js +1 -1
- package/features/object/index.js +1 -1
- package/features/object/is-extensible.js +1 -1
- package/features/object/is-frozen.js +1 -1
- package/features/object/is-sealed.js +1 -1
- package/features/object/is.js +1 -1
- package/features/object/keys.js +1 -1
- package/features/object/lookup-getter.js +1 -1
- package/features/object/lookup-setter.js +1 -1
- package/features/object/prevent-extensions.js +1 -1
- package/features/object/seal.js +1 -1
- package/features/object/set-prototype-of.js +1 -1
- package/features/object/to-string.js +1 -1
- package/features/object/values.js +1 -1
- package/features/parse-float.js +1 -1
- package/features/parse-int.js +1 -1
- package/features/promise/all-settled.js +1 -1
- package/features/promise/any.js +1 -1
- package/features/promise/finally.js +1 -1
- package/features/promise/index.js +1 -1
- package/features/promise/try.js +2 -1
- package/features/queue-microtask.js +1 -1
- package/features/reflect/apply.js +1 -1
- package/features/reflect/construct.js +1 -1
- package/features/reflect/define-property.js +1 -1
- package/features/reflect/delete-property.js +1 -1
- package/features/reflect/get-own-property-descriptor.js +1 -1
- package/features/reflect/get-prototype-of.js +1 -1
- package/features/reflect/get.js +1 -1
- package/features/reflect/has.js +1 -1
- package/features/reflect/index.js +1 -1
- package/features/reflect/is-extensible.js +1 -1
- package/features/reflect/own-keys.js +1 -1
- package/features/reflect/prevent-extensions.js +1 -1
- package/features/reflect/set-prototype-of.js +1 -1
- package/features/reflect/set.js +1 -1
- package/features/regexp/constructor.js +1 -1
- package/features/regexp/dot-all.js +1 -1
- package/features/regexp/flags.js +1 -1
- package/features/regexp/index.js +1 -1
- package/features/regexp/match.js +1 -1
- package/features/regexp/replace.js +1 -1
- package/features/regexp/search.js +1 -1
- package/features/regexp/split.js +1 -1
- package/features/regexp/sticky.js +1 -1
- package/features/regexp/test.js +1 -1
- package/features/regexp/to-string.js +1 -1
- package/features/set/from.js +3 -2
- package/features/set/index.js +1 -1
- package/features/set/of.js +3 -2
- package/features/set-immediate.js +1 -1
- package/features/set-interval.js +1 -1
- package/features/set-timeout.js +1 -1
- package/features/string/anchor.js +1 -1
- package/features/string/at.js +1 -1
- package/features/string/big.js +1 -1
- package/features/string/blink.js +1 -1
- package/features/string/bold.js +1 -1
- package/features/string/code-point-at.js +1 -1
- package/features/string/cooked.js +4 -0
- package/features/string/ends-with.js +1 -1
- package/features/string/fixed.js +1 -1
- package/features/string/fontcolor.js +1 -1
- package/features/string/fontsize.js +1 -1
- package/features/string/from-code-point.js +1 -1
- package/features/string/includes.js +1 -1
- package/features/string/index.js +3 -3
- package/features/string/italics.js +1 -1
- package/features/string/iterator.js +1 -1
- package/features/string/link.js +1 -1
- package/features/string/match-all.js +1 -1
- package/features/string/match.js +1 -1
- package/features/string/pad-end.js +1 -1
- package/features/string/pad-start.js +1 -1
- package/features/string/raw.js +1 -1
- package/features/string/repeat.js +1 -1
- package/features/string/replace-all.js +1 -1
- package/features/string/replace.js +1 -1
- package/features/string/search.js +1 -1
- package/features/string/small.js +1 -1
- package/features/string/split.js +1 -1
- package/features/string/starts-with.js +1 -1
- package/features/string/strike.js +1 -1
- package/features/string/sub.js +1 -1
- package/features/string/substr.js +1 -1
- package/features/string/sup.js +1 -1
- package/features/string/trim-end.js +1 -1
- package/features/string/trim-left.js +1 -1
- package/features/string/trim-right.js +1 -1
- package/features/string/trim-start.js +1 -1
- package/features/string/trim.js +1 -1
- package/features/string/virtual/anchor.js +1 -1
- package/features/string/virtual/at.js +1 -1
- package/features/string/virtual/big.js +1 -1
- package/features/string/virtual/blink.js +1 -1
- package/features/string/virtual/bold.js +1 -1
- package/features/string/virtual/code-point-at.js +1 -1
- package/features/string/virtual/ends-with.js +1 -1
- package/features/string/virtual/fixed.js +1 -1
- package/features/string/virtual/fontcolor.js +1 -1
- package/features/string/virtual/fontsize.js +1 -1
- package/features/string/virtual/includes.js +1 -1
- package/features/string/virtual/index.js +1 -1
- package/features/string/virtual/italics.js +1 -1
- package/features/string/virtual/iterator.js +1 -1
- package/features/string/virtual/link.js +1 -1
- package/features/string/virtual/match-all.js +1 -1
- package/features/string/virtual/pad-end.js +1 -1
- package/features/string/virtual/pad-start.js +1 -1
- package/features/string/virtual/repeat.js +1 -1
- package/features/string/virtual/replace-all.js +1 -1
- package/features/string/virtual/small.js +1 -1
- package/features/string/virtual/starts-with.js +1 -1
- package/features/string/virtual/strike.js +1 -1
- package/features/string/virtual/sub.js +1 -1
- package/features/string/virtual/substr.js +1 -1
- package/features/string/virtual/sup.js +1 -1
- package/features/string/virtual/trim-end.js +1 -1
- package/features/string/virtual/trim-left.js +1 -1
- package/features/string/virtual/trim-right.js +1 -1
- package/features/string/virtual/trim-start.js +1 -1
- package/features/string/virtual/trim.js +1 -1
- package/features/structured-clone.js +3 -0
- package/features/symbol/async-iterator.js +1 -1
- package/features/symbol/for.js +1 -1
- package/features/symbol/has-instance.js +1 -1
- package/features/symbol/index.js +1 -1
- package/features/symbol/is-concat-spreadable.js +1 -1
- package/features/symbol/iterator.js +1 -1
- package/features/symbol/key-for.js +1 -1
- package/features/symbol/match-all.js +1 -1
- package/features/symbol/match.js +1 -1
- package/features/symbol/replace.js +1 -1
- package/features/symbol/search.js +1 -1
- package/features/symbol/species.js +1 -1
- package/features/symbol/split.js +1 -1
- package/features/symbol/to-primitive.js +1 -1
- package/features/symbol/to-string-tag.js +1 -1
- package/features/symbol/unscopables.js +1 -1
- package/features/typed-array/at.js +1 -1
- package/features/typed-array/copy-within.js +1 -1
- package/features/typed-array/entries.js +1 -1
- package/features/typed-array/every.js +1 -1
- package/features/typed-array/fill.js +1 -1
- package/features/typed-array/filter.js +1 -1
- package/features/typed-array/find-index.js +1 -1
- package/features/typed-array/find-last-index.js +3 -1
- package/features/typed-array/find-last.js +3 -1
- package/features/typed-array/find.js +1 -1
- package/features/typed-array/float32-array.js +1 -1
- package/features/typed-array/float64-array.js +1 -1
- package/features/typed-array/for-each.js +1 -1
- package/features/typed-array/from.js +1 -1
- package/features/typed-array/includes.js +1 -1
- package/features/typed-array/index-of.js +1 -1
- package/features/typed-array/index.js +5 -3
- package/features/typed-array/int16-array.js +1 -1
- package/features/typed-array/int32-array.js +1 -1
- package/features/typed-array/int8-array.js +1 -1
- package/features/typed-array/iterator.js +1 -1
- package/features/typed-array/join.js +1 -1
- package/features/typed-array/keys.js +1 -1
- package/features/typed-array/last-index-of.js +1 -1
- package/features/typed-array/map.js +1 -1
- package/features/typed-array/methods.js +5 -3
- package/features/typed-array/of.js +1 -1
- package/features/typed-array/reduce-right.js +1 -1
- package/features/typed-array/reduce.js +1 -1
- package/features/typed-array/reverse.js +1 -1
- package/features/typed-array/set.js +1 -1
- package/features/typed-array/slice.js +1 -1
- package/features/typed-array/some.js +1 -1
- package/features/typed-array/sort.js +1 -1
- package/features/typed-array/subarray.js +1 -1
- package/features/typed-array/to-locale-string.js +1 -1
- package/features/typed-array/to-reversed.js +1 -0
- package/features/typed-array/to-sorted.js +2 -0
- package/features/typed-array/to-spliced.js +1 -0
- package/features/typed-array/to-string.js +1 -1
- package/features/typed-array/uint16-array.js +1 -1
- package/features/typed-array/uint32-array.js +1 -1
- package/features/typed-array/uint8-array.js +1 -1
- package/features/typed-array/uint8-clamped-array.js +1 -1
- package/features/typed-array/values.js +1 -1
- package/features/typed-array/with.js +1 -0
- package/features/unescape.js +1 -1
- package/features/url/index.js +1 -1
- package/features/url/to-json.js +1 -1
- package/features/url-search-params/index.js +1 -1
- package/features/weak-map/from.js +3 -2
- package/features/weak-map/index.js +1 -1
- package/features/weak-map/of.js +3 -2
- package/features/weak-set/from.js +3 -2
- package/features/weak-set/index.js +1 -1
- package/features/weak-set/of.js +3 -2
- package/internals/a-callable.js +3 -0
- package/internals/a-constructor.js +3 -0
- package/internals/a-possible-prototype.js +5 -1
- package/internals/an-instance.js +8 -3
- package/internals/an-object.js +4 -0
- package/internals/array-buffer-native.js +1 -1
- package/internals/array-buffer-non-extensible.js +10 -0
- package/internals/array-buffer-view-core.js +14 -8
- package/internals/array-buffer.js +29 -16
- package/internals/array-from-async.js +1 -1
- package/internals/array-from-constructor-and-list.js +3 -1
- package/internals/array-from.js +6 -2
- package/internals/array-group-by.js +7 -3
- package/internals/array-iteration-from-last.js +1 -1
- package/internals/array-iteration.js +5 -4
- package/internals/array-last-index-of.js +2 -1
- package/internals/array-reduce.js +3 -0
- package/internals/array-slice-simple.js +17 -0
- package/internals/array-slice.js +3 -0
- package/internals/array-sort.js +10 -11
- package/internals/array-species-constructor.js +2 -0
- package/internals/array-to-reversed.js +11 -0
- package/internals/array-to-spliced.js +35 -0
- package/internals/array-unique-by.js +13 -9
- package/internals/array-with.js +18 -0
- package/internals/async-from-sync-iterator.js +7 -4
- package/internals/async-iterator-create-proxy.js +7 -4
- package/internals/async-iterator-iteration.js +5 -2
- package/internals/classof-raw.js +5 -2
- package/internals/classof.js +3 -0
- package/internals/clear-error-stack.js +13 -0
- package/internals/collection-add-all.js +3 -2
- package/internals/collection-delete-all.js +3 -2
- package/internals/collection-from.js +7 -4
- package/internals/collection-of.js +3 -4
- package/internals/collection-strong.js +11 -9
- package/internals/collection-weak.js +10 -6
- package/internals/collection.js +8 -7
- package/internals/composite-key.js +9 -2
- package/internals/copy-constructor-properties.js +4 -2
- package/internals/create-html.js +3 -1
- package/internals/create-iterator-constructor.js +2 -2
- package/internals/date-to-iso-string.js +23 -13
- package/internals/date-to-primitive.js +3 -0
- package/internals/define-iterator.js +2 -1
- package/internals/dom-exception-constants.js +27 -0
- package/internals/engine-v8-version.js +10 -4
- package/internals/entry-unbind.js +3 -5
- package/internals/error-stack-installable.js +10 -0
- package/internals/error-to-string.js +30 -0
- package/internals/export.js +1 -1
- package/internals/fix-regexp-well-known-symbol-logic.js +5 -3
- package/internals/flatten-into-array.js +4 -1
- package/internals/function-apply.js +9 -0
- package/internals/function-bind-context.js +5 -17
- package/internals/function-bind.js +15 -9
- package/internals/function-call.js +5 -0
- package/internals/function-uncurry-this.js +12 -0
- package/internals/get-async-iterator.js +2 -1
- package/internals/get-iterator.js +7 -2
- package/internals/get-map-iterator.js +3 -1
- package/internals/get-set-iterator.js +3 -1
- package/internals/get-substitution.js +10 -7
- package/internals/has-own-property.js +3 -2
- package/internals/host-report-errors.js +1 -1
- package/internals/ie8-dom-define.js +1 -1
- package/internals/ieee754.js +24 -6
- package/internals/indexed-object.js +5 -2
- package/internals/inspect-source.js +3 -2
- package/internals/internal-metadata.js +4 -7
- package/internals/internal-state.js +9 -7
- package/internals/is-callable.js +1 -1
- package/internals/is-constructor.js +17 -6
- package/internals/is-iterable.js +4 -2
- package/internals/is-object.js +1 -1
- package/internals/is-symbol.js +6 -2
- package/internals/iterate.js +14 -6
- package/internals/iterator-close.js +2 -1
- package/internals/iterator-create-proxy.js +7 -4
- package/internals/map-emplace.js +8 -3
- package/internals/map-upsert.js +12 -4
- package/internals/math-log10.js +7 -0
- package/internals/math-scale.js +9 -12
- package/internals/microtask.js +6 -4
- package/internals/native-url.js +1 -0
- package/internals/normalize-string-argument.js +5 -0
- package/internals/not-a-regexp.js +3 -0
- package/internals/number-parse-float.js +8 -6
- package/internals/number-parse-int.js +3 -1
- package/internals/numeric-range-iterator.js +5 -1
- package/internals/object-assign.js +5 -2
- package/internals/object-create.js +2 -2
- package/internals/object-define-properties.js +5 -2
- package/internals/object-define-property.js +24 -1
- package/internals/object-get-own-property-descriptor.js +2 -1
- package/internals/object-get-own-property-names-external.js +4 -4
- package/internals/object-get-prototype-of.js +2 -1
- package/internals/object-is-extensible.js +16 -0
- package/internals/object-is-prototype-of.js +3 -0
- package/internals/object-keys-internal.js +5 -2
- package/internals/object-set-prototype-of.js +4 -3
- package/internals/object-to-array.js +7 -3
- package/internals/ordinary-to-primitive.js +7 -3
- package/internals/own-keys.js +4 -1
- package/internals/queue.js +23 -0
- package/internals/reflect-metadata.js +9 -3
- package/internals/regexp-exec-abstract.js +6 -2
- package/internals/regexp-exec.js +20 -16
- package/internals/regexp-sticky-helpers.js +14 -2
- package/internals/require-object-coercible.js +4 -0
- package/internals/set-global.js +4 -2
- package/internals/set-to-string-tag.js +4 -3
- package/internals/shared.js +2 -2
- package/internals/string-multibyte.js +13 -4
- package/internals/string-pad.js +6 -3
- package/internals/string-punycode-to-ascii.js +34 -20
- package/internals/string-repeat.js +3 -0
- package/internals/string-trim.js +4 -2
- package/internals/task.js +11 -11
- package/internals/this-number-value.js +2 -4
- package/internals/to-index.js +3 -0
- package/internals/to-object.js +3 -0
- package/internals/to-offset.js +3 -0
- package/internals/to-positive-integer.js +3 -0
- package/internals/to-primitive.js +4 -1
- package/internals/to-property-key.js +1 -1
- package/internals/to-string.js +3 -0
- package/internals/try-node-require.js +8 -0
- package/internals/try-to-string.js +4 -0
- package/internals/typed-array-constructor.js +10 -6
- package/internals/typed-array-from.js +4 -3
- package/internals/uid.js +4 -1
- package/internals/v8-prototype-define-bug.js +12 -0
- package/internals/well-known-symbol.js +5 -1
- package/internals/wrap-error-constructor-with-cause.js +60 -0
- package/modules/es.aggregate-error.cause.js +21 -0
- package/modules/es.aggregate-error.js +21 -9
- package/modules/es.array-buffer.slice.js +8 -4
- package/modules/es.array.concat.js +2 -0
- package/modules/es.array.index-of.js +7 -5
- package/modules/es.array.iterator.js +9 -1
- package/modules/es.array.join.js +3 -2
- package/modules/es.array.of.js +3 -1
- package/modules/es.array.reduce.js +2 -1
- package/modules/es.array.reverse.js +3 -2
- package/modules/es.array.slice.js +4 -2
- package/modules/es.array.sort.js +7 -4
- package/modules/es.array.splice.js +2 -0
- package/modules/es.date.get-year.js +3 -2
- package/modules/es.date.now.js +6 -1
- package/modules/es.date.set-year.js +6 -4
- package/modules/es.date.to-primitive.js +2 -1
- package/modules/es.date.to-string.js +5 -4
- package/modules/es.error.cause.js +56 -0
- package/modules/es.error.to-string.js +10 -0
- package/modules/es.escape.js +12 -5
- package/modules/es.function.has-instance.js +3 -2
- package/modules/es.function.name.js +5 -3
- package/modules/es.json.stringify.js +18 -7
- package/modules/es.map.js +1 -1
- package/modules/es.math.log10.js +2 -6
- package/modules/es.number.constructor.js +12 -7
- package/modules/es.number.to-exponential.js +100 -0
- package/modules/es.number.to-fixed.js +20 -13
- package/modules/es.number.to-precision.js +6 -5
- package/modules/es.object.define-properties.js +3 -2
- package/modules/es.object.define-property.js +4 -3
- package/modules/es.object.is-extensible.js +4 -10
- package/modules/es.object.is-frozen.js +6 -2
- package/modules/es.object.is-sealed.js +6 -2
- package/modules/es.promise.all-settled.js +2 -2
- package/modules/es.promise.any.js +5 -4
- package/modules/es.promise.finally.js +1 -0
- package/modules/es.promise.js +67 -59
- package/modules/es.reflect.apply.js +4 -10
- package/modules/es.reflect.construct.js +10 -5
- package/modules/es.reflect.get.js +2 -1
- package/modules/es.reflect.is-extensible.js +2 -4
- package/modules/es.reflect.set.js +2 -1
- package/modules/es.regexp.constructor.js +26 -16
- package/modules/es.regexp.dot-all.js +5 -1
- package/modules/es.regexp.flags.js +4 -2
- package/modules/es.regexp.sticky.js +7 -3
- package/modules/es.regexp.test.js +7 -3
- package/modules/es.regexp.to-string.js +8 -5
- package/modules/es.set.js +1 -1
- package/modules/es.string.at-alternative.js +5 -2
- package/modules/es.string.ends-with.js +6 -4
- package/modules/es.string.from-code-point.js +7 -4
- package/modules/es.string.includes.js +8 -2
- package/modules/es.string.match-all.js +25 -19
- package/modules/es.string.match.js +2 -1
- package/modules/es.string.raw.js +6 -6
- package/modules/es.string.replace-all.js +19 -13
- package/modules/es.string.replace.js +19 -12
- package/modules/es.string.search.js +2 -1
- package/modules/es.string.split.js +23 -16
- package/modules/es.string.starts-with.js +6 -4
- package/modules/es.string.substr.js +3 -2
- package/modules/es.symbol.description.js +20 -12
- package/modules/es.symbol.js +36 -21
- package/modules/es.typed-array.copy-within.js +4 -2
- package/modules/es.typed-array.fill.js +9 -2
- package/modules/es.typed-array.iterator.js +21 -13
- package/modules/es.typed-array.join.js +3 -3
- package/modules/es.typed-array.last-index-of.js +3 -2
- package/modules/es.typed-array.reduce-right.js +2 -1
- package/modules/es.typed-array.reduce.js +2 -1
- package/modules/es.typed-array.set.js +22 -5
- package/modules/es.typed-array.slice.js +2 -2
- package/modules/es.typed-array.sort.js +13 -28
- package/modules/es.typed-array.to-locale-string.js +7 -2
- package/modules/es.typed-array.to-string.js +3 -2
- package/modules/es.unescape.js +14 -9
- package/modules/es.weak-map.js +20 -20
- package/modules/esnext.array.group-by-to-map.js +38 -0
- package/modules/esnext.array.group-by.js +1 -2
- package/modules/esnext.array.is-template-object.js +1 -1
- package/modules/esnext.array.to-reversed.js +18 -0
- package/modules/esnext.array.to-sorted.js +25 -0
- package/modules/esnext.array.to-spliced.js +20 -0
- package/modules/esnext.array.with.js +15 -0
- package/modules/esnext.async-iterator.as-indexed-pairs.js +2 -1
- package/modules/esnext.async-iterator.constructor.js +1 -1
- package/modules/esnext.async-iterator.drop.js +2 -1
- package/modules/esnext.async-iterator.filter.js +2 -1
- package/modules/esnext.async-iterator.flat-map.js +3 -2
- package/modules/esnext.async-iterator.from.js +4 -4
- package/modules/esnext.async-iterator.map.js +2 -1
- package/modules/esnext.async-iterator.reduce.js +4 -1
- package/modules/esnext.async-iterator.take.js +4 -2
- package/modules/esnext.composite-key.js +5 -1
- package/modules/esnext.composite-symbol.js +3 -2
- package/modules/esnext.function.is-callable.js +29 -0
- package/modules/esnext.function.is-constructor.js +8 -0
- package/modules/esnext.function.un-this.js +11 -0
- package/modules/esnext.iterator.as-indexed-pairs.js +2 -1
- package/modules/esnext.iterator.constructor.js +1 -1
- package/modules/esnext.iterator.drop.js +4 -2
- package/modules/esnext.iterator.filter.js +2 -1
- package/modules/esnext.iterator.flat-map.js +7 -3
- package/modules/esnext.iterator.from.js +4 -4
- package/modules/esnext.iterator.map.js +2 -1
- package/modules/esnext.iterator.reduce.js +3 -0
- package/modules/esnext.iterator.take.js +2 -1
- package/modules/esnext.iterator.to-async.js +10 -0
- package/modules/esnext.map.delete-all.js +2 -4
- package/modules/esnext.map.emplace.js +2 -2
- package/modules/esnext.map.every.js +1 -1
- package/modules/esnext.map.filter.js +5 -4
- package/modules/esnext.map.find-key.js +1 -1
- package/modules/esnext.map.find.js +1 -1
- package/modules/esnext.map.group-by.js +6 -2
- package/modules/esnext.map.includes.js +1 -1
- package/modules/esnext.map.key-by.js +2 -1
- package/modules/esnext.map.map-keys.js +5 -4
- package/modules/esnext.map.map-values.js +5 -4
- package/modules/esnext.map.merge.js +1 -1
- package/modules/esnext.map.reduce.js +3 -0
- package/modules/esnext.map.some.js +1 -1
- package/modules/esnext.map.update-or-insert.js +2 -2
- package/modules/esnext.map.update.js +11 -4
- package/modules/esnext.map.upsert.js +2 -2
- package/modules/esnext.math.seeded-prng.js +3 -1
- package/modules/esnext.number.from-string.js +12 -3
- package/modules/esnext.observable.js +82 -62
- package/modules/esnext.reflect.get-metadata-keys.js +5 -10
- package/modules/esnext.set.add-all.js +2 -4
- package/modules/esnext.set.delete-all.js +2 -4
- package/modules/esnext.set.difference.js +3 -2
- package/modules/esnext.set.every.js +1 -1
- package/modules/esnext.set.filter.js +4 -3
- package/modules/esnext.set.find.js +1 -1
- package/modules/esnext.set.intersection.js +3 -2
- package/modules/esnext.set.is-disjoint-from.js +3 -2
- package/modules/esnext.set.is-subset-of.js +3 -2
- package/modules/esnext.set.is-superset-of.js +3 -2
- package/modules/esnext.set.join.js +9 -4
- package/modules/esnext.set.map.js +5 -4
- package/modules/esnext.set.reduce.js +3 -0
- package/modules/esnext.set.some.js +1 -1
- package/modules/esnext.set.symmetric-difference.js +3 -2
- package/modules/esnext.string.at.js +10 -3
- package/modules/esnext.string.cooked.js +30 -0
- package/modules/esnext.typed-array.from-async.js +1 -1
- package/modules/esnext.typed-array.group-by.js +1 -0
- package/modules/esnext.typed-array.to-reversed.js +13 -0
- package/modules/esnext.typed-array.to-sorted.js +19 -0
- package/modules/esnext.typed-array.to-spliced.js +15 -0
- package/modules/esnext.typed-array.unique-by.js +4 -2
- package/modules/esnext.typed-array.with.js +13 -0
- package/modules/esnext.weak-map.delete-all.js +2 -4
- package/modules/esnext.weak-map.emplace.js +2 -2
- package/modules/esnext.weak-map.upsert.js +2 -2
- package/modules/esnext.weak-set.add-all.js +2 -4
- package/modules/esnext.weak-set.delete-all.js +2 -4
- package/modules/web.dom-exception.constructor.js +141 -0
- package/modules/web.dom-exception.stack.js +58 -0
- package/modules/web.dom-exception.to-string-tag.js +6 -0
- package/modules/web.structured-clone.js +461 -0
- package/modules/web.timers.js +5 -4
- package/modules/web.url-search-params.js +123 -105
- package/modules/web.url.js +662 -626
- package/modules/web.url.to-json.js +2 -1
- package/package.json +2 -2
- package/postinstall.js +1 -1
- package/proposals/accessible-object-hasownproperty.js +0 -1
- package/proposals/array-flat-map.js +5 -0
- package/proposals/array-from-async.js +1 -0
- package/proposals/array-grouping.js +2 -0
- package/proposals/array-includes.js +3 -0
- package/proposals/array-is-template-object.js +1 -0
- package/proposals/array-last.js +1 -0
- package/proposals/async-iteration.js +2 -0
- package/proposals/change-array-by-copy.js +9 -0
- package/proposals/collection-methods.js +1 -0
- package/proposals/collection-of-from.js +1 -0
- package/proposals/efficient-64-bit-arithmetic.js +1 -0
- package/proposals/error-cause.js +3 -0
- package/proposals/function-is-callable-is-constructor.js +3 -0
- package/proposals/function-un-this.js +2 -0
- package/proposals/global-this.js +1 -0
- package/proposals/index.js +1 -0
- package/proposals/iterator-helpers.js +2 -0
- package/proposals/keys-composition.js +1 -0
- package/proposals/map-update-or-insert.js +1 -0
- package/proposals/map-upsert.js +1 -1
- package/proposals/math-extensions.js +1 -0
- package/proposals/math-signbit.js +1 -0
- package/proposals/number-from-string.js +1 -0
- package/proposals/object-from-entries.js +2 -0
- package/proposals/object-getownpropertydescriptors.js +2 -0
- package/proposals/object-iteration.js +1 -0
- package/proposals/object-values-entries.js +3 -0
- package/proposals/observable.js +1 -0
- package/proposals/promise-all-settled.js +1 -1
- package/proposals/promise-any.js +1 -0
- package/proposals/promise-finally.js +2 -0
- package/proposals/promise-try.js +1 -0
- package/proposals/reflect-metadata.js +1 -0
- package/proposals/regexp-dotall-flag.js +5 -0
- package/proposals/regexp-named-groups.js +4 -0
- package/proposals/relative-indexing-method.js +0 -1
- package/proposals/seeded-random.js +1 -0
- package/proposals/set-methods.js +1 -0
- package/proposals/string-at.js +1 -0
- package/proposals/string-code-points.js +1 -0
- package/proposals/string-cooked.js +2 -0
- package/proposals/string-left-right-trim.js +3 -0
- package/proposals/string-match-all.js +1 -1
- package/proposals/string-padding.js +3 -0
- package/proposals/string-replace-all.js +1 -0
- package/proposals/symbol-description.js +2 -0
- package/proposals/url.js +1 -0
- package/proposals/well-formed-stringify.js +2 -0
- package/stable/dom-exception/constructor.js +6 -0
- package/stable/dom-exception/index.js +7 -0
- package/stable/dom-exception/to-string-tag.js +3 -0
- package/stable/error/constructor.js +3 -0
- package/stable/error/index.js +3 -0
- package/stable/error/to-string.js +3 -0
- package/stable/index.js +8 -0
- package/stable/instance/entries.js +6 -4
- package/stable/instance/for-each.js +6 -4
- package/stable/instance/keys.js +6 -4
- package/stable/instance/values.js +6 -4
- package/stable/number/to-exponential.js +3 -0
- package/stable/number/virtual/to-exponential.js +3 -0
- package/stable/structured-clone.js +13 -0
- package/stable/symbol/description.js +3 -1
- package/stage/0.js +2 -0
- package/stage/1.js +1 -2
- package/stage/2.js +2 -0
- package/stage/3.js +1 -0
- package/stage/4.js +2 -0
- package/web/dom-exception.js +7 -0
- package/web/index.js +4 -0
- package/web/structured-clone.js +8 -0
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
var
|
|
1
|
+
var uncurryThis = require('../internals/function-uncurry-this');
|
|
2
2
|
|
|
3
3
|
// `thisNumberValue` abstract operation
|
|
4
4
|
// https://tc39.es/ecma262/#sec-thisnumbervalue
|
|
5
|
-
module.exports =
|
|
6
|
-
return valueOf.call(value);
|
|
7
|
-
};
|
|
5
|
+
module.exports = uncurryThis(1.0.valueOf);
|
package/internals/to-index.js
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
|
+
var global = require('../internals/global');
|
|
1
2
|
var toIntegerOrInfinity = require('../internals/to-integer-or-infinity');
|
|
2
3
|
var toLength = require('../internals/to-length');
|
|
3
4
|
|
|
5
|
+
var RangeError = global.RangeError;
|
|
6
|
+
|
|
4
7
|
// `ToIndex` abstract operation
|
|
5
8
|
// https://tc39.es/ecma262/#sec-toindex
|
|
6
9
|
module.exports = function (it) {
|
package/internals/to-object.js
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
|
+
var global = require('../internals/global');
|
|
1
2
|
var requireObjectCoercible = require('../internals/require-object-coercible');
|
|
2
3
|
|
|
4
|
+
var Object = global.Object;
|
|
5
|
+
|
|
3
6
|
// `ToObject` abstract operation
|
|
4
7
|
// https://tc39.es/ecma262/#sec-toobject
|
|
5
8
|
module.exports = function (argument) {
|
package/internals/to-offset.js
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
|
+
var global = require('../internals/global');
|
|
1
2
|
var toPositiveInteger = require('../internals/to-positive-integer');
|
|
2
3
|
|
|
4
|
+
var RangeError = global.RangeError;
|
|
5
|
+
|
|
3
6
|
module.exports = function (it, BYTES) {
|
|
4
7
|
var offset = toPositiveInteger(it);
|
|
5
8
|
if (offset % BYTES) throw RangeError('Wrong offset');
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
+
var global = require('../internals/global');
|
|
1
2
|
var toIntegerOrInfinity = require('../internals/to-integer-or-infinity');
|
|
2
3
|
|
|
4
|
+
var RangeError = global.RangeError;
|
|
5
|
+
|
|
3
6
|
module.exports = function (it) {
|
|
4
7
|
var result = toIntegerOrInfinity(it);
|
|
5
8
|
if (result < 0) throw RangeError("The argument can't be less than 0");
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
+
var global = require('../internals/global');
|
|
2
|
+
var call = require('../internals/function-call');
|
|
1
3
|
var isObject = require('../internals/is-object');
|
|
2
4
|
var isSymbol = require('../internals/is-symbol');
|
|
3
5
|
var getMethod = require('../internals/get-method');
|
|
4
6
|
var ordinaryToPrimitive = require('../internals/ordinary-to-primitive');
|
|
5
7
|
var wellKnownSymbol = require('../internals/well-known-symbol');
|
|
6
8
|
|
|
9
|
+
var TypeError = global.TypeError;
|
|
7
10
|
var TO_PRIMITIVE = wellKnownSymbol('toPrimitive');
|
|
8
11
|
|
|
9
12
|
// `ToPrimitive` abstract operation
|
|
@@ -14,7 +17,7 @@ module.exports = function (input, pref) {
|
|
|
14
17
|
var result;
|
|
15
18
|
if (exoticToPrim) {
|
|
16
19
|
if (pref === undefined) pref = 'default';
|
|
17
|
-
result =
|
|
20
|
+
result = call(exoticToPrim, input, pref);
|
|
18
21
|
if (!isObject(result) || isSymbol(result)) return result;
|
|
19
22
|
throw TypeError("Can't convert object to primitive value");
|
|
20
23
|
}
|
|
@@ -5,5 +5,5 @@ var isSymbol = require('../internals/is-symbol');
|
|
|
5
5
|
// https://tc39.es/ecma262/#sec-topropertykey
|
|
6
6
|
module.exports = function (argument) {
|
|
7
7
|
var key = toPrimitive(argument, 'string');
|
|
8
|
-
return isSymbol(key) ? key :
|
|
8
|
+
return isSymbol(key) ? key : key + '';
|
|
9
9
|
};
|
package/internals/to-string.js
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
|
+
var global = require('../internals/global');
|
|
1
2
|
var classof = require('../internals/classof');
|
|
2
3
|
|
|
4
|
+
var String = global.String;
|
|
5
|
+
|
|
3
6
|
module.exports = function (argument) {
|
|
4
7
|
if (classof(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');
|
|
5
8
|
return String(argument);
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
var $ = require('../internals/export');
|
|
3
3
|
var global = require('../internals/global');
|
|
4
|
+
var call = require('../internals/function-call');
|
|
4
5
|
var DESCRIPTORS = require('../internals/descriptors');
|
|
5
6
|
var TYPED_ARRAYS_CONSTRUCTORS_REQUIRES_WRAPPERS = require('../internals/typed-array-constructors-require-wrappers');
|
|
6
7
|
var ArrayBufferViewCore = require('../internals/array-buffer-view-core');
|
|
@@ -18,6 +19,7 @@ var classof = require('../internals/classof');
|
|
|
18
19
|
var isObject = require('../internals/is-object');
|
|
19
20
|
var isSymbol = require('../internals/is-symbol');
|
|
20
21
|
var create = require('../internals/object-create');
|
|
22
|
+
var isPrototypeOf = require('../internals/object-is-prototype-of');
|
|
21
23
|
var setPrototypeOf = require('../internals/object-set-prototype-of');
|
|
22
24
|
var getOwnPropertyNames = require('../internals/object-get-own-property-names').f;
|
|
23
25
|
var typedArrayFrom = require('../internals/typed-array-from');
|
|
@@ -35,6 +37,7 @@ var nativeGetOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
|
|
|
35
37
|
var round = Math.round;
|
|
36
38
|
var RangeError = global.RangeError;
|
|
37
39
|
var ArrayBuffer = ArrayBufferModule.ArrayBuffer;
|
|
40
|
+
var ArrayBufferPrototype = ArrayBuffer.prototype;
|
|
38
41
|
var DataView = ArrayBufferModule.DataView;
|
|
39
42
|
var NATIVE_ARRAY_BUFFER_VIEWS = ArrayBufferViewCore.NATIVE_ARRAY_BUFFER_VIEWS;
|
|
40
43
|
var TYPED_ARRAY_CONSTRUCTOR = ArrayBufferViewCore.TYPED_ARRAY_CONSTRUCTOR;
|
|
@@ -47,9 +50,10 @@ var BYTES_PER_ELEMENT = 'BYTES_PER_ELEMENT';
|
|
|
47
50
|
var WRONG_LENGTH = 'Wrong length';
|
|
48
51
|
|
|
49
52
|
var fromList = function (C, list) {
|
|
53
|
+
aTypedArrayConstructor(C);
|
|
50
54
|
var index = 0;
|
|
51
55
|
var length = list.length;
|
|
52
|
-
var result = new
|
|
56
|
+
var result = new C(length);
|
|
53
57
|
while (length > index) result[index] = list[index++];
|
|
54
58
|
return result;
|
|
55
59
|
};
|
|
@@ -62,7 +66,7 @@ var addGetter = function (it, key) {
|
|
|
62
66
|
|
|
63
67
|
var isArrayBuffer = function (it) {
|
|
64
68
|
var klass;
|
|
65
|
-
return it
|
|
69
|
+
return isPrototypeOf(ArrayBufferPrototype, it) || (klass = classof(it)) == 'ArrayBuffer' || klass == 'SharedArrayBuffer';
|
|
66
70
|
};
|
|
67
71
|
|
|
68
72
|
var isTypedArrayIndex = function (target, key) {
|
|
@@ -147,7 +151,7 @@ if (DESCRIPTORS) {
|
|
|
147
151
|
|
|
148
152
|
if (!NATIVE_ARRAY_BUFFER_VIEWS) {
|
|
149
153
|
TypedArrayConstructor = wrapper(function (that, data, offset, $length) {
|
|
150
|
-
anInstance(that,
|
|
154
|
+
anInstance(that, TypedArrayConstructorPrototype);
|
|
151
155
|
var index = 0;
|
|
152
156
|
var byteOffset = 0;
|
|
153
157
|
var buffer, byteLength, length;
|
|
@@ -171,7 +175,7 @@ if (DESCRIPTORS) {
|
|
|
171
175
|
} else if (isTypedArray(data)) {
|
|
172
176
|
return fromList(TypedArrayConstructor, data);
|
|
173
177
|
} else {
|
|
174
|
-
return
|
|
178
|
+
return call(typedArrayFrom, TypedArrayConstructor, data);
|
|
175
179
|
}
|
|
176
180
|
setInternalState(that, {
|
|
177
181
|
buffer: buffer,
|
|
@@ -187,7 +191,7 @@ if (DESCRIPTORS) {
|
|
|
187
191
|
TypedArrayConstructorPrototype = TypedArrayConstructor.prototype = create(TypedArrayPrototype);
|
|
188
192
|
} else if (TYPED_ARRAYS_CONSTRUCTORS_REQUIRES_WRAPPERS) {
|
|
189
193
|
TypedArrayConstructor = wrapper(function (dummy, data, typedArrayOffset, $length) {
|
|
190
|
-
anInstance(dummy,
|
|
194
|
+
anInstance(dummy, TypedArrayConstructorPrototype);
|
|
191
195
|
return inheritIfRequired(function () {
|
|
192
196
|
if (!isObject(data)) return new NativeTypedArrayConstructor(toIndex(data));
|
|
193
197
|
if (isArrayBuffer(data)) return $length !== undefined
|
|
@@ -196,7 +200,7 @@ if (DESCRIPTORS) {
|
|
|
196
200
|
? new NativeTypedArrayConstructor(data, toOffset(typedArrayOffset, BYTES))
|
|
197
201
|
: new NativeTypedArrayConstructor(data);
|
|
198
202
|
if (isTypedArray(data)) return fromList(TypedArrayConstructor, data);
|
|
199
|
-
return
|
|
203
|
+
return call(typedArrayFrom, TypedArrayConstructor, data);
|
|
200
204
|
}(), dummy, TypedArrayConstructor);
|
|
201
205
|
});
|
|
202
206
|
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
var bind = require('../internals/function-bind-context');
|
|
2
|
+
var call = require('../internals/function-call');
|
|
1
3
|
var aConstructor = require('../internals/a-constructor');
|
|
2
4
|
var toObject = require('../internals/to-object');
|
|
3
5
|
var lengthOfArrayLike = require('../internals/length-of-array-like');
|
|
4
6
|
var getIterator = require('../internals/get-iterator');
|
|
5
7
|
var getIteratorMethod = require('../internals/get-iterator-method');
|
|
6
8
|
var isArrayIteratorMethod = require('../internals/is-array-iterator-method');
|
|
7
|
-
var bind = require('../internals/function-bind-context');
|
|
8
9
|
var aTypedArrayConstructor = require('../internals/array-buffer-view-core').aTypedArrayConstructor;
|
|
9
10
|
|
|
10
11
|
module.exports = function from(source /* , mapfn, thisArg */) {
|
|
@@ -19,12 +20,12 @@ module.exports = function from(source /* , mapfn, thisArg */) {
|
|
|
19
20
|
iterator = getIterator(O, iteratorMethod);
|
|
20
21
|
next = iterator.next;
|
|
21
22
|
O = [];
|
|
22
|
-
while (!(step =
|
|
23
|
+
while (!(step = call(next, iterator)).done) {
|
|
23
24
|
O.push(step.value);
|
|
24
25
|
}
|
|
25
26
|
}
|
|
26
27
|
if (mapping && argumentsLength > 2) {
|
|
27
|
-
mapfn = bind(mapfn, arguments[2]
|
|
28
|
+
mapfn = bind(mapfn, arguments[2]);
|
|
28
29
|
}
|
|
29
30
|
length = lengthOfArrayLike(O);
|
|
30
31
|
result = new (aTypedArrayConstructor(C))(length);
|
package/internals/uid.js
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
|
+
var uncurryThis = require('../internals/function-uncurry-this');
|
|
2
|
+
|
|
1
3
|
var id = 0;
|
|
2
4
|
var postfix = Math.random();
|
|
5
|
+
var toString = uncurryThis(1.0.toString);
|
|
3
6
|
|
|
4
7
|
module.exports = function (key) {
|
|
5
|
-
return 'Symbol(' +
|
|
8
|
+
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);
|
|
6
9
|
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
var DESCRIPTORS = require('../internals/descriptors');
|
|
2
|
+
var fails = require('../internals/fails');
|
|
3
|
+
|
|
4
|
+
// V8 ~ Chrome 36-
|
|
5
|
+
// https://bugs.chromium.org/p/v8/issues/detail?id=3334
|
|
6
|
+
module.exports = DESCRIPTORS && fails(function () {
|
|
7
|
+
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
8
|
+
return Object.defineProperty(function () { /* empty */ }, 'prototype', {
|
|
9
|
+
value: 42,
|
|
10
|
+
writable: false
|
|
11
|
+
}).prototype != 42;
|
|
12
|
+
});
|
|
@@ -7,14 +7,18 @@ var USE_SYMBOL_AS_UID = require('../internals/use-symbol-as-uid');
|
|
|
7
7
|
|
|
8
8
|
var WellKnownSymbolsStore = shared('wks');
|
|
9
9
|
var Symbol = global.Symbol;
|
|
10
|
+
var symbolFor = Symbol && Symbol['for'];
|
|
10
11
|
var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol : Symbol && Symbol.withoutSetter || uid;
|
|
11
12
|
|
|
12
13
|
module.exports = function (name) {
|
|
13
14
|
if (!hasOwn(WellKnownSymbolsStore, name) || !(NATIVE_SYMBOL || typeof WellKnownSymbolsStore[name] == 'string')) {
|
|
15
|
+
var description = 'Symbol.' + name;
|
|
14
16
|
if (NATIVE_SYMBOL && hasOwn(Symbol, name)) {
|
|
15
17
|
WellKnownSymbolsStore[name] = Symbol[name];
|
|
18
|
+
} else if (USE_SYMBOL_AS_UID && symbolFor) {
|
|
19
|
+
WellKnownSymbolsStore[name] = symbolFor(description);
|
|
16
20
|
} else {
|
|
17
|
-
WellKnownSymbolsStore[name] = createWellKnownSymbol(
|
|
21
|
+
WellKnownSymbolsStore[name] = createWellKnownSymbol(description);
|
|
18
22
|
}
|
|
19
23
|
} return WellKnownSymbolsStore[name];
|
|
20
24
|
};
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
var getBuiltIn = require('../internals/get-built-in');
|
|
3
|
+
var hasOwn = require('../internals/has-own-property');
|
|
4
|
+
var createNonEnumerableProperty = require('../internals/create-non-enumerable-property');
|
|
5
|
+
var isPrototypeOf = require('../internals/object-is-prototype-of');
|
|
6
|
+
var setPrototypeOf = require('../internals/object-set-prototype-of');
|
|
7
|
+
var copyConstructorProperties = require('../internals/copy-constructor-properties');
|
|
8
|
+
var inheritIfRequired = require('../internals/inherit-if-required');
|
|
9
|
+
var normalizeStringArgument = require('../internals/normalize-string-argument');
|
|
10
|
+
var installErrorCause = require('../internals/install-error-cause');
|
|
11
|
+
var clearErrorStack = require('../internals/clear-error-stack');
|
|
12
|
+
var ERROR_STACK_INSTALLABLE = require('../internals/error-stack-installable');
|
|
13
|
+
var IS_PURE = require('../internals/is-pure');
|
|
14
|
+
|
|
15
|
+
module.exports = function (FULL_NAME, wrapper, FORCED, IS_AGGREGATE_ERROR) {
|
|
16
|
+
var OPTIONS_POSITION = IS_AGGREGATE_ERROR ? 2 : 1;
|
|
17
|
+
var path = FULL_NAME.split('.');
|
|
18
|
+
var ERROR_NAME = path[path.length - 1];
|
|
19
|
+
var OriginalError = getBuiltIn.apply(null, path);
|
|
20
|
+
|
|
21
|
+
if (!OriginalError) return;
|
|
22
|
+
|
|
23
|
+
var OriginalErrorPrototype = OriginalError.prototype;
|
|
24
|
+
|
|
25
|
+
// V8 9.3- bug https://bugs.chromium.org/p/v8/issues/detail?id=12006
|
|
26
|
+
if (!IS_PURE && hasOwn(OriginalErrorPrototype, 'cause')) delete OriginalErrorPrototype.cause;
|
|
27
|
+
|
|
28
|
+
if (!FORCED) return OriginalError;
|
|
29
|
+
|
|
30
|
+
var BaseError = getBuiltIn('Error');
|
|
31
|
+
|
|
32
|
+
var WrappedError = wrapper(function (a, b) {
|
|
33
|
+
var message = normalizeStringArgument(IS_AGGREGATE_ERROR ? b : a, undefined);
|
|
34
|
+
var result = IS_AGGREGATE_ERROR ? new OriginalError(a) : new OriginalError();
|
|
35
|
+
if (message !== undefined) createNonEnumerableProperty(result, 'message', message);
|
|
36
|
+
if (ERROR_STACK_INSTALLABLE) createNonEnumerableProperty(result, 'stack', clearErrorStack(result.stack, 2));
|
|
37
|
+
if (this && isPrototypeOf(OriginalErrorPrototype, this)) inheritIfRequired(result, this, WrappedError);
|
|
38
|
+
if (arguments.length > OPTIONS_POSITION) installErrorCause(result, arguments[OPTIONS_POSITION]);
|
|
39
|
+
return result;
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
WrappedError.prototype = OriginalErrorPrototype;
|
|
43
|
+
|
|
44
|
+
if (ERROR_NAME !== 'Error') {
|
|
45
|
+
if (setPrototypeOf) setPrototypeOf(WrappedError, BaseError);
|
|
46
|
+
else copyConstructorProperties(WrappedError, BaseError, { name: true });
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
copyConstructorProperties(WrappedError, OriginalError);
|
|
50
|
+
|
|
51
|
+
if (!IS_PURE) try {
|
|
52
|
+
// Safari 13- bug: WebAssembly errors does not have a proper `.name`
|
|
53
|
+
if (OriginalErrorPrototype.name !== ERROR_NAME) {
|
|
54
|
+
createNonEnumerableProperty(OriginalErrorPrototype, 'name', ERROR_NAME);
|
|
55
|
+
}
|
|
56
|
+
OriginalErrorPrototype.constructor = WrappedError;
|
|
57
|
+
} catch (error) { /* empty */ }
|
|
58
|
+
|
|
59
|
+
return WrappedError;
|
|
60
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
var $ = require('../internals/export');
|
|
2
|
+
var getBuiltIn = require('../internals/get-built-in');
|
|
3
|
+
var apply = require('../internals/function-apply');
|
|
4
|
+
var fails = require('../internals/fails');
|
|
5
|
+
var wrapErrorConstructorWithCause = require('../internals/wrap-error-constructor-with-cause');
|
|
6
|
+
|
|
7
|
+
var AGGREGATE_ERROR = 'AggregateError';
|
|
8
|
+
var $AggregateError = getBuiltIn(AGGREGATE_ERROR);
|
|
9
|
+
var FORCED = !fails(function () {
|
|
10
|
+
return $AggregateError([1]).errors[0] !== 1;
|
|
11
|
+
}) && fails(function () {
|
|
12
|
+
return $AggregateError([1], AGGREGATE_ERROR, { cause: 7 }).cause !== 7;
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
// https://github.com/tc39/proposal-error-cause
|
|
16
|
+
$({ global: true, forced: FORCED }, {
|
|
17
|
+
AggregateError: wrapErrorConstructorWithCause(AGGREGATE_ERROR, function (init) {
|
|
18
|
+
// eslint-disable-next-line no-unused-vars -- required for functions `.length`
|
|
19
|
+
return function AggregateError(errors, message) { return apply(init, this, arguments); };
|
|
20
|
+
}, FORCED, true)
|
|
21
|
+
});
|
|
@@ -1,35 +1,47 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
var $ = require('../internals/export');
|
|
3
|
+
var global = require('../internals/global');
|
|
4
|
+
var isPrototypeOf = require('../internals/object-is-prototype-of');
|
|
3
5
|
var getPrototypeOf = require('../internals/object-get-prototype-of');
|
|
4
6
|
var setPrototypeOf = require('../internals/object-set-prototype-of');
|
|
5
7
|
var copyConstructorProperties = require('../internals/copy-constructor-properties');
|
|
6
8
|
var create = require('../internals/object-create');
|
|
7
9
|
var createNonEnumerableProperty = require('../internals/create-non-enumerable-property');
|
|
8
10
|
var createPropertyDescriptor = require('../internals/create-property-descriptor');
|
|
11
|
+
var clearErrorStack = require('../internals/clear-error-stack');
|
|
9
12
|
var installErrorCause = require('../internals/install-error-cause');
|
|
10
13
|
var iterate = require('../internals/iterate');
|
|
11
|
-
var
|
|
14
|
+
var normalizeStringArgument = require('../internals/normalize-string-argument');
|
|
15
|
+
var wellKnownSymbol = require('../internals/well-known-symbol');
|
|
16
|
+
var ERROR_STACK_INSTALLABLE = require('../internals/error-stack-installable');
|
|
17
|
+
|
|
18
|
+
var TO_STRING_TAG = wellKnownSymbol('toStringTag');
|
|
19
|
+
var Error = global.Error;
|
|
20
|
+
var push = [].push;
|
|
12
21
|
|
|
13
22
|
var $AggregateError = function AggregateError(errors, message /* , options */) {
|
|
14
|
-
var that = this;
|
|
15
23
|
var options = arguments.length > 2 ? arguments[2] : undefined;
|
|
16
|
-
|
|
24
|
+
var isInstance = isPrototypeOf(AggregateErrorPrototype, this);
|
|
25
|
+
var that;
|
|
17
26
|
if (setPrototypeOf) {
|
|
18
|
-
|
|
19
|
-
|
|
27
|
+
that = setPrototypeOf(new Error(), isInstance ? getPrototypeOf(this) : AggregateErrorPrototype);
|
|
28
|
+
} else {
|
|
29
|
+
that = isInstance ? this : create(AggregateErrorPrototype);
|
|
30
|
+
createNonEnumerableProperty(that, TO_STRING_TAG, 'Error');
|
|
20
31
|
}
|
|
21
|
-
if (message !== undefined) createNonEnumerableProperty(that, 'message',
|
|
32
|
+
if (message !== undefined) createNonEnumerableProperty(that, 'message', normalizeStringArgument(message));
|
|
33
|
+
if (ERROR_STACK_INSTALLABLE) createNonEnumerableProperty(that, 'stack', clearErrorStack(that.stack, 1));
|
|
22
34
|
installErrorCause(that, options);
|
|
23
35
|
var errorsArray = [];
|
|
24
|
-
iterate(errors,
|
|
36
|
+
iterate(errors, push, { that: errorsArray });
|
|
25
37
|
createNonEnumerableProperty(that, 'errors', errorsArray);
|
|
26
38
|
return that;
|
|
27
39
|
};
|
|
28
40
|
|
|
29
41
|
if (setPrototypeOf) setPrototypeOf($AggregateError, Error);
|
|
30
|
-
else copyConstructorProperties($AggregateError, Error);
|
|
42
|
+
else copyConstructorProperties($AggregateError, Error, { name: true });
|
|
31
43
|
|
|
32
|
-
$AggregateError.prototype = create(Error.prototype, {
|
|
44
|
+
var AggregateErrorPrototype = $AggregateError.prototype = create(Error.prototype, {
|
|
33
45
|
constructor: createPropertyDescriptor(1, $AggregateError),
|
|
34
46
|
message: createPropertyDescriptor(1, ''),
|
|
35
47
|
name: createPropertyDescriptor(1, 'AggregateError')
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
var $ = require('../internals/export');
|
|
3
|
+
var uncurryThis = require('../internals/function-uncurry-this');
|
|
3
4
|
var fails = require('../internals/fails');
|
|
4
5
|
var ArrayBufferModule = require('../internals/array-buffer');
|
|
5
6
|
var anObject = require('../internals/an-object');
|
|
@@ -9,7 +10,10 @@ var speciesConstructor = require('../internals/species-constructor');
|
|
|
9
10
|
|
|
10
11
|
var ArrayBuffer = ArrayBufferModule.ArrayBuffer;
|
|
11
12
|
var DataView = ArrayBufferModule.DataView;
|
|
12
|
-
var
|
|
13
|
+
var DataViewPrototype = DataView.prototype;
|
|
14
|
+
var un$ArrayBufferSlice = uncurryThis(ArrayBuffer.prototype.slice);
|
|
15
|
+
var getUint8 = uncurryThis(DataViewPrototype.getUint8);
|
|
16
|
+
var setUint8 = uncurryThis(DataViewPrototype.setUint8);
|
|
13
17
|
|
|
14
18
|
var INCORRECT_SLICE = fails(function () {
|
|
15
19
|
return !new ArrayBuffer(2).slice(1, undefined).byteLength;
|
|
@@ -19,8 +23,8 @@ var INCORRECT_SLICE = fails(function () {
|
|
|
19
23
|
// https://tc39.es/ecma262/#sec-arraybuffer.prototype.slice
|
|
20
24
|
$({ target: 'ArrayBuffer', proto: true, unsafe: true, forced: INCORRECT_SLICE }, {
|
|
21
25
|
slice: function slice(start, end) {
|
|
22
|
-
if (
|
|
23
|
-
return
|
|
26
|
+
if (un$ArrayBufferSlice && end === undefined) {
|
|
27
|
+
return un$ArrayBufferSlice(anObject(this), start); // FF fix
|
|
24
28
|
}
|
|
25
29
|
var length = anObject(this).byteLength;
|
|
26
30
|
var first = toAbsoluteIndex(start, length);
|
|
@@ -30,7 +34,7 @@ $({ target: 'ArrayBuffer', proto: true, unsafe: true, forced: INCORRECT_SLICE },
|
|
|
30
34
|
var viewTarget = new DataView(result);
|
|
31
35
|
var index = 0;
|
|
32
36
|
while (first < fin) {
|
|
33
|
-
|
|
37
|
+
setUint8(viewTarget, index++, getUint8(viewSource, first++));
|
|
34
38
|
} return result;
|
|
35
39
|
}
|
|
36
40
|
});
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
var $ = require('../internals/export');
|
|
3
|
+
var global = require('../internals/global');
|
|
3
4
|
var fails = require('../internals/fails');
|
|
4
5
|
var isArray = require('../internals/is-array');
|
|
5
6
|
var isObject = require('../internals/is-object');
|
|
@@ -14,6 +15,7 @@ var V8_VERSION = require('../internals/engine-v8-version');
|
|
|
14
15
|
var IS_CONCAT_SPREADABLE = wellKnownSymbol('isConcatSpreadable');
|
|
15
16
|
var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF;
|
|
16
17
|
var MAXIMUM_ALLOWED_INDEX_EXCEEDED = 'Maximum allowed index exceeded';
|
|
18
|
+
var TypeError = global.TypeError;
|
|
17
19
|
|
|
18
20
|
// We can't use this feature detection in V8 since it causes
|
|
19
21
|
// deoptimization and serious performance degradation
|
|
@@ -1,21 +1,23 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
/* eslint-disable es/no-array-prototype-indexof -- required for testing */
|
|
3
3
|
var $ = require('../internals/export');
|
|
4
|
-
var
|
|
4
|
+
var uncurryThis = require('../internals/function-uncurry-this');
|
|
5
|
+
var $IndexOf = require('../internals/array-includes').indexOf;
|
|
5
6
|
var arrayMethodIsStrict = require('../internals/array-method-is-strict');
|
|
6
7
|
|
|
7
|
-
var
|
|
8
|
+
var un$IndexOf = uncurryThis([].indexOf);
|
|
8
9
|
|
|
9
|
-
var NEGATIVE_ZERO = !!
|
|
10
|
+
var NEGATIVE_ZERO = !!un$IndexOf && 1 / un$IndexOf([1], 1, -0) < 0;
|
|
10
11
|
var STRICT_METHOD = arrayMethodIsStrict('indexOf');
|
|
11
12
|
|
|
12
13
|
// `Array.prototype.indexOf` method
|
|
13
14
|
// https://tc39.es/ecma262/#sec-array.prototype.indexof
|
|
14
15
|
$({ target: 'Array', proto: true, forced: NEGATIVE_ZERO || !STRICT_METHOD }, {
|
|
15
16
|
indexOf: function indexOf(searchElement /* , fromIndex = 0 */) {
|
|
17
|
+
var fromIndex = arguments.length > 1 ? arguments[1] : undefined;
|
|
16
18
|
return NEGATIVE_ZERO
|
|
17
19
|
// convert -0 to +0
|
|
18
|
-
?
|
|
19
|
-
: $
|
|
20
|
+
? un$IndexOf(this, searchElement, fromIndex) || 0
|
|
21
|
+
: $IndexOf(this, searchElement, fromIndex);
|
|
20
22
|
}
|
|
21
23
|
});
|
|
@@ -3,7 +3,10 @@ var toIndexedObject = require('../internals/to-indexed-object');
|
|
|
3
3
|
var addToUnscopables = require('../internals/add-to-unscopables');
|
|
4
4
|
var Iterators = require('../internals/iterators');
|
|
5
5
|
var InternalStateModule = require('../internals/internal-state');
|
|
6
|
+
var defineProperty = require('../internals/object-define-property').f;
|
|
6
7
|
var defineIterator = require('../internals/define-iterator');
|
|
8
|
+
var IS_PURE = require('../internals/is-pure');
|
|
9
|
+
var DESCRIPTORS = require('../internals/descriptors');
|
|
7
10
|
|
|
8
11
|
var ARRAY_ITERATOR = 'Array Iterator';
|
|
9
12
|
var setInternalState = InternalStateModule.set;
|
|
@@ -45,9 +48,14 @@ module.exports = defineIterator(Array, 'Array', function (iterated, kind) {
|
|
|
45
48
|
// argumentsList[@@iterator] is %ArrayProto_values%
|
|
46
49
|
// https://tc39.es/ecma262/#sec-createunmappedargumentsobject
|
|
47
50
|
// https://tc39.es/ecma262/#sec-createmappedargumentsobject
|
|
48
|
-
Iterators.Arguments = Iterators.Array;
|
|
51
|
+
var values = Iterators.Arguments = Iterators.Array;
|
|
49
52
|
|
|
50
53
|
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
|
51
54
|
addToUnscopables('keys');
|
|
52
55
|
addToUnscopables('values');
|
|
53
56
|
addToUnscopables('entries');
|
|
57
|
+
|
|
58
|
+
// V8 ~ Chrome 45- bug
|
|
59
|
+
if (!IS_PURE && DESCRIPTORS && values.name !== 'values') try {
|
|
60
|
+
defineProperty(values, 'name', { value: 'values' });
|
|
61
|
+
} catch (error) { /* empty */ }
|
package/modules/es.array.join.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
var $ = require('../internals/export');
|
|
3
|
+
var uncurryThis = require('../internals/function-uncurry-this');
|
|
3
4
|
var IndexedObject = require('../internals/indexed-object');
|
|
4
5
|
var toIndexedObject = require('../internals/to-indexed-object');
|
|
5
6
|
var arrayMethodIsStrict = require('../internals/array-method-is-strict');
|
|
6
7
|
|
|
7
|
-
var
|
|
8
|
+
var un$Join = uncurryThis([].join);
|
|
8
9
|
|
|
9
10
|
var ES3_STRINGS = IndexedObject != Object;
|
|
10
11
|
var STRICT_METHOD = arrayMethodIsStrict('join', ',');
|
|
@@ -13,6 +14,6 @@ var STRICT_METHOD = arrayMethodIsStrict('join', ',');
|
|
|
13
14
|
// https://tc39.es/ecma262/#sec-array.prototype.join
|
|
14
15
|
$({ target: 'Array', proto: true, forced: ES3_STRINGS || !STRICT_METHOD }, {
|
|
15
16
|
join: function join(separator) {
|
|
16
|
-
return
|
|
17
|
+
return un$Join(toIndexedObject(this), separator === undefined ? ',' : separator);
|
|
17
18
|
}
|
|
18
19
|
});
|
package/modules/es.array.of.js
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
var $ = require('../internals/export');
|
|
3
|
+
var global = require('../internals/global');
|
|
3
4
|
var fails = require('../internals/fails');
|
|
4
5
|
var isConstructor = require('../internals/is-constructor');
|
|
5
6
|
var createProperty = require('../internals/create-property');
|
|
6
7
|
|
|
8
|
+
var Array = global.Array;
|
|
9
|
+
|
|
7
10
|
var ISNT_GENERIC = fails(function () {
|
|
8
11
|
function F() { /* empty */ }
|
|
9
|
-
// eslint-disable-next-line es/no-array-of -- required for testing
|
|
10
12
|
return !(Array.of.call(F) instanceof F);
|
|
11
13
|
});
|
|
12
14
|
|
|
@@ -14,6 +14,7 @@ var CHROME_BUG = !IS_NODE && CHROME_VERSION > 79 && CHROME_VERSION < 83;
|
|
|
14
14
|
// https://tc39.es/ecma262/#sec-array.prototype.reduce
|
|
15
15
|
$({ target: 'Array', proto: true, forced: !STRICT_METHOD || CHROME_BUG }, {
|
|
16
16
|
reduce: function reduce(callbackfn /* , initialValue */) {
|
|
17
|
-
|
|
17
|
+
var length = arguments.length;
|
|
18
|
+
return $reduce(this, callbackfn, length, length > 1 ? arguments[1] : undefined);
|
|
18
19
|
}
|
|
19
20
|
});
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
var $ = require('../internals/export');
|
|
3
|
+
var uncurryThis = require('../internals/function-uncurry-this');
|
|
3
4
|
var isArray = require('../internals/is-array');
|
|
4
5
|
|
|
5
|
-
var
|
|
6
|
+
var un$Reverse = uncurryThis([].reverse);
|
|
6
7
|
var test = [1, 2];
|
|
7
8
|
|
|
8
9
|
// `Array.prototype.reverse` method
|
|
@@ -13,6 +14,6 @@ $({ target: 'Array', proto: true, forced: String(test) === String(test.reverse()
|
|
|
13
14
|
reverse: function reverse() {
|
|
14
15
|
// eslint-disable-next-line no-self-assign -- dirty hack
|
|
15
16
|
if (isArray(this)) this.length = this.length;
|
|
16
|
-
return
|
|
17
|
+
return un$Reverse(this);
|
|
17
18
|
}
|
|
18
19
|
});
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
var $ = require('../internals/export');
|
|
3
|
+
var global = require('../internals/global');
|
|
3
4
|
var isArray = require('../internals/is-array');
|
|
4
5
|
var isConstructor = require('../internals/is-constructor');
|
|
5
6
|
var isObject = require('../internals/is-object');
|
|
@@ -9,11 +10,12 @@ var toIndexedObject = require('../internals/to-indexed-object');
|
|
|
9
10
|
var createProperty = require('../internals/create-property');
|
|
10
11
|
var wellKnownSymbol = require('../internals/well-known-symbol');
|
|
11
12
|
var arrayMethodHasSpeciesSupport = require('../internals/array-method-has-species-support');
|
|
13
|
+
var un$Slice = require('../internals/array-slice');
|
|
12
14
|
|
|
13
15
|
var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('slice');
|
|
14
16
|
|
|
15
17
|
var SPECIES = wellKnownSymbol('species');
|
|
16
|
-
var
|
|
18
|
+
var Array = global.Array;
|
|
17
19
|
var max = Math.max;
|
|
18
20
|
|
|
19
21
|
// `Array.prototype.slice` method
|
|
@@ -37,7 +39,7 @@ $({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, {
|
|
|
37
39
|
if (Constructor === null) Constructor = undefined;
|
|
38
40
|
}
|
|
39
41
|
if (Constructor === Array || Constructor === undefined) {
|
|
40
|
-
return
|
|
42
|
+
return un$Slice(O, k, fin);
|
|
41
43
|
}
|
|
42
44
|
}
|
|
43
45
|
result = new (Constructor === undefined ? Array : Constructor)(max(fin - k, 0));
|