core-js 3.21.1 → 3.22.3
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/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/array-buffer-native.js +1 -1
- package/internals/array-buffer-non-extensible.js +1 -1
- package/internals/array-copy-within.js +1 -1
- package/internals/array-for-each.js +1 -1
- package/internals/array-last-index-of.js +1 -1
- package/internals/array-to-spliced.js +3 -0
- package/internals/check-correctness-of-iteration.js +1 -1
- package/internals/clear-error-stack.js +3 -2
- package/internals/correct-prototype-getter.js +1 -1
- package/internals/descriptors.js +1 -1
- 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/freezing.js +1 -1
- package/internals/function-apply.js +1 -1
- package/internals/function-bind-native.js +1 -0
- package/internals/function-name.js +1 -1
- 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/is-array.js +1 -1
- package/internals/is-integral-number.js +1 -1
- package/internals/iterators-core.js +1 -1
- package/internals/math-expm1.js +1 -1
- package/internals/math-fround.js +1 -1
- package/internals/math-log10.js +1 -1
- package/internals/math-log1p.js +1 -1
- package/internals/math-sign.js +1 -1
- package/internals/microtask.js +1 -1
- package/internals/native-symbol-registry.js +4 -0
- package/internals/native-symbol.js +2 -2
- package/internals/number-is-finite.js +1 -1
- 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 +2 -2
- 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-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/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-flags.js +1 -0
- package/internals/regexp-get-flags.js +12 -0
- package/internals/same-value.js +1 -1
- package/internals/schedulers-fix.js +31 -0
- package/internals/set-global.js +1 -1
- package/internals/shared.js +2 -2
- 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/use-symbol-as-uid.js +1 -1
- package/internals/v8-prototype-define-bug.js +1 -1
- package/internals/wrap-error-constructor-with-cause.js +6 -0
- package/modules/es.aggregate-error.constructor.js +54 -0
- package/modules/es.aggregate-error.js +2 -54
- 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.data-view.constructor.js +9 -0
- package/modules/es.data-view.js +2 -9
- package/modules/es.date.now.js +1 -0
- package/modules/es.date.to-string.js +1 -0
- package/modules/es.function.bind.js +1 -0
- 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 +1 -1
- package/modules/es.math.asinh.js +1 -1
- package/modules/es.math.atanh.js +1 -1
- package/modules/es.math.cosh.js +1 -1
- package/modules/es.math.expm1.js +1 -1
- package/modules/es.math.hypot.js +1 -1
- package/modules/es.math.imul.js +1 -1
- package/modules/es.math.sinh.js +1 -1
- package/modules/es.number.parse-float.js +1 -1
- package/modules/es.number.parse-int.js +1 -1
- package/modules/es.object.assign.js +1 -1
- 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.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 +292 -0
- package/modules/es.promise.finally.js +8 -6
- 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 +4 -13
- package/modules/es.regexp.flags.js +1 -1
- package/modules/es.regexp.to-string.js +4 -8
- 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 +1 -1
- package/modules/es.string.match-all.js +6 -15
- package/modules/es.string.replace-all.js +2 -7
- 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.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.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 +1 -0
- package/modules/esnext.array.last-item.js +1 -0
- package/modules/esnext.array.to-reversed.js +1 -1
- package/modules/esnext.array.to-sorted.js +1 -1
- package/modules/esnext.array.to-spliced.js +1 -1
- package/modules/esnext.array.with.js +1 -1
- package/modules/esnext.bigint.range.js +1 -1
- package/modules/esnext.function.is-callable.js +1 -1
- 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.string.at.js +1 -0
- 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 +1 -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 +1 -1
- package/modules/web.immediate.js +3 -15
- 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 +3 -4
- 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 +1044 -0
- package/modules/web.url.js +2 -1044
- package/package.json +2 -2
- 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/modules/es.promise.js
CHANGED
|
@@ -1,402 +1,7 @@
|
|
|
1
|
-
'
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
var redefine = require('../internals/redefine');
|
|
9
|
-
var redefineAll = require('../internals/redefine-all');
|
|
10
|
-
var setPrototypeOf = require('../internals/object-set-prototype-of');
|
|
11
|
-
var setToStringTag = require('../internals/set-to-string-tag');
|
|
12
|
-
var setSpecies = require('../internals/set-species');
|
|
13
|
-
var aCallable = require('../internals/a-callable');
|
|
14
|
-
var isCallable = require('../internals/is-callable');
|
|
15
|
-
var isObject = require('../internals/is-object');
|
|
16
|
-
var anInstance = require('../internals/an-instance');
|
|
17
|
-
var inspectSource = require('../internals/inspect-source');
|
|
18
|
-
var iterate = require('../internals/iterate');
|
|
19
|
-
var checkCorrectnessOfIteration = require('../internals/check-correctness-of-iteration');
|
|
20
|
-
var speciesConstructor = require('../internals/species-constructor');
|
|
21
|
-
var task = require('../internals/task').set;
|
|
22
|
-
var microtask = require('../internals/microtask');
|
|
23
|
-
var promiseResolve = require('../internals/promise-resolve');
|
|
24
|
-
var hostReportErrors = require('../internals/host-report-errors');
|
|
25
|
-
var newPromiseCapabilityModule = require('../internals/new-promise-capability');
|
|
26
|
-
var perform = require('../internals/perform');
|
|
27
|
-
var Queue = require('../internals/queue');
|
|
28
|
-
var InternalStateModule = require('../internals/internal-state');
|
|
29
|
-
var isForced = require('../internals/is-forced');
|
|
30
|
-
var wellKnownSymbol = require('../internals/well-known-symbol');
|
|
31
|
-
var IS_BROWSER = require('../internals/engine-is-browser');
|
|
32
|
-
var IS_NODE = require('../internals/engine-is-node');
|
|
33
|
-
var V8_VERSION = require('../internals/engine-v8-version');
|
|
34
|
-
|
|
35
|
-
var SPECIES = wellKnownSymbol('species');
|
|
36
|
-
var PROMISE = 'Promise';
|
|
37
|
-
|
|
38
|
-
var getInternalState = InternalStateModule.getterFor(PROMISE);
|
|
39
|
-
var setInternalState = InternalStateModule.set;
|
|
40
|
-
var getInternalPromiseState = InternalStateModule.getterFor(PROMISE);
|
|
41
|
-
var NativePromisePrototype = NativePromise && NativePromise.prototype;
|
|
42
|
-
var PromiseConstructor = NativePromise;
|
|
43
|
-
var PromisePrototype = NativePromisePrototype;
|
|
44
|
-
var TypeError = global.TypeError;
|
|
45
|
-
var document = global.document;
|
|
46
|
-
var process = global.process;
|
|
47
|
-
var newPromiseCapability = newPromiseCapabilityModule.f;
|
|
48
|
-
var newGenericPromiseCapability = newPromiseCapability;
|
|
49
|
-
|
|
50
|
-
var DISPATCH_EVENT = !!(document && document.createEvent && global.dispatchEvent);
|
|
51
|
-
var NATIVE_REJECTION_EVENT = isCallable(global.PromiseRejectionEvent);
|
|
52
|
-
var UNHANDLED_REJECTION = 'unhandledrejection';
|
|
53
|
-
var REJECTION_HANDLED = 'rejectionhandled';
|
|
54
|
-
var PENDING = 0;
|
|
55
|
-
var FULFILLED = 1;
|
|
56
|
-
var REJECTED = 2;
|
|
57
|
-
var HANDLED = 1;
|
|
58
|
-
var UNHANDLED = 2;
|
|
59
|
-
var SUBCLASSING = false;
|
|
60
|
-
|
|
61
|
-
var Internal, OwnPromiseCapability, PromiseWrapper, nativeThen;
|
|
62
|
-
|
|
63
|
-
var FORCED = isForced(PROMISE, function () {
|
|
64
|
-
var PROMISE_CONSTRUCTOR_SOURCE = inspectSource(PromiseConstructor);
|
|
65
|
-
var GLOBAL_CORE_JS_PROMISE = PROMISE_CONSTRUCTOR_SOURCE !== String(PromiseConstructor);
|
|
66
|
-
// V8 6.6 (Node 10 and Chrome 66) have a bug with resolving custom thenables
|
|
67
|
-
// https://bugs.chromium.org/p/chromium/issues/detail?id=830565
|
|
68
|
-
// We can't detect it synchronously, so just check versions
|
|
69
|
-
if (!GLOBAL_CORE_JS_PROMISE && V8_VERSION === 66) return true;
|
|
70
|
-
// We need Promise#finally in the pure version for preventing prototype pollution
|
|
71
|
-
if (IS_PURE && !PromisePrototype['finally']) return true;
|
|
72
|
-
// We can't use @@species feature detection in V8 since it causes
|
|
73
|
-
// deoptimization and performance degradation
|
|
74
|
-
// https://github.com/zloirock/core-js/issues/679
|
|
75
|
-
if (V8_VERSION >= 51 && /native code/.test(PROMISE_CONSTRUCTOR_SOURCE)) return false;
|
|
76
|
-
// Detect correctness of subclassing with @@species support
|
|
77
|
-
var promise = new PromiseConstructor(function (resolve) { resolve(1); });
|
|
78
|
-
var FakePromise = function (exec) {
|
|
79
|
-
exec(function () { /* empty */ }, function () { /* empty */ });
|
|
80
|
-
};
|
|
81
|
-
var constructor = promise.constructor = {};
|
|
82
|
-
constructor[SPECIES] = FakePromise;
|
|
83
|
-
SUBCLASSING = promise.then(function () { /* empty */ }) instanceof FakePromise;
|
|
84
|
-
if (!SUBCLASSING) return true;
|
|
85
|
-
// Unhandled rejections tracking support, NodeJS Promise without it fails @@species test
|
|
86
|
-
return !GLOBAL_CORE_JS_PROMISE && IS_BROWSER && !NATIVE_REJECTION_EVENT;
|
|
87
|
-
});
|
|
88
|
-
|
|
89
|
-
var INCORRECT_ITERATION = FORCED || !checkCorrectnessOfIteration(function (iterable) {
|
|
90
|
-
PromiseConstructor.all(iterable)['catch'](function () { /* empty */ });
|
|
91
|
-
});
|
|
92
|
-
|
|
93
|
-
// helpers
|
|
94
|
-
var isThenable = function (it) {
|
|
95
|
-
var then;
|
|
96
|
-
return isObject(it) && isCallable(then = it.then) ? then : false;
|
|
97
|
-
};
|
|
98
|
-
|
|
99
|
-
var callReaction = function (reaction, state) {
|
|
100
|
-
var value = state.value;
|
|
101
|
-
var ok = state.state == FULFILLED;
|
|
102
|
-
var handler = ok ? reaction.ok : reaction.fail;
|
|
103
|
-
var resolve = reaction.resolve;
|
|
104
|
-
var reject = reaction.reject;
|
|
105
|
-
var domain = reaction.domain;
|
|
106
|
-
var result, then, exited;
|
|
107
|
-
try {
|
|
108
|
-
if (handler) {
|
|
109
|
-
if (!ok) {
|
|
110
|
-
if (state.rejection === UNHANDLED) onHandleUnhandled(state);
|
|
111
|
-
state.rejection = HANDLED;
|
|
112
|
-
}
|
|
113
|
-
if (handler === true) result = value;
|
|
114
|
-
else {
|
|
115
|
-
if (domain) domain.enter();
|
|
116
|
-
result = handler(value); // can throw
|
|
117
|
-
if (domain) {
|
|
118
|
-
domain.exit();
|
|
119
|
-
exited = true;
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
if (result === reaction.promise) {
|
|
123
|
-
reject(TypeError('Promise-chain cycle'));
|
|
124
|
-
} else if (then = isThenable(result)) {
|
|
125
|
-
call(then, result, resolve, reject);
|
|
126
|
-
} else resolve(result);
|
|
127
|
-
} else reject(value);
|
|
128
|
-
} catch (error) {
|
|
129
|
-
if (domain && !exited) domain.exit();
|
|
130
|
-
reject(error);
|
|
131
|
-
}
|
|
132
|
-
};
|
|
133
|
-
|
|
134
|
-
var notify = function (state, isReject) {
|
|
135
|
-
if (state.notified) return;
|
|
136
|
-
state.notified = true;
|
|
137
|
-
microtask(function () {
|
|
138
|
-
var reactions = state.reactions;
|
|
139
|
-
var reaction;
|
|
140
|
-
while (reaction = reactions.get()) {
|
|
141
|
-
callReaction(reaction, state);
|
|
142
|
-
}
|
|
143
|
-
state.notified = false;
|
|
144
|
-
if (isReject && !state.rejection) onUnhandled(state);
|
|
145
|
-
});
|
|
146
|
-
};
|
|
147
|
-
|
|
148
|
-
var dispatchEvent = function (name, promise, reason) {
|
|
149
|
-
var event, handler;
|
|
150
|
-
if (DISPATCH_EVENT) {
|
|
151
|
-
event = document.createEvent('Event');
|
|
152
|
-
event.promise = promise;
|
|
153
|
-
event.reason = reason;
|
|
154
|
-
event.initEvent(name, false, true);
|
|
155
|
-
global.dispatchEvent(event);
|
|
156
|
-
} else event = { promise: promise, reason: reason };
|
|
157
|
-
if (!NATIVE_REJECTION_EVENT && (handler = global['on' + name])) handler(event);
|
|
158
|
-
else if (name === UNHANDLED_REJECTION) hostReportErrors('Unhandled promise rejection', reason);
|
|
159
|
-
};
|
|
160
|
-
|
|
161
|
-
var onUnhandled = function (state) {
|
|
162
|
-
call(task, global, function () {
|
|
163
|
-
var promise = state.facade;
|
|
164
|
-
var value = state.value;
|
|
165
|
-
var IS_UNHANDLED = isUnhandled(state);
|
|
166
|
-
var result;
|
|
167
|
-
if (IS_UNHANDLED) {
|
|
168
|
-
result = perform(function () {
|
|
169
|
-
if (IS_NODE) {
|
|
170
|
-
process.emit('unhandledRejection', value, promise);
|
|
171
|
-
} else dispatchEvent(UNHANDLED_REJECTION, promise, value);
|
|
172
|
-
});
|
|
173
|
-
// Browsers should not trigger `rejectionHandled` event if it was handled here, NodeJS - should
|
|
174
|
-
state.rejection = IS_NODE || isUnhandled(state) ? UNHANDLED : HANDLED;
|
|
175
|
-
if (result.error) throw result.value;
|
|
176
|
-
}
|
|
177
|
-
});
|
|
178
|
-
};
|
|
179
|
-
|
|
180
|
-
var isUnhandled = function (state) {
|
|
181
|
-
return state.rejection !== HANDLED && !state.parent;
|
|
182
|
-
};
|
|
183
|
-
|
|
184
|
-
var onHandleUnhandled = function (state) {
|
|
185
|
-
call(task, global, function () {
|
|
186
|
-
var promise = state.facade;
|
|
187
|
-
if (IS_NODE) {
|
|
188
|
-
process.emit('rejectionHandled', promise);
|
|
189
|
-
} else dispatchEvent(REJECTION_HANDLED, promise, state.value);
|
|
190
|
-
});
|
|
191
|
-
};
|
|
192
|
-
|
|
193
|
-
var bind = function (fn, state, unwrap) {
|
|
194
|
-
return function (value) {
|
|
195
|
-
fn(state, value, unwrap);
|
|
196
|
-
};
|
|
197
|
-
};
|
|
198
|
-
|
|
199
|
-
var internalReject = function (state, value, unwrap) {
|
|
200
|
-
if (state.done) return;
|
|
201
|
-
state.done = true;
|
|
202
|
-
if (unwrap) state = unwrap;
|
|
203
|
-
state.value = value;
|
|
204
|
-
state.state = REJECTED;
|
|
205
|
-
notify(state, true);
|
|
206
|
-
};
|
|
207
|
-
|
|
208
|
-
var internalResolve = function (state, value, unwrap) {
|
|
209
|
-
if (state.done) return;
|
|
210
|
-
state.done = true;
|
|
211
|
-
if (unwrap) state = unwrap;
|
|
212
|
-
try {
|
|
213
|
-
if (state.facade === value) throw TypeError("Promise can't be resolved itself");
|
|
214
|
-
var then = isThenable(value);
|
|
215
|
-
if (then) {
|
|
216
|
-
microtask(function () {
|
|
217
|
-
var wrapper = { done: false };
|
|
218
|
-
try {
|
|
219
|
-
call(then, value,
|
|
220
|
-
bind(internalResolve, wrapper, state),
|
|
221
|
-
bind(internalReject, wrapper, state)
|
|
222
|
-
);
|
|
223
|
-
} catch (error) {
|
|
224
|
-
internalReject(wrapper, error, state);
|
|
225
|
-
}
|
|
226
|
-
});
|
|
227
|
-
} else {
|
|
228
|
-
state.value = value;
|
|
229
|
-
state.state = FULFILLED;
|
|
230
|
-
notify(state, false);
|
|
231
|
-
}
|
|
232
|
-
} catch (error) {
|
|
233
|
-
internalReject({ done: false }, error, state);
|
|
234
|
-
}
|
|
235
|
-
};
|
|
236
|
-
|
|
237
|
-
// constructor polyfill
|
|
238
|
-
if (FORCED) {
|
|
239
|
-
// 25.4.3.1 Promise(executor)
|
|
240
|
-
PromiseConstructor = function Promise(executor) {
|
|
241
|
-
anInstance(this, PromisePrototype);
|
|
242
|
-
aCallable(executor);
|
|
243
|
-
call(Internal, this);
|
|
244
|
-
var state = getInternalState(this);
|
|
245
|
-
try {
|
|
246
|
-
executor(bind(internalResolve, state), bind(internalReject, state));
|
|
247
|
-
} catch (error) {
|
|
248
|
-
internalReject(state, error);
|
|
249
|
-
}
|
|
250
|
-
};
|
|
251
|
-
PromisePrototype = PromiseConstructor.prototype;
|
|
252
|
-
// eslint-disable-next-line no-unused-vars -- required for `.length`
|
|
253
|
-
Internal = function Promise(executor) {
|
|
254
|
-
setInternalState(this, {
|
|
255
|
-
type: PROMISE,
|
|
256
|
-
done: false,
|
|
257
|
-
notified: false,
|
|
258
|
-
parent: false,
|
|
259
|
-
reactions: new Queue(),
|
|
260
|
-
rejection: false,
|
|
261
|
-
state: PENDING,
|
|
262
|
-
value: undefined
|
|
263
|
-
});
|
|
264
|
-
};
|
|
265
|
-
Internal.prototype = redefineAll(PromisePrototype, {
|
|
266
|
-
// `Promise.prototype.then` method
|
|
267
|
-
// https://tc39.es/ecma262/#sec-promise.prototype.then
|
|
268
|
-
// eslint-disable-next-line unicorn/no-thenable -- safe
|
|
269
|
-
then: function then(onFulfilled, onRejected) {
|
|
270
|
-
var state = getInternalPromiseState(this);
|
|
271
|
-
var reaction = newPromiseCapability(speciesConstructor(this, PromiseConstructor));
|
|
272
|
-
state.parent = true;
|
|
273
|
-
reaction.ok = isCallable(onFulfilled) ? onFulfilled : true;
|
|
274
|
-
reaction.fail = isCallable(onRejected) && onRejected;
|
|
275
|
-
reaction.domain = IS_NODE ? process.domain : undefined;
|
|
276
|
-
if (state.state == PENDING) state.reactions.add(reaction);
|
|
277
|
-
else microtask(function () {
|
|
278
|
-
callReaction(reaction, state);
|
|
279
|
-
});
|
|
280
|
-
return reaction.promise;
|
|
281
|
-
},
|
|
282
|
-
// `Promise.prototype.catch` method
|
|
283
|
-
// https://tc39.es/ecma262/#sec-promise.prototype.catch
|
|
284
|
-
'catch': function (onRejected) {
|
|
285
|
-
return this.then(undefined, onRejected);
|
|
286
|
-
}
|
|
287
|
-
});
|
|
288
|
-
OwnPromiseCapability = function () {
|
|
289
|
-
var promise = new Internal();
|
|
290
|
-
var state = getInternalState(promise);
|
|
291
|
-
this.promise = promise;
|
|
292
|
-
this.resolve = bind(internalResolve, state);
|
|
293
|
-
this.reject = bind(internalReject, state);
|
|
294
|
-
};
|
|
295
|
-
newPromiseCapabilityModule.f = newPromiseCapability = function (C) {
|
|
296
|
-
return C === PromiseConstructor || C === PromiseWrapper
|
|
297
|
-
? new OwnPromiseCapability(C)
|
|
298
|
-
: newGenericPromiseCapability(C);
|
|
299
|
-
};
|
|
300
|
-
|
|
301
|
-
if (!IS_PURE && isCallable(NativePromise) && NativePromisePrototype !== Object.prototype) {
|
|
302
|
-
nativeThen = NativePromisePrototype.then;
|
|
303
|
-
|
|
304
|
-
if (!SUBCLASSING) {
|
|
305
|
-
// make `Promise#then` return a polyfilled `Promise` for native promise-based APIs
|
|
306
|
-
redefine(NativePromisePrototype, 'then', function then(onFulfilled, onRejected) {
|
|
307
|
-
var that = this;
|
|
308
|
-
return new PromiseConstructor(function (resolve, reject) {
|
|
309
|
-
call(nativeThen, that, resolve, reject);
|
|
310
|
-
}).then(onFulfilled, onRejected);
|
|
311
|
-
// https://github.com/zloirock/core-js/issues/640
|
|
312
|
-
}, { unsafe: true });
|
|
313
|
-
|
|
314
|
-
// makes sure that native promise-based APIs `Promise#catch` properly works with patched `Promise#then`
|
|
315
|
-
redefine(NativePromisePrototype, 'catch', PromisePrototype['catch'], { unsafe: true });
|
|
316
|
-
}
|
|
317
|
-
|
|
318
|
-
// make `.constructor === Promise` work for native promise-based APIs
|
|
319
|
-
try {
|
|
320
|
-
delete NativePromisePrototype.constructor;
|
|
321
|
-
} catch (error) { /* empty */ }
|
|
322
|
-
|
|
323
|
-
// make `instanceof Promise` work for native promise-based APIs
|
|
324
|
-
if (setPrototypeOf) {
|
|
325
|
-
setPrototypeOf(NativePromisePrototype, PromisePrototype);
|
|
326
|
-
}
|
|
327
|
-
}
|
|
328
|
-
}
|
|
329
|
-
|
|
330
|
-
$({ global: true, wrap: true, forced: FORCED }, {
|
|
331
|
-
Promise: PromiseConstructor
|
|
332
|
-
});
|
|
333
|
-
|
|
334
|
-
setToStringTag(PromiseConstructor, PROMISE, false, true);
|
|
335
|
-
setSpecies(PROMISE);
|
|
336
|
-
|
|
337
|
-
PromiseWrapper = getBuiltIn(PROMISE);
|
|
338
|
-
|
|
339
|
-
// statics
|
|
340
|
-
$({ target: PROMISE, stat: true, forced: FORCED }, {
|
|
341
|
-
// `Promise.reject` method
|
|
342
|
-
// https://tc39.es/ecma262/#sec-promise.reject
|
|
343
|
-
reject: function reject(r) {
|
|
344
|
-
var capability = newPromiseCapability(this);
|
|
345
|
-
call(capability.reject, undefined, r);
|
|
346
|
-
return capability.promise;
|
|
347
|
-
}
|
|
348
|
-
});
|
|
349
|
-
|
|
350
|
-
$({ target: PROMISE, stat: true, forced: IS_PURE || FORCED }, {
|
|
351
|
-
// `Promise.resolve` method
|
|
352
|
-
// https://tc39.es/ecma262/#sec-promise.resolve
|
|
353
|
-
resolve: function resolve(x) {
|
|
354
|
-
return promiseResolve(IS_PURE && this === PromiseWrapper ? PromiseConstructor : this, x);
|
|
355
|
-
}
|
|
356
|
-
});
|
|
357
|
-
|
|
358
|
-
$({ target: PROMISE, stat: true, forced: INCORRECT_ITERATION }, {
|
|
359
|
-
// `Promise.all` method
|
|
360
|
-
// https://tc39.es/ecma262/#sec-promise.all
|
|
361
|
-
all: function all(iterable) {
|
|
362
|
-
var C = this;
|
|
363
|
-
var capability = newPromiseCapability(C);
|
|
364
|
-
var resolve = capability.resolve;
|
|
365
|
-
var reject = capability.reject;
|
|
366
|
-
var result = perform(function () {
|
|
367
|
-
var $promiseResolve = aCallable(C.resolve);
|
|
368
|
-
var values = [];
|
|
369
|
-
var counter = 0;
|
|
370
|
-
var remaining = 1;
|
|
371
|
-
iterate(iterable, function (promise) {
|
|
372
|
-
var index = counter++;
|
|
373
|
-
var alreadyCalled = false;
|
|
374
|
-
remaining++;
|
|
375
|
-
call($promiseResolve, C, promise).then(function (value) {
|
|
376
|
-
if (alreadyCalled) return;
|
|
377
|
-
alreadyCalled = true;
|
|
378
|
-
values[index] = value;
|
|
379
|
-
--remaining || resolve(values);
|
|
380
|
-
}, reject);
|
|
381
|
-
});
|
|
382
|
-
--remaining || resolve(values);
|
|
383
|
-
});
|
|
384
|
-
if (result.error) reject(result.value);
|
|
385
|
-
return capability.promise;
|
|
386
|
-
},
|
|
387
|
-
// `Promise.race` method
|
|
388
|
-
// https://tc39.es/ecma262/#sec-promise.race
|
|
389
|
-
race: function race(iterable) {
|
|
390
|
-
var C = this;
|
|
391
|
-
var capability = newPromiseCapability(C);
|
|
392
|
-
var reject = capability.reject;
|
|
393
|
-
var result = perform(function () {
|
|
394
|
-
var $promiseResolve = aCallable(C.resolve);
|
|
395
|
-
iterate(iterable, function (promise) {
|
|
396
|
-
call($promiseResolve, C, promise).then(capability.resolve, reject);
|
|
397
|
-
});
|
|
398
|
-
});
|
|
399
|
-
if (result.error) reject(result.value);
|
|
400
|
-
return capability.promise;
|
|
401
|
-
}
|
|
402
|
-
});
|
|
1
|
+
// TODO: Remove this module from `core-js@4` since it's split to modules listed below
|
|
2
|
+
require('../modules/es.promise.constructor');
|
|
3
|
+
require('../modules/es.promise.all');
|
|
4
|
+
require('../modules/es.promise.catch');
|
|
5
|
+
require('../modules/es.promise.race');
|
|
6
|
+
require('../modules/es.promise.reject');
|
|
7
|
+
require('../modules/es.promise.resolve');
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
var $ = require('../internals/export');
|
|
3
|
+
var call = require('../internals/function-call');
|
|
4
|
+
var aCallable = require('../internals/a-callable');
|
|
5
|
+
var newPromiseCapabilityModule = require('../internals/new-promise-capability');
|
|
6
|
+
var perform = require('../internals/perform');
|
|
7
|
+
var iterate = require('../internals/iterate');
|
|
8
|
+
var PROMISE_STATICS_INCORRECT_ITERATION = require('../internals/promise-statics-incorrect-iteration');
|
|
9
|
+
|
|
10
|
+
// `Promise.race` method
|
|
11
|
+
// https://tc39.es/ecma262/#sec-promise.race
|
|
12
|
+
$({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION }, {
|
|
13
|
+
race: function race(iterable) {
|
|
14
|
+
var C = this;
|
|
15
|
+
var capability = newPromiseCapabilityModule.f(C);
|
|
16
|
+
var reject = capability.reject;
|
|
17
|
+
var result = perform(function () {
|
|
18
|
+
var $promiseResolve = aCallable(C.resolve);
|
|
19
|
+
iterate(iterable, function (promise) {
|
|
20
|
+
call($promiseResolve, C, promise).then(capability.resolve, reject);
|
|
21
|
+
});
|
|
22
|
+
});
|
|
23
|
+
if (result.error) reject(result.value);
|
|
24
|
+
return capability.promise;
|
|
25
|
+
}
|
|
26
|
+
});
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
var $ = require('../internals/export');
|
|
3
|
+
var call = require('../internals/function-call');
|
|
4
|
+
var newPromiseCapabilityModule = require('../internals/new-promise-capability');
|
|
5
|
+
var FORCED_PROMISE_CONSTRUCTOR = require('../internals/promise-constructor-detection').CONSTRUCTOR;
|
|
6
|
+
|
|
7
|
+
// `Promise.reject` method
|
|
8
|
+
// https://tc39.es/ecma262/#sec-promise.reject
|
|
9
|
+
$({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR }, {
|
|
10
|
+
reject: function reject(r) {
|
|
11
|
+
var capability = newPromiseCapabilityModule.f(this);
|
|
12
|
+
call(capability.reject, undefined, r);
|
|
13
|
+
return capability.promise;
|
|
14
|
+
}
|
|
15
|
+
});
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
var $ = require('../internals/export');
|
|
3
|
+
var getBuiltIn = require('../internals/get-built-in');
|
|
4
|
+
var IS_PURE = require('../internals/is-pure');
|
|
5
|
+
var NativePromiseConstructor = require('../internals/promise-native-constructor');
|
|
6
|
+
var FORCED_PROMISE_CONSTRUCTOR = require('../internals/promise-constructor-detection').CONSTRUCTOR;
|
|
7
|
+
var promiseResolve = require('../internals/promise-resolve');
|
|
8
|
+
|
|
9
|
+
var PromiseConstructorWrapper = getBuiltIn('Promise');
|
|
10
|
+
var CHECK_WRAPPER = IS_PURE && !FORCED_PROMISE_CONSTRUCTOR;
|
|
11
|
+
|
|
12
|
+
// `Promise.resolve` method
|
|
13
|
+
// https://tc39.es/ecma262/#sec-promise.resolve
|
|
14
|
+
$({ target: 'Promise', stat: true, forced: IS_PURE || FORCED_PROMISE_CONSTRUCTOR }, {
|
|
15
|
+
resolve: function resolve(x) {
|
|
16
|
+
return promiseResolve(CHECK_WRAPPER && this === PromiseConstructorWrapper ? NativePromiseConstructor : this, x);
|
|
17
|
+
}
|
|
18
|
+
});
|
|
@@ -6,7 +6,7 @@ var fails = require('../internals/fails');
|
|
|
6
6
|
|
|
7
7
|
// MS Edge argumentsList argument is optional
|
|
8
8
|
var OPTIONAL_ARGUMENTS_LIST = !fails(function () {
|
|
9
|
-
// eslint-disable-next-line es/no-reflect -- required for testing
|
|
9
|
+
// eslint-disable-next-line es-x/no-reflect -- required for testing
|
|
10
10
|
Reflect.apply(function () { /* empty */ });
|
|
11
11
|
});
|
|
12
12
|
|
|
@@ -7,7 +7,7 @@ var fails = require('../internals/fails');
|
|
|
7
7
|
|
|
8
8
|
// MS Edge has broken Reflect.defineProperty - throwing instead of returning false
|
|
9
9
|
var ERROR_INSTEAD_OF_FALSE = fails(function () {
|
|
10
|
-
// eslint-disable-next-line es/no-reflect -- required for testing
|
|
10
|
+
// eslint-disable-next-line es-x/no-reflect -- required for testing
|
|
11
11
|
Reflect.defineProperty(definePropertyModule.f({}, 1, { value: 1 }), 1, { value: 2 });
|
|
12
12
|
});
|
|
13
13
|
|
|
@@ -40,7 +40,7 @@ function set(target, propertyKey, V /* , receiver */) {
|
|
|
40
40
|
var MS_EDGE_BUG = fails(function () {
|
|
41
41
|
var Constructor = function () { /* empty */ };
|
|
42
42
|
var object = definePropertyModule.f(new Constructor(), 'a', { configurable: true });
|
|
43
|
-
// eslint-disable-next-line es/no-reflect -- required for testing
|
|
43
|
+
// eslint-disable-next-line es-x/no-reflect -- required for testing
|
|
44
44
|
return Reflect.set(Constructor.prototype, 'a', 1, object) !== false;
|
|
45
45
|
});
|
|
46
46
|
|
|
@@ -4,13 +4,13 @@ var uncurryThis = require('../internals/function-uncurry-this');
|
|
|
4
4
|
var isForced = require('../internals/is-forced');
|
|
5
5
|
var inheritIfRequired = require('../internals/inherit-if-required');
|
|
6
6
|
var createNonEnumerableProperty = require('../internals/create-non-enumerable-property');
|
|
7
|
-
var defineProperty = require('../internals/object-define-property').f;
|
|
8
7
|
var getOwnPropertyNames = require('../internals/object-get-own-property-names').f;
|
|
9
8
|
var isPrototypeOf = require('../internals/object-is-prototype-of');
|
|
10
9
|
var isRegExp = require('../internals/is-regexp');
|
|
11
10
|
var toString = require('../internals/to-string');
|
|
12
|
-
var
|
|
11
|
+
var getRegExpFlags = require('../internals/regexp-get-flags');
|
|
13
12
|
var stickyHelpers = require('../internals/regexp-sticky-helpers');
|
|
13
|
+
var proxyAccessor = require('../internals/proxy-accessor');
|
|
14
14
|
var redefine = require('../internals/redefine');
|
|
15
15
|
var fails = require('../internals/fails');
|
|
16
16
|
var hasOwn = require('../internals/has-own-property');
|
|
@@ -24,7 +24,6 @@ var MATCH = wellKnownSymbol('match');
|
|
|
24
24
|
var NativeRegExp = global.RegExp;
|
|
25
25
|
var RegExpPrototype = NativeRegExp.prototype;
|
|
26
26
|
var SyntaxError = global.SyntaxError;
|
|
27
|
-
var getFlags = uncurryThis(regExpFlags);
|
|
28
27
|
var exec = uncurryThis(RegExpPrototype.exec);
|
|
29
28
|
var charAt = uncurryThis(''.charAt);
|
|
30
29
|
var replace = uncurryThis(''.replace);
|
|
@@ -133,7 +132,7 @@ if (isForced('RegExp', BASE_FORCED)) {
|
|
|
133
132
|
|
|
134
133
|
if (patternIsRegExp || isPrototypeOf(RegExpPrototype, pattern)) {
|
|
135
134
|
pattern = pattern.source;
|
|
136
|
-
if (flagsAreUndefined) flags =
|
|
135
|
+
if (flagsAreUndefined) flags = getRegExpFlags(rawPattern);
|
|
137
136
|
}
|
|
138
137
|
|
|
139
138
|
pattern = pattern === undefined ? '' : toString(pattern);
|
|
@@ -178,16 +177,8 @@ if (isForced('RegExp', BASE_FORCED)) {
|
|
|
178
177
|
return result;
|
|
179
178
|
};
|
|
180
179
|
|
|
181
|
-
var proxy = function (key) {
|
|
182
|
-
key in RegExpWrapper || defineProperty(RegExpWrapper, key, {
|
|
183
|
-
configurable: true,
|
|
184
|
-
get: function () { return NativeRegExp[key]; },
|
|
185
|
-
set: function (it) { NativeRegExp[key] = it; }
|
|
186
|
-
});
|
|
187
|
-
};
|
|
188
|
-
|
|
189
180
|
for (var keys = getOwnPropertyNames(NativeRegExp), index = 0; keys.length > index;) {
|
|
190
|
-
|
|
181
|
+
proxyAccessor(RegExpWrapper, NativeRegExp, keys[index++]);
|
|
191
182
|
}
|
|
192
183
|
|
|
193
184
|
RegExpPrototype.constructor = RegExpWrapper;
|
|
@@ -6,7 +6,7 @@ var fails = require('../internals/fails');
|
|
|
6
6
|
var RegExpPrototype = RegExp.prototype;
|
|
7
7
|
|
|
8
8
|
var FORCED = DESCRIPTORS && fails(function () {
|
|
9
|
-
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
9
|
+
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
|
10
10
|
return Object.getOwnPropertyDescriptor(RegExpPrototype, 'flags').get.call({ dotAll: true, sticky: true }) !== 'sy';
|
|
11
11
|
});
|
|
12
12
|
|
|
@@ -1,17 +1,14 @@
|
|
|
1
1
|
'use strict';
|
|
2
|
-
var uncurryThis = require('../internals/function-uncurry-this');
|
|
3
2
|
var PROPER_FUNCTION_NAME = require('../internals/function-name').PROPER;
|
|
4
3
|
var redefine = require('../internals/redefine');
|
|
5
4
|
var anObject = require('../internals/an-object');
|
|
6
|
-
var isPrototypeOf = require('../internals/object-is-prototype-of');
|
|
7
5
|
var $toString = require('../internals/to-string');
|
|
8
6
|
var fails = require('../internals/fails');
|
|
9
|
-
var
|
|
7
|
+
var getRegExpFlags = require('../internals/regexp-get-flags');
|
|
10
8
|
|
|
11
9
|
var TO_STRING = 'toString';
|
|
12
10
|
var RegExpPrototype = RegExp.prototype;
|
|
13
11
|
var n$ToString = RegExpPrototype[TO_STRING];
|
|
14
|
-
var getFlags = uncurryThis(regExpFlags);
|
|
15
12
|
|
|
16
13
|
var NOT_GENERIC = fails(function () { return n$ToString.call({ source: 'a', flags: 'b' }) != '/a/b'; });
|
|
17
14
|
// FF44- RegExp#toString has a wrong name
|
|
@@ -22,9 +19,8 @@ var INCORRECT_NAME = PROPER_FUNCTION_NAME && n$ToString.name != TO_STRING;
|
|
|
22
19
|
if (NOT_GENERIC || INCORRECT_NAME) {
|
|
23
20
|
redefine(RegExp.prototype, TO_STRING, function toString() {
|
|
24
21
|
var R = anObject(this);
|
|
25
|
-
var
|
|
26
|
-
var
|
|
27
|
-
|
|
28
|
-
return '/' + p + '/' + f;
|
|
22
|
+
var pattern = $toString(R.source);
|
|
23
|
+
var flags = $toString(getRegExpFlags(R));
|
|
24
|
+
return '/' + pattern + '/' + flags;
|
|
29
25
|
}, { unsafe: true });
|
|
30
26
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
var collection = require('../internals/collection');
|
|
3
|
+
var collectionStrong = require('../internals/collection-strong');
|
|
4
|
+
|
|
5
|
+
// `Set` constructor
|
|
6
|
+
// https://tc39.es/ecma262/#sec-set-objects
|
|
7
|
+
collection('Set', function (init) {
|
|
8
|
+
return function Set() { return init(this, arguments.length ? arguments[0] : undefined); };
|
|
9
|
+
}, collectionStrong);
|
package/modules/es.set.js
CHANGED
|
@@ -1,9 +1,2 @@
|
|
|
1
|
-
'
|
|
2
|
-
|
|
3
|
-
var collectionStrong = require('../internals/collection-strong');
|
|
4
|
-
|
|
5
|
-
// `Set` constructor
|
|
6
|
-
// https://tc39.es/ecma262/#sec-set-objects
|
|
7
|
-
collection('Set', function (init) {
|
|
8
|
-
return function Set() { return init(this, arguments.length ? arguments[0] : undefined); };
|
|
9
|
-
}, collectionStrong);
|
|
1
|
+
// TODO: Remove this module from `core-js@4` since it's replaced to module below
|
|
2
|
+
require('../modules/es.set.constructor');
|
|
@@ -9,7 +9,7 @@ var requireObjectCoercible = require('../internals/require-object-coercible');
|
|
|
9
9
|
var correctIsRegExpLogic = require('../internals/correct-is-regexp-logic');
|
|
10
10
|
var IS_PURE = require('../internals/is-pure');
|
|
11
11
|
|
|
12
|
-
// eslint-disable-next-line es/no-string-prototype-endswith -- safe
|
|
12
|
+
// eslint-disable-next-line es-x/no-string-prototype-endswith -- safe
|
|
13
13
|
var un$EndsWith = uncurryThis(''.endsWith);
|
|
14
14
|
var slice = uncurryThis(''.slice);
|
|
15
15
|
var min = Math.min;
|
|
@@ -5,7 +5,7 @@ var toAbsoluteIndex = require('../internals/to-absolute-index');
|
|
|
5
5
|
|
|
6
6
|
var RangeError = global.RangeError;
|
|
7
7
|
var fromCharCode = String.fromCharCode;
|
|
8
|
-
// eslint-disable-next-line es/no-string-fromcodepoint -- required for testing
|
|
8
|
+
// eslint-disable-next-line es-x/no-string-fromcodepoint -- required for testing
|
|
9
9
|
var $fromCodePoint = String.fromCodePoint;
|
|
10
10
|
var join = uncurryThis([].join);
|
|
11
11
|
|