core-js 3.18.3 → 3.20.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/README.md +27 -17
- package/actual/README.md +1 -0
- package/actual/aggregate-error.js +3 -0
- package/actual/array/at.js +3 -0
- package/actual/array/concat.js +3 -0
- package/actual/array/copy-within.js +3 -0
- package/actual/array/entries.js +3 -0
- package/actual/array/every.js +3 -0
- package/actual/array/fill.js +3 -0
- package/actual/array/filter.js +3 -0
- package/actual/array/find-index.js +3 -0
- package/actual/array/find-last-index.js +4 -0
- package/actual/array/find-last.js +4 -0
- package/actual/array/find.js +3 -0
- package/actual/array/flat-map.js +3 -0
- package/actual/array/flat.js +3 -0
- package/actual/array/for-each.js +3 -0
- package/actual/array/from.js +3 -0
- package/actual/array/group-by-to-map.js +6 -0
- package/actual/array/group-by.js +4 -0
- package/actual/array/includes.js +3 -0
- package/actual/array/index-of.js +3 -0
- package/actual/array/index.js +9 -0
- package/actual/array/is-array.js +3 -0
- package/actual/array/iterator.js +3 -0
- package/actual/array/join.js +3 -0
- package/actual/array/keys.js +3 -0
- package/actual/array/last-index-of.js +3 -0
- package/actual/array/map.js +3 -0
- package/actual/array/of.js +3 -0
- package/actual/array/reduce-right.js +3 -0
- package/actual/array/reduce.js +3 -0
- package/actual/array/reverse.js +3 -0
- package/actual/array/slice.js +3 -0
- package/actual/array/some.js +3 -0
- package/actual/array/sort.js +3 -0
- package/actual/array/splice.js +3 -0
- package/actual/array/values.js +3 -0
- package/actual/array/virtual/at.js +3 -0
- package/actual/array/virtual/concat.js +3 -0
- package/actual/array/virtual/copy-within.js +3 -0
- package/actual/array/virtual/entries.js +3 -0
- package/actual/array/virtual/every.js +3 -0
- package/actual/array/virtual/fill.js +3 -0
- package/actual/array/virtual/filter.js +3 -0
- package/actual/array/virtual/find-index.js +3 -0
- package/actual/array/virtual/find-last-index.js +4 -0
- package/actual/array/virtual/find-last.js +4 -0
- package/actual/array/virtual/find.js +3 -0
- package/actual/array/virtual/flat-map.js +3 -0
- package/actual/array/virtual/flat.js +3 -0
- package/actual/array/virtual/for-each.js +3 -0
- package/actual/array/virtual/group-by-to-map.js +6 -0
- package/actual/array/virtual/group-by.js +4 -0
- package/actual/array/virtual/includes.js +3 -0
- package/actual/array/virtual/index-of.js +3 -0
- package/actual/array/virtual/index.js +9 -0
- package/actual/array/virtual/iterator.js +3 -0
- package/actual/array/virtual/join.js +3 -0
- package/actual/array/virtual/keys.js +3 -0
- package/actual/array/virtual/last-index-of.js +3 -0
- package/actual/array/virtual/map.js +3 -0
- package/actual/array/virtual/reduce-right.js +3 -0
- package/actual/array/virtual/reduce.js +3 -0
- package/actual/array/virtual/reverse.js +3 -0
- package/actual/array/virtual/slice.js +3 -0
- package/actual/array/virtual/some.js +3 -0
- package/actual/array/virtual/sort.js +3 -0
- package/actual/array/virtual/splice.js +3 -0
- package/actual/array/virtual/values.js +3 -0
- package/actual/array-buffer/constructor.js +3 -0
- package/actual/array-buffer/index.js +3 -0
- package/actual/array-buffer/is-view.js +3 -0
- package/actual/array-buffer/slice.js +3 -0
- package/actual/clear-immediate.js +3 -0
- package/actual/data-view/index.js +3 -0
- package/actual/date/get-year.js +3 -0
- package/actual/date/index.js +3 -0
- package/actual/date/now.js +3 -0
- package/actual/date/set-year.js +3 -0
- package/actual/date/to-gmt-string.js +3 -0
- package/actual/date/to-iso-string.js +3 -0
- package/actual/date/to-json.js +3 -0
- package/actual/date/to-primitive.js +3 -0
- package/actual/date/to-string.js +3 -0
- package/actual/dom-collections/for-each.js +3 -0
- package/actual/dom-collections/index.js +3 -0
- package/actual/dom-collections/iterator.js +3 -0
- package/actual/dom-exception/constructor.js +3 -0
- package/actual/dom-exception/index.js +3 -0
- package/actual/dom-exception/to-string-tag.js +3 -0
- package/actual/error/constructor.js +3 -0
- package/actual/error/index.js +3 -0
- package/actual/error/to-string.js +3 -0
- package/actual/escape.js +3 -0
- package/actual/function/bind.js +3 -0
- package/actual/function/has-instance.js +3 -0
- package/actual/function/index.js +3 -0
- package/actual/function/name.js +3 -0
- package/actual/function/virtual/bind.js +3 -0
- package/actual/function/virtual/index.js +3 -0
- package/actual/get-iterator-method.js +3 -0
- package/actual/get-iterator.js +3 -0
- package/actual/global-this.js +3 -0
- package/actual/index.js +4 -0
- package/actual/instance/at.js +3 -0
- package/actual/instance/bind.js +3 -0
- package/actual/instance/code-point-at.js +3 -0
- package/actual/instance/concat.js +3 -0
- package/actual/instance/copy-within.js +3 -0
- package/actual/instance/ends-with.js +3 -0
- package/actual/instance/entries.js +3 -0
- package/actual/instance/every.js +3 -0
- package/actual/instance/fill.js +3 -0
- package/actual/instance/filter.js +3 -0
- package/actual/instance/find-index.js +3 -0
- package/actual/instance/find-last-index.js +9 -0
- package/actual/instance/find-last.js +9 -0
- package/actual/instance/find.js +3 -0
- package/actual/instance/flags.js +3 -0
- package/actual/instance/flat-map.js +3 -0
- package/actual/instance/flat.js +3 -0
- package/actual/instance/for-each.js +3 -0
- package/actual/instance/group-by-to-map.js +9 -0
- package/actual/instance/group-by.js +9 -0
- package/actual/instance/includes.js +3 -0
- package/actual/instance/index-of.js +3 -0
- package/actual/instance/keys.js +3 -0
- package/actual/instance/last-index-of.js +3 -0
- package/actual/instance/map.js +3 -0
- package/actual/instance/match-all.js +3 -0
- package/actual/instance/pad-end.js +3 -0
- package/actual/instance/pad-start.js +3 -0
- package/actual/instance/reduce-right.js +3 -0
- package/actual/instance/reduce.js +3 -0
- package/actual/instance/repeat.js +3 -0
- package/actual/instance/replace-all.js +3 -0
- package/actual/instance/reverse.js +3 -0
- package/actual/instance/slice.js +3 -0
- package/actual/instance/some.js +3 -0
- package/actual/instance/sort.js +3 -0
- package/actual/instance/splice.js +3 -0
- package/actual/instance/starts-with.js +3 -0
- package/actual/instance/trim-end.js +3 -0
- package/actual/instance/trim-left.js +3 -0
- package/actual/instance/trim-right.js +3 -0
- package/actual/instance/trim-start.js +3 -0
- package/actual/instance/trim.js +3 -0
- package/actual/instance/values.js +3 -0
- package/actual/is-iterable.js +3 -0
- package/actual/json/index.js +3 -0
- package/actual/json/stringify.js +3 -0
- package/actual/json/to-string-tag.js +3 -0
- package/actual/map/index.js +3 -0
- package/actual/math/acosh.js +3 -0
- package/actual/math/asinh.js +3 -0
- package/actual/math/atanh.js +3 -0
- package/actual/math/cbrt.js +3 -0
- package/actual/math/clz32.js +3 -0
- package/actual/math/cosh.js +3 -0
- package/actual/math/expm1.js +3 -0
- package/actual/math/fround.js +3 -0
- package/actual/math/hypot.js +3 -0
- package/actual/math/imul.js +3 -0
- package/actual/math/index.js +3 -0
- package/actual/math/log10.js +3 -0
- package/actual/math/log1p.js +3 -0
- package/actual/math/log2.js +3 -0
- package/actual/math/sign.js +3 -0
- package/actual/math/sinh.js +3 -0
- package/actual/math/tanh.js +3 -0
- package/actual/math/to-string-tag.js +3 -0
- package/actual/math/trunc.js +3 -0
- package/actual/number/constructor.js +3 -0
- package/actual/number/epsilon.js +3 -0
- package/actual/number/index.js +3 -0
- package/actual/number/is-finite.js +3 -0
- package/actual/number/is-integer.js +3 -0
- package/actual/number/is-nan.js +3 -0
- package/actual/number/is-safe-integer.js +3 -0
- package/actual/number/max-safe-integer.js +3 -0
- package/actual/number/min-safe-integer.js +3 -0
- package/actual/number/parse-float.js +3 -0
- package/actual/number/parse-int.js +3 -0
- package/actual/number/to-exponential.js +3 -0
- package/actual/number/to-fixed.js +3 -0
- package/actual/number/to-precision.js +3 -0
- package/actual/number/virtual/index.js +3 -0
- package/actual/number/virtual/to-exponential.js +3 -0
- package/actual/number/virtual/to-fixed.js +3 -0
- package/actual/number/virtual/to-precision.js +3 -0
- package/actual/object/assign.js +3 -0
- package/actual/object/create.js +3 -0
- package/actual/object/define-getter.js +3 -0
- package/actual/object/define-properties.js +3 -0
- package/actual/object/define-property.js +3 -0
- package/actual/object/define-setter.js +3 -0
- package/actual/object/entries.js +3 -0
- package/actual/object/freeze.js +3 -0
- package/actual/object/from-entries.js +3 -0
- package/actual/object/get-own-property-descriptor.js +3 -0
- package/actual/object/get-own-property-descriptors.js +3 -0
- package/actual/object/get-own-property-names.js +3 -0
- package/actual/object/get-own-property-symbols.js +3 -0
- package/actual/object/get-prototype-of.js +3 -0
- package/actual/object/has-own.js +3 -0
- package/actual/object/index.js +3 -0
- package/actual/object/is-extensible.js +3 -0
- package/actual/object/is-frozen.js +3 -0
- package/actual/object/is-sealed.js +3 -0
- package/actual/object/is.js +3 -0
- package/actual/object/keys.js +3 -0
- package/actual/object/lookup-getter.js +3 -0
- package/actual/object/lookup-setter.js +3 -0
- package/actual/object/prevent-extensions.js +3 -0
- package/actual/object/seal.js +3 -0
- package/actual/object/set-prototype-of.js +3 -0
- package/actual/object/to-string.js +3 -0
- package/actual/object/values.js +3 -0
- package/actual/parse-float.js +3 -0
- package/actual/parse-int.js +3 -0
- package/actual/promise/all-settled.js +3 -0
- package/actual/promise/any.js +3 -0
- package/actual/promise/finally.js +3 -0
- package/actual/promise/index.js +3 -0
- package/actual/queue-microtask.js +3 -0
- package/actual/reflect/apply.js +3 -0
- package/actual/reflect/construct.js +3 -0
- package/actual/reflect/define-property.js +3 -0
- package/actual/reflect/delete-property.js +3 -0
- package/actual/reflect/get-own-property-descriptor.js +3 -0
- package/actual/reflect/get-prototype-of.js +3 -0
- package/actual/reflect/get.js +3 -0
- package/actual/reflect/has.js +3 -0
- package/actual/reflect/index.js +3 -0
- package/actual/reflect/is-extensible.js +3 -0
- package/actual/reflect/own-keys.js +3 -0
- package/actual/reflect/prevent-extensions.js +3 -0
- package/actual/reflect/set-prototype-of.js +3 -0
- package/actual/reflect/set.js +3 -0
- package/actual/reflect/to-string-tag.js +3 -0
- package/actual/regexp/constructor.js +3 -0
- package/actual/regexp/dot-all.js +3 -0
- package/actual/regexp/flags.js +3 -0
- package/actual/regexp/index.js +3 -0
- package/actual/regexp/match.js +3 -0
- package/actual/regexp/replace.js +3 -0
- package/actual/regexp/search.js +3 -0
- package/actual/regexp/split.js +3 -0
- package/actual/regexp/sticky.js +3 -0
- package/actual/regexp/test.js +3 -0
- package/actual/regexp/to-string.js +3 -0
- package/actual/set/index.js +3 -0
- package/actual/set-immediate.js +3 -0
- package/actual/set-interval.js +3 -0
- package/actual/set-timeout.js +3 -0
- package/actual/string/anchor.js +3 -0
- package/actual/string/at.js +3 -0
- package/actual/string/big.js +3 -0
- package/actual/string/blink.js +3 -0
- package/actual/string/bold.js +3 -0
- package/actual/string/code-point-at.js +3 -0
- package/actual/string/ends-with.js +3 -0
- package/actual/string/fixed.js +3 -0
- package/actual/string/fontcolor.js +3 -0
- package/actual/string/fontsize.js +3 -0
- package/actual/string/from-code-point.js +3 -0
- package/actual/string/includes.js +3 -0
- package/actual/string/index.js +3 -0
- package/actual/string/italics.js +3 -0
- package/actual/string/iterator.js +3 -0
- package/actual/string/link.js +3 -0
- package/actual/string/match-all.js +3 -0
- package/actual/string/match.js +3 -0
- package/actual/string/pad-end.js +3 -0
- package/actual/string/pad-start.js +3 -0
- package/actual/string/raw.js +3 -0
- package/actual/string/repeat.js +3 -0
- package/actual/string/replace-all.js +3 -0
- package/actual/string/replace.js +3 -0
- package/actual/string/search.js +3 -0
- package/actual/string/small.js +3 -0
- package/actual/string/split.js +3 -0
- package/actual/string/starts-with.js +3 -0
- package/actual/string/strike.js +3 -0
- package/actual/string/sub.js +3 -0
- package/actual/string/substr.js +3 -0
- package/actual/string/sup.js +3 -0
- package/actual/string/trim-end.js +3 -0
- package/actual/string/trim-left.js +3 -0
- package/actual/string/trim-right.js +3 -0
- package/actual/string/trim-start.js +3 -0
- package/actual/string/trim.js +3 -0
- package/actual/string/virtual/anchor.js +3 -0
- package/actual/string/virtual/at.js +3 -0
- package/actual/string/virtual/big.js +3 -0
- package/actual/string/virtual/blink.js +3 -0
- package/actual/string/virtual/bold.js +3 -0
- package/actual/string/virtual/code-point-at.js +3 -0
- package/actual/string/virtual/ends-with.js +3 -0
- package/actual/string/virtual/fixed.js +3 -0
- package/actual/string/virtual/fontcolor.js +3 -0
- package/actual/string/virtual/fontsize.js +3 -0
- package/actual/string/virtual/includes.js +3 -0
- package/actual/string/virtual/index.js +3 -0
- package/actual/string/virtual/italics.js +3 -0
- package/actual/string/virtual/iterator.js +3 -0
- package/actual/string/virtual/link.js +3 -0
- package/actual/string/virtual/match-all.js +3 -0
- package/actual/string/virtual/pad-end.js +3 -0
- package/actual/string/virtual/pad-start.js +3 -0
- package/actual/string/virtual/repeat.js +3 -0
- package/actual/string/virtual/replace-all.js +3 -0
- package/actual/string/virtual/small.js +3 -0
- package/actual/string/virtual/starts-with.js +3 -0
- package/actual/string/virtual/strike.js +3 -0
- package/actual/string/virtual/sub.js +3 -0
- package/actual/string/virtual/substr.js +3 -0
- package/actual/string/virtual/sup.js +3 -0
- package/actual/string/virtual/trim-end.js +3 -0
- package/actual/string/virtual/trim-left.js +3 -0
- package/actual/string/virtual/trim-right.js +3 -0
- package/actual/string/virtual/trim-start.js +3 -0
- package/actual/string/virtual/trim.js +3 -0
- package/actual/structured-clone.js +3 -0
- package/actual/symbol/async-iterator.js +3 -0
- package/actual/symbol/description.js +3 -0
- package/actual/symbol/for.js +3 -0
- package/actual/symbol/has-instance.js +3 -0
- package/actual/symbol/index.js +3 -0
- package/actual/symbol/is-concat-spreadable.js +3 -0
- package/actual/symbol/iterator.js +3 -0
- package/actual/symbol/key-for.js +3 -0
- package/actual/symbol/match-all.js +3 -0
- package/actual/symbol/match.js +3 -0
- package/actual/symbol/replace.js +3 -0
- package/actual/symbol/search.js +3 -0
- package/actual/symbol/species.js +3 -0
- package/actual/symbol/split.js +3 -0
- package/actual/symbol/to-primitive.js +3 -0
- package/actual/symbol/to-string-tag.js +3 -0
- package/actual/symbol/unscopables.js +3 -0
- package/actual/typed-array/at.js +3 -0
- package/actual/typed-array/copy-within.js +3 -0
- package/actual/typed-array/entries.js +3 -0
- package/actual/typed-array/every.js +3 -0
- package/actual/typed-array/fill.js +3 -0
- package/actual/typed-array/filter.js +3 -0
- package/actual/typed-array/find-index.js +3 -0
- package/actual/typed-array/find-last-index.js +1 -0
- package/actual/typed-array/find-last.js +1 -0
- package/actual/typed-array/find.js +3 -0
- package/actual/typed-array/float32-array.js +4 -0
- package/actual/typed-array/float64-array.js +4 -0
- package/actual/typed-array/for-each.js +3 -0
- package/actual/typed-array/from.js +3 -0
- package/actual/typed-array/includes.js +3 -0
- package/actual/typed-array/index-of.js +3 -0
- package/actual/typed-array/index.js +5 -0
- package/actual/typed-array/int16-array.js +4 -0
- package/actual/typed-array/int32-array.js +4 -0
- package/actual/typed-array/int8-array.js +4 -0
- package/actual/typed-array/iterator.js +3 -0
- package/actual/typed-array/join.js +3 -0
- package/actual/typed-array/keys.js +3 -0
- package/actual/typed-array/last-index-of.js +3 -0
- package/actual/typed-array/map.js +3 -0
- package/actual/typed-array/methods.js +5 -0
- package/actual/typed-array/of.js +3 -0
- package/actual/typed-array/reduce-right.js +3 -0
- package/actual/typed-array/reduce.js +3 -0
- package/actual/typed-array/reverse.js +3 -0
- package/actual/typed-array/set.js +3 -0
- package/actual/typed-array/slice.js +3 -0
- package/actual/typed-array/some.js +3 -0
- package/actual/typed-array/sort.js +3 -0
- package/actual/typed-array/subarray.js +3 -0
- package/actual/typed-array/to-locale-string.js +3 -0
- package/actual/typed-array/to-string.js +3 -0
- package/actual/typed-array/uint16-array.js +4 -0
- package/actual/typed-array/uint32-array.js +4 -0
- package/actual/typed-array/uint8-array.js +4 -0
- package/actual/typed-array/uint8-clamped-array.js +4 -0
- package/actual/typed-array/values.js +3 -0
- package/actual/unescape.js +3 -0
- package/actual/url/index.js +3 -0
- package/actual/url/to-json.js +3 -0
- package/actual/url-search-params/index.js +3 -0
- package/actual/weak-map/index.js +3 -0
- package/actual/weak-set/index.js +3 -0
- package/es/aggregate-error.js +2 -0
- package/es/array-buffer/constructor.js +1 -0
- package/es/data-view/index.js +2 -0
- package/es/date/to-primitive.js +2 -3
- package/es/date/to-string.js +2 -4
- package/es/error/constructor.js +4 -0
- package/es/error/index.js +5 -0
- package/es/error/to-string.js +4 -0
- package/es/index.js +4 -0
- package/es/instance/at.js +6 -5
- package/es/instance/bind.js +3 -2
- package/es/instance/code-point-at.js +4 -3
- package/es/instance/concat.js +3 -2
- package/es/instance/copy-within.js +3 -2
- package/es/instance/ends-with.js +4 -3
- package/es/instance/entries.js +3 -2
- package/es/instance/every.js +3 -2
- package/es/instance/fill.js +3 -2
- package/es/instance/filter.js +3 -2
- package/es/instance/find-index.js +3 -2
- package/es/instance/find.js +3 -2
- package/es/instance/flags.js +2 -1
- package/es/instance/flat-map.js +3 -2
- package/es/instance/flat.js +3 -2
- package/es/instance/for-each.js +3 -2
- package/es/instance/includes.js +6 -5
- package/es/instance/index-of.js +3 -2
- package/es/instance/keys.js +3 -2
- package/es/instance/last-index-of.js +3 -2
- package/es/instance/map.js +3 -2
- package/es/instance/match-all.js +4 -3
- package/es/instance/pad-end.js +4 -3
- package/es/instance/pad-start.js +4 -3
- package/es/instance/reduce-right.js +3 -2
- package/es/instance/reduce.js +3 -2
- package/es/instance/repeat.js +4 -3
- package/es/instance/replace-all.js +4 -3
- package/es/instance/reverse.js +3 -2
- package/es/instance/slice.js +3 -2
- package/es/instance/some.js +3 -2
- package/es/instance/sort.js +3 -2
- package/es/instance/splice.js +3 -2
- package/es/instance/starts-with.js +4 -3
- package/es/instance/trim-end.js +4 -3
- package/es/instance/trim-left.js +4 -3
- package/es/instance/trim-right.js +4 -3
- package/es/instance/trim-start.js +4 -3
- package/es/instance/trim.js +4 -3
- package/es/instance/values.js +3 -2
- package/es/json/stringify.js +4 -3
- package/es/number/index.js +1 -0
- package/es/number/to-exponential.js +4 -0
- package/es/number/virtual/index.js +1 -0
- package/es/number/virtual/to-exponential.js +4 -0
- package/es/promise/all-settled.js +2 -1
- package/es/promise/any.js +2 -1
- package/es/regexp/flags.js +3 -4
- package/es/regexp/match.js +2 -1
- package/es/regexp/replace.js +2 -1
- package/es/regexp/search.js +2 -1
- package/es/regexp/split.js +2 -1
- package/es/regexp/test.js +2 -3
- package/es/regexp/to-string.js +2 -3
- package/es/string/iterator.js +2 -5
- package/es/typed-array/float32-array.js +2 -0
- package/es/typed-array/float64-array.js +2 -0
- package/es/typed-array/int16-array.js +2 -0
- package/es/typed-array/int32-array.js +2 -0
- package/es/typed-array/int8-array.js +2 -0
- package/es/typed-array/uint16-array.js +2 -0
- package/es/typed-array/uint32-array.js +2 -0
- package/es/typed-array/uint8-array.js +2 -0
- package/es/typed-array/uint8-clamped-array.js +2 -0
- package/features/aggregate-error.js +1 -1
- package/features/array/at.js +1 -1
- package/features/array/concat.js +1 -1
- package/features/array/copy-within.js +1 -1
- package/features/array/entries.js +1 -1
- package/features/array/every.js +1 -1
- package/features/array/fill.js +1 -1
- package/features/array/filter.js +1 -1
- package/features/array/find-index.js +1 -1
- package/features/array/find-last-index.js +2 -3
- package/features/array/find-last.js +2 -3
- package/features/array/find.js +1 -1
- package/features/array/flat-map.js +1 -1
- package/features/array/flat.js +1 -1
- package/features/array/for-each.js +1 -1
- package/features/array/from.js +1 -1
- package/features/array/group-by-to-map.js +3 -0
- package/features/array/group-by.js +2 -3
- package/features/array/includes.js +1 -1
- package/features/array/index-of.js +1 -1
- package/features/array/index.js +5 -5
- package/features/array/is-array.js +1 -1
- package/features/array/iterator.js +1 -1
- package/features/array/join.js +1 -1
- package/features/array/keys.js +1 -1
- package/features/array/last-index-of.js +1 -1
- package/features/array/map.js +1 -1
- package/features/array/of.js +1 -1
- package/features/array/reduce-right.js +1 -1
- package/features/array/reduce.js +1 -1
- package/features/array/reverse.js +1 -1
- package/features/array/slice.js +1 -1
- package/features/array/some.js +1 -1
- package/features/array/sort.js +1 -1
- package/features/array/splice.js +1 -1
- package/features/array/to-reversed.js +4 -0
- package/features/array/to-sorted.js +5 -0
- package/features/array/to-spliced.js +4 -0
- package/features/array/values.js +1 -1
- package/features/array/virtual/at.js +1 -1
- package/features/array/virtual/concat.js +1 -1
- package/features/array/virtual/copy-within.js +1 -1
- package/features/array/virtual/entries.js +1 -1
- package/features/array/virtual/every.js +1 -1
- package/features/array/virtual/fill.js +1 -1
- package/features/array/virtual/filter.js +1 -1
- package/features/array/virtual/find-index.js +1 -1
- package/features/array/virtual/find-last-index.js +2 -3
- package/features/array/virtual/find-last.js +2 -3
- package/features/array/virtual/find.js +1 -1
- package/features/array/virtual/flat-map.js +1 -1
- package/features/array/virtual/flat.js +1 -1
- package/features/array/virtual/for-each.js +1 -1
- package/features/array/virtual/group-by-to-map.js +3 -0
- package/features/array/virtual/group-by.js +2 -3
- package/features/array/virtual/includes.js +1 -1
- package/features/array/virtual/index-of.js +1 -1
- package/features/array/virtual/index.js +5 -5
- package/features/array/virtual/iterator.js +1 -1
- package/features/array/virtual/join.js +1 -1
- package/features/array/virtual/keys.js +1 -1
- package/features/array/virtual/last-index-of.js +1 -1
- package/features/array/virtual/map.js +1 -1
- package/features/array/virtual/reduce-right.js +1 -1
- package/features/array/virtual/reduce.js +1 -1
- package/features/array/virtual/reverse.js +1 -1
- package/features/array/virtual/slice.js +1 -1
- package/features/array/virtual/some.js +1 -1
- package/features/array/virtual/sort.js +1 -1
- package/features/array/virtual/splice.js +1 -1
- package/features/array/virtual/to-reversed.js +4 -0
- package/features/array/virtual/to-sorted.js +5 -0
- package/features/array/virtual/to-spliced.js +4 -0
- package/features/array/virtual/values.js +1 -1
- package/features/array/virtual/with.js +4 -0
- package/features/array/with.js +4 -0
- package/features/array-buffer/constructor.js +1 -1
- package/features/array-buffer/index.js +1 -1
- package/features/array-buffer/is-view.js +1 -1
- package/features/array-buffer/slice.js +1 -1
- package/features/clear-immediate.js +1 -1
- package/features/data-view/index.js +1 -1
- package/features/date/get-year.js +1 -1
- package/features/date/index.js +1 -1
- package/features/date/now.js +1 -1
- package/features/date/set-year.js +1 -1
- package/features/date/to-gmt-string.js +1 -1
- package/features/date/to-iso-string.js +1 -1
- package/features/date/to-json.js +1 -1
- package/features/date/to-primitive.js +1 -1
- package/features/date/to-string.js +1 -1
- package/features/dom-collections/for-each.js +1 -1
- package/features/dom-collections/index.js +1 -1
- package/features/dom-collections/iterator.js +1 -1
- package/features/dom-exception/constructor.js +3 -0
- package/features/dom-exception/index.js +3 -0
- package/features/dom-exception/to-string-tag.js +3 -0
- package/features/error/constructor.js +3 -0
- package/features/error/index.js +3 -0
- package/features/error/to-string.js +3 -0
- package/features/escape.js +1 -1
- package/features/function/bind.js +1 -1
- package/features/function/has-instance.js +1 -1
- package/features/function/index.js +4 -1
- package/features/function/is-callable.js +4 -0
- package/features/function/is-constructor.js +4 -0
- package/features/function/name.js +1 -1
- package/features/function/un-this.js +4 -0
- package/features/function/virtual/bind.js +1 -1
- package/features/function/virtual/index.js +2 -1
- package/features/function/virtual/un-this.js +4 -0
- package/features/get-iterator-method.js +1 -1
- package/features/get-iterator.js +1 -1
- package/features/global-this.js +1 -1
- package/features/index.js +22 -0
- package/features/instance/at.js +6 -5
- package/features/instance/bind.js +1 -1
- package/features/instance/code-point-at.js +1 -1
- package/features/instance/code-points.js +4 -3
- package/features/instance/concat.js +1 -1
- package/features/instance/copy-within.js +1 -1
- package/features/instance/ends-with.js +1 -1
- package/features/instance/entries.js +1 -1
- package/features/instance/every.js +1 -1
- package/features/instance/fill.js +1 -1
- package/features/instance/filter-out.js +3 -2
- package/features/instance/filter-reject.js +3 -2
- package/features/instance/filter.js +1 -1
- package/features/instance/find-index.js +1 -1
- package/features/instance/find-last-index.js +2 -7
- package/features/instance/find-last.js +2 -7
- package/features/instance/find.js +1 -1
- package/features/instance/flags.js +1 -1
- package/features/instance/flat-map.js +1 -1
- package/features/instance/flat.js +1 -1
- package/features/instance/for-each.js +1 -1
- package/features/instance/group-by-to-map.js +3 -0
- package/features/instance/group-by.js +2 -7
- package/features/instance/includes.js +1 -1
- package/features/instance/index-of.js +1 -1
- package/features/instance/keys.js +1 -1
- package/features/instance/last-index-of.js +1 -1
- package/features/instance/map.js +1 -1
- package/features/instance/match-all.js +1 -1
- package/features/instance/pad-end.js +1 -1
- package/features/instance/pad-start.js +1 -1
- package/features/instance/reduce-right.js +1 -1
- package/features/instance/reduce.js +1 -1
- package/features/instance/repeat.js +1 -1
- package/features/instance/replace-all.js +1 -1
- package/features/instance/reverse.js +1 -1
- package/features/instance/slice.js +1 -1
- package/features/instance/some.js +1 -1
- package/features/instance/sort.js +1 -1
- package/features/instance/splice.js +1 -1
- package/features/instance/starts-with.js +1 -1
- package/features/instance/to-reversed.js +9 -0
- package/features/instance/to-sorted.js +9 -0
- package/features/instance/to-spliced.js +9 -0
- package/features/instance/trim-end.js +1 -1
- package/features/instance/trim-left.js +1 -1
- package/features/instance/trim-right.js +1 -1
- package/features/instance/trim-start.js +1 -1
- package/features/instance/trim.js +1 -1
- package/features/instance/un-this.js +9 -0
- package/features/instance/unique-by.js +3 -2
- package/features/instance/values.js +1 -1
- package/features/instance/with.js +9 -0
- package/features/is-iterable.js +1 -1
- package/features/iterator/index.js +2 -0
- package/features/iterator/to-async.js +8 -0
- package/features/json/index.js +1 -1
- package/features/json/stringify.js +1 -1
- package/features/json/to-string-tag.js +1 -1
- package/features/map/from.js +3 -2
- package/features/map/group-by.js +2 -1
- package/features/map/index.js +1 -1
- package/features/map/key-by.js +2 -1
- package/features/map/of.js +3 -2
- package/features/math/acosh.js +1 -1
- package/features/math/asinh.js +1 -1
- package/features/math/atanh.js +1 -1
- package/features/math/cbrt.js +1 -1
- package/features/math/clz32.js +1 -1
- package/features/math/cosh.js +1 -1
- package/features/math/expm1.js +1 -1
- package/features/math/fround.js +1 -1
- package/features/math/hypot.js +1 -1
- package/features/math/imul.js +1 -1
- package/features/math/index.js +1 -1
- package/features/math/log10.js +1 -1
- package/features/math/log1p.js +1 -1
- package/features/math/log2.js +1 -1
- package/features/math/sign.js +1 -1
- package/features/math/sinh.js +1 -1
- package/features/math/tanh.js +1 -1
- package/features/math/to-string-tag.js +1 -1
- package/features/math/trunc.js +1 -1
- package/features/number/constructor.js +1 -1
- package/features/number/epsilon.js +1 -1
- package/features/number/index.js +1 -1
- package/features/number/is-finite.js +1 -1
- package/features/number/is-integer.js +1 -1
- package/features/number/is-nan.js +1 -1
- package/features/number/is-safe-integer.js +1 -1
- package/features/number/max-safe-integer.js +1 -1
- package/features/number/min-safe-integer.js +1 -1
- package/features/number/parse-float.js +1 -1
- package/features/number/parse-int.js +1 -1
- package/features/number/to-exponential.js +3 -0
- package/features/number/to-fixed.js +1 -1
- package/features/number/to-precision.js +1 -1
- package/features/number/virtual/index.js +1 -1
- package/features/number/virtual/to-exponential.js +3 -0
- package/features/number/virtual/to-fixed.js +1 -1
- package/features/number/virtual/to-precision.js +1 -1
- package/features/object/assign.js +1 -1
- package/features/object/create.js +1 -1
- package/features/object/define-getter.js +1 -1
- package/features/object/define-properties.js +1 -1
- package/features/object/define-property.js +1 -1
- package/features/object/define-setter.js +1 -1
- package/features/object/entries.js +1 -1
- package/features/object/freeze.js +1 -1
- package/features/object/from-entries.js +1 -1
- package/features/object/get-own-property-descriptor.js +1 -1
- package/features/object/get-own-property-descriptors.js +1 -1
- package/features/object/get-own-property-names.js +1 -1
- package/features/object/get-own-property-symbols.js +1 -1
- package/features/object/get-prototype-of.js +1 -1
- package/features/object/has-own.js +1 -1
- package/features/object/index.js +1 -1
- package/features/object/is-extensible.js +1 -1
- package/features/object/is-frozen.js +1 -1
- package/features/object/is-sealed.js +1 -1
- package/features/object/is.js +1 -1
- package/features/object/keys.js +1 -1
- package/features/object/lookup-getter.js +1 -1
- package/features/object/lookup-setter.js +1 -1
- package/features/object/prevent-extensions.js +1 -1
- package/features/object/seal.js +1 -1
- package/features/object/set-prototype-of.js +1 -1
- package/features/object/to-string.js +1 -1
- package/features/object/values.js +1 -1
- package/features/parse-float.js +1 -1
- package/features/parse-int.js +1 -1
- package/features/promise/all-settled.js +1 -1
- package/features/promise/any.js +1 -1
- package/features/promise/finally.js +1 -1
- package/features/promise/index.js +1 -1
- package/features/promise/try.js +2 -1
- package/features/queue-microtask.js +1 -1
- package/features/reflect/apply.js +1 -1
- package/features/reflect/construct.js +1 -1
- package/features/reflect/define-property.js +1 -1
- package/features/reflect/delete-property.js +1 -1
- package/features/reflect/get-own-property-descriptor.js +1 -1
- package/features/reflect/get-prototype-of.js +1 -1
- package/features/reflect/get.js +1 -1
- package/features/reflect/has.js +1 -1
- package/features/reflect/index.js +1 -1
- package/features/reflect/is-extensible.js +1 -1
- package/features/reflect/own-keys.js +1 -1
- package/features/reflect/prevent-extensions.js +1 -1
- package/features/reflect/set-prototype-of.js +1 -1
- package/features/reflect/set.js +1 -1
- package/features/regexp/constructor.js +1 -1
- package/features/regexp/dot-all.js +1 -1
- package/features/regexp/flags.js +1 -1
- package/features/regexp/index.js +1 -1
- package/features/regexp/match.js +1 -1
- package/features/regexp/replace.js +1 -1
- package/features/regexp/search.js +1 -1
- package/features/regexp/split.js +1 -1
- package/features/regexp/sticky.js +1 -1
- package/features/regexp/test.js +1 -1
- package/features/regexp/to-string.js +1 -1
- package/features/set/from.js +3 -2
- package/features/set/index.js +1 -1
- package/features/set/of.js +3 -2
- package/features/set-immediate.js +1 -1
- package/features/set-interval.js +1 -1
- package/features/set-timeout.js +1 -1
- package/features/string/anchor.js +1 -1
- package/features/string/at.js +1 -1
- package/features/string/big.js +1 -1
- package/features/string/blink.js +1 -1
- package/features/string/bold.js +1 -1
- package/features/string/code-point-at.js +1 -1
- package/features/string/cooked.js +4 -0
- package/features/string/ends-with.js +1 -1
- package/features/string/fixed.js +1 -1
- package/features/string/fontcolor.js +1 -1
- package/features/string/fontsize.js +1 -1
- package/features/string/from-code-point.js +1 -1
- package/features/string/includes.js +1 -1
- package/features/string/index.js +3 -3
- package/features/string/italics.js +1 -1
- package/features/string/iterator.js +1 -1
- package/features/string/link.js +1 -1
- package/features/string/match-all.js +1 -1
- package/features/string/match.js +1 -1
- package/features/string/pad-end.js +1 -1
- package/features/string/pad-start.js +1 -1
- package/features/string/raw.js +1 -1
- package/features/string/repeat.js +1 -1
- package/features/string/replace-all.js +1 -1
- package/features/string/replace.js +1 -1
- package/features/string/search.js +1 -1
- package/features/string/small.js +1 -1
- package/features/string/split.js +1 -1
- package/features/string/starts-with.js +1 -1
- package/features/string/strike.js +1 -1
- package/features/string/sub.js +1 -1
- package/features/string/substr.js +1 -1
- package/features/string/sup.js +1 -1
- package/features/string/trim-end.js +1 -1
- package/features/string/trim-left.js +1 -1
- package/features/string/trim-right.js +1 -1
- package/features/string/trim-start.js +1 -1
- package/features/string/trim.js +1 -1
- package/features/string/virtual/anchor.js +1 -1
- package/features/string/virtual/at.js +1 -1
- package/features/string/virtual/big.js +1 -1
- package/features/string/virtual/blink.js +1 -1
- package/features/string/virtual/bold.js +1 -1
- package/features/string/virtual/code-point-at.js +1 -1
- package/features/string/virtual/ends-with.js +1 -1
- package/features/string/virtual/fixed.js +1 -1
- package/features/string/virtual/fontcolor.js +1 -1
- package/features/string/virtual/fontsize.js +1 -1
- package/features/string/virtual/includes.js +1 -1
- package/features/string/virtual/index.js +1 -1
- package/features/string/virtual/italics.js +1 -1
- package/features/string/virtual/iterator.js +1 -1
- package/features/string/virtual/link.js +1 -1
- package/features/string/virtual/match-all.js +1 -1
- package/features/string/virtual/pad-end.js +1 -1
- package/features/string/virtual/pad-start.js +1 -1
- package/features/string/virtual/repeat.js +1 -1
- package/features/string/virtual/replace-all.js +1 -1
- package/features/string/virtual/small.js +1 -1
- package/features/string/virtual/starts-with.js +1 -1
- package/features/string/virtual/strike.js +1 -1
- package/features/string/virtual/sub.js +1 -1
- package/features/string/virtual/substr.js +1 -1
- package/features/string/virtual/sup.js +1 -1
- package/features/string/virtual/trim-end.js +1 -1
- package/features/string/virtual/trim-left.js +1 -1
- package/features/string/virtual/trim-right.js +1 -1
- package/features/string/virtual/trim-start.js +1 -1
- package/features/string/virtual/trim.js +1 -1
- package/features/structured-clone.js +3 -0
- package/features/symbol/async-iterator.js +1 -1
- package/features/symbol/for.js +1 -1
- package/features/symbol/has-instance.js +1 -1
- package/features/symbol/index.js +1 -1
- package/features/symbol/is-concat-spreadable.js +1 -1
- package/features/symbol/iterator.js +1 -1
- package/features/symbol/key-for.js +1 -1
- package/features/symbol/match-all.js +1 -1
- package/features/symbol/match.js +1 -1
- package/features/symbol/replace.js +1 -1
- package/features/symbol/search.js +1 -1
- package/features/symbol/species.js +1 -1
- package/features/symbol/split.js +1 -1
- package/features/symbol/to-primitive.js +1 -1
- package/features/symbol/to-string-tag.js +1 -1
- package/features/symbol/unscopables.js +1 -1
- package/features/typed-array/at.js +1 -1
- package/features/typed-array/copy-within.js +1 -1
- package/features/typed-array/entries.js +1 -1
- package/features/typed-array/every.js +1 -1
- package/features/typed-array/fill.js +1 -1
- package/features/typed-array/filter.js +1 -1
- package/features/typed-array/find-index.js +1 -1
- package/features/typed-array/find-last-index.js +3 -1
- package/features/typed-array/find-last.js +3 -1
- package/features/typed-array/find.js +1 -1
- package/features/typed-array/float32-array.js +1 -1
- package/features/typed-array/float64-array.js +1 -1
- package/features/typed-array/for-each.js +1 -1
- package/features/typed-array/from.js +1 -1
- package/features/typed-array/includes.js +1 -1
- package/features/typed-array/index-of.js +1 -1
- package/features/typed-array/index.js +5 -3
- package/features/typed-array/int16-array.js +1 -1
- package/features/typed-array/int32-array.js +1 -1
- package/features/typed-array/int8-array.js +1 -1
- package/features/typed-array/iterator.js +1 -1
- package/features/typed-array/join.js +1 -1
- package/features/typed-array/keys.js +1 -1
- package/features/typed-array/last-index-of.js +1 -1
- package/features/typed-array/map.js +1 -1
- package/features/typed-array/methods.js +5 -3
- package/features/typed-array/of.js +1 -1
- package/features/typed-array/reduce-right.js +1 -1
- package/features/typed-array/reduce.js +1 -1
- package/features/typed-array/reverse.js +1 -1
- package/features/typed-array/set.js +1 -1
- package/features/typed-array/slice.js +1 -1
- package/features/typed-array/some.js +1 -1
- package/features/typed-array/sort.js +1 -1
- package/features/typed-array/subarray.js +1 -1
- package/features/typed-array/to-locale-string.js +1 -1
- package/features/typed-array/to-reversed.js +1 -0
- package/features/typed-array/to-sorted.js +2 -0
- package/features/typed-array/to-spliced.js +1 -0
- package/features/typed-array/to-string.js +1 -1
- package/features/typed-array/uint16-array.js +1 -1
- package/features/typed-array/uint32-array.js +1 -1
- package/features/typed-array/uint8-array.js +1 -1
- package/features/typed-array/uint8-clamped-array.js +1 -1
- package/features/typed-array/values.js +1 -1
- package/features/typed-array/with.js +1 -0
- package/features/unescape.js +1 -1
- package/features/url/index.js +1 -1
- package/features/url/to-json.js +1 -1
- package/features/url-search-params/index.js +1 -1
- package/features/weak-map/from.js +3 -2
- package/features/weak-map/index.js +1 -1
- package/features/weak-map/of.js +3 -2
- package/features/weak-set/from.js +3 -2
- package/features/weak-set/index.js +1 -1
- package/features/weak-set/of.js +3 -2
- package/internals/a-callable.js +3 -0
- package/internals/a-constructor.js +3 -0
- package/internals/a-possible-prototype.js +5 -1
- package/internals/an-instance.js +8 -3
- package/internals/an-object.js +4 -0
- package/internals/array-buffer-native.js +1 -1
- package/internals/array-buffer-non-extensible.js +10 -0
- package/internals/array-buffer-view-core.js +14 -8
- package/internals/array-buffer.js +29 -16
- package/internals/array-from-async.js +1 -1
- package/internals/array-from-constructor-and-list.js +3 -1
- package/internals/array-from.js +6 -2
- package/internals/array-group-by.js +7 -3
- package/internals/array-iteration-from-last.js +1 -1
- package/internals/array-iteration.js +5 -4
- package/internals/array-last-index-of.js +2 -1
- package/internals/array-reduce.js +3 -0
- package/internals/array-slice-simple.js +17 -0
- package/internals/array-slice.js +3 -0
- package/internals/array-sort.js +10 -11
- package/internals/array-species-constructor.js +2 -0
- package/internals/array-to-reversed.js +11 -0
- package/internals/array-to-spliced.js +35 -0
- package/internals/array-unique-by.js +13 -9
- package/internals/array-with.js +18 -0
- package/internals/async-from-sync-iterator.js +7 -4
- package/internals/async-iterator-create-proxy.js +7 -4
- package/internals/async-iterator-iteration.js +5 -2
- package/internals/classof-raw.js +5 -2
- package/internals/classof.js +3 -0
- package/internals/clear-error-stack.js +13 -0
- package/internals/collection-add-all.js +3 -2
- package/internals/collection-delete-all.js +3 -2
- package/internals/collection-from.js +7 -4
- package/internals/collection-of.js +3 -4
- package/internals/collection-strong.js +11 -9
- package/internals/collection-weak.js +10 -6
- package/internals/collection.js +8 -7
- package/internals/composite-key.js +9 -2
- package/internals/copy-constructor-properties.js +4 -2
- package/internals/create-html.js +3 -1
- package/internals/create-iterator-constructor.js +2 -2
- package/internals/date-to-iso-string.js +23 -13
- package/internals/date-to-primitive.js +3 -0
- package/internals/define-iterator.js +2 -1
- package/internals/dom-exception-constants.js +27 -0
- package/internals/engine-v8-version.js +10 -4
- package/internals/entry-unbind.js +3 -5
- package/internals/error-stack-installable.js +10 -0
- package/internals/error-to-string.js +30 -0
- package/internals/export.js +1 -1
- package/internals/fix-regexp-well-known-symbol-logic.js +5 -3
- package/internals/flatten-into-array.js +4 -1
- package/internals/function-apply.js +9 -0
- package/internals/function-bind-context.js +5 -17
- package/internals/function-bind.js +15 -9
- package/internals/function-call.js +5 -0
- package/internals/function-uncurry-this.js +12 -0
- package/internals/get-async-iterator.js +2 -1
- package/internals/get-iterator.js +7 -2
- package/internals/get-map-iterator.js +3 -1
- package/internals/get-set-iterator.js +3 -1
- package/internals/get-substitution.js +10 -7
- package/internals/has-own-property.js +3 -2
- package/internals/host-report-errors.js +1 -1
- package/internals/ie8-dom-define.js +1 -1
- package/internals/ieee754.js +24 -6
- package/internals/indexed-object.js +5 -2
- package/internals/inspect-source.js +3 -2
- package/internals/internal-metadata.js +4 -7
- package/internals/internal-state.js +9 -7
- package/internals/is-callable.js +1 -1
- package/internals/is-constructor.js +17 -6
- package/internals/is-iterable.js +4 -2
- package/internals/is-object.js +1 -1
- package/internals/is-symbol.js +6 -2
- package/internals/iterate.js +14 -6
- package/internals/iterator-close.js +2 -1
- package/internals/iterator-create-proxy.js +7 -4
- package/internals/map-emplace.js +8 -3
- package/internals/map-upsert.js +12 -4
- package/internals/math-log10.js +7 -0
- package/internals/math-scale.js +9 -12
- package/internals/microtask.js +6 -4
- package/internals/native-url.js +1 -0
- package/internals/normalize-string-argument.js +5 -0
- package/internals/not-a-regexp.js +3 -0
- package/internals/number-parse-float.js +8 -6
- package/internals/number-parse-int.js +3 -1
- package/internals/numeric-range-iterator.js +5 -1
- package/internals/object-assign.js +5 -2
- package/internals/object-create.js +2 -2
- package/internals/object-define-properties.js +5 -2
- package/internals/object-define-property.js +24 -1
- package/internals/object-get-own-property-descriptor.js +2 -1
- package/internals/object-get-own-property-names-external.js +4 -4
- package/internals/object-get-prototype-of.js +2 -1
- package/internals/object-is-extensible.js +16 -0
- package/internals/object-is-prototype-of.js +3 -0
- package/internals/object-keys-internal.js +5 -2
- package/internals/object-set-prototype-of.js +4 -3
- package/internals/object-to-array.js +7 -3
- package/internals/ordinary-to-primitive.js +7 -3
- package/internals/own-keys.js +4 -1
- package/internals/queue.js +23 -0
- package/internals/reflect-metadata.js +9 -3
- package/internals/regexp-exec-abstract.js +6 -2
- package/internals/regexp-exec.js +20 -16
- package/internals/regexp-sticky-helpers.js +14 -2
- package/internals/require-object-coercible.js +4 -0
- package/internals/set-global.js +4 -2
- package/internals/set-to-string-tag.js +4 -3
- package/internals/shared.js +2 -2
- package/internals/string-multibyte.js +13 -4
- package/internals/string-pad.js +6 -3
- package/internals/string-punycode-to-ascii.js +34 -20
- package/internals/string-repeat.js +3 -0
- package/internals/string-trim.js +4 -2
- package/internals/task.js +11 -11
- package/internals/this-number-value.js +2 -4
- package/internals/to-index.js +3 -0
- package/internals/to-object.js +3 -0
- package/internals/to-offset.js +3 -0
- package/internals/to-positive-integer.js +3 -0
- package/internals/to-primitive.js +4 -1
- package/internals/to-property-key.js +1 -1
- package/internals/to-string.js +3 -0
- package/internals/try-node-require.js +8 -0
- package/internals/try-to-string.js +4 -0
- package/internals/typed-array-constructor.js +10 -6
- package/internals/typed-array-from.js +4 -3
- package/internals/uid.js +4 -1
- package/internals/v8-prototype-define-bug.js +12 -0
- package/internals/well-known-symbol.js +5 -1
- package/internals/wrap-error-constructor-with-cause.js +60 -0
- package/modules/es.aggregate-error.cause.js +21 -0
- package/modules/es.aggregate-error.js +21 -9
- package/modules/es.array-buffer.slice.js +8 -4
- package/modules/es.array.concat.js +2 -0
- package/modules/es.array.index-of.js +7 -5
- package/modules/es.array.iterator.js +9 -1
- package/modules/es.array.join.js +3 -2
- package/modules/es.array.of.js +3 -1
- package/modules/es.array.reduce.js +2 -1
- package/modules/es.array.reverse.js +3 -2
- package/modules/es.array.slice.js +4 -2
- package/modules/es.array.sort.js +7 -4
- package/modules/es.array.splice.js +2 -0
- package/modules/es.date.get-year.js +3 -2
- package/modules/es.date.now.js +6 -1
- package/modules/es.date.set-year.js +6 -4
- package/modules/es.date.to-primitive.js +2 -1
- package/modules/es.date.to-string.js +5 -4
- package/modules/es.error.cause.js +56 -0
- package/modules/es.error.to-string.js +10 -0
- package/modules/es.escape.js +12 -5
- package/modules/es.function.has-instance.js +3 -2
- package/modules/es.function.name.js +5 -3
- package/modules/es.json.stringify.js +18 -7
- package/modules/es.map.js +1 -1
- package/modules/es.math.log10.js +2 -6
- package/modules/es.number.constructor.js +12 -7
- package/modules/es.number.to-exponential.js +100 -0
- package/modules/es.number.to-fixed.js +20 -13
- package/modules/es.number.to-precision.js +6 -5
- package/modules/es.object.define-properties.js +3 -2
- package/modules/es.object.define-property.js +4 -3
- package/modules/es.object.is-extensible.js +4 -10
- package/modules/es.object.is-frozen.js +6 -2
- package/modules/es.object.is-sealed.js +6 -2
- package/modules/es.promise.all-settled.js +2 -2
- package/modules/es.promise.any.js +5 -4
- package/modules/es.promise.finally.js +1 -0
- package/modules/es.promise.js +67 -59
- package/modules/es.reflect.apply.js +4 -10
- package/modules/es.reflect.construct.js +10 -5
- package/modules/es.reflect.get.js +2 -1
- package/modules/es.reflect.is-extensible.js +2 -4
- package/modules/es.reflect.set.js +2 -1
- package/modules/es.regexp.constructor.js +26 -16
- package/modules/es.regexp.dot-all.js +5 -1
- package/modules/es.regexp.flags.js +4 -2
- package/modules/es.regexp.sticky.js +7 -3
- package/modules/es.regexp.test.js +7 -3
- package/modules/es.regexp.to-string.js +8 -5
- package/modules/es.set.js +1 -1
- package/modules/es.string.at-alternative.js +5 -2
- package/modules/es.string.ends-with.js +6 -4
- package/modules/es.string.from-code-point.js +7 -4
- package/modules/es.string.includes.js +8 -2
- package/modules/es.string.match-all.js +25 -19
- package/modules/es.string.match.js +2 -1
- package/modules/es.string.raw.js +6 -6
- package/modules/es.string.replace-all.js +19 -13
- package/modules/es.string.replace.js +19 -12
- package/modules/es.string.search.js +2 -1
- package/modules/es.string.split.js +23 -16
- package/modules/es.string.starts-with.js +6 -4
- package/modules/es.string.substr.js +3 -2
- package/modules/es.symbol.description.js +20 -12
- package/modules/es.symbol.js +36 -21
- package/modules/es.typed-array.copy-within.js +4 -2
- package/modules/es.typed-array.fill.js +9 -2
- package/modules/es.typed-array.iterator.js +21 -13
- package/modules/es.typed-array.join.js +3 -3
- package/modules/es.typed-array.last-index-of.js +3 -2
- package/modules/es.typed-array.reduce-right.js +2 -1
- package/modules/es.typed-array.reduce.js +2 -1
- package/modules/es.typed-array.set.js +22 -5
- package/modules/es.typed-array.slice.js +2 -2
- package/modules/es.typed-array.sort.js +13 -28
- package/modules/es.typed-array.to-locale-string.js +7 -2
- package/modules/es.typed-array.to-string.js +3 -2
- package/modules/es.unescape.js +14 -9
- package/modules/es.weak-map.js +20 -20
- package/modules/esnext.array.group-by-to-map.js +38 -0
- package/modules/esnext.array.group-by.js +1 -2
- package/modules/esnext.array.is-template-object.js +1 -1
- package/modules/esnext.array.to-reversed.js +18 -0
- package/modules/esnext.array.to-sorted.js +25 -0
- package/modules/esnext.array.to-spliced.js +20 -0
- package/modules/esnext.array.with.js +15 -0
- package/modules/esnext.async-iterator.as-indexed-pairs.js +2 -1
- package/modules/esnext.async-iterator.constructor.js +1 -1
- package/modules/esnext.async-iterator.drop.js +2 -1
- package/modules/esnext.async-iterator.filter.js +2 -1
- package/modules/esnext.async-iterator.flat-map.js +3 -2
- package/modules/esnext.async-iterator.from.js +4 -4
- package/modules/esnext.async-iterator.map.js +2 -1
- package/modules/esnext.async-iterator.reduce.js +4 -1
- package/modules/esnext.async-iterator.take.js +4 -2
- package/modules/esnext.composite-key.js +5 -1
- package/modules/esnext.composite-symbol.js +3 -2
- package/modules/esnext.function.is-callable.js +29 -0
- package/modules/esnext.function.is-constructor.js +8 -0
- package/modules/esnext.function.un-this.js +11 -0
- package/modules/esnext.iterator.as-indexed-pairs.js +2 -1
- package/modules/esnext.iterator.constructor.js +1 -1
- package/modules/esnext.iterator.drop.js +4 -2
- package/modules/esnext.iterator.filter.js +2 -1
- package/modules/esnext.iterator.flat-map.js +7 -3
- package/modules/esnext.iterator.from.js +4 -4
- package/modules/esnext.iterator.map.js +2 -1
- package/modules/esnext.iterator.reduce.js +3 -0
- package/modules/esnext.iterator.take.js +2 -1
- package/modules/esnext.iterator.to-async.js +10 -0
- package/modules/esnext.map.delete-all.js +2 -4
- package/modules/esnext.map.emplace.js +2 -2
- package/modules/esnext.map.every.js +1 -1
- package/modules/esnext.map.filter.js +5 -4
- package/modules/esnext.map.find-key.js +1 -1
- package/modules/esnext.map.find.js +1 -1
- package/modules/esnext.map.group-by.js +6 -2
- package/modules/esnext.map.includes.js +1 -1
- package/modules/esnext.map.key-by.js +2 -1
- package/modules/esnext.map.map-keys.js +5 -4
- package/modules/esnext.map.map-values.js +5 -4
- package/modules/esnext.map.merge.js +1 -1
- package/modules/esnext.map.reduce.js +3 -0
- package/modules/esnext.map.some.js +1 -1
- package/modules/esnext.map.update-or-insert.js +2 -2
- package/modules/esnext.map.update.js +11 -4
- package/modules/esnext.map.upsert.js +2 -2
- package/modules/esnext.math.seeded-prng.js +3 -1
- package/modules/esnext.number.from-string.js +12 -3
- package/modules/esnext.observable.js +82 -62
- package/modules/esnext.reflect.get-metadata-keys.js +5 -10
- package/modules/esnext.set.add-all.js +2 -4
- package/modules/esnext.set.delete-all.js +2 -4
- package/modules/esnext.set.difference.js +3 -2
- package/modules/esnext.set.every.js +1 -1
- package/modules/esnext.set.filter.js +4 -3
- package/modules/esnext.set.find.js +1 -1
- package/modules/esnext.set.intersection.js +3 -2
- package/modules/esnext.set.is-disjoint-from.js +3 -2
- package/modules/esnext.set.is-subset-of.js +3 -2
- package/modules/esnext.set.is-superset-of.js +3 -2
- package/modules/esnext.set.join.js +9 -4
- package/modules/esnext.set.map.js +5 -4
- package/modules/esnext.set.reduce.js +3 -0
- package/modules/esnext.set.some.js +1 -1
- package/modules/esnext.set.symmetric-difference.js +3 -2
- package/modules/esnext.string.at.js +10 -3
- package/modules/esnext.string.cooked.js +30 -0
- package/modules/esnext.typed-array.from-async.js +1 -1
- package/modules/esnext.typed-array.group-by.js +1 -0
- package/modules/esnext.typed-array.to-reversed.js +13 -0
- package/modules/esnext.typed-array.to-sorted.js +19 -0
- package/modules/esnext.typed-array.to-spliced.js +15 -0
- package/modules/esnext.typed-array.unique-by.js +4 -2
- package/modules/esnext.typed-array.with.js +13 -0
- package/modules/esnext.weak-map.delete-all.js +2 -4
- package/modules/esnext.weak-map.emplace.js +2 -2
- package/modules/esnext.weak-map.upsert.js +2 -2
- package/modules/esnext.weak-set.add-all.js +2 -4
- package/modules/esnext.weak-set.delete-all.js +2 -4
- package/modules/web.dom-exception.constructor.js +141 -0
- package/modules/web.dom-exception.stack.js +58 -0
- package/modules/web.dom-exception.to-string-tag.js +6 -0
- package/modules/web.structured-clone.js +461 -0
- package/modules/web.timers.js +5 -4
- package/modules/web.url-search-params.js +123 -105
- package/modules/web.url.js +662 -626
- package/modules/web.url.to-json.js +2 -1
- package/package.json +2 -2
- package/postinstall.js +1 -1
- package/proposals/accessible-object-hasownproperty.js +0 -1
- package/proposals/array-flat-map.js +5 -0
- package/proposals/array-from-async.js +1 -0
- package/proposals/array-grouping.js +2 -0
- package/proposals/array-includes.js +3 -0
- package/proposals/array-is-template-object.js +1 -0
- package/proposals/array-last.js +1 -0
- package/proposals/async-iteration.js +2 -0
- package/proposals/change-array-by-copy.js +9 -0
- package/proposals/collection-methods.js +1 -0
- package/proposals/collection-of-from.js +1 -0
- package/proposals/efficient-64-bit-arithmetic.js +1 -0
- package/proposals/error-cause.js +3 -0
- package/proposals/function-is-callable-is-constructor.js +3 -0
- package/proposals/function-un-this.js +2 -0
- package/proposals/global-this.js +1 -0
- package/proposals/index.js +1 -0
- package/proposals/iterator-helpers.js +2 -0
- package/proposals/keys-composition.js +1 -0
- package/proposals/map-update-or-insert.js +1 -0
- package/proposals/map-upsert.js +1 -1
- package/proposals/math-extensions.js +1 -0
- package/proposals/math-signbit.js +1 -0
- package/proposals/number-from-string.js +1 -0
- package/proposals/object-from-entries.js +2 -0
- package/proposals/object-getownpropertydescriptors.js +2 -0
- package/proposals/object-iteration.js +1 -0
- package/proposals/object-values-entries.js +3 -0
- package/proposals/observable.js +1 -0
- package/proposals/promise-all-settled.js +1 -1
- package/proposals/promise-any.js +1 -0
- package/proposals/promise-finally.js +2 -0
- package/proposals/promise-try.js +1 -0
- package/proposals/reflect-metadata.js +1 -0
- package/proposals/regexp-dotall-flag.js +5 -0
- package/proposals/regexp-named-groups.js +4 -0
- package/proposals/relative-indexing-method.js +0 -1
- package/proposals/seeded-random.js +1 -0
- package/proposals/set-methods.js +1 -0
- package/proposals/string-at.js +1 -0
- package/proposals/string-code-points.js +1 -0
- package/proposals/string-cooked.js +2 -0
- package/proposals/string-left-right-trim.js +3 -0
- package/proposals/string-match-all.js +1 -1
- package/proposals/string-padding.js +3 -0
- package/proposals/string-replace-all.js +1 -0
- package/proposals/symbol-description.js +2 -0
- package/proposals/url.js +1 -0
- package/proposals/well-formed-stringify.js +2 -0
- package/stable/dom-exception/constructor.js +6 -0
- package/stable/dom-exception/index.js +7 -0
- package/stable/dom-exception/to-string-tag.js +3 -0
- package/stable/error/constructor.js +3 -0
- package/stable/error/index.js +3 -0
- package/stable/error/to-string.js +3 -0
- package/stable/index.js +8 -0
- package/stable/instance/entries.js +6 -4
- package/stable/instance/for-each.js +6 -4
- package/stable/instance/keys.js +6 -4
- package/stable/instance/values.js +6 -4
- package/stable/number/to-exponential.js +3 -0
- package/stable/number/virtual/to-exponential.js +3 -0
- package/stable/structured-clone.js +13 -0
- package/stable/symbol/description.js +3 -1
- package/stage/0.js +2 -0
- package/stage/1.js +1 -2
- package/stage/2.js +2 -0
- package/stage/3.js +1 -0
- package/stage/4.js +2 -0
- package/web/dom-exception.js +7 -0
- package/web/index.js +4 -0
- package/web/structured-clone.js +8 -0
package/modules/es.array.sort.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
var $ = require('../internals/export');
|
|
3
|
+
var uncurryThis = require('../internals/function-uncurry-this');
|
|
3
4
|
var aCallable = require('../internals/a-callable');
|
|
4
5
|
var toObject = require('../internals/to-object');
|
|
5
6
|
var lengthOfArrayLike = require('../internals/length-of-array-like');
|
|
@@ -13,7 +14,8 @@ var V8 = require('../internals/engine-v8-version');
|
|
|
13
14
|
var WEBKIT = require('../internals/engine-webkit-version');
|
|
14
15
|
|
|
15
16
|
var test = [];
|
|
16
|
-
var
|
|
17
|
+
var un$Sort = uncurryThis(test.sort);
|
|
18
|
+
var push = uncurryThis(test.push);
|
|
17
19
|
|
|
18
20
|
// IE8-
|
|
19
21
|
var FAILS_ON_UNDEFINED = fails(function () {
|
|
@@ -80,17 +82,18 @@ $({ target: 'Array', proto: true, forced: FORCED }, {
|
|
|
80
82
|
|
|
81
83
|
var array = toObject(this);
|
|
82
84
|
|
|
83
|
-
if (STABLE_SORT) return comparefn === undefined ?
|
|
85
|
+
if (STABLE_SORT) return comparefn === undefined ? un$Sort(array) : un$Sort(array, comparefn);
|
|
84
86
|
|
|
85
87
|
var items = [];
|
|
86
88
|
var arrayLength = lengthOfArrayLike(array);
|
|
87
89
|
var itemsLength, index;
|
|
88
90
|
|
|
89
91
|
for (index = 0; index < arrayLength; index++) {
|
|
90
|
-
if (index in array)
|
|
92
|
+
if (index in array) push(items, array[index]);
|
|
91
93
|
}
|
|
92
94
|
|
|
93
|
-
|
|
95
|
+
internalSort(items, getSortCompare(comparefn));
|
|
96
|
+
|
|
94
97
|
itemsLength = items.length;
|
|
95
98
|
index = 0;
|
|
96
99
|
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
var $ = require('../internals/export');
|
|
3
|
+
var global = require('../internals/global');
|
|
3
4
|
var toAbsoluteIndex = require('../internals/to-absolute-index');
|
|
4
5
|
var toIntegerOrInfinity = require('../internals/to-integer-or-infinity');
|
|
5
6
|
var lengthOfArrayLike = require('../internals/length-of-array-like');
|
|
@@ -10,6 +11,7 @@ var arrayMethodHasSpeciesSupport = require('../internals/array-method-has-specie
|
|
|
10
11
|
|
|
11
12
|
var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('splice');
|
|
12
13
|
|
|
14
|
+
var TypeError = global.TypeError;
|
|
13
15
|
var max = Math.max;
|
|
14
16
|
var min = Math.min;
|
|
15
17
|
var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF;
|
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
var $ = require('../internals/export');
|
|
3
|
+
var uncurryThis = require('../internals/function-uncurry-this');
|
|
3
4
|
var fails = require('../internals/fails');
|
|
4
5
|
|
|
5
6
|
var FORCED = fails(function () {
|
|
6
7
|
return new Date(16e11).getYear() !== 120;
|
|
7
8
|
});
|
|
8
9
|
|
|
9
|
-
var getFullYear = Date.prototype.getFullYear;
|
|
10
|
+
var getFullYear = uncurryThis(Date.prototype.getFullYear);
|
|
10
11
|
|
|
11
12
|
// `Date.prototype.getYear` method
|
|
12
13
|
// https://tc39.es/ecma262/#sec-date.prototype.getyear
|
|
13
14
|
$({ target: 'Date', proto: true, forced: FORCED }, {
|
|
14
15
|
getYear: function getYear() {
|
|
15
|
-
return getFullYear
|
|
16
|
+
return getFullYear(this) - 1900;
|
|
16
17
|
}
|
|
17
18
|
});
|
package/modules/es.date.now.js
CHANGED
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
var $ = require('../internals/export');
|
|
2
|
+
var global = require('../internals/global');
|
|
3
|
+
var uncurryThis = require('../internals/function-uncurry-this');
|
|
4
|
+
|
|
5
|
+
var Date = global.Date;
|
|
6
|
+
var getTime = uncurryThis(Date.prototype.getTime);
|
|
2
7
|
|
|
3
8
|
// `Date.now` method
|
|
4
9
|
// https://tc39.es/ecma262/#sec-date.now
|
|
5
10
|
$({ target: 'Date', stat: true }, {
|
|
6
11
|
now: function now() {
|
|
7
|
-
return new Date()
|
|
12
|
+
return getTime(new Date());
|
|
8
13
|
}
|
|
9
14
|
});
|
|
@@ -1,18 +1,20 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
var $ = require('../internals/export');
|
|
3
|
+
var uncurryThis = require('../internals/function-uncurry-this');
|
|
3
4
|
var toIntegerOrInfinity = require('../internals/to-integer-or-infinity');
|
|
4
5
|
|
|
5
|
-
var
|
|
6
|
-
var
|
|
6
|
+
var DatePrototype = Date.prototype;
|
|
7
|
+
var getTime = uncurryThis(DatePrototype.getTime);
|
|
8
|
+
var setFullYear = uncurryThis(DatePrototype.setFullYear);
|
|
7
9
|
|
|
8
10
|
// `Date.prototype.setYear` method
|
|
9
11
|
// https://tc39.es/ecma262/#sec-date.prototype.setyear
|
|
10
12
|
$({ target: 'Date', proto: true }, {
|
|
11
13
|
setYear: function setYear(year) {
|
|
12
14
|
// validate
|
|
13
|
-
getTime
|
|
15
|
+
getTime(this);
|
|
14
16
|
var yi = toIntegerOrInfinity(year);
|
|
15
17
|
var yyyy = 0 <= yi && yi <= 99 ? yi + 1900 : yi;
|
|
16
|
-
return setFullYear
|
|
18
|
+
return setFullYear(this, yyyy);
|
|
17
19
|
}
|
|
18
20
|
});
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
var hasOwn = require('../internals/has-own-property');
|
|
1
2
|
var redefine = require('../internals/redefine');
|
|
2
3
|
var dateToPrimitive = require('../internals/date-to-primitive');
|
|
3
4
|
var wellKnownSymbol = require('../internals/well-known-symbol');
|
|
@@ -7,6 +8,6 @@ var DatePrototype = Date.prototype;
|
|
|
7
8
|
|
|
8
9
|
// `Date.prototype[@@toPrimitive]` method
|
|
9
10
|
// https://tc39.es/ecma262/#sec-date.prototype-@@toprimitive
|
|
10
|
-
if (!(TO_PRIMITIVE
|
|
11
|
+
if (!hasOwn(DatePrototype, TO_PRIMITIVE)) {
|
|
11
12
|
redefine(DatePrototype, TO_PRIMITIVE, dateToPrimitive);
|
|
12
13
|
}
|
|
@@ -1,17 +1,18 @@
|
|
|
1
|
+
var uncurryThis = require('../internals/function-uncurry-this');
|
|
1
2
|
var redefine = require('../internals/redefine');
|
|
2
3
|
|
|
3
4
|
var DatePrototype = Date.prototype;
|
|
4
5
|
var INVALID_DATE = 'Invalid Date';
|
|
5
6
|
var TO_STRING = 'toString';
|
|
6
|
-
var
|
|
7
|
-
var getTime = DatePrototype.getTime;
|
|
7
|
+
var un$DateToString = uncurryThis(DatePrototype[TO_STRING]);
|
|
8
|
+
var getTime = uncurryThis(DatePrototype.getTime);
|
|
8
9
|
|
|
9
10
|
// `Date.prototype.toString` method
|
|
10
11
|
// https://tc39.es/ecma262/#sec-date.prototype.tostring
|
|
11
12
|
if (String(new Date(NaN)) != INVALID_DATE) {
|
|
12
13
|
redefine(DatePrototype, TO_STRING, function toString() {
|
|
13
|
-
var value = getTime
|
|
14
|
+
var value = getTime(this);
|
|
14
15
|
// eslint-disable-next-line no-self-compare -- NaN check
|
|
15
|
-
return value === value ?
|
|
16
|
+
return value === value ? un$DateToString(this) : INVALID_DATE;
|
|
16
17
|
});
|
|
17
18
|
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/* eslint-disable no-unused-vars -- required for functions `.length` */
|
|
2
|
+
var $ = require('../internals/export');
|
|
3
|
+
var global = require('../internals/global');
|
|
4
|
+
var apply = require('../internals/function-apply');
|
|
5
|
+
var wrapErrorConstructorWithCause = require('../internals/wrap-error-constructor-with-cause');
|
|
6
|
+
|
|
7
|
+
var WEB_ASSEMBLY = 'WebAssembly';
|
|
8
|
+
var WebAssembly = global[WEB_ASSEMBLY];
|
|
9
|
+
|
|
10
|
+
var FORCED = Error('e', { cause: 7 }).cause !== 7;
|
|
11
|
+
|
|
12
|
+
var exportGlobalErrorCauseWrapper = function (ERROR_NAME, wrapper) {
|
|
13
|
+
var O = {};
|
|
14
|
+
O[ERROR_NAME] = wrapErrorConstructorWithCause(ERROR_NAME, wrapper, FORCED);
|
|
15
|
+
$({ global: true, forced: FORCED }, O);
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
var exportWebAssemblyErrorCauseWrapper = function (ERROR_NAME, wrapper) {
|
|
19
|
+
if (WebAssembly && WebAssembly[ERROR_NAME]) {
|
|
20
|
+
var O = {};
|
|
21
|
+
O[ERROR_NAME] = wrapErrorConstructorWithCause(WEB_ASSEMBLY + '.' + ERROR_NAME, wrapper, FORCED);
|
|
22
|
+
$({ target: WEB_ASSEMBLY, stat: true, forced: FORCED }, O);
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
// https://github.com/tc39/proposal-error-cause
|
|
27
|
+
exportGlobalErrorCauseWrapper('Error', function (init) {
|
|
28
|
+
return function Error(message) { return apply(init, this, arguments); };
|
|
29
|
+
});
|
|
30
|
+
exportGlobalErrorCauseWrapper('EvalError', function (init) {
|
|
31
|
+
return function EvalError(message) { return apply(init, this, arguments); };
|
|
32
|
+
});
|
|
33
|
+
exportGlobalErrorCauseWrapper('RangeError', function (init) {
|
|
34
|
+
return function RangeError(message) { return apply(init, this, arguments); };
|
|
35
|
+
});
|
|
36
|
+
exportGlobalErrorCauseWrapper('ReferenceError', function (init) {
|
|
37
|
+
return function ReferenceError(message) { return apply(init, this, arguments); };
|
|
38
|
+
});
|
|
39
|
+
exportGlobalErrorCauseWrapper('SyntaxError', function (init) {
|
|
40
|
+
return function SyntaxError(message) { return apply(init, this, arguments); };
|
|
41
|
+
});
|
|
42
|
+
exportGlobalErrorCauseWrapper('TypeError', function (init) {
|
|
43
|
+
return function TypeError(message) { return apply(init, this, arguments); };
|
|
44
|
+
});
|
|
45
|
+
exportGlobalErrorCauseWrapper('URIError', function (init) {
|
|
46
|
+
return function URIError(message) { return apply(init, this, arguments); };
|
|
47
|
+
});
|
|
48
|
+
exportWebAssemblyErrorCauseWrapper('CompileError', function (init) {
|
|
49
|
+
return function CompileError(message) { return apply(init, this, arguments); };
|
|
50
|
+
});
|
|
51
|
+
exportWebAssemblyErrorCauseWrapper('LinkError', function (init) {
|
|
52
|
+
return function LinkError(message) { return apply(init, this, arguments); };
|
|
53
|
+
});
|
|
54
|
+
exportWebAssemblyErrorCauseWrapper('RuntimeError', function (init) {
|
|
55
|
+
return function RuntimeError(message) { return apply(init, this, arguments); };
|
|
56
|
+
});
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
var redefine = require('../internals/redefine');
|
|
2
|
+
var errorToString = require('../internals/error-to-string');
|
|
3
|
+
|
|
4
|
+
var ErrorPrototype = Error.prototype;
|
|
5
|
+
|
|
6
|
+
// `Error.prototype.toString` method fix
|
|
7
|
+
// https://tc39.es/ecma262/#sec-error.prototype.tostring
|
|
8
|
+
if (ErrorPrototype.toString !== errorToString) {
|
|
9
|
+
redefine(ErrorPrototype, 'toString', errorToString);
|
|
10
|
+
}
|
package/modules/es.escape.js
CHANGED
|
@@ -1,11 +1,18 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
var $ = require('../internals/export');
|
|
3
|
+
var uncurryThis = require('../internals/function-uncurry-this');
|
|
3
4
|
var toString = require('../internals/to-string');
|
|
4
5
|
|
|
6
|
+
var charAt = uncurryThis(''.charAt);
|
|
7
|
+
var charCodeAt = uncurryThis(''.charCodeAt);
|
|
8
|
+
var exec = uncurryThis(/./.exec);
|
|
9
|
+
var numberToString = uncurryThis(1.0.toString);
|
|
10
|
+
var toUpperCase = uncurryThis(''.toUpperCase);
|
|
11
|
+
|
|
5
12
|
var raw = /[\w*+\-./@]/;
|
|
6
13
|
|
|
7
14
|
var hex = function (code, length) {
|
|
8
|
-
var result = code
|
|
15
|
+
var result = numberToString(code, 16);
|
|
9
16
|
while (result.length < length) result = '0' + result;
|
|
10
17
|
return result;
|
|
11
18
|
};
|
|
@@ -20,15 +27,15 @@ $({ global: true }, {
|
|
|
20
27
|
var index = 0;
|
|
21
28
|
var chr, code;
|
|
22
29
|
while (index < length) {
|
|
23
|
-
chr =
|
|
24
|
-
if (raw
|
|
30
|
+
chr = charAt(str, index++);
|
|
31
|
+
if (exec(raw, chr)) {
|
|
25
32
|
result += chr;
|
|
26
33
|
} else {
|
|
27
|
-
code =
|
|
34
|
+
code = charCodeAt(chr, 0);
|
|
28
35
|
if (code < 256) {
|
|
29
36
|
result += '%' + hex(code, 2);
|
|
30
37
|
} else {
|
|
31
|
-
result += '%u' + hex(code, 4)
|
|
38
|
+
result += '%u' + toUpperCase(hex(code, 4));
|
|
32
39
|
}
|
|
33
40
|
}
|
|
34
41
|
} return result;
|
|
@@ -13,9 +13,10 @@ var FunctionPrototype = Function.prototype;
|
|
|
13
13
|
if (!(HAS_INSTANCE in FunctionPrototype)) {
|
|
14
14
|
definePropertyModule.f(FunctionPrototype, HAS_INSTANCE, { value: function (O) {
|
|
15
15
|
if (!isCallable(this) || !isObject(O)) return false;
|
|
16
|
-
|
|
16
|
+
var P = this.prototype;
|
|
17
|
+
if (!isObject(P)) return O instanceof this;
|
|
17
18
|
// for environment w/o native `@@hasInstance` logic enough `instanceof`, but add this:
|
|
18
|
-
while (O = getPrototypeOf(O)) if (
|
|
19
|
+
while (O = getPrototypeOf(O)) if (P === O) return true;
|
|
19
20
|
return false;
|
|
20
21
|
} });
|
|
21
22
|
}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
var DESCRIPTORS = require('../internals/descriptors');
|
|
2
2
|
var FUNCTION_NAME_EXISTS = require('../internals/function-name').EXISTS;
|
|
3
|
+
var uncurryThis = require('../internals/function-uncurry-this');
|
|
3
4
|
var defineProperty = require('../internals/object-define-property').f;
|
|
4
5
|
|
|
5
6
|
var FunctionPrototype = Function.prototype;
|
|
6
|
-
var
|
|
7
|
-
var nameRE =
|
|
7
|
+
var functionToString = uncurryThis(FunctionPrototype.toString);
|
|
8
|
+
var nameRE = /function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/;
|
|
9
|
+
var regExpExec = uncurryThis(nameRE.exec);
|
|
8
10
|
var NAME = 'name';
|
|
9
11
|
|
|
10
12
|
// Function instances `.name` property
|
|
@@ -14,7 +16,7 @@ if (DESCRIPTORS && !FUNCTION_NAME_EXISTS) {
|
|
|
14
16
|
configurable: true,
|
|
15
17
|
get: function () {
|
|
16
18
|
try {
|
|
17
|
-
return
|
|
19
|
+
return regExpExec(nameRE, functionToString(this))[1];
|
|
18
20
|
} catch (error) {
|
|
19
21
|
return '';
|
|
20
22
|
}
|
|
@@ -1,17 +1,27 @@
|
|
|
1
1
|
var $ = require('../internals/export');
|
|
2
|
+
var global = require('../internals/global');
|
|
2
3
|
var getBuiltIn = require('../internals/get-built-in');
|
|
4
|
+
var apply = require('../internals/function-apply');
|
|
5
|
+
var uncurryThis = require('../internals/function-uncurry-this');
|
|
3
6
|
var fails = require('../internals/fails');
|
|
4
7
|
|
|
8
|
+
var Array = global.Array;
|
|
5
9
|
var $stringify = getBuiltIn('JSON', 'stringify');
|
|
6
|
-
var
|
|
10
|
+
var exec = uncurryThis(/./.exec);
|
|
11
|
+
var charAt = uncurryThis(''.charAt);
|
|
12
|
+
var charCodeAt = uncurryThis(''.charCodeAt);
|
|
13
|
+
var replace = uncurryThis(''.replace);
|
|
14
|
+
var numberToString = uncurryThis(1.0.toString);
|
|
15
|
+
|
|
16
|
+
var tester = /[\uD800-\uDFFF]/g;
|
|
7
17
|
var low = /^[\uD800-\uDBFF]$/;
|
|
8
18
|
var hi = /^[\uDC00-\uDFFF]$/;
|
|
9
19
|
|
|
10
20
|
var fix = function (match, offset, string) {
|
|
11
|
-
var prev =
|
|
12
|
-
var next =
|
|
13
|
-
if ((low
|
|
14
|
-
return '\\u' +
|
|
21
|
+
var prev = charAt(string, offset - 1);
|
|
22
|
+
var next = charAt(string, offset + 1);
|
|
23
|
+
if ((exec(low, match) && !exec(hi, next)) || (exec(hi, match) && !exec(low, prev))) {
|
|
24
|
+
return '\\u' + numberToString(charCodeAt(match, 0), 16);
|
|
15
25
|
} return match;
|
|
16
26
|
};
|
|
17
27
|
|
|
@@ -27,8 +37,9 @@ if ($stringify) {
|
|
|
27
37
|
$({ target: 'JSON', stat: true, forced: FORCED }, {
|
|
28
38
|
// eslint-disable-next-line no-unused-vars -- required for `.length`
|
|
29
39
|
stringify: function stringify(it, replacer, space) {
|
|
30
|
-
var
|
|
31
|
-
|
|
40
|
+
for (var i = 0, l = arguments.length, args = Array(l); i < l; i++) args[i] = arguments[i];
|
|
41
|
+
var result = apply($stringify, null, args);
|
|
42
|
+
return typeof result == 'string' ? replace(result, tester, fix) : result;
|
|
32
43
|
}
|
|
33
44
|
});
|
|
34
45
|
}
|
package/modules/es.map.js
CHANGED
|
@@ -4,6 +4,6 @@ var collectionStrong = require('../internals/collection-strong');
|
|
|
4
4
|
|
|
5
5
|
// `Map` constructor
|
|
6
6
|
// https://tc39.es/ecma262/#sec-map-objects
|
|
7
|
-
|
|
7
|
+
collection('Map', function (init) {
|
|
8
8
|
return function Map() { return init(this, arguments.length ? arguments[0] : undefined); };
|
|
9
9
|
}, collectionStrong);
|
package/modules/es.math.log10.js
CHANGED
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
var $ = require('../internals/export');
|
|
2
|
-
|
|
3
|
-
var log = Math.log;
|
|
4
|
-
var LOG10E = Math.LOG10E;
|
|
2
|
+
var log10 = require('../internals/math-log10');
|
|
5
3
|
|
|
6
4
|
// `Math.log10` method
|
|
7
5
|
// https://tc39.es/ecma262/#sec-math.log10
|
|
8
6
|
$({ target: 'Math', stat: true }, {
|
|
9
|
-
log10:
|
|
10
|
-
return log(x) * LOG10E;
|
|
11
|
-
}
|
|
7
|
+
log10: log10
|
|
12
8
|
});
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
var DESCRIPTORS = require('../internals/descriptors');
|
|
3
3
|
var global = require('../internals/global');
|
|
4
|
+
var uncurryThis = require('../internals/function-uncurry-this');
|
|
4
5
|
var isForced = require('../internals/is-forced');
|
|
5
6
|
var redefine = require('../internals/redefine');
|
|
6
7
|
var hasOwn = require('../internals/has-own-property');
|
|
7
8
|
var inheritIfRequired = require('../internals/inherit-if-required');
|
|
9
|
+
var isPrototypeOf = require('../internals/object-is-prototype-of');
|
|
8
10
|
var isSymbol = require('../internals/is-symbol');
|
|
9
11
|
var toPrimitive = require('../internals/to-primitive');
|
|
10
12
|
var fails = require('../internals/fails');
|
|
@@ -17,12 +19,15 @@ var trim = require('../internals/string-trim').trim;
|
|
|
17
19
|
var NUMBER = 'Number';
|
|
18
20
|
var NativeNumber = global[NUMBER];
|
|
19
21
|
var NumberPrototype = NativeNumber.prototype;
|
|
22
|
+
var TypeError = global.TypeError;
|
|
23
|
+
var arraySlice = uncurryThis(''.slice);
|
|
24
|
+
var charCodeAt = uncurryThis(''.charCodeAt);
|
|
20
25
|
|
|
21
26
|
// `ToNumeric` abstract operation
|
|
22
27
|
// https://tc39.es/ecma262/#sec-tonumeric
|
|
23
28
|
var toNumeric = function (value) {
|
|
24
29
|
var primValue = toPrimitive(value, 'number');
|
|
25
|
-
return typeof primValue
|
|
30
|
+
return typeof primValue == 'bigint' ? primValue : toNumber(primValue);
|
|
26
31
|
};
|
|
27
32
|
|
|
28
33
|
// `ToNumber` abstract operation
|
|
@@ -33,20 +38,20 @@ var toNumber = function (argument) {
|
|
|
33
38
|
if (isSymbol(it)) throw TypeError('Cannot convert a Symbol value to a number');
|
|
34
39
|
if (typeof it == 'string' && it.length > 2) {
|
|
35
40
|
it = trim(it);
|
|
36
|
-
first =
|
|
41
|
+
first = charCodeAt(it, 0);
|
|
37
42
|
if (first === 43 || first === 45) {
|
|
38
|
-
third =
|
|
43
|
+
third = charCodeAt(it, 2);
|
|
39
44
|
if (third === 88 || third === 120) return NaN; // Number('+0x1') should be NaN, old V8 fix
|
|
40
45
|
} else if (first === 48) {
|
|
41
|
-
switch (
|
|
46
|
+
switch (charCodeAt(it, 1)) {
|
|
42
47
|
case 66: case 98: radix = 2; maxCode = 49; break; // fast equal of /^0b[01]+$/i
|
|
43
48
|
case 79: case 111: radix = 8; maxCode = 55; break; // fast equal of /^0o[0-7]+$/i
|
|
44
49
|
default: return +it;
|
|
45
50
|
}
|
|
46
|
-
digits = it
|
|
51
|
+
digits = arraySlice(it, 2);
|
|
47
52
|
length = digits.length;
|
|
48
53
|
for (index = 0; index < length; index++) {
|
|
49
|
-
code =
|
|
54
|
+
code = charCodeAt(digits, index);
|
|
50
55
|
// parseInt parses a string to a first unavailable symbol
|
|
51
56
|
// but ToNumber should return NaN if a string contains unavailable symbols
|
|
52
57
|
if (code < 48 || code > maxCode) return NaN;
|
|
@@ -62,7 +67,7 @@ if (isForced(NUMBER, !NativeNumber(' 0o1') || !NativeNumber('0b1') || NativeNumb
|
|
|
62
67
|
var n = arguments.length < 1 ? 0 : NativeNumber(toNumeric(value));
|
|
63
68
|
var dummy = this;
|
|
64
69
|
// check on 1..constructor(foo) case
|
|
65
|
-
return dummy
|
|
70
|
+
return isPrototypeOf(NumberPrototype, dummy) && fails(function () { thisNumberValue(dummy); })
|
|
66
71
|
? inheritIfRequired(Object(n), dummy, NumberWrapper) : n;
|
|
67
72
|
};
|
|
68
73
|
for (var keys = DESCRIPTORS ? getOwnPropertyNames(NativeNumber) : (
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
var $ = require('../internals/export');
|
|
3
|
+
var global = require('../internals/global');
|
|
4
|
+
var uncurryThis = require('../internals/function-uncurry-this');
|
|
5
|
+
var toIntegerOrInfinity = require('../internals/to-integer-or-infinity');
|
|
6
|
+
var thisNumberValue = require('../internals/this-number-value');
|
|
7
|
+
var $repeat = require('../internals/string-repeat');
|
|
8
|
+
var log10 = require('../internals/math-log10');
|
|
9
|
+
var fails = require('../internals/fails');
|
|
10
|
+
|
|
11
|
+
var RangeError = global.RangeError;
|
|
12
|
+
var String = global.String;
|
|
13
|
+
var isFinite = global.isFinite;
|
|
14
|
+
var abs = Math.abs;
|
|
15
|
+
var floor = Math.floor;
|
|
16
|
+
var pow = Math.pow;
|
|
17
|
+
var round = Math.round;
|
|
18
|
+
var un$ToExponential = uncurryThis(1.0.toExponential);
|
|
19
|
+
var repeat = uncurryThis($repeat);
|
|
20
|
+
var stringSlice = uncurryThis(''.slice);
|
|
21
|
+
|
|
22
|
+
// Edge 17-
|
|
23
|
+
var ROUNDS_PROPERLY = un$ToExponential(-6.9e-11, 4) === '-6.9000e-11'
|
|
24
|
+
// IE11- && Edge 14-
|
|
25
|
+
&& un$ToExponential(1.255, 2) === '1.25e+0'
|
|
26
|
+
// FF86-, V8 ~ Chrome 49-50
|
|
27
|
+
&& un$ToExponential(12345, 3) === '1.235e+4'
|
|
28
|
+
// FF86-, V8 ~ Chrome 49-50
|
|
29
|
+
&& un$ToExponential(25, 0) === '3e+1';
|
|
30
|
+
|
|
31
|
+
// IE8-
|
|
32
|
+
var THROWS_ON_INFINITY_FRACTION = fails(function () {
|
|
33
|
+
un$ToExponential(1, Infinity);
|
|
34
|
+
}) && fails(function () {
|
|
35
|
+
un$ToExponential(1, -Infinity);
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
// Safari <11 && FF <50
|
|
39
|
+
var PROPER_NON_FINITE_THIS_CHECK = !fails(function () {
|
|
40
|
+
un$ToExponential(Infinity, Infinity);
|
|
41
|
+
}) && !fails(function () {
|
|
42
|
+
un$ToExponential(NaN, Infinity);
|
|
43
|
+
});
|
|
44
|
+
|
|
45
|
+
var FORCED = !ROUNDS_PROPERLY || !THROWS_ON_INFINITY_FRACTION || !PROPER_NON_FINITE_THIS_CHECK;
|
|
46
|
+
|
|
47
|
+
// `Number.prototype.toExponential` method
|
|
48
|
+
// https://tc39.es/ecma262/#sec-number.prototype.toexponential
|
|
49
|
+
$({ target: 'Number', proto: true, forced: FORCED }, {
|
|
50
|
+
toExponential: function toExponential(fractionDigits) {
|
|
51
|
+
var x = thisNumberValue(this);
|
|
52
|
+
if (fractionDigits === undefined) return un$ToExponential(x);
|
|
53
|
+
var f = toIntegerOrInfinity(fractionDigits);
|
|
54
|
+
if (!isFinite(x)) return String(x);
|
|
55
|
+
// TODO: ES2018 increased the maximum number of fraction digits to 100, need to improve the implementation
|
|
56
|
+
if (f < 0 || f > 20) throw RangeError('Incorrect fraction digits');
|
|
57
|
+
if (ROUNDS_PROPERLY) return un$ToExponential(x, f);
|
|
58
|
+
var s = '';
|
|
59
|
+
var m = '';
|
|
60
|
+
var e = 0;
|
|
61
|
+
var c = '';
|
|
62
|
+
var d = '';
|
|
63
|
+
if (x < 0) {
|
|
64
|
+
s = '-';
|
|
65
|
+
x = -x;
|
|
66
|
+
}
|
|
67
|
+
if (x === 0) {
|
|
68
|
+
e = 0;
|
|
69
|
+
m = repeat('0', f + 1);
|
|
70
|
+
} else {
|
|
71
|
+
// this block is based on https://gist.github.com/SheetJSDev/1100ad56b9f856c95299ed0e068eea08
|
|
72
|
+
// TODO: improve accuracy with big fraction digits
|
|
73
|
+
var l = log10(x);
|
|
74
|
+
e = floor(l);
|
|
75
|
+
var n = 0;
|
|
76
|
+
var w = pow(10, e - f);
|
|
77
|
+
n = round(x / w);
|
|
78
|
+
if (2 * x >= (2 * n + 1) * w) {
|
|
79
|
+
n += 1;
|
|
80
|
+
}
|
|
81
|
+
if (n >= pow(10, f + 1)) {
|
|
82
|
+
n /= 10;
|
|
83
|
+
e += 1;
|
|
84
|
+
}
|
|
85
|
+
m = String(n);
|
|
86
|
+
}
|
|
87
|
+
if (f !== 0) {
|
|
88
|
+
m = stringSlice(m, 0, 1) + '.' + stringSlice(m, 1);
|
|
89
|
+
}
|
|
90
|
+
if (e === 0) {
|
|
91
|
+
c = '+';
|
|
92
|
+
d = '0';
|
|
93
|
+
} else {
|
|
94
|
+
c = e > 0 ? '+' : '-';
|
|
95
|
+
d = String(abs(e));
|
|
96
|
+
}
|
|
97
|
+
m += 'e' + c + d;
|
|
98
|
+
return s + m;
|
|
99
|
+
}
|
|
100
|
+
});
|
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
var $ = require('../internals/export');
|
|
3
|
+
var global = require('../internals/global');
|
|
4
|
+
var uncurryThis = require('../internals/function-uncurry-this');
|
|
3
5
|
var toIntegerOrInfinity = require('../internals/to-integer-or-infinity');
|
|
4
6
|
var thisNumberValue = require('../internals/this-number-value');
|
|
5
|
-
var repeat = require('../internals/string-repeat');
|
|
7
|
+
var $repeat = require('../internals/string-repeat');
|
|
6
8
|
var fails = require('../internals/fails');
|
|
7
9
|
|
|
8
|
-
var
|
|
10
|
+
var RangeError = global.RangeError;
|
|
11
|
+
var String = global.String;
|
|
9
12
|
var floor = Math.floor;
|
|
13
|
+
var repeat = uncurryThis($repeat);
|
|
14
|
+
var stringSlice = uncurryThis(''.slice);
|
|
15
|
+
var un$ToFixed = uncurryThis(1.0.toFixed);
|
|
10
16
|
|
|
11
17
|
var pow = function (x, n, acc) {
|
|
12
18
|
return n === 0 ? acc : n % 2 === 1 ? pow(x, n - 1, acc * x) : pow(x * x, n / 2, acc);
|
|
@@ -51,19 +57,19 @@ var dataToString = function (data) {
|
|
|
51
57
|
while (--index >= 0) {
|
|
52
58
|
if (s !== '' || index === 0 || data[index] !== 0) {
|
|
53
59
|
var t = String(data[index]);
|
|
54
|
-
s = s === '' ? t : s + repeat
|
|
60
|
+
s = s === '' ? t : s + repeat('0', 7 - t.length) + t;
|
|
55
61
|
}
|
|
56
62
|
} return s;
|
|
57
63
|
};
|
|
58
64
|
|
|
59
|
-
var FORCED =
|
|
60
|
-
0.00008
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
) || !fails(function () {
|
|
65
|
+
var FORCED = fails(function () {
|
|
66
|
+
return un$ToFixed(0.00008, 3) !== '0.000' ||
|
|
67
|
+
un$ToFixed(0.9, 0) !== '1' ||
|
|
68
|
+
un$ToFixed(1.255, 2) !== '1.25' ||
|
|
69
|
+
un$ToFixed(1000000000000000128.0, 0) !== '1000000000000000128';
|
|
70
|
+
}) || !fails(function () {
|
|
65
71
|
// V8 ~ Android 4.3-
|
|
66
|
-
|
|
72
|
+
un$ToFixed({});
|
|
67
73
|
});
|
|
68
74
|
|
|
69
75
|
// `Number.prototype.toFixed` method
|
|
@@ -77,6 +83,7 @@ $({ target: 'Number', proto: true, forced: FORCED }, {
|
|
|
77
83
|
var result = '0';
|
|
78
84
|
var e, z, j, k;
|
|
79
85
|
|
|
86
|
+
// TODO: ES2018 increased the maximum number of fraction digits to 100, need to improve the implementation
|
|
80
87
|
if (fractDigits < 0 || fractDigits > 20) throw RangeError('Incorrect fraction digits');
|
|
81
88
|
// eslint-disable-next-line no-self-compare -- NaN check
|
|
82
89
|
if (number != number) return 'NaN';
|
|
@@ -110,14 +117,14 @@ $({ target: 'Number', proto: true, forced: FORCED }, {
|
|
|
110
117
|
} else {
|
|
111
118
|
multiply(data, 0, z);
|
|
112
119
|
multiply(data, 1 << -e, 0);
|
|
113
|
-
result = dataToString(data) + repeat
|
|
120
|
+
result = dataToString(data) + repeat('0', fractDigits);
|
|
114
121
|
}
|
|
115
122
|
}
|
|
116
123
|
if (fractDigits > 0) {
|
|
117
124
|
k = result.length;
|
|
118
125
|
result = sign + (k <= fractDigits
|
|
119
|
-
? '0.' + repeat
|
|
120
|
-
: result
|
|
126
|
+
? '0.' + repeat('0', fractDigits - k) + result
|
|
127
|
+
: stringSlice(result, 0, k - fractDigits) + '.' + stringSlice(result, k - fractDigits));
|
|
121
128
|
} else {
|
|
122
129
|
result = sign + result;
|
|
123
130
|
} return result;
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
var $ = require('../internals/export');
|
|
3
|
+
var uncurryThis = require('../internals/function-uncurry-this');
|
|
3
4
|
var fails = require('../internals/fails');
|
|
4
5
|
var thisNumberValue = require('../internals/this-number-value');
|
|
5
6
|
|
|
6
|
-
var
|
|
7
|
+
var un$ToPrecision = uncurryThis(1.0.toPrecision);
|
|
7
8
|
|
|
8
9
|
var FORCED = fails(function () {
|
|
9
10
|
// IE7-
|
|
10
|
-
return
|
|
11
|
+
return un$ToPrecision(1, undefined) !== '1';
|
|
11
12
|
}) || !fails(function () {
|
|
12
13
|
// V8 ~ Android 4.3-
|
|
13
|
-
|
|
14
|
+
un$ToPrecision({});
|
|
14
15
|
});
|
|
15
16
|
|
|
16
17
|
// `Number.prototype.toPrecision` method
|
|
@@ -18,7 +19,7 @@ var FORCED = fails(function () {
|
|
|
18
19
|
$({ target: 'Number', proto: true, forced: FORCED }, {
|
|
19
20
|
toPrecision: function toPrecision(precision) {
|
|
20
21
|
return precision === undefined
|
|
21
|
-
?
|
|
22
|
-
:
|
|
22
|
+
? un$ToPrecision(thisNumberValue(this))
|
|
23
|
+
: un$ToPrecision(thisNumberValue(this), precision);
|
|
23
24
|
}
|
|
24
25
|
});
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
var $ = require('../internals/export');
|
|
2
2
|
var DESCRIPTORS = require('../internals/descriptors');
|
|
3
|
-
var defineProperties = require('../internals/object-define-properties');
|
|
3
|
+
var defineProperties = require('../internals/object-define-properties').f;
|
|
4
4
|
|
|
5
5
|
// `Object.defineProperties` method
|
|
6
6
|
// https://tc39.es/ecma262/#sec-object.defineproperties
|
|
7
|
-
|
|
7
|
+
// eslint-disable-next-line es/no-object-defineproperties -- safe
|
|
8
|
+
$({ target: 'Object', stat: true, forced: Object.defineProperties !== defineProperties, sham: !DESCRIPTORS }, {
|
|
8
9
|
defineProperties: defineProperties
|
|
9
10
|
});
|