core-js 3.21.1 → 3.22.8
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 +1 -1
- package/actual/array/index.js +4 -0
- package/actual/array/to-reversed.js +4 -0
- package/actual/array/to-sorted.js +5 -0
- package/actual/array/to-spliced.js +4 -0
- package/actual/array/virtual/index.js +4 -0
- package/actual/array/virtual/to-reversed.js +4 -0
- package/actual/array/virtual/to-sorted.js +5 -0
- package/actual/array/virtual/to-spliced.js +4 -0
- package/actual/array/virtual/with.js +4 -0
- package/actual/array/with.js +4 -0
- package/actual/instance/to-reversed.js +9 -0
- package/actual/instance/to-sorted.js +9 -0
- package/actual/instance/to-spliced.js +9 -0
- package/actual/instance/with.js +9 -0
- package/actual/typed-array/at.js +1 -1
- package/actual/typed-array/index.js +4 -0
- package/actual/typed-array/methods.js +4 -0
- package/actual/typed-array/to-reversed.js +1 -0
- package/actual/typed-array/to-sorted.js +2 -0
- package/actual/typed-array/to-spliced.js +1 -0
- package/actual/typed-array/with.js +1 -0
- package/es/json/index.js +1 -1
- package/es/json/stringify.js +1 -1
- package/es/object/lookup-getter.js +1 -1
- package/es/regexp/flags.js +2 -3
- package/features/aggregate-error.js +1 -6
- package/features/array/at.js +1 -6
- package/features/array/concat.js +1 -3
- package/features/array/copy-within.js +1 -3
- package/features/array/entries.js +1 -3
- package/features/array/every.js +1 -3
- package/features/array/fill.js +1 -3
- package/features/array/filter-out.js +1 -5
- package/features/array/filter-reject.js +1 -4
- package/features/array/filter.js +1 -3
- package/features/array/find-index.js +1 -3
- package/features/array/find-last-index.js +1 -3
- package/features/array/find-last.js +1 -3
- package/features/array/find.js +1 -3
- package/features/array/flat-map.js +1 -3
- package/features/array/flat.js +1 -3
- package/features/array/for-each.js +1 -3
- package/features/array/from-async.js +1 -8
- package/features/array/from.js +1 -3
- package/features/array/group-by-to-map.js +1 -3
- package/features/array/group-by.js +1 -3
- package/features/array/includes.js +1 -3
- package/features/array/index-of.js +1 -3
- package/features/array/index.js +1 -18
- package/features/array/is-array.js +1 -3
- package/features/array/is-template-object.js +1 -4
- package/features/array/iterator.js +1 -3
- package/features/array/join.js +1 -3
- package/features/array/keys.js +1 -3
- package/features/array/last-index-of.js +1 -3
- package/features/array/last-index.js +1 -1
- package/features/array/last-item.js +1 -1
- package/features/array/map.js +1 -3
- package/features/array/of.js +1 -3
- package/features/array/reduce-right.js +1 -3
- package/features/array/reduce.js +1 -3
- package/features/array/reverse.js +1 -3
- package/features/array/slice.js +1 -3
- package/features/array/some.js +1 -3
- package/features/array/sort.js +1 -3
- package/features/array/splice.js +1 -3
- package/features/array/to-reversed.js +1 -4
- package/features/array/to-sorted.js +1 -5
- package/features/array/to-spliced.js +1 -4
- package/features/array/unique-by.js +1 -5
- package/features/array/values.js +1 -3
- package/features/array/virtual/at.js +1 -6
- package/features/array/virtual/concat.js +1 -3
- package/features/array/virtual/copy-within.js +1 -3
- package/features/array/virtual/entries.js +1 -3
- package/features/array/virtual/every.js +1 -3
- package/features/array/virtual/fill.js +1 -3
- package/features/array/virtual/filter-out.js +1 -5
- package/features/array/virtual/filter-reject.js +1 -4
- package/features/array/virtual/filter.js +1 -3
- package/features/array/virtual/find-index.js +1 -3
- package/features/array/virtual/find-last-index.js +1 -3
- package/features/array/virtual/find-last.js +1 -3
- package/features/array/virtual/find.js +1 -3
- package/features/array/virtual/flat-map.js +1 -3
- package/features/array/virtual/flat.js +1 -3
- package/features/array/virtual/for-each.js +1 -3
- package/features/array/virtual/group-by-to-map.js +1 -3
- package/features/array/virtual/group-by.js +1 -3
- package/features/array/virtual/includes.js +1 -3
- package/features/array/virtual/index-of.js +1 -3
- package/features/array/virtual/index.js +1 -13
- package/features/array/virtual/iterator.js +1 -3
- package/features/array/virtual/join.js +1 -3
- package/features/array/virtual/keys.js +1 -3
- package/features/array/virtual/last-index-of.js +1 -3
- package/features/array/virtual/map.js +1 -3
- package/features/array/virtual/reduce-right.js +1 -3
- package/features/array/virtual/reduce.js +1 -3
- package/features/array/virtual/reverse.js +1 -3
- package/features/array/virtual/slice.js +1 -3
- package/features/array/virtual/some.js +1 -3
- package/features/array/virtual/sort.js +1 -3
- package/features/array/virtual/splice.js +1 -3
- package/features/array/virtual/to-reversed.js +1 -4
- package/features/array/virtual/to-sorted.js +1 -5
- package/features/array/virtual/to-spliced.js +1 -4
- package/features/array/virtual/unique-by.js +1 -5
- package/features/array/virtual/values.js +1 -3
- package/features/array/virtual/with.js +1 -4
- package/features/array/with.js +1 -4
- package/features/array-buffer/constructor.js +1 -3
- package/features/array-buffer/index.js +1 -3
- package/features/array-buffer/is-view.js +1 -3
- package/features/array-buffer/slice.js +1 -3
- package/features/async-iterator/as-indexed-pairs.js +1 -8
- package/features/async-iterator/drop.js +1 -8
- package/features/async-iterator/every.js +1 -8
- package/features/async-iterator/filter.js +1 -8
- package/features/async-iterator/find.js +1 -8
- package/features/async-iterator/flat-map.js +1 -8
- package/features/async-iterator/for-each.js +1 -8
- package/features/async-iterator/from.js +1 -11
- package/features/async-iterator/index.js +1 -23
- package/features/async-iterator/map.js +1 -8
- package/features/async-iterator/reduce.js +1 -8
- package/features/async-iterator/some.js +1 -8
- package/features/async-iterator/take.js +1 -8
- package/features/async-iterator/to-array.js +1 -8
- package/features/atob.js +1 -3
- package/features/bigint/index.js +1 -5
- package/features/bigint/range.js +1 -5
- package/features/btoa.js +1 -3
- package/features/clear-immediate.js +1 -3
- package/features/composite-key.js +1 -4
- package/features/composite-symbol.js +1 -5
- package/features/data-view/index.js +1 -3
- package/features/date/get-year.js +1 -3
- package/features/date/index.js +1 -3
- package/features/date/now.js +1 -3
- package/features/date/set-year.js +1 -3
- package/features/date/to-gmt-string.js +1 -3
- package/features/date/to-iso-string.js +1 -3
- package/features/date/to-json.js +1 -3
- package/features/date/to-primitive.js +1 -3
- package/features/date/to-string.js +1 -3
- package/features/dom-collections/for-each.js +1 -3
- package/features/dom-collections/index.js +1 -3
- package/features/dom-collections/iterator.js +1 -3
- package/features/dom-exception/constructor.js +1 -3
- package/features/dom-exception/index.js +1 -3
- package/features/dom-exception/to-string-tag.js +1 -3
- package/features/error/constructor.js +1 -3
- package/features/error/index.js +1 -3
- package/features/error/to-string.js +1 -3
- package/features/escape.js +1 -3
- package/features/function/bind.js +1 -3
- package/features/function/has-instance.js +1 -3
- package/features/function/index.js +1 -6
- package/features/function/is-callable.js +1 -4
- package/features/function/is-constructor.js +1 -4
- package/features/function/name.js +1 -3
- package/features/function/un-this.js +1 -4
- package/features/function/virtual/bind.js +1 -3
- package/features/function/virtual/index.js +1 -4
- package/features/function/virtual/un-this.js +1 -4
- package/features/get-iterator-method.js +1 -3
- package/features/get-iterator.js +1 -3
- package/features/global-this.js +1 -6
- package/features/index.js +1 -398
- package/features/instance/at.js +1 -14
- package/features/instance/bind.js +1 -3
- package/features/instance/code-point-at.js +1 -3
- package/features/instance/code-points.js +1 -10
- package/features/instance/concat.js +1 -3
- package/features/instance/copy-within.js +1 -3
- package/features/instance/ends-with.js +1 -3
- package/features/instance/entries.js +1 -3
- package/features/instance/every.js +1 -3
- package/features/instance/fill.js +1 -3
- package/features/instance/filter-out.js +1 -10
- package/features/instance/filter-reject.js +1 -9
- package/features/instance/filter.js +1 -3
- package/features/instance/find-index.js +1 -3
- package/features/instance/find-last-index.js +1 -3
- package/features/instance/find-last.js +1 -3
- package/features/instance/find.js +1 -3
- package/features/instance/flags.js +1 -3
- package/features/instance/flat-map.js +1 -3
- package/features/instance/flat.js +1 -3
- package/features/instance/for-each.js +1 -3
- package/features/instance/group-by-to-map.js +1 -3
- package/features/instance/group-by.js +1 -3
- package/features/instance/includes.js +1 -3
- package/features/instance/index-of.js +1 -3
- package/features/instance/keys.js +1 -3
- package/features/instance/last-index-of.js +1 -3
- package/features/instance/map.js +1 -3
- package/features/instance/match-all.js +1 -6
- package/features/instance/pad-end.js +1 -3
- package/features/instance/pad-start.js +1 -3
- package/features/instance/reduce-right.js +1 -3
- package/features/instance/reduce.js +1 -3
- package/features/instance/repeat.js +1 -3
- package/features/instance/replace-all.js +1 -3
- package/features/instance/reverse.js +1 -3
- package/features/instance/slice.js +1 -3
- package/features/instance/some.js +1 -3
- package/features/instance/sort.js +1 -3
- package/features/instance/splice.js +1 -3
- package/features/instance/starts-with.js +1 -3
- package/features/instance/to-reversed.js +1 -9
- package/features/instance/to-sorted.js +1 -9
- package/features/instance/to-spliced.js +1 -9
- package/features/instance/trim-end.js +1 -3
- package/features/instance/trim-left.js +1 -3
- package/features/instance/trim-right.js +1 -3
- package/features/instance/trim-start.js +1 -3
- package/features/instance/trim.js +1 -3
- package/features/instance/un-this.js +1 -9
- package/features/instance/unique-by.js +1 -9
- package/features/instance/values.js +1 -3
- package/features/instance/with.js +1 -9
- package/features/is-iterable.js +1 -3
- package/features/iterator/as-indexed-pairs.js +1 -8
- package/features/iterator/drop.js +1 -7
- package/features/iterator/every.js +1 -7
- package/features/iterator/filter.js +1 -7
- package/features/iterator/find.js +1 -7
- package/features/iterator/flat-map.js +1 -7
- package/features/iterator/for-each.js +1 -7
- package/features/iterator/from.js +1 -10
- package/features/iterator/index.js +1 -24
- package/features/iterator/map.js +1 -7
- package/features/iterator/reduce.js +1 -7
- package/features/iterator/some.js +1 -7
- package/features/iterator/take.js +1 -7
- package/features/iterator/to-array.js +1 -7
- package/features/iterator/to-async.js +1 -8
- package/features/json/index.js +1 -3
- package/features/json/stringify.js +1 -3
- package/features/json/to-string-tag.js +1 -3
- package/features/map/delete-all.js +1 -5
- package/features/map/emplace.js +1 -5
- package/features/map/every.js +1 -5
- package/features/map/filter.js +1 -5
- package/features/map/find-key.js +1 -5
- package/features/map/find.js +1 -5
- package/features/map/from.js +1 -16
- package/features/map/group-by.js +1 -13
- package/features/map/includes.js +1 -5
- package/features/map/index.js +1 -25
- package/features/map/key-by.js +1 -13
- package/features/map/key-of.js +1 -5
- package/features/map/map-keys.js +1 -5
- package/features/map/map-values.js +1 -5
- package/features/map/merge.js +1 -5
- package/features/map/of.js +1 -14
- package/features/map/reduce.js +1 -5
- package/features/map/some.js +1 -5
- package/features/map/update-or-insert.js +1 -6
- package/features/map/update.js +1 -5
- package/features/map/upsert.js +1 -5
- package/features/math/acosh.js +1 -3
- package/features/math/asinh.js +1 -3
- package/features/math/atanh.js +1 -3
- package/features/math/cbrt.js +1 -3
- package/features/math/clamp.js +1 -4
- package/features/math/clz32.js +1 -3
- package/features/math/cosh.js +1 -3
- package/features/math/deg-per-rad.js +1 -3
- package/features/math/degrees.js +1 -4
- package/features/math/expm1.js +1 -3
- package/features/math/fround.js +1 -3
- package/features/math/fscale.js +1 -4
- package/features/math/hypot.js +1 -3
- package/features/math/iaddh.js +1 -4
- package/features/math/imul.js +1 -3
- package/features/math/imulh.js +1 -4
- package/features/math/index.js +1 -17
- package/features/math/isubh.js +1 -4
- package/features/math/log10.js +1 -3
- package/features/math/log1p.js +1 -3
- package/features/math/log2.js +1 -3
- package/features/math/rad-per-deg.js +1 -3
- package/features/math/radians.js +1 -4
- package/features/math/scale.js +1 -4
- package/features/math/seeded-prng.js +1 -4
- package/features/math/sign.js +1 -3
- package/features/math/signbit.js +1 -4
- package/features/math/sinh.js +1 -3
- package/features/math/tanh.js +1 -3
- package/features/math/to-string-tag.js +1 -3
- package/features/math/trunc.js +1 -3
- package/features/math/umulh.js +1 -4
- package/features/number/constructor.js +1 -3
- package/features/number/epsilon.js +1 -3
- package/features/number/from-string.js +1 -4
- package/features/number/index.js +1 -7
- package/features/number/is-finite.js +1 -3
- package/features/number/is-integer.js +1 -3
- package/features/number/is-nan.js +1 -3
- package/features/number/is-safe-integer.js +1 -3
- package/features/number/max-safe-integer.js +1 -3
- package/features/number/min-safe-integer.js +1 -3
- package/features/number/parse-float.js +1 -3
- package/features/number/parse-int.js +1 -3
- package/features/number/range.js +1 -5
- package/features/number/to-exponential.js +1 -3
- package/features/number/to-fixed.js +1 -3
- package/features/number/to-precision.js +1 -3
- package/features/number/virtual/index.js +1 -3
- package/features/number/virtual/to-exponential.js +1 -3
- package/features/number/virtual/to-fixed.js +1 -3
- package/features/number/virtual/to-precision.js +1 -3
- package/features/object/assign.js +1 -3
- package/features/object/create.js +1 -3
- package/features/object/define-getter.js +1 -3
- package/features/object/define-properties.js +1 -3
- package/features/object/define-property.js +1 -3
- package/features/object/define-setter.js +1 -3
- package/features/object/entries.js +1 -3
- package/features/object/freeze.js +1 -3
- package/features/object/from-entries.js +1 -3
- package/features/object/get-own-property-descriptor.js +1 -3
- package/features/object/get-own-property-descriptors.js +1 -3
- package/features/object/get-own-property-names.js +1 -3
- package/features/object/get-own-property-symbols.js +1 -3
- package/features/object/get-prototype-of.js +1 -3
- package/features/object/has-own.js +1 -6
- package/features/object/index.js +1 -8
- package/features/object/is-extensible.js +1 -3
- package/features/object/is-frozen.js +1 -3
- package/features/object/is-sealed.js +1 -3
- package/features/object/is.js +1 -3
- package/features/object/iterate-entries.js +1 -4
- package/features/object/iterate-keys.js +1 -4
- package/features/object/iterate-values.js +1 -4
- package/features/object/keys.js +1 -3
- package/features/object/lookup-getter.js +1 -3
- package/features/object/lookup-setter.js +1 -3
- package/features/object/prevent-extensions.js +1 -3
- package/features/object/seal.js +1 -3
- package/features/object/set-prototype-of.js +1 -3
- package/features/object/to-string.js +1 -3
- package/features/object/values.js +1 -3
- package/features/observable/index.js +1 -8
- package/features/parse-float.js +1 -3
- package/features/parse-int.js +1 -3
- package/features/promise/all-settled.js +1 -6
- package/features/promise/any.js +1 -7
- package/features/promise/finally.js +1 -3
- package/features/promise/index.js +1 -8
- package/features/promise/try.js +1 -13
- package/features/queue-microtask.js +1 -3
- package/features/reflect/apply.js +1 -3
- package/features/reflect/construct.js +1 -3
- package/features/reflect/define-metadata.js +1 -4
- package/features/reflect/define-property.js +1 -3
- package/features/reflect/delete-metadata.js +1 -4
- package/features/reflect/delete-property.js +1 -3
- package/features/reflect/get-metadata-keys.js +1 -4
- package/features/reflect/get-metadata.js +1 -4
- package/features/reflect/get-own-metadata-keys.js +1 -4
- package/features/reflect/get-own-metadata.js +1 -4
- package/features/reflect/get-own-property-descriptor.js +1 -3
- package/features/reflect/get-prototype-of.js +1 -3
- package/features/reflect/get.js +1 -3
- package/features/reflect/has-metadata.js +1 -4
- package/features/reflect/has-own-metadata.js +1 -4
- package/features/reflect/has.js +1 -3
- package/features/reflect/index.js +1 -12
- package/features/reflect/is-extensible.js +1 -3
- package/features/reflect/metadata.js +1 -4
- package/features/reflect/own-keys.js +1 -3
- package/features/reflect/prevent-extensions.js +1 -3
- package/features/reflect/set-prototype-of.js +1 -3
- package/features/reflect/set.js +1 -3
- package/features/reflect/to-string-tag.js +1 -3
- package/features/regexp/constructor.js +1 -3
- package/features/regexp/dot-all.js +1 -3
- package/features/regexp/flags.js +1 -3
- package/features/regexp/index.js +1 -3
- package/features/regexp/match.js +1 -3
- package/features/regexp/replace.js +1 -3
- package/features/regexp/search.js +1 -3
- package/features/regexp/split.js +1 -3
- package/features/regexp/sticky.js +1 -3
- package/features/regexp/test.js +1 -3
- package/features/regexp/to-string.js +1 -3
- package/features/set/add-all.js +1 -5
- package/features/set/delete-all.js +1 -5
- package/features/set/difference.js +1 -8
- package/features/set/every.js +1 -5
- package/features/set/filter.js +1 -5
- package/features/set/find.js +1 -5
- package/features/set/from.js +1 -16
- package/features/set/index.js +1 -21
- package/features/set/intersection.js +1 -8
- package/features/set/is-disjoint-from.js +1 -8
- package/features/set/is-subset-of.js +1 -8
- package/features/set/is-superset-of.js +1 -8
- package/features/set/join.js +1 -5
- package/features/set/map.js +1 -5
- package/features/set/of.js +1 -14
- package/features/set/reduce.js +1 -5
- package/features/set/some.js +1 -5
- package/features/set/symmetric-difference.js +1 -8
- package/features/set/union.js +1 -8
- package/features/set-immediate.js +1 -3
- package/features/set-interval.js +1 -3
- package/features/set-timeout.js +1 -3
- package/features/string/anchor.js +1 -3
- package/features/string/at.js +1 -5
- package/features/string/big.js +1 -3
- package/features/string/blink.js +1 -3
- package/features/string/bold.js +1 -3
- package/features/string/code-point-at.js +1 -3
- package/features/string/code-points.js +1 -4
- package/features/string/cooked.js +1 -4
- package/features/string/ends-with.js +1 -3
- package/features/string/fixed.js +1 -3
- package/features/string/fontcolor.js +1 -3
- package/features/string/fontsize.js +1 -3
- package/features/string/from-code-point.js +1 -3
- package/features/string/includes.js +1 -3
- package/features/string/index.js +1 -10
- package/features/string/italics.js +1 -3
- package/features/string/iterator.js +1 -3
- package/features/string/link.js +1 -3
- package/features/string/match-all.js +1 -6
- package/features/string/match.js +1 -3
- package/features/string/pad-end.js +1 -3
- package/features/string/pad-start.js +1 -3
- package/features/string/raw.js +1 -3
- package/features/string/repeat.js +1 -3
- package/features/string/replace-all.js +1 -6
- package/features/string/replace.js +1 -3
- package/features/string/search.js +1 -3
- package/features/string/small.js +1 -3
- package/features/string/split.js +1 -3
- package/features/string/starts-with.js +1 -3
- package/features/string/strike.js +1 -3
- package/features/string/sub.js +1 -3
- package/features/string/substr.js +1 -3
- package/features/string/sup.js +1 -3
- package/features/string/trim-end.js +1 -3
- package/features/string/trim-left.js +1 -3
- package/features/string/trim-right.js +1 -3
- package/features/string/trim-start.js +1 -3
- package/features/string/trim.js +1 -3
- package/features/string/virtual/anchor.js +1 -3
- package/features/string/virtual/at.js +1 -6
- package/features/string/virtual/big.js +1 -3
- package/features/string/virtual/blink.js +1 -3
- package/features/string/virtual/bold.js +1 -3
- package/features/string/virtual/code-point-at.js +1 -3
- package/features/string/virtual/code-points.js +1 -4
- package/features/string/virtual/ends-with.js +1 -3
- package/features/string/virtual/fixed.js +1 -3
- package/features/string/virtual/fontcolor.js +1 -3
- package/features/string/virtual/fontsize.js +1 -3
- package/features/string/virtual/includes.js +1 -3
- package/features/string/virtual/index.js +1 -9
- package/features/string/virtual/italics.js +1 -3
- package/features/string/virtual/iterator.js +1 -3
- package/features/string/virtual/link.js +1 -3
- package/features/string/virtual/match-all.js +1 -6
- package/features/string/virtual/pad-end.js +1 -3
- package/features/string/virtual/pad-start.js +1 -3
- package/features/string/virtual/repeat.js +1 -3
- package/features/string/virtual/replace-all.js +1 -6
- package/features/string/virtual/small.js +1 -3
- package/features/string/virtual/starts-with.js +1 -3
- package/features/string/virtual/strike.js +1 -3
- package/features/string/virtual/sub.js +1 -3
- package/features/string/virtual/substr.js +1 -3
- package/features/string/virtual/sup.js +1 -3
- package/features/string/virtual/trim-end.js +1 -3
- package/features/string/virtual/trim-left.js +1 -3
- package/features/string/virtual/trim-right.js +1 -3
- package/features/string/virtual/trim-start.js +1 -3
- package/features/string/virtual/trim.js +1 -3
- package/features/structured-clone.js +1 -3
- package/features/symbol/async-dispose.js +1 -4
- package/features/symbol/async-iterator.js +1 -3
- package/features/symbol/description.js +1 -1
- package/features/symbol/dispose.js +1 -4
- package/features/symbol/for.js +1 -3
- package/features/symbol/has-instance.js +1 -3
- package/features/symbol/index.js +1 -12
- package/features/symbol/is-concat-spreadable.js +1 -3
- package/features/symbol/iterator.js +1 -3
- package/features/symbol/key-for.js +1 -3
- package/features/symbol/match-all.js +1 -3
- package/features/symbol/match.js +1 -3
- package/features/symbol/matcher.js +1 -4
- package/features/symbol/metadata.js +1 -4
- package/features/symbol/observable.js +1 -4
- package/features/symbol/pattern-match.js +1 -5
- package/features/symbol/replace-all.js +1 -5
- package/features/symbol/replace.js +1 -3
- package/features/symbol/search.js +1 -3
- package/features/symbol/species.js +1 -3
- package/features/symbol/split.js +1 -3
- package/features/symbol/to-primitive.js +1 -3
- package/features/symbol/to-string-tag.js +1 -3
- package/features/symbol/unscopables.js +1 -3
- package/features/typed-array/at.js +1 -6
- package/features/typed-array/copy-within.js +1 -3
- package/features/typed-array/entries.js +1 -3
- package/features/typed-array/every.js +1 -3
- package/features/typed-array/fill.js +1 -3
- package/features/typed-array/filter-out.js +1 -2
- package/features/typed-array/filter-reject.js +1 -1
- package/features/typed-array/filter.js +1 -3
- package/features/typed-array/find-index.js +1 -3
- package/features/typed-array/find-last-index.js +1 -3
- package/features/typed-array/find-last.js +1 -3
- package/features/typed-array/find.js +1 -3
- package/features/typed-array/float32-array.js +1 -4
- package/features/typed-array/float64-array.js +1 -4
- package/features/typed-array/for-each.js +1 -3
- package/features/typed-array/from-async.js +1 -1
- package/features/typed-array/from.js +1 -3
- package/features/typed-array/group-by.js +1 -1
- package/features/typed-array/includes.js +1 -3
- package/features/typed-array/index-of.js +1 -3
- package/features/typed-array/index.js +1 -17
- package/features/typed-array/int16-array.js +1 -4
- package/features/typed-array/int32-array.js +1 -4
- package/features/typed-array/int8-array.js +1 -4
- package/features/typed-array/iterator.js +1 -3
- package/features/typed-array/join.js +1 -3
- package/features/typed-array/keys.js +1 -3
- package/features/typed-array/last-index-of.js +1 -3
- package/features/typed-array/map.js +1 -3
- package/features/typed-array/methods.js +1 -17
- package/features/typed-array/of.js +1 -3
- package/features/typed-array/reduce-right.js +1 -3
- package/features/typed-array/reduce.js +1 -3
- package/features/typed-array/reverse.js +1 -3
- package/features/typed-array/set.js +1 -3
- package/features/typed-array/slice.js +1 -3
- package/features/typed-array/some.js +1 -3
- package/features/typed-array/sort.js +1 -3
- package/features/typed-array/subarray.js +1 -3
- package/features/typed-array/to-locale-string.js +1 -3
- package/features/typed-array/to-reversed.js +1 -1
- package/features/typed-array/to-sorted.js +1 -2
- package/features/typed-array/to-spliced.js +1 -1
- package/features/typed-array/to-string.js +1 -3
- package/features/typed-array/uint16-array.js +1 -4
- package/features/typed-array/uint32-array.js +1 -4
- package/features/typed-array/uint8-array.js +1 -4
- package/features/typed-array/uint8-clamped-array.js +1 -4
- package/features/typed-array/unique-by.js +1 -2
- package/features/typed-array/values.js +1 -3
- package/features/typed-array/with.js +1 -1
- package/features/unescape.js +1 -3
- package/features/url/index.js +1 -3
- package/features/url/to-json.js +1 -3
- package/features/url-search-params/index.js +1 -3
- package/features/weak-map/delete-all.js +1 -5
- package/features/weak-map/emplace.js +1 -5
- package/features/weak-map/from.js +1 -16
- package/features/weak-map/index.js +1 -10
- package/features/weak-map/of.js +1 -14
- package/features/weak-map/upsert.js +1 -5
- package/features/weak-set/add-all.js +1 -5
- package/features/weak-set/delete-all.js +1 -5
- package/features/weak-set/from.js +1 -16
- package/features/weak-set/index.js +1 -8
- package/features/weak-set/of.js +1 -14
- package/{features → full}/README.md +0 -0
- package/full/aggregate-error.js +6 -0
- package/full/array/at.js +6 -0
- package/full/array/concat.js +3 -0
- package/full/array/copy-within.js +3 -0
- package/full/array/entries.js +3 -0
- package/full/array/every.js +3 -0
- package/full/array/fill.js +3 -0
- package/full/array/filter-out.js +5 -0
- package/full/array/filter-reject.js +4 -0
- package/full/array/filter.js +3 -0
- package/full/array/find-index.js +3 -0
- package/full/array/find-last-index.js +3 -0
- package/full/array/find-last.js +3 -0
- package/full/array/find.js +3 -0
- package/full/array/flat-map.js +3 -0
- package/full/array/flat.js +3 -0
- package/full/array/for-each.js +3 -0
- package/full/array/from-async.js +8 -0
- package/full/array/from.js +3 -0
- package/full/array/group-by-to-map.js +3 -0
- package/full/array/group-by.js +3 -0
- package/full/array/includes.js +3 -0
- package/full/array/index-of.js +3 -0
- package/full/array/index.js +14 -0
- package/full/array/is-array.js +3 -0
- package/full/array/is-template-object.js +4 -0
- package/full/array/iterator.js +3 -0
- package/full/array/join.js +3 -0
- package/full/array/keys.js +3 -0
- package/full/array/last-index-of.js +3 -0
- package/full/array/last-index.js +1 -0
- package/full/array/last-item.js +1 -0
- package/full/array/map.js +3 -0
- package/full/array/of.js +3 -0
- package/full/array/reduce-right.js +3 -0
- package/full/array/reduce.js +3 -0
- package/full/array/reverse.js +3 -0
- package/full/array/slice.js +3 -0
- package/full/array/some.js +3 -0
- package/full/array/sort.js +3 -0
- package/full/array/splice.js +3 -0
- package/full/array/to-reversed.js +4 -0
- package/full/array/to-sorted.js +5 -0
- package/full/array/to-spliced.js +4 -0
- package/full/array/unique-by.js +5 -0
- package/full/array/values.js +3 -0
- package/full/array/virtual/at.js +6 -0
- package/full/array/virtual/concat.js +3 -0
- package/full/array/virtual/copy-within.js +3 -0
- package/full/array/virtual/entries.js +3 -0
- package/full/array/virtual/every.js +3 -0
- package/full/array/virtual/fill.js +3 -0
- package/full/array/virtual/filter-out.js +5 -0
- package/full/array/virtual/filter-reject.js +4 -0
- package/full/array/virtual/filter.js +3 -0
- package/full/array/virtual/find-index.js +3 -0
- package/full/array/virtual/find-last-index.js +3 -0
- package/full/array/virtual/find-last.js +3 -0
- package/full/array/virtual/find.js +3 -0
- package/full/array/virtual/flat-map.js +3 -0
- package/full/array/virtual/flat.js +3 -0
- package/full/array/virtual/for-each.js +3 -0
- package/full/array/virtual/group-by-to-map.js +3 -0
- package/full/array/virtual/group-by.js +3 -0
- package/full/array/virtual/includes.js +3 -0
- package/full/array/virtual/index-of.js +3 -0
- package/full/array/virtual/index.js +9 -0
- package/full/array/virtual/iterator.js +3 -0
- package/full/array/virtual/join.js +3 -0
- package/full/array/virtual/keys.js +3 -0
- package/full/array/virtual/last-index-of.js +3 -0
- package/full/array/virtual/map.js +3 -0
- package/full/array/virtual/reduce-right.js +3 -0
- package/full/array/virtual/reduce.js +3 -0
- package/full/array/virtual/reverse.js +3 -0
- package/full/array/virtual/slice.js +3 -0
- package/full/array/virtual/some.js +3 -0
- package/full/array/virtual/sort.js +3 -0
- package/full/array/virtual/splice.js +3 -0
- package/full/array/virtual/to-reversed.js +3 -0
- package/full/array/virtual/to-sorted.js +3 -0
- package/full/array/virtual/to-spliced.js +3 -0
- package/full/array/virtual/unique-by.js +5 -0
- package/full/array/virtual/values.js +3 -0
- package/full/array/virtual/with.js +3 -0
- package/full/array/with.js +4 -0
- package/full/array-buffer/constructor.js +3 -0
- package/full/array-buffer/index.js +3 -0
- package/full/array-buffer/is-view.js +3 -0
- package/full/array-buffer/slice.js +3 -0
- package/full/async-iterator/as-indexed-pairs.js +8 -0
- package/full/async-iterator/drop.js +8 -0
- package/full/async-iterator/every.js +8 -0
- package/full/async-iterator/filter.js +8 -0
- package/full/async-iterator/find.js +8 -0
- package/full/async-iterator/flat-map.js +8 -0
- package/full/async-iterator/for-each.js +8 -0
- package/full/async-iterator/from.js +11 -0
- package/full/async-iterator/index.js +23 -0
- package/full/async-iterator/map.js +8 -0
- package/full/async-iterator/reduce.js +8 -0
- package/full/async-iterator/some.js +8 -0
- package/full/async-iterator/take.js +8 -0
- package/full/async-iterator/to-array.js +8 -0
- package/full/atob.js +3 -0
- package/full/bigint/index.js +5 -0
- package/full/bigint/range.js +5 -0
- package/full/btoa.js +3 -0
- package/full/clear-immediate.js +3 -0
- package/full/composite-key.js +4 -0
- package/full/composite-symbol.js +5 -0
- package/full/data-view/index.js +3 -0
- package/full/date/get-year.js +3 -0
- package/full/date/index.js +3 -0
- package/full/date/now.js +3 -0
- package/full/date/set-year.js +3 -0
- package/full/date/to-gmt-string.js +3 -0
- package/full/date/to-iso-string.js +3 -0
- package/full/date/to-json.js +3 -0
- package/full/date/to-primitive.js +3 -0
- package/full/date/to-string.js +3 -0
- package/full/dom-collections/for-each.js +3 -0
- package/full/dom-collections/index.js +3 -0
- package/full/dom-collections/iterator.js +3 -0
- package/full/dom-exception/constructor.js +3 -0
- package/full/dom-exception/index.js +3 -0
- package/full/dom-exception/to-string-tag.js +3 -0
- package/full/error/constructor.js +3 -0
- package/full/error/index.js +3 -0
- package/full/error/to-string.js +3 -0
- package/full/escape.js +3 -0
- package/full/function/bind.js +3 -0
- package/full/function/has-instance.js +3 -0
- package/full/function/index.js +6 -0
- package/full/function/is-callable.js +4 -0
- package/full/function/is-constructor.js +4 -0
- package/full/function/name.js +3 -0
- package/full/function/un-this.js +4 -0
- package/full/function/virtual/bind.js +3 -0
- package/full/function/virtual/index.js +4 -0
- package/full/function/virtual/un-this.js +4 -0
- package/full/get-iterator-method.js +3 -0
- package/full/get-iterator.js +3 -0
- package/full/global-this.js +6 -0
- package/full/index.js +398 -0
- package/full/instance/at.js +14 -0
- package/full/instance/bind.js +3 -0
- package/full/instance/code-point-at.js +3 -0
- package/full/instance/code-points.js +10 -0
- package/full/instance/concat.js +3 -0
- package/full/instance/copy-within.js +3 -0
- package/full/instance/ends-with.js +3 -0
- package/full/instance/entries.js +3 -0
- package/full/instance/every.js +3 -0
- package/full/instance/fill.js +3 -0
- package/full/instance/filter-out.js +10 -0
- package/full/instance/filter-reject.js +9 -0
- package/full/instance/filter.js +3 -0
- package/full/instance/find-index.js +3 -0
- package/full/instance/find-last-index.js +3 -0
- package/full/instance/find-last.js +3 -0
- package/full/instance/find.js +3 -0
- package/full/instance/flags.js +3 -0
- package/full/instance/flat-map.js +3 -0
- package/full/instance/flat.js +3 -0
- package/full/instance/for-each.js +3 -0
- package/full/instance/group-by-to-map.js +3 -0
- package/full/instance/group-by.js +3 -0
- package/full/instance/includes.js +3 -0
- package/full/instance/index-of.js +3 -0
- package/full/instance/keys.js +3 -0
- package/full/instance/last-index-of.js +3 -0
- package/full/instance/map.js +3 -0
- package/full/instance/match-all.js +6 -0
- package/full/instance/pad-end.js +3 -0
- package/full/instance/pad-start.js +3 -0
- package/full/instance/reduce-right.js +3 -0
- package/full/instance/reduce.js +3 -0
- package/full/instance/repeat.js +3 -0
- package/full/instance/replace-all.js +3 -0
- package/full/instance/reverse.js +3 -0
- package/full/instance/slice.js +3 -0
- package/full/instance/some.js +3 -0
- package/full/instance/sort.js +3 -0
- package/full/instance/splice.js +3 -0
- package/full/instance/starts-with.js +3 -0
- package/full/instance/to-reversed.js +3 -0
- package/full/instance/to-sorted.js +3 -0
- package/full/instance/to-spliced.js +3 -0
- package/full/instance/trim-end.js +3 -0
- package/full/instance/trim-left.js +3 -0
- package/full/instance/trim-right.js +3 -0
- package/full/instance/trim-start.js +3 -0
- package/full/instance/trim.js +3 -0
- package/full/instance/un-this.js +9 -0
- package/full/instance/unique-by.js +9 -0
- package/full/instance/values.js +3 -0
- package/full/instance/with.js +3 -0
- package/full/is-iterable.js +3 -0
- package/full/iterator/as-indexed-pairs.js +8 -0
- package/full/iterator/drop.js +7 -0
- package/full/iterator/every.js +7 -0
- package/full/iterator/filter.js +7 -0
- package/full/iterator/find.js +7 -0
- package/full/iterator/flat-map.js +7 -0
- package/full/iterator/for-each.js +7 -0
- package/full/iterator/from.js +10 -0
- package/full/iterator/index.js +24 -0
- package/full/iterator/map.js +7 -0
- package/full/iterator/reduce.js +7 -0
- package/full/iterator/some.js +7 -0
- package/full/iterator/take.js +7 -0
- package/full/iterator/to-array.js +7 -0
- package/full/iterator/to-async.js +8 -0
- package/full/json/index.js +3 -0
- package/full/json/stringify.js +3 -0
- package/full/json/to-string-tag.js +3 -0
- package/full/map/delete-all.js +5 -0
- package/full/map/emplace.js +5 -0
- package/full/map/every.js +5 -0
- package/full/map/filter.js +5 -0
- package/full/map/find-key.js +5 -0
- package/full/map/find.js +5 -0
- package/full/map/from.js +16 -0
- package/full/map/group-by.js +13 -0
- package/full/map/includes.js +5 -0
- package/full/map/index.js +25 -0
- package/full/map/key-by.js +13 -0
- package/full/map/key-of.js +5 -0
- package/full/map/map-keys.js +5 -0
- package/full/map/map-values.js +5 -0
- package/full/map/merge.js +5 -0
- package/full/map/of.js +14 -0
- package/full/map/reduce.js +5 -0
- package/full/map/some.js +5 -0
- package/full/map/update-or-insert.js +6 -0
- package/full/map/update.js +5 -0
- package/full/map/upsert.js +5 -0
- package/full/math/acosh.js +3 -0
- package/full/math/asinh.js +3 -0
- package/full/math/atanh.js +3 -0
- package/full/math/cbrt.js +3 -0
- package/full/math/clamp.js +4 -0
- package/full/math/clz32.js +3 -0
- package/full/math/cosh.js +3 -0
- package/full/math/deg-per-rad.js +3 -0
- package/full/math/degrees.js +4 -0
- package/full/math/expm1.js +3 -0
- package/full/math/fround.js +3 -0
- package/full/math/fscale.js +4 -0
- package/full/math/hypot.js +3 -0
- package/full/math/iaddh.js +4 -0
- package/full/math/imul.js +3 -0
- package/full/math/imulh.js +4 -0
- package/full/math/index.js +17 -0
- package/full/math/isubh.js +4 -0
- package/full/math/log10.js +3 -0
- package/full/math/log1p.js +3 -0
- package/full/math/log2.js +3 -0
- package/full/math/rad-per-deg.js +3 -0
- package/full/math/radians.js +4 -0
- package/full/math/scale.js +4 -0
- package/full/math/seeded-prng.js +4 -0
- package/full/math/sign.js +3 -0
- package/full/math/signbit.js +4 -0
- package/full/math/sinh.js +3 -0
- package/full/math/tanh.js +3 -0
- package/full/math/to-string-tag.js +3 -0
- package/full/math/trunc.js +3 -0
- package/full/math/umulh.js +4 -0
- package/full/number/constructor.js +3 -0
- package/full/number/epsilon.js +3 -0
- package/full/number/from-string.js +4 -0
- package/full/number/index.js +7 -0
- package/full/number/is-finite.js +3 -0
- package/full/number/is-integer.js +3 -0
- package/full/number/is-nan.js +3 -0
- package/full/number/is-safe-integer.js +3 -0
- package/full/number/max-safe-integer.js +3 -0
- package/full/number/min-safe-integer.js +3 -0
- package/full/number/parse-float.js +3 -0
- package/full/number/parse-int.js +3 -0
- package/full/number/range.js +5 -0
- package/full/number/to-exponential.js +3 -0
- package/full/number/to-fixed.js +3 -0
- package/full/number/to-precision.js +3 -0
- package/full/number/virtual/index.js +3 -0
- package/full/number/virtual/to-exponential.js +3 -0
- package/full/number/virtual/to-fixed.js +3 -0
- package/full/number/virtual/to-precision.js +3 -0
- package/full/object/assign.js +3 -0
- package/full/object/create.js +3 -0
- package/full/object/define-getter.js +3 -0
- package/full/object/define-properties.js +3 -0
- package/full/object/define-property.js +3 -0
- package/full/object/define-setter.js +3 -0
- package/full/object/entries.js +3 -0
- package/full/object/freeze.js +3 -0
- package/full/object/from-entries.js +3 -0
- package/full/object/get-own-property-descriptor.js +3 -0
- package/full/object/get-own-property-descriptors.js +3 -0
- package/full/object/get-own-property-names.js +3 -0
- package/full/object/get-own-property-symbols.js +3 -0
- package/full/object/get-prototype-of.js +3 -0
- package/full/object/has-own.js +6 -0
- package/full/object/index.js +8 -0
- package/full/object/is-extensible.js +3 -0
- package/full/object/is-frozen.js +3 -0
- package/full/object/is-sealed.js +3 -0
- package/full/object/is.js +3 -0
- package/full/object/iterate-entries.js +4 -0
- package/full/object/iterate-keys.js +4 -0
- package/full/object/iterate-values.js +4 -0
- package/full/object/keys.js +3 -0
- package/full/object/lookup-getter.js +3 -0
- package/full/object/lookup-setter.js +3 -0
- package/full/object/prevent-extensions.js +3 -0
- package/full/object/seal.js +3 -0
- package/full/object/set-prototype-of.js +3 -0
- package/full/object/to-string.js +3 -0
- package/full/object/values.js +3 -0
- package/full/observable/index.js +8 -0
- package/full/parse-float.js +3 -0
- package/full/parse-int.js +3 -0
- package/full/promise/all-settled.js +6 -0
- package/full/promise/any.js +7 -0
- package/full/promise/finally.js +3 -0
- package/full/promise/index.js +8 -0
- package/full/promise/try.js +13 -0
- package/full/queue-microtask.js +3 -0
- package/full/reflect/apply.js +3 -0
- package/full/reflect/construct.js +3 -0
- package/full/reflect/define-metadata.js +4 -0
- package/full/reflect/define-property.js +3 -0
- package/full/reflect/delete-metadata.js +4 -0
- package/full/reflect/delete-property.js +3 -0
- package/full/reflect/get-metadata-keys.js +4 -0
- package/full/reflect/get-metadata.js +4 -0
- package/full/reflect/get-own-metadata-keys.js +4 -0
- package/full/reflect/get-own-metadata.js +4 -0
- package/full/reflect/get-own-property-descriptor.js +3 -0
- package/full/reflect/get-prototype-of.js +3 -0
- package/full/reflect/get.js +3 -0
- package/full/reflect/has-metadata.js +4 -0
- package/full/reflect/has-own-metadata.js +4 -0
- package/full/reflect/has.js +3 -0
- package/full/reflect/index.js +12 -0
- package/full/reflect/is-extensible.js +3 -0
- package/full/reflect/metadata.js +4 -0
- package/full/reflect/own-keys.js +3 -0
- package/full/reflect/prevent-extensions.js +3 -0
- package/full/reflect/set-prototype-of.js +3 -0
- package/full/reflect/set.js +3 -0
- package/full/reflect/to-string-tag.js +3 -0
- package/full/regexp/constructor.js +3 -0
- package/full/regexp/dot-all.js +3 -0
- package/full/regexp/flags.js +3 -0
- package/full/regexp/index.js +3 -0
- package/full/regexp/match.js +3 -0
- package/full/regexp/replace.js +3 -0
- package/full/regexp/search.js +3 -0
- package/full/regexp/split.js +3 -0
- package/full/regexp/sticky.js +3 -0
- package/full/regexp/test.js +3 -0
- package/full/regexp/to-string.js +3 -0
- package/full/set/add-all.js +5 -0
- package/full/set/delete-all.js +5 -0
- package/full/set/difference.js +8 -0
- package/full/set/every.js +5 -0
- package/full/set/filter.js +5 -0
- package/full/set/find.js +5 -0
- package/full/set/from.js +16 -0
- package/full/set/index.js +21 -0
- package/full/set/intersection.js +8 -0
- package/full/set/is-disjoint-from.js +8 -0
- package/full/set/is-subset-of.js +8 -0
- package/full/set/is-superset-of.js +8 -0
- package/full/set/join.js +5 -0
- package/full/set/map.js +5 -0
- package/full/set/of.js +14 -0
- package/full/set/reduce.js +5 -0
- package/full/set/some.js +5 -0
- package/full/set/symmetric-difference.js +8 -0
- package/full/set/union.js +8 -0
- package/full/set-immediate.js +3 -0
- package/full/set-interval.js +3 -0
- package/full/set-timeout.js +3 -0
- package/full/string/anchor.js +3 -0
- package/full/string/at.js +5 -0
- package/full/string/big.js +3 -0
- package/full/string/blink.js +3 -0
- package/full/string/bold.js +3 -0
- package/full/string/code-point-at.js +3 -0
- package/full/string/code-points.js +4 -0
- package/full/string/cooked.js +4 -0
- package/full/string/ends-with.js +3 -0
- package/full/string/fixed.js +3 -0
- package/full/string/fontcolor.js +3 -0
- package/full/string/fontsize.js +3 -0
- package/full/string/from-code-point.js +3 -0
- package/full/string/includes.js +3 -0
- package/full/string/index.js +10 -0
- package/full/string/italics.js +3 -0
- package/full/string/iterator.js +3 -0
- package/full/string/link.js +3 -0
- package/full/string/match-all.js +6 -0
- package/full/string/match.js +3 -0
- package/full/string/pad-end.js +3 -0
- package/full/string/pad-start.js +3 -0
- package/full/string/raw.js +3 -0
- package/full/string/repeat.js +3 -0
- package/full/string/replace-all.js +6 -0
- package/full/string/replace.js +3 -0
- package/full/string/search.js +3 -0
- package/full/string/small.js +3 -0
- package/full/string/split.js +3 -0
- package/full/string/starts-with.js +3 -0
- package/full/string/strike.js +3 -0
- package/full/string/sub.js +3 -0
- package/full/string/substr.js +3 -0
- package/full/string/sup.js +3 -0
- package/full/string/trim-end.js +3 -0
- package/full/string/trim-left.js +3 -0
- package/full/string/trim-right.js +3 -0
- package/full/string/trim-start.js +3 -0
- package/full/string/trim.js +3 -0
- package/full/string/virtual/anchor.js +3 -0
- package/full/string/virtual/at.js +6 -0
- package/full/string/virtual/big.js +3 -0
- package/full/string/virtual/blink.js +3 -0
- package/full/string/virtual/bold.js +3 -0
- package/full/string/virtual/code-point-at.js +3 -0
- package/full/string/virtual/code-points.js +4 -0
- package/full/string/virtual/ends-with.js +3 -0
- package/full/string/virtual/fixed.js +3 -0
- package/full/string/virtual/fontcolor.js +3 -0
- package/full/string/virtual/fontsize.js +3 -0
- package/full/string/virtual/includes.js +3 -0
- package/full/string/virtual/index.js +9 -0
- package/full/string/virtual/italics.js +3 -0
- package/full/string/virtual/iterator.js +3 -0
- package/full/string/virtual/link.js +3 -0
- package/full/string/virtual/match-all.js +6 -0
- package/full/string/virtual/pad-end.js +3 -0
- package/full/string/virtual/pad-start.js +3 -0
- package/full/string/virtual/repeat.js +3 -0
- package/full/string/virtual/replace-all.js +6 -0
- package/full/string/virtual/small.js +3 -0
- package/full/string/virtual/starts-with.js +3 -0
- package/full/string/virtual/strike.js +3 -0
- package/full/string/virtual/sub.js +3 -0
- package/full/string/virtual/substr.js +3 -0
- package/full/string/virtual/sup.js +3 -0
- package/full/string/virtual/trim-end.js +3 -0
- package/full/string/virtual/trim-left.js +3 -0
- package/full/string/virtual/trim-right.js +3 -0
- package/full/string/virtual/trim-start.js +3 -0
- package/full/string/virtual/trim.js +3 -0
- package/full/structured-clone.js +3 -0
- package/full/symbol/async-dispose.js +4 -0
- package/full/symbol/async-iterator.js +3 -0
- package/full/symbol/description.js +1 -0
- package/full/symbol/dispose.js +4 -0
- package/full/symbol/for.js +3 -0
- package/full/symbol/has-instance.js +3 -0
- package/full/symbol/index.js +12 -0
- package/full/symbol/is-concat-spreadable.js +3 -0
- package/full/symbol/iterator.js +3 -0
- package/full/symbol/key-for.js +3 -0
- package/full/symbol/match-all.js +3 -0
- package/full/symbol/match.js +3 -0
- package/full/symbol/matcher.js +4 -0
- package/full/symbol/metadata.js +4 -0
- package/full/symbol/observable.js +4 -0
- package/full/symbol/pattern-match.js +5 -0
- package/full/symbol/replace-all.js +5 -0
- package/full/symbol/replace.js +3 -0
- package/full/symbol/search.js +3 -0
- package/full/symbol/species.js +3 -0
- package/full/symbol/split.js +3 -0
- package/full/symbol/to-primitive.js +3 -0
- package/full/symbol/to-string-tag.js +3 -0
- package/full/symbol/unscopables.js +3 -0
- package/full/typed-array/at.js +6 -0
- package/full/typed-array/copy-within.js +3 -0
- package/full/typed-array/entries.js +3 -0
- package/full/typed-array/every.js +3 -0
- package/full/typed-array/fill.js +3 -0
- package/full/typed-array/filter-out.js +2 -0
- package/full/typed-array/filter-reject.js +1 -0
- package/full/typed-array/filter.js +3 -0
- package/full/typed-array/find-index.js +3 -0
- package/full/typed-array/find-last-index.js +3 -0
- package/full/typed-array/find-last.js +3 -0
- package/full/typed-array/find.js +3 -0
- package/full/typed-array/float32-array.js +4 -0
- package/full/typed-array/float64-array.js +4 -0
- package/full/typed-array/for-each.js +3 -0
- package/full/typed-array/from-async.js +1 -0
- package/full/typed-array/from.js +3 -0
- package/full/typed-array/group-by.js +1 -0
- package/full/typed-array/includes.js +3 -0
- package/full/typed-array/index-of.js +3 -0
- package/full/typed-array/index.js +13 -0
- package/full/typed-array/int16-array.js +4 -0
- package/full/typed-array/int32-array.js +4 -0
- package/full/typed-array/int8-array.js +4 -0
- package/full/typed-array/iterator.js +3 -0
- package/full/typed-array/join.js +3 -0
- package/full/typed-array/keys.js +3 -0
- package/full/typed-array/last-index-of.js +3 -0
- package/full/typed-array/map.js +3 -0
- package/full/typed-array/methods.js +13 -0
- package/full/typed-array/of.js +3 -0
- package/full/typed-array/reduce-right.js +3 -0
- package/full/typed-array/reduce.js +3 -0
- package/full/typed-array/reverse.js +3 -0
- package/full/typed-array/set.js +3 -0
- package/full/typed-array/slice.js +3 -0
- package/full/typed-array/some.js +3 -0
- package/full/typed-array/sort.js +3 -0
- package/full/typed-array/subarray.js +3 -0
- package/full/typed-array/to-locale-string.js +3 -0
- package/full/typed-array/to-reversed.js +3 -0
- package/full/typed-array/to-sorted.js +3 -0
- package/full/typed-array/to-spliced.js +3 -0
- package/full/typed-array/to-string.js +3 -0
- package/full/typed-array/uint16-array.js +4 -0
- package/full/typed-array/uint32-array.js +4 -0
- package/full/typed-array/uint8-array.js +4 -0
- package/full/typed-array/uint8-clamped-array.js +4 -0
- package/full/typed-array/unique-by.js +2 -0
- package/full/typed-array/values.js +3 -0
- package/full/typed-array/with.js +3 -0
- package/full/unescape.js +3 -0
- package/full/url/index.js +3 -0
- package/full/url/to-json.js +3 -0
- package/full/url-search-params/index.js +3 -0
- package/full/weak-map/delete-all.js +5 -0
- package/full/weak-map/emplace.js +5 -0
- package/full/weak-map/from.js +16 -0
- package/full/weak-map/index.js +10 -0
- package/full/weak-map/of.js +14 -0
- package/full/weak-map/upsert.js +5 -0
- package/full/weak-set/add-all.js +5 -0
- package/full/weak-set/delete-all.js +5 -0
- package/full/weak-set/from.js +16 -0
- package/full/weak-set/index.js +8 -0
- package/full/weak-set/of.js +14 -0
- package/internals/a-callable.js +2 -3
- package/internals/a-constructor.js +2 -3
- package/internals/a-possible-prototype.js +3 -4
- package/internals/add-to-unscopables.js +2 -2
- package/internals/an-instance.js +2 -3
- package/internals/an-object.js +3 -4
- package/internals/array-buffer-native.js +1 -1
- package/internals/array-buffer-non-extensible.js +1 -1
- package/internals/array-buffer-view-core.js +4 -4
- package/internals/array-buffer.js +3 -3
- package/internals/array-copy-within.js +3 -2
- package/internals/array-for-each.js +1 -1
- package/internals/array-from.js +3 -4
- package/internals/array-group-by.js +2 -3
- package/internals/array-last-index-of.js +1 -1
- package/internals/array-reduce.js +2 -3
- package/internals/array-slice-simple.js +2 -3
- package/internals/array-species-constructor.js +3 -4
- package/internals/array-to-spliced.js +2 -1
- package/internals/array-with.js +2 -3
- package/internals/async-from-sync-iterator.js +2 -2
- package/internals/async-iterator-create-proxy.js +2 -2
- package/internals/async-iterator-iteration.js +2 -7
- package/internals/async-iterator-prototype.js +2 -2
- package/internals/check-correctness-of-iteration.js +1 -1
- package/internals/classof.js +2 -3
- package/internals/clear-error-stack.js +3 -2
- package/internals/collection-strong.js +3 -3
- package/internals/collection-weak.js +3 -3
- package/internals/collection.js +3 -3
- package/internals/composite-key.js +3 -4
- package/internals/correct-prototype-getter.js +1 -1
- package/internals/date-to-iso-string.js +2 -3
- package/internals/date-to-primitive.js +2 -3
- package/internals/define-built-in-accessor.js +8 -0
- package/internals/define-built-in.js +20 -0
- package/internals/define-built-ins.js +6 -0
- package/internals/{set-global.js → define-global-property.js} +1 -1
- package/internals/define-iterator.js +4 -4
- package/internals/delete-property-or-throw.js +8 -0
- package/internals/descriptors.js +1 -1
- package/internals/does-not-exceed-safe-integer.js +7 -0
- package/internals/engine-is-browser.js +1 -1
- package/internals/error-stack-installable.js +1 -1
- package/internals/error-to-string.js +1 -1
- package/internals/export.js +18 -19
- package/internals/fix-regexp-well-known-symbol-logic.js +3 -3
- package/internals/flatten-into-array.js +2 -4
- package/internals/freezing.js +1 -1
- package/internals/function-apply.js +1 -1
- package/internals/function-bind-native.js +1 -0
- package/internals/function-bind.js +3 -4
- package/internals/function-name.js +1 -1
- package/internals/get-iterator.js +2 -3
- package/internals/get-map-iterator.js +1 -1
- package/internals/get-set-iterator.js +1 -1
- package/internals/global.js +1 -1
- package/internals/has-own-property.js +1 -0
- package/internals/ie8-dom-define.js +1 -1
- package/internals/ieee754.js +2 -4
- package/internals/indexed-object.js +4 -5
- package/internals/is-array.js +1 -1
- package/internals/is-integral-number.js +1 -1
- package/internals/is-iterable.js +2 -3
- package/internals/is-symbol.js +2 -3
- package/internals/iterate.js +2 -3
- package/internals/iterator-create-proxy.js +2 -2
- package/internals/iterators-core.js +3 -3
- package/internals/make-built-in.js +48 -0
- package/internals/map-upsert.js +2 -3
- package/internals/math-expm1.js +3 -2
- package/internals/math-fround.js +4 -3
- package/internals/math-log10.js +1 -1
- package/internals/math-log1p.js +3 -2
- package/internals/math-sign.js +3 -2
- package/internals/math-trunc.js +10 -0
- package/internals/microtask.js +1 -1
- package/internals/native-symbol-registry.js +4 -0
- package/internals/native-symbol.js +2 -2
- package/internals/not-a-regexp.js +2 -3
- package/internals/number-is-finite.js +1 -1
- package/internals/numeric-range-iterator.js +7 -8
- package/internals/object-assign.js +3 -3
- package/internals/object-create.js +1 -0
- package/internals/object-define-properties.js +1 -1
- package/internals/object-define-property.js +4 -5
- package/internals/object-get-own-property-descriptor.js +1 -1
- package/internals/object-get-own-property-names-external.js +1 -1
- package/internals/object-get-own-property-names.js +1 -1
- package/internals/object-get-own-property-symbols.js +1 -1
- package/internals/object-get-prototype-of.js +5 -5
- package/internals/object-is-extensible.js +1 -1
- package/internals/object-keys.js +1 -1
- package/internals/object-property-is-enumerable.js +1 -1
- package/internals/object-prototype-accessors-forced.js +1 -1
- package/internals/object-set-prototype-of.js +2 -2
- package/internals/observable-forced.js +13 -0
- package/internals/ordinary-to-primitive.js +2 -3
- package/internals/promise-constructor-detection.js +46 -0
- package/internals/{native-promise-constructor.js → promise-native-constructor.js} +0 -0
- package/internals/promise-statics-incorrect-iteration.js +7 -0
- package/internals/proxy-accessor.js +9 -0
- package/internals/regexp-exec-abstract.js +2 -3
- package/internals/regexp-flags.js +1 -0
- package/internals/regexp-get-flags.js +12 -0
- package/internals/require-object-coercible.js +2 -4
- package/internals/same-value.js +1 -1
- package/internals/schedulers-fix.js +31 -0
- package/internals/shared-store.js +2 -2
- package/internals/shared.js +2 -2
- package/internals/string-punycode-to-ascii.js +3 -4
- package/internals/string-repeat.js +2 -3
- package/internals/string-trim-end.js +11 -0
- package/internals/string-trim-start.js +11 -0
- package/internals/symbol-define-to-primitive.js +20 -0
- package/internals/to-big-int.js +12 -0
- package/internals/to-index.js +2 -3
- package/internals/to-integer-or-infinity.js +3 -4
- package/internals/to-object.js +2 -3
- package/internals/to-offset.js +2 -3
- package/internals/to-positive-integer.js +2 -3
- package/internals/to-primitive.js +2 -3
- package/internals/to-string.js +2 -3
- package/internals/try-to-string.js +2 -4
- package/internals/typed-array-constructor.js +3 -3
- package/internals/use-symbol-as-uid.js +1 -1
- package/internals/v8-prototype-define-bug.js +1 -1
- package/internals/validate-arguments-length.js +2 -4
- package/internals/wrap-error-constructor-with-cause.js +6 -0
- package/modules/es.aggregate-error.cause.js +1 -1
- package/modules/es.aggregate-error.constructor.js +53 -0
- package/modules/es.aggregate-error.js +2 -54
- package/modules/es.array-buffer.constructor.js +1 -1
- package/modules/es.array.concat.js +4 -7
- package/modules/es.array.for-each.js +1 -1
- package/modules/es.array.from.js +1 -1
- package/modules/es.array.includes.js +7 -1
- package/modules/es.array.index-of.js +1 -1
- package/modules/es.array.last-index-of.js +1 -1
- package/modules/es.array.of.js +4 -4
- package/modules/es.array.slice.js +4 -5
- package/modules/es.array.sort.js +2 -1
- package/modules/es.array.splice.js +7 -11
- package/modules/es.data-view.constructor.js +9 -0
- package/modules/es.data-view.js +2 -9
- package/modules/es.date.now.js +4 -4
- package/modules/es.date.to-json.js +1 -1
- package/modules/es.date.to-primitive.js +2 -2
- package/modules/es.date.to-string.js +3 -2
- package/modules/es.error.cause.js +2 -2
- package/modules/es.error.to-string.js +2 -2
- package/modules/es.function.bind.js +1 -0
- package/modules/es.function.has-instance.js +3 -2
- package/modules/es.json.stringify.js +40 -13
- package/modules/es.map.constructor.js +9 -0
- package/modules/es.map.js +2 -9
- package/modules/es.math.acosh.js +5 -4
- package/modules/es.math.asinh.js +3 -2
- package/modules/es.math.atanh.js +3 -2
- package/modules/es.math.cbrt.js +2 -1
- package/modules/es.math.clz32.js +2 -1
- package/modules/es.math.cosh.js +1 -1
- package/modules/es.math.expm1.js +1 -1
- package/modules/es.math.hypot.js +2 -2
- package/modules/es.math.imul.js +1 -1
- package/modules/es.math.sinh.js +3 -2
- package/modules/es.math.tanh.js +4 -3
- package/modules/es.math.trunc.js +2 -6
- package/modules/es.number.constructor.js +2 -2
- package/modules/es.number.parse-float.js +1 -1
- package/modules/es.number.parse-int.js +1 -1
- package/modules/es.number.to-exponential.js +7 -8
- package/modules/es.number.to-fixed.js +5 -6
- package/modules/es.object.assign.js +2 -2
- package/modules/es.object.create.js +1 -0
- package/modules/es.object.define-properties.js +1 -1
- package/modules/es.object.define-property.js +1 -1
- package/modules/es.object.freeze.js +1 -1
- package/modules/es.object.get-own-property-names.js +1 -1
- package/modules/es.object.get-own-property-symbols.js +18 -0
- package/modules/es.object.is-extensible.js +1 -1
- package/modules/es.object.is-frozen.js +1 -1
- package/modules/es.object.is-sealed.js +1 -1
- package/modules/es.object.prevent-extensions.js +1 -1
- package/modules/es.object.seal.js +1 -1
- package/modules/es.object.to-string.js +2 -2
- package/modules/es.promise.all.js +39 -0
- package/modules/es.promise.any.js +1 -1
- package/modules/es.promise.catch.js +26 -0
- package/modules/es.promise.constructor.js +288 -0
- package/modules/es.promise.finally.js +9 -7
- package/modules/es.promise.js +7 -402
- package/modules/es.promise.race.js +26 -0
- package/modules/es.promise.reject.js +15 -0
- package/modules/es.promise.resolve.js +18 -0
- package/modules/es.reflect.apply.js +1 -1
- package/modules/es.reflect.define-property.js +1 -1
- package/modules/es.reflect.set.js +1 -1
- package/modules/es.regexp.constructor.js +6 -15
- package/modules/es.regexp.dot-all.js +5 -6
- package/modules/es.regexp.flags.js +3 -3
- package/modules/es.regexp.sticky.js +5 -6
- package/modules/es.regexp.test.js +2 -3
- package/modules/es.regexp.to-string.js +6 -10
- package/modules/es.set.constructor.js +9 -0
- package/modules/es.set.js +2 -9
- package/modules/es.string.at-alternative.js +1 -0
- package/modules/es.string.ends-with.js +1 -1
- package/modules/es.string.from-code-point.js +4 -5
- package/modules/es.string.match-all.js +10 -20
- package/modules/es.string.replace-all.js +4 -10
- package/modules/es.string.starts-with.js +1 -1
- package/modules/es.string.substr.js +1 -1
- package/modules/es.string.trim-end.js +7 -15
- package/modules/es.string.trim-left.js +9 -0
- package/modules/es.string.trim-right.js +9 -0
- package/modules/es.string.trim-start.js +7 -15
- package/modules/es.symbol.constructor.js +252 -0
- package/modules/es.symbol.description.js +1 -1
- package/modules/es.symbol.for.js +22 -0
- package/modules/es.symbol.js +6 -325
- package/modules/es.symbol.key-for.js +17 -0
- package/modules/es.symbol.to-primitive.js +5 -0
- package/modules/es.symbol.to-string-tag.js +6 -0
- package/modules/es.typed-array.fill.js +18 -9
- package/modules/es.typed-array.set.js +1 -1
- package/modules/es.typed-array.slice.js +1 -1
- package/modules/es.typed-array.sort.js +0 -1
- package/modules/es.weak-map.constructor.js +68 -0
- package/modules/es.weak-map.js +2 -68
- package/modules/es.weak-set.constructor.js +9 -0
- package/modules/es.weak-set.js +2 -9
- package/modules/esnext.array.is-template-object.js +2 -3
- package/modules/esnext.array.last-index.js +3 -2
- package/modules/esnext.array.last-item.js +3 -2
- package/modules/esnext.array.to-reversed.js +3 -4
- package/modules/esnext.array.to-sorted.js +3 -4
- package/modules/esnext.array.to-spliced.js +3 -4
- package/modules/esnext.array.with.js +3 -4
- package/modules/esnext.async-iterator.constructor.js +1 -1
- package/modules/esnext.async-iterator.reduce.js +2 -3
- package/modules/esnext.bigint.range.js +1 -1
- package/modules/esnext.composite-key.js +2 -3
- package/modules/esnext.function.is-callable.js +1 -1
- package/modules/esnext.iterator.constructor.js +1 -1
- package/modules/esnext.iterator.flat-map.js +2 -3
- package/modules/esnext.iterator.reduce.js +2 -3
- package/modules/esnext.map.merge.js +1 -1
- package/modules/esnext.map.reduce.js +2 -3
- package/modules/esnext.map.update.js +2 -3
- package/modules/esnext.math.seeded-prng.js +2 -3
- package/modules/esnext.math.signbit.js +3 -1
- package/modules/esnext.number.from-string.js +8 -9
- package/modules/esnext.object.iterate-entries.js +1 -0
- package/modules/esnext.object.iterate-keys.js +1 -0
- package/modules/esnext.object.iterate-values.js +1 -0
- package/modules/esnext.observable.constructor.js +187 -0
- package/modules/esnext.observable.from.js +36 -0
- package/modules/esnext.observable.js +4 -233
- package/modules/esnext.observable.of.js +25 -0
- package/modules/esnext.promise.try.js +1 -0
- package/modules/esnext.reflect.define-metadata.js +1 -0
- package/modules/esnext.reflect.get-metadata-keys.js +1 -0
- package/modules/esnext.reflect.get-metadata.js +1 -0
- package/modules/esnext.reflect.get-own-metadata-keys.js +1 -0
- package/modules/esnext.reflect.get-own-metadata.js +1 -0
- package/modules/esnext.reflect.has-metadata.js +1 -0
- package/modules/esnext.reflect.has-own-metadata.js +1 -0
- package/modules/esnext.set.reduce.js +2 -3
- package/modules/esnext.string.at.js +1 -0
- package/modules/esnext.string.cooked.js +2 -3
- package/modules/esnext.typed-array.to-reversed.js +1 -1
- package/modules/esnext.typed-array.to-sorted.js +1 -1
- package/modules/esnext.typed-array.to-spliced.js +1 -1
- package/modules/esnext.typed-array.with.js +10 -1
- package/modules/web.atob.js +10 -4
- package/modules/web.btoa.js +8 -2
- package/modules/web.clear-immediate.js +9 -0
- package/modules/web.dom-exception.constructor.js +11 -11
- package/modules/web.dom-exception.stack.js +1 -1
- package/modules/web.immediate.js +3 -15
- package/modules/web.queue-microtask.js +1 -1
- package/modules/web.set-immediate.js +9 -0
- package/modules/web.set-interval.js +9 -0
- package/modules/web.set-timeout.js +9 -0
- package/modules/web.structured-clone.js +24 -13
- package/modules/web.timers.js +3 -32
- package/modules/web.url-search-params.constructor.js +392 -0
- package/modules/web.url-search-params.js +2 -383
- package/modules/web.url.constructor.js +1042 -0
- package/modules/web.url.js +2 -1044
- package/package.json +2 -3
- package/postinstall.js +0 -1
- package/proposals/array-filtering-stage-1.js +3 -0
- package/proposals/array-from-async-stage-2.js +2 -0
- package/proposals/array-grouping-stage-3.js +3 -0
- package/proposals/decorators.js +2 -0
- package/proposals/map-upsert-stage-2.js +3 -0
- package/proposals/string-replace-all-stage-4.js +2 -0
- package/proposals/string-replace-all.js +1 -0
- package/stage/0.js +2 -0
- package/stage/1.js +5 -1
- package/stage/2.js +4 -3
- package/stage/3.js +2 -1
- package/stage/4.js +1 -1
- package/internals/redefine-all.js +0 -6
- package/internals/redefine.js +0 -46
package/full/unescape.js
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
require('../../modules/es.array.iterator');
|
|
3
|
+
require('../../modules/es.string.iterator');
|
|
4
|
+
require('../../modules/es.weak-map');
|
|
5
|
+
require('../../modules/esnext.weak-map.from');
|
|
6
|
+
require('../../modules/web.dom-collections.iterator');
|
|
7
|
+
var call = require('../../internals/function-call');
|
|
8
|
+
var isCallable = require('../../internals/is-callable');
|
|
9
|
+
var path = require('../../internals/path');
|
|
10
|
+
|
|
11
|
+
var WeakMap = path.WeakMap;
|
|
12
|
+
var $from = WeakMap.from;
|
|
13
|
+
|
|
14
|
+
module.exports = function from(source, mapFn, thisArg) {
|
|
15
|
+
return call($from, isCallable(this) ? this : WeakMap, source, mapFn, thisArg);
|
|
16
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
var parent = require('../../actual/weak-map');
|
|
2
|
+
require('../../modules/es.string.iterator');
|
|
3
|
+
require('../../modules/esnext.weak-map.emplace');
|
|
4
|
+
require('../../modules/esnext.weak-map.from');
|
|
5
|
+
require('../../modules/esnext.weak-map.of');
|
|
6
|
+
require('../../modules/esnext.weak-map.delete-all');
|
|
7
|
+
// TODO: remove from `core-js@4`
|
|
8
|
+
require('../../modules/esnext.weak-map.upsert');
|
|
9
|
+
|
|
10
|
+
module.exports = parent;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
require('../../modules/es.array.iterator');
|
|
3
|
+
require('../../modules/es.weak-map');
|
|
4
|
+
require('../../modules/esnext.weak-map.of');
|
|
5
|
+
var path = require('../../internals/path');
|
|
6
|
+
var apply = require('../../internals/function-apply');
|
|
7
|
+
var isCallable = require('../../internals/is-callable');
|
|
8
|
+
|
|
9
|
+
var WeakMap = path.WeakMap;
|
|
10
|
+
var weakMapOf = WeakMap.of;
|
|
11
|
+
|
|
12
|
+
module.exports = function of() {
|
|
13
|
+
return apply(weakMapOf, isCallable(this) ? this : WeakMap, arguments);
|
|
14
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
require('../../modules/es.array.iterator');
|
|
3
|
+
require('../../modules/es.string.iterator');
|
|
4
|
+
require('../../modules/es.weak-set');
|
|
5
|
+
require('../../modules/esnext.weak-set.from');
|
|
6
|
+
require('../../modules/web.dom-collections.iterator');
|
|
7
|
+
var call = require('../../internals/function-call');
|
|
8
|
+
var isCallable = require('../../internals/is-callable');
|
|
9
|
+
var path = require('../../internals/path');
|
|
10
|
+
|
|
11
|
+
var WeakSet = path.WeakSet;
|
|
12
|
+
var $from = WeakSet.from;
|
|
13
|
+
|
|
14
|
+
module.exports = function from(source, mapFn, thisArg) {
|
|
15
|
+
return call($from, isCallable(this) ? this : WeakSet, source, mapFn, thisArg);
|
|
16
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
var parent = require('../../actual/weak-set');
|
|
2
|
+
require('../../modules/es.string.iterator');
|
|
3
|
+
require('../../modules/esnext.weak-set.add-all');
|
|
4
|
+
require('../../modules/esnext.weak-set.delete-all');
|
|
5
|
+
require('../../modules/esnext.weak-set.from');
|
|
6
|
+
require('../../modules/esnext.weak-set.of');
|
|
7
|
+
|
|
8
|
+
module.exports = parent;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
require('../../modules/es.array.iterator');
|
|
3
|
+
require('../../modules/es.weak-set');
|
|
4
|
+
require('../../modules/esnext.weak-set.of');
|
|
5
|
+
var path = require('../../internals/path');
|
|
6
|
+
var apply = require('../../internals/function-apply');
|
|
7
|
+
var isCallable = require('../../internals/is-callable');
|
|
8
|
+
|
|
9
|
+
var WeakSet = path.WeakSet;
|
|
10
|
+
var weakSetOf = WeakSet.of;
|
|
11
|
+
|
|
12
|
+
module.exports = function of() {
|
|
13
|
+
return apply(weakSetOf, isCallable(this) ? this : WeakSet, arguments);
|
|
14
|
+
};
|
package/internals/a-callable.js
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
var global = require('../internals/global');
|
|
2
1
|
var isCallable = require('../internals/is-callable');
|
|
3
2
|
var tryToString = require('../internals/try-to-string');
|
|
4
3
|
|
|
5
|
-
var TypeError =
|
|
4
|
+
var $TypeError = TypeError;
|
|
6
5
|
|
|
7
6
|
// `Assert: IsCallable(argument) is true`
|
|
8
7
|
module.exports = function (argument) {
|
|
9
8
|
if (isCallable(argument)) return argument;
|
|
10
|
-
throw TypeError(tryToString(argument) + ' is not a function');
|
|
9
|
+
throw $TypeError(tryToString(argument) + ' is not a function');
|
|
11
10
|
};
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
var global = require('../internals/global');
|
|
2
1
|
var isConstructor = require('../internals/is-constructor');
|
|
3
2
|
var tryToString = require('../internals/try-to-string');
|
|
4
3
|
|
|
5
|
-
var TypeError =
|
|
4
|
+
var $TypeError = TypeError;
|
|
6
5
|
|
|
7
6
|
// `Assert: IsConstructor(argument) is true`
|
|
8
7
|
module.exports = function (argument) {
|
|
9
8
|
if (isConstructor(argument)) return argument;
|
|
10
|
-
throw TypeError(tryToString(argument) + ' is not a constructor');
|
|
9
|
+
throw $TypeError(tryToString(argument) + ' is not a constructor');
|
|
11
10
|
};
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
var global = require('../internals/global');
|
|
2
1
|
var isCallable = require('../internals/is-callable');
|
|
3
2
|
|
|
4
|
-
var String =
|
|
5
|
-
var TypeError =
|
|
3
|
+
var $String = String;
|
|
4
|
+
var $TypeError = TypeError;
|
|
6
5
|
|
|
7
6
|
module.exports = function (argument) {
|
|
8
7
|
if (typeof argument == 'object' || isCallable(argument)) return argument;
|
|
9
|
-
throw TypeError("Can't set " + String(argument) + ' as a prototype');
|
|
8
|
+
throw $TypeError("Can't set " + $String(argument) + ' as a prototype');
|
|
10
9
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var wellKnownSymbol = require('../internals/well-known-symbol');
|
|
2
2
|
var create = require('../internals/object-create');
|
|
3
|
-
var
|
|
3
|
+
var defineProperty = require('../internals/object-define-property').f;
|
|
4
4
|
|
|
5
5
|
var UNSCOPABLES = wellKnownSymbol('unscopables');
|
|
6
6
|
var ArrayPrototype = Array.prototype;
|
|
@@ -8,7 +8,7 @@ var ArrayPrototype = Array.prototype;
|
|
|
8
8
|
// Array.prototype[@@unscopables]
|
|
9
9
|
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
|
10
10
|
if (ArrayPrototype[UNSCOPABLES] == undefined) {
|
|
11
|
-
|
|
11
|
+
defineProperty(ArrayPrototype, UNSCOPABLES, {
|
|
12
12
|
configurable: true,
|
|
13
13
|
value: create(null)
|
|
14
14
|
});
|
package/internals/an-instance.js
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
var global = require('../internals/global');
|
|
2
1
|
var isPrototypeOf = require('../internals/object-is-prototype-of');
|
|
3
2
|
|
|
4
|
-
var TypeError =
|
|
3
|
+
var $TypeError = TypeError;
|
|
5
4
|
|
|
6
5
|
module.exports = function (it, Prototype) {
|
|
7
6
|
if (isPrototypeOf(Prototype, it)) return it;
|
|
8
|
-
throw TypeError('Incorrect invocation');
|
|
7
|
+
throw $TypeError('Incorrect invocation');
|
|
9
8
|
};
|
package/internals/an-object.js
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
var global = require('../internals/global');
|
|
2
1
|
var isObject = require('../internals/is-object');
|
|
3
2
|
|
|
4
|
-
var String =
|
|
5
|
-
var TypeError =
|
|
3
|
+
var $String = String;
|
|
4
|
+
var $TypeError = TypeError;
|
|
6
5
|
|
|
7
6
|
// `Assert: Type(argument) is Object`
|
|
8
7
|
module.exports = function (argument) {
|
|
9
8
|
if (isObject(argument)) return argument;
|
|
10
|
-
throw TypeError(String(argument) + ' is not an object');
|
|
9
|
+
throw $TypeError($String(argument) + ' is not an object');
|
|
11
10
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
// eslint-disable-next-line es/no-typed-arrays -- safe
|
|
1
|
+
// eslint-disable-next-line es-x/no-typed-arrays -- safe
|
|
2
2
|
module.exports = typeof ArrayBuffer != 'undefined' && typeof DataView != 'undefined';
|
|
@@ -4,7 +4,7 @@ var fails = require('../internals/fails');
|
|
|
4
4
|
module.exports = fails(function () {
|
|
5
5
|
if (typeof ArrayBuffer == 'function') {
|
|
6
6
|
var buffer = new ArrayBuffer(8);
|
|
7
|
-
// eslint-disable-next-line es/no-object-isextensible, es/no-object-defineproperty -- safe
|
|
7
|
+
// eslint-disable-next-line es-x/no-object-isextensible, es-x/no-object-defineproperty -- safe
|
|
8
8
|
if (Object.isExtensible(buffer)) Object.defineProperty(buffer, 'a', { value: 8 });
|
|
9
9
|
}
|
|
10
10
|
});
|
|
@@ -8,7 +8,7 @@ var hasOwn = require('../internals/has-own-property');
|
|
|
8
8
|
var classof = require('../internals/classof');
|
|
9
9
|
var tryToString = require('../internals/try-to-string');
|
|
10
10
|
var createNonEnumerableProperty = require('../internals/create-non-enumerable-property');
|
|
11
|
-
var
|
|
11
|
+
var defineBuiltIn = require('../internals/define-built-in');
|
|
12
12
|
var defineProperty = require('../internals/object-define-property').f;
|
|
13
13
|
var isPrototypeOf = require('../internals/object-is-prototype-of');
|
|
14
14
|
var getPrototypeOf = require('../internals/object-get-prototype-of');
|
|
@@ -89,7 +89,7 @@ var exportTypedArrayMethod = function (KEY, property, forced, options) {
|
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
91
|
if (!TypedArrayPrototype[KEY] || forced) {
|
|
92
|
-
|
|
92
|
+
defineBuiltIn(TypedArrayPrototype, KEY, forced ? property
|
|
93
93
|
: NATIVE_ARRAY_BUFFER_VIEWS && Int8ArrayPrototype[KEY] || property, options);
|
|
94
94
|
}
|
|
95
95
|
};
|
|
@@ -107,14 +107,14 @@ var exportTypedArrayStaticMethod = function (KEY, property, forced) {
|
|
|
107
107
|
if (!TypedArray[KEY] || forced) {
|
|
108
108
|
// V8 ~ Chrome 49-50 `%TypedArray%` methods are non-writable non-configurable
|
|
109
109
|
try {
|
|
110
|
-
return
|
|
110
|
+
return defineBuiltIn(TypedArray, KEY, forced ? property : NATIVE_ARRAY_BUFFER_VIEWS && TypedArray[KEY] || property);
|
|
111
111
|
} catch (error) { /* empty */ }
|
|
112
112
|
} else return;
|
|
113
113
|
}
|
|
114
114
|
for (ARRAY in TypedArrayConstructorsList) {
|
|
115
115
|
TypedArrayConstructor = global[ARRAY];
|
|
116
116
|
if (TypedArrayConstructor && (!TypedArrayConstructor[KEY] || forced)) {
|
|
117
|
-
|
|
117
|
+
defineBuiltIn(TypedArrayConstructor, KEY, property);
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
120
|
};
|
|
@@ -5,7 +5,7 @@ var DESCRIPTORS = require('../internals/descriptors');
|
|
|
5
5
|
var NATIVE_ARRAY_BUFFER = require('../internals/array-buffer-native');
|
|
6
6
|
var FunctionName = require('../internals/function-name');
|
|
7
7
|
var createNonEnumerableProperty = require('../internals/create-non-enumerable-property');
|
|
8
|
-
var
|
|
8
|
+
var defineBuiltIns = require('../internals/define-built-ins');
|
|
9
9
|
var fails = require('../internals/fails');
|
|
10
10
|
var anInstance = require('../internals/an-instance');
|
|
11
11
|
var toIntegerOrInfinity = require('../internals/to-integer-or-infinity');
|
|
@@ -134,7 +134,7 @@ if (!NATIVE_ARRAY_BUFFER) {
|
|
|
134
134
|
addGetter($DataView, 'byteOffset');
|
|
135
135
|
}
|
|
136
136
|
|
|
137
|
-
|
|
137
|
+
defineBuiltIns(DataViewPrototype, {
|
|
138
138
|
getInt8: function getInt8(byteOffset) {
|
|
139
139
|
return get(this, 1, byteOffset)[0] << 24 >> 24;
|
|
140
140
|
},
|
|
@@ -228,7 +228,7 @@ if (!NATIVE_ARRAY_BUFFER) {
|
|
|
228
228
|
var $setInt8 = uncurryThis(DataViewPrototype.setInt8);
|
|
229
229
|
testView.setInt8(0, 2147483648);
|
|
230
230
|
testView.setInt8(1, 2147483649);
|
|
231
|
-
if (testView.getInt8(0) || !testView.getInt8(1))
|
|
231
|
+
if (testView.getInt8(0) || !testView.getInt8(1)) defineBuiltIns(DataViewPrototype, {
|
|
232
232
|
setInt8: function setInt8(byteOffset, value) {
|
|
233
233
|
$setInt8(this, byteOffset, value << 24 >> 24);
|
|
234
234
|
},
|
|
@@ -2,12 +2,13 @@
|
|
|
2
2
|
var toObject = require('../internals/to-object');
|
|
3
3
|
var toAbsoluteIndex = require('../internals/to-absolute-index');
|
|
4
4
|
var lengthOfArrayLike = require('../internals/length-of-array-like');
|
|
5
|
+
var deletePropertyOrThrow = require('../internals/delete-property-or-throw');
|
|
5
6
|
|
|
6
7
|
var min = Math.min;
|
|
7
8
|
|
|
8
9
|
// `Array.prototype.copyWithin` method implementation
|
|
9
10
|
// https://tc39.es/ecma262/#sec-array.prototype.copywithin
|
|
10
|
-
// eslint-disable-next-line es/no-array-prototype-copywithin -- safe
|
|
11
|
+
// eslint-disable-next-line es-x/no-array-prototype-copywithin -- safe
|
|
11
12
|
module.exports = [].copyWithin || function copyWithin(target /* = 0 */, start /* = 0, end = @length */) {
|
|
12
13
|
var O = toObject(this);
|
|
13
14
|
var len = lengthOfArrayLike(O);
|
|
@@ -23,7 +24,7 @@ module.exports = [].copyWithin || function copyWithin(target /* = 0 */, start /*
|
|
|
23
24
|
}
|
|
24
25
|
while (count-- > 0) {
|
|
25
26
|
if (from in O) O[to] = O[from];
|
|
26
|
-
else
|
|
27
|
+
else deletePropertyOrThrow(O, to);
|
|
27
28
|
to += inc;
|
|
28
29
|
from += inc;
|
|
29
30
|
} return O;
|
|
@@ -8,5 +8,5 @@ var STRICT_METHOD = arrayMethodIsStrict('forEach');
|
|
|
8
8
|
// https://tc39.es/ecma262/#sec-array.prototype.foreach
|
|
9
9
|
module.exports = !STRICT_METHOD ? function forEach(callbackfn /* , thisArg */) {
|
|
10
10
|
return $forEach(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
|
|
11
|
-
// eslint-disable-next-line es/no-array-prototype-foreach -- safe
|
|
11
|
+
// eslint-disable-next-line es-x/no-array-prototype-foreach -- safe
|
|
12
12
|
} : [].forEach;
|
package/internals/array-from.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
'use strict';
|
|
2
|
-
var global = require('../internals/global');
|
|
3
2
|
var bind = require('../internals/function-bind-context');
|
|
4
3
|
var call = require('../internals/function-call');
|
|
5
4
|
var toObject = require('../internals/to-object');
|
|
@@ -11,7 +10,7 @@ var createProperty = require('../internals/create-property');
|
|
|
11
10
|
var getIterator = require('../internals/get-iterator');
|
|
12
11
|
var getIteratorMethod = require('../internals/get-iterator-method');
|
|
13
12
|
|
|
14
|
-
var Array =
|
|
13
|
+
var $Array = Array;
|
|
15
14
|
|
|
16
15
|
// `Array.from` method implementation
|
|
17
16
|
// https://tc39.es/ecma262/#sec-array.from
|
|
@@ -26,7 +25,7 @@ module.exports = function from(arrayLike /* , mapfn = undefined, thisArg = undef
|
|
|
26
25
|
var index = 0;
|
|
27
26
|
var length, result, step, iterator, next, value;
|
|
28
27
|
// if the target is not iterable or it's an array with the default iterator - use a simple case
|
|
29
|
-
if (iteratorMethod && !(this
|
|
28
|
+
if (iteratorMethod && !(this === $Array && isArrayIteratorMethod(iteratorMethod))) {
|
|
30
29
|
iterator = getIterator(O, iteratorMethod);
|
|
31
30
|
next = iterator.next;
|
|
32
31
|
result = IS_CONSTRUCTOR ? new this() : [];
|
|
@@ -36,7 +35,7 @@ module.exports = function from(arrayLike /* , mapfn = undefined, thisArg = undef
|
|
|
36
35
|
}
|
|
37
36
|
} else {
|
|
38
37
|
length = lengthOfArrayLike(O);
|
|
39
|
-
result = IS_CONSTRUCTOR ? new this(length) : Array(length);
|
|
38
|
+
result = IS_CONSTRUCTOR ? new this(length) : $Array(length);
|
|
40
39
|
for (;length > index; index++) {
|
|
41
40
|
value = mapping ? mapfn(O[index], index) : O[index];
|
|
42
41
|
createProperty(result, index, value);
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
var global = require('../internals/global');
|
|
2
1
|
var bind = require('../internals/function-bind-context');
|
|
3
2
|
var uncurryThis = require('../internals/function-uncurry-this');
|
|
4
3
|
var IndexedObject = require('../internals/indexed-object');
|
|
@@ -8,7 +7,7 @@ var lengthOfArrayLike = require('../internals/length-of-array-like');
|
|
|
8
7
|
var objectCreate = require('../internals/object-create');
|
|
9
8
|
var arrayFromConstructorAndList = require('../internals/array-from-constructor-and-list');
|
|
10
9
|
|
|
11
|
-
var Array =
|
|
10
|
+
var $Array = Array;
|
|
12
11
|
var push = uncurryThis([].push);
|
|
13
12
|
|
|
14
13
|
module.exports = function ($this, callbackfn, that, specificConstructor) {
|
|
@@ -30,7 +29,7 @@ module.exports = function ($this, callbackfn, that, specificConstructor) {
|
|
|
30
29
|
// TODO: Remove this block from `core-js@4`
|
|
31
30
|
if (specificConstructor) {
|
|
32
31
|
Constructor = specificConstructor(O);
|
|
33
|
-
if (Constructor !== Array) {
|
|
32
|
+
if (Constructor !== $Array) {
|
|
34
33
|
for (key in target) target[key] = arrayFromConstructorAndList(Constructor, target[key]);
|
|
35
34
|
}
|
|
36
35
|
} return target;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
|
-
/* eslint-disable es/no-array-prototype-lastindexof -- safe */
|
|
2
|
+
/* eslint-disable es-x/no-array-prototype-lastindexof -- safe */
|
|
3
3
|
var apply = require('../internals/function-apply');
|
|
4
4
|
var toIndexedObject = require('../internals/to-indexed-object');
|
|
5
5
|
var toIntegerOrInfinity = require('../internals/to-integer-or-infinity');
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
var global = require('../internals/global');
|
|
2
1
|
var aCallable = require('../internals/a-callable');
|
|
3
2
|
var toObject = require('../internals/to-object');
|
|
4
3
|
var IndexedObject = require('../internals/indexed-object');
|
|
5
4
|
var lengthOfArrayLike = require('../internals/length-of-array-like');
|
|
6
5
|
|
|
7
|
-
var TypeError =
|
|
6
|
+
var $TypeError = TypeError;
|
|
8
7
|
|
|
9
8
|
// `Array.prototype.{ reduce, reduceRight }` methods implementation
|
|
10
9
|
var createMethod = function (IS_RIGHT) {
|
|
@@ -23,7 +22,7 @@ var createMethod = function (IS_RIGHT) {
|
|
|
23
22
|
}
|
|
24
23
|
index += i;
|
|
25
24
|
if (IS_RIGHT ? index < 0 : length <= index) {
|
|
26
|
-
throw TypeError('Reduce of empty array with no initial value');
|
|
25
|
+
throw $TypeError('Reduce of empty array with no initial value');
|
|
27
26
|
}
|
|
28
27
|
}
|
|
29
28
|
for (;IS_RIGHT ? index >= 0 : length > index; index += i) if (index in self) {
|
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
var global = require('../internals/global');
|
|
2
1
|
var toAbsoluteIndex = require('../internals/to-absolute-index');
|
|
3
2
|
var lengthOfArrayLike = require('../internals/length-of-array-like');
|
|
4
3
|
var createProperty = require('../internals/create-property');
|
|
5
4
|
|
|
6
|
-
var Array =
|
|
5
|
+
var $Array = Array;
|
|
7
6
|
var max = Math.max;
|
|
8
7
|
|
|
9
8
|
module.exports = function (O, start, end) {
|
|
10
9
|
var length = lengthOfArrayLike(O);
|
|
11
10
|
var k = toAbsoluteIndex(start, length);
|
|
12
11
|
var fin = toAbsoluteIndex(end === undefined ? length : end, length);
|
|
13
|
-
var result = Array(max(fin - k, 0));
|
|
12
|
+
var result = $Array(max(fin - k, 0));
|
|
14
13
|
for (var n = 0; k < fin; k++, n++) createProperty(result, n, O[k]);
|
|
15
14
|
result.length = n;
|
|
16
15
|
return result;
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
var global = require('../internals/global');
|
|
2
1
|
var isArray = require('../internals/is-array');
|
|
3
2
|
var isConstructor = require('../internals/is-constructor');
|
|
4
3
|
var isObject = require('../internals/is-object');
|
|
5
4
|
var wellKnownSymbol = require('../internals/well-known-symbol');
|
|
6
5
|
|
|
7
6
|
var SPECIES = wellKnownSymbol('species');
|
|
8
|
-
var Array =
|
|
7
|
+
var $Array = Array;
|
|
9
8
|
|
|
10
9
|
// a part of `ArraySpeciesCreate` abstract operation
|
|
11
10
|
// https://tc39.es/ecma262/#sec-arrayspeciescreate
|
|
@@ -14,10 +13,10 @@ module.exports = function (originalArray) {
|
|
|
14
13
|
if (isArray(originalArray)) {
|
|
15
14
|
C = originalArray.constructor;
|
|
16
15
|
// cross-realm fallback
|
|
17
|
-
if (isConstructor(C) && (C === Array || isArray(C.prototype))) C = undefined;
|
|
16
|
+
if (isConstructor(C) && (C === $Array || isArray(C.prototype))) C = undefined;
|
|
18
17
|
else if (isObject(C)) {
|
|
19
18
|
C = C[SPECIES];
|
|
20
19
|
if (C === null) C = undefined;
|
|
21
20
|
}
|
|
22
|
-
} return C === undefined ? Array : C;
|
|
21
|
+
} return C === undefined ? $Array : C;
|
|
23
22
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
var lengthOfArrayLike = require('../internals/length-of-array-like');
|
|
2
|
+
var doesNotExceedSafeInteger = require('../internals/does-not-exceed-safe-integer');
|
|
2
3
|
var toAbsoluteIndex = require('../internals/to-absolute-index');
|
|
3
4
|
var toIntegerOrInfinity = require('../internals/to-integer-or-infinity');
|
|
4
5
|
|
|
@@ -24,7 +25,7 @@ module.exports = function (O, C, args) {
|
|
|
24
25
|
insertCount = argumentsLength - 2;
|
|
25
26
|
actualDeleteCount = min(max(toIntegerOrInfinity(deleteCount), 0), len - actualStart);
|
|
26
27
|
}
|
|
27
|
-
newLen = len + insertCount - actualDeleteCount;
|
|
28
|
+
newLen = doesNotExceedSafeInteger(len + insertCount - actualDeleteCount);
|
|
28
29
|
A = new C(newLen);
|
|
29
30
|
|
|
30
31
|
for (; k < actualStart; k++) A[k] = O[k];
|
package/internals/array-with.js
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
var global = require('../internals/global');
|
|
2
1
|
var lengthOfArrayLike = require('../internals/length-of-array-like');
|
|
3
2
|
var toIntegerOrInfinity = require('../internals/to-integer-or-infinity');
|
|
4
3
|
|
|
5
|
-
var RangeError =
|
|
4
|
+
var $RangeError = RangeError;
|
|
6
5
|
|
|
7
6
|
// https://tc39.es/proposal-change-array-by-copy/#sec-array.prototype.with
|
|
8
7
|
// https://tc39.es/proposal-change-array-by-copy/#sec-%typedarray%.prototype.with
|
|
@@ -10,7 +9,7 @@ module.exports = function (O, C, index, value) {
|
|
|
10
9
|
var len = lengthOfArrayLike(O);
|
|
11
10
|
var relativeIndex = toIntegerOrInfinity(index);
|
|
12
11
|
var actualIndex = relativeIndex < 0 ? len + relativeIndex : relativeIndex;
|
|
13
|
-
if (actualIndex >= len || actualIndex < 0) throw RangeError('Incorrect index');
|
|
12
|
+
if (actualIndex >= len || actualIndex < 0) throw $RangeError('Incorrect index');
|
|
14
13
|
var A = new C(len);
|
|
15
14
|
var k = 0;
|
|
16
15
|
for (; k < len; k++) A[k] = k === actualIndex ? value : O[k];
|
|
@@ -3,7 +3,7 @@ var apply = require('../internals/function-apply');
|
|
|
3
3
|
var anObject = require('../internals/an-object');
|
|
4
4
|
var create = require('../internals/object-create');
|
|
5
5
|
var getMethod = require('../internals/get-method');
|
|
6
|
-
var
|
|
6
|
+
var defineBuiltIns = require('../internals/define-built-ins');
|
|
7
7
|
var InternalStateModule = require('../internals/internal-state');
|
|
8
8
|
var getBuiltIn = require('../internals/get-built-in');
|
|
9
9
|
var AsyncIteratorPrototype = require('../internals/async-iterator-prototype');
|
|
@@ -29,7 +29,7 @@ var AsyncFromSyncIterator = function AsyncIterator(iterator) {
|
|
|
29
29
|
});
|
|
30
30
|
};
|
|
31
31
|
|
|
32
|
-
AsyncFromSyncIterator.prototype =
|
|
32
|
+
AsyncFromSyncIterator.prototype = defineBuiltIns(create(AsyncIteratorPrototype), {
|
|
33
33
|
next: function next(arg) {
|
|
34
34
|
var state = getInternalState(this);
|
|
35
35
|
var hasArg = !!arguments.length;
|
|
@@ -4,7 +4,7 @@ var aCallable = require('../internals/a-callable');
|
|
|
4
4
|
var anObject = require('../internals/an-object');
|
|
5
5
|
var create = require('../internals/object-create');
|
|
6
6
|
var createNonEnumerableProperty = require('../internals/create-non-enumerable-property');
|
|
7
|
-
var
|
|
7
|
+
var defineBuiltIns = require('../internals/define-built-ins');
|
|
8
8
|
var wellKnownSymbol = require('../internals/well-known-symbol');
|
|
9
9
|
var InternalStateModule = require('../internals/internal-state');
|
|
10
10
|
var getBuiltIn = require('../internals/get-built-in');
|
|
@@ -28,7 +28,7 @@ module.exports = function (nextHandler, IS_ITERATOR) {
|
|
|
28
28
|
setInternalState(this, state);
|
|
29
29
|
};
|
|
30
30
|
|
|
31
|
-
AsyncIteratorProxy.prototype =
|
|
31
|
+
AsyncIteratorProxy.prototype = defineBuiltIns(create(AsyncIteratorPrototype), {
|
|
32
32
|
next: function next(arg) {
|
|
33
33
|
var that = this;
|
|
34
34
|
var hasArgument = !!arguments.length;
|
|
@@ -1,16 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
// https://github.com/tc39/proposal-iterator-helpers
|
|
3
3
|
// https://github.com/tc39/proposal-array-from-async
|
|
4
|
-
var global = require('../internals/global');
|
|
5
4
|
var call = require('../internals/function-call');
|
|
6
5
|
var aCallable = require('../internals/a-callable');
|
|
7
6
|
var anObject = require('../internals/an-object');
|
|
7
|
+
var doesNotExceedSafeInteger = require('../internals/does-not-exceed-safe-integer');
|
|
8
8
|
var getBuiltIn = require('../internals/get-built-in');
|
|
9
9
|
var getMethod = require('../internals/get-method');
|
|
10
10
|
|
|
11
|
-
var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF;
|
|
12
|
-
var TypeError = global.TypeError;
|
|
13
|
-
|
|
14
11
|
var createMethod = function (TYPE) {
|
|
15
12
|
var IS_TO_ARRAY = TYPE == 0;
|
|
16
13
|
var IS_FOR_EACH = TYPE == 1;
|
|
@@ -46,9 +43,7 @@ var createMethod = function (TYPE) {
|
|
|
46
43
|
|
|
47
44
|
var loop = function () {
|
|
48
45
|
try {
|
|
49
|
-
if (IS_TO_ARRAY && (index
|
|
50
|
-
throw TypeError('The allowed number of iterations has been exceeded');
|
|
51
|
-
}
|
|
46
|
+
if (IS_TO_ARRAY && MAPPING) doesNotExceedSafeInteger(index);
|
|
52
47
|
Promise.resolve(anObject(call(next, iterator))).then(function (step) {
|
|
53
48
|
try {
|
|
54
49
|
if (anObject(step).done) {
|
|
@@ -3,7 +3,7 @@ var shared = require('../internals/shared-store');
|
|
|
3
3
|
var isCallable = require('../internals/is-callable');
|
|
4
4
|
var create = require('../internals/object-create');
|
|
5
5
|
var getPrototypeOf = require('../internals/object-get-prototype-of');
|
|
6
|
-
var
|
|
6
|
+
var defineBuiltIn = require('../internals/define-built-in');
|
|
7
7
|
var wellKnownSymbol = require('../internals/well-known-symbol');
|
|
8
8
|
var IS_PURE = require('../internals/is-pure');
|
|
9
9
|
|
|
@@ -29,7 +29,7 @@ if (!AsyncIteratorPrototype) AsyncIteratorPrototype = {};
|
|
|
29
29
|
else if (IS_PURE) AsyncIteratorPrototype = create(AsyncIteratorPrototype);
|
|
30
30
|
|
|
31
31
|
if (!isCallable(AsyncIteratorPrototype[ASYNC_ITERATOR])) {
|
|
32
|
-
|
|
32
|
+
defineBuiltIn(AsyncIteratorPrototype, ASYNC_ITERATOR, function () {
|
|
33
33
|
return this;
|
|
34
34
|
});
|
|
35
35
|
}
|
|
@@ -16,7 +16,7 @@ try {
|
|
|
16
16
|
iteratorWithReturn[ITERATOR] = function () {
|
|
17
17
|
return this;
|
|
18
18
|
};
|
|
19
|
-
// eslint-disable-next-line es/no-array-from, no-throw-literal -- required for testing
|
|
19
|
+
// eslint-disable-next-line es-x/no-array-from, no-throw-literal -- required for testing
|
|
20
20
|
Array.from(iteratorWithReturn, function () { throw 2; });
|
|
21
21
|
} catch (error) { /* empty */ }
|
|
22
22
|
|