core-js 3.4.1 → 3.4.5
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/es/index.js +3 -1
- package/es/json/index.js +1 -0
- package/features/array/concat.js +3 -1
- package/features/array/copy-within.js +3 -1
- package/features/array/entries.js +3 -1
- package/features/array/every.js +3 -1
- package/features/array/fill.js +3 -1
- package/features/array/filter.js +3 -1
- package/features/array/find-index.js +3 -1
- package/features/array/find.js +3 -1
- package/features/array/flat-map.js +3 -1
- package/features/array/flat.js +3 -1
- package/features/array/for-each.js +3 -1
- package/features/array/from.js +3 -1
- package/features/array/includes.js +3 -1
- package/features/array/index-of.js +3 -1
- package/features/array/index.js +3 -2
- package/features/array/is-array.js +3 -1
- package/features/array/iterator.js +3 -1
- package/features/array/join.js +3 -1
- package/features/array/keys.js +3 -1
- package/features/array/last-index-of.js +3 -1
- package/features/array/map.js +3 -1
- package/features/array/of.js +3 -1
- package/features/array/reduce-right.js +3 -1
- package/features/array/reduce.js +3 -1
- package/features/array/reverse.js +3 -1
- package/features/array/slice.js +3 -1
- package/features/array/some.js +3 -1
- package/features/array/sort.js +3 -1
- package/features/array/splice.js +3 -1
- package/features/array/values.js +3 -1
- package/features/array/virtual/concat.js +3 -1
- package/features/array/virtual/copy-within.js +3 -1
- package/features/array/virtual/entries.js +3 -1
- package/features/array/virtual/every.js +3 -1
- package/features/array/virtual/fill.js +3 -1
- package/features/array/virtual/filter.js +3 -1
- package/features/array/virtual/find-index.js +3 -1
- package/features/array/virtual/find.js +3 -1
- package/features/array/virtual/flat-map.js +3 -1
- package/features/array/virtual/flat.js +3 -1
- package/features/array/virtual/for-each.js +3 -1
- package/features/array/virtual/includes.js +3 -1
- package/features/array/virtual/index-of.js +3 -1
- package/features/array/virtual/index.js +3 -1
- package/features/array/virtual/iterator.js +3 -1
- package/features/array/virtual/join.js +3 -1
- package/features/array/virtual/keys.js +3 -1
- package/features/array/virtual/last-index-of.js +3 -1
- package/features/array/virtual/map.js +3 -1
- package/features/array/virtual/reduce-right.js +3 -1
- package/features/array/virtual/reduce.js +3 -1
- package/features/array/virtual/reverse.js +3 -1
- package/features/array/virtual/slice.js +3 -1
- package/features/array/virtual/some.js +3 -1
- package/features/array/virtual/sort.js +3 -1
- package/features/array/virtual/splice.js +3 -1
- package/features/array/virtual/values.js +3 -1
- package/features/array-buffer/constructor.js +3 -1
- package/features/array-buffer/index.js +3 -1
- package/features/array-buffer/is-view.js +3 -1
- package/features/array-buffer/slice.js +3 -1
- package/features/clear-immediate.js +3 -1
- package/features/data-view/index.js +3 -1
- package/features/date/index.js +3 -1
- package/features/date/now.js +3 -1
- package/features/date/to-iso-string.js +3 -1
- package/features/date/to-json.js +3 -1
- package/features/date/to-primitive.js +3 -1
- package/features/date/to-string.js +3 -1
- package/features/dom-collections/for-each.js +3 -1
- package/features/dom-collections/index.js +3 -1
- package/features/dom-collections/iterator.js +3 -1
- package/features/function/bind.js +3 -1
- package/features/function/has-instance.js +3 -1
- package/features/function/index.js +3 -1
- package/features/function/name.js +3 -1
- package/features/function/virtual/bind.js +3 -1
- package/features/function/virtual/index.js +3 -1
- package/features/get-iterator-method.js +2 -1
- package/features/get-iterator.js +2 -1
- package/features/global-this.js +3 -1
- package/features/index.js +3 -1
- package/features/instance/bind.js +3 -1
- package/features/instance/code-point-at.js +3 -1
- package/features/instance/concat.js +3 -1
- package/features/instance/copy-within.js +3 -1
- package/features/instance/ends-with.js +3 -1
- package/features/instance/entries.js +3 -1
- package/features/instance/every.js +3 -1
- package/features/instance/fill.js +3 -1
- package/features/instance/filter.js +3 -1
- package/features/instance/find-index.js +3 -1
- package/features/instance/find.js +3 -1
- package/features/instance/flags.js +3 -1
- package/features/instance/flat-map.js +3 -1
- package/features/instance/flat.js +3 -1
- package/features/instance/for-each.js +3 -1
- package/features/instance/includes.js +3 -1
- package/features/instance/index-of.js +3 -1
- package/features/instance/keys.js +3 -1
- package/features/instance/last-index-of.js +3 -1
- package/features/instance/map.js +3 -1
- package/features/instance/match-all.js +3 -1
- package/features/instance/pad-end.js +3 -1
- package/features/instance/pad-start.js +3 -1
- package/features/instance/reduce-right.js +3 -1
- package/features/instance/reduce.js +3 -1
- package/features/instance/repeat.js +3 -1
- package/features/instance/reverse.js +3 -1
- package/features/instance/slice.js +3 -1
- package/features/instance/some.js +3 -1
- package/features/instance/sort.js +3 -1
- package/features/instance/splice.js +3 -1
- package/features/instance/starts-with.js +3 -1
- package/features/instance/trim-end.js +3 -1
- package/features/instance/trim-left.js +3 -1
- package/features/instance/trim-right.js +3 -1
- package/features/instance/trim-start.js +3 -1
- package/features/instance/trim.js +3 -1
- package/features/instance/values.js +3 -1
- package/features/is-iterable.js +2 -1
- package/features/json/index.js +3 -1
- package/features/json/stringify.js +3 -1
- package/features/json/to-string-tag.js +3 -1
- package/features/map/index.js +3 -2
- package/features/math/acosh.js +3 -1
- package/features/math/asinh.js +3 -1
- package/features/math/atanh.js +3 -1
- package/features/math/cbrt.js +3 -1
- package/features/math/clz32.js +3 -1
- package/features/math/cosh.js +3 -1
- package/features/math/expm1.js +3 -1
- package/features/math/fround.js +3 -1
- package/features/math/hypot.js +3 -1
- package/features/math/imul.js +3 -1
- package/features/math/index.js +3 -2
- package/features/math/log10.js +3 -1
- package/features/math/log1p.js +3 -1
- package/features/math/log2.js +3 -1
- package/features/math/sign.js +3 -1
- package/features/math/sinh.js +3 -1
- package/features/math/tanh.js +3 -1
- package/features/math/to-string-tag.js +3 -1
- package/features/math/trunc.js +3 -1
- package/features/number/constructor.js +3 -1
- package/features/number/epsilon.js +3 -1
- package/features/number/index.js +3 -1
- package/features/number/is-finite.js +3 -1
- package/features/number/is-integer.js +3 -1
- package/features/number/is-nan.js +3 -1
- package/features/number/is-safe-integer.js +3 -1
- package/features/number/max-safe-integer.js +3 -1
- package/features/number/min-safe-integer.js +3 -1
- package/features/number/parse-float.js +3 -1
- package/features/number/parse-int.js +3 -1
- package/features/number/to-fixed.js +3 -1
- package/features/number/to-precision.js +3 -1
- package/features/number/virtual/index.js +3 -1
- package/features/number/virtual/to-fixed.js +3 -1
- package/features/number/virtual/to-precision.js +3 -1
- package/features/object/assign.js +3 -1
- package/features/object/create.js +3 -1
- package/features/object/define-getter.js +3 -1
- package/features/object/define-properties.js +3 -1
- package/features/object/define-property.js +3 -1
- package/features/object/define-setter.js +3 -1
- package/features/object/entries.js +3 -1
- package/features/object/freeze.js +3 -1
- package/features/object/from-entries.js +3 -1
- package/features/object/get-own-property-descriptor.js +3 -1
- package/features/object/get-own-property-descriptors.js +3 -1
- package/features/object/get-own-property-names.js +3 -1
- package/features/object/get-own-property-symbols.js +3 -1
- package/features/object/get-prototype-of.js +3 -1
- package/features/object/index.js +3 -1
- package/features/object/is-extensible.js +3 -1
- package/features/object/is-frozen.js +3 -1
- package/features/object/is-sealed.js +3 -1
- package/features/object/is.js +3 -1
- package/features/object/keys.js +3 -1
- package/features/object/lookup-getter.js +3 -1
- package/features/object/lookup-setter.js +3 -1
- package/features/object/prevent-extensions.js +3 -1
- package/features/object/seal.js +3 -1
- package/features/object/set-prototype-of.js +3 -1
- package/features/object/to-string.js +3 -1
- package/features/object/values.js +3 -1
- package/features/parse-float.js +3 -1
- package/features/parse-int.js +3 -1
- package/features/promise/all-settled.js +3 -1
- package/features/promise/finally.js +3 -1
- package/features/promise/index.js +3 -2
- package/features/queue-microtask.js +3 -1
- package/features/reflect/apply.js +3 -1
- package/features/reflect/construct.js +3 -1
- package/features/reflect/define-property.js +3 -1
- package/features/reflect/delete-property.js +3 -1
- package/features/reflect/get-own-property-descriptor.js +3 -1
- package/features/reflect/get-prototype-of.js +3 -1
- package/features/reflect/get.js +3 -1
- package/features/reflect/has.js +3 -1
- package/features/reflect/index.js +3 -2
- package/features/reflect/is-extensible.js +3 -1
- package/features/reflect/own-keys.js +3 -1
- package/features/reflect/prevent-extensions.js +3 -1
- package/features/reflect/set-prototype-of.js +3 -1
- package/features/reflect/set.js +3 -1
- package/features/regexp/constructor.js +3 -1
- package/features/regexp/flags.js +3 -1
- package/features/regexp/index.js +3 -1
- package/features/regexp/match.js +3 -1
- package/features/regexp/replace.js +3 -1
- package/features/regexp/search.js +3 -1
- package/features/regexp/split.js +3 -1
- package/features/regexp/to-string.js +3 -1
- package/features/set/index.js +3 -2
- package/features/set-immediate.js +3 -1
- package/features/set-interval.js +3 -1
- package/features/set-timeout.js +3 -1
- package/features/string/anchor.js +3 -1
- package/features/string/big.js +3 -1
- package/features/string/blink.js +3 -1
- package/features/string/bold.js +3 -1
- package/features/string/code-point-at.js +3 -1
- package/features/string/ends-with.js +3 -1
- package/features/string/fixed.js +3 -1
- package/features/string/fontcolor.js +3 -1
- package/features/string/fontsize.js +3 -1
- package/features/string/from-code-point.js +3 -1
- package/features/string/includes.js +3 -1
- package/features/string/index.js +4 -2
- package/features/string/italics.js +3 -1
- package/features/string/iterator.js +3 -1
- package/features/string/link.js +3 -1
- package/features/string/match-all.js +3 -1
- package/features/string/match.js +3 -1
- package/features/string/pad-end.js +3 -1
- package/features/string/pad-start.js +3 -1
- package/features/string/raw.js +3 -1
- package/features/string/repeat.js +3 -1
- package/features/string/replace.js +3 -1
- package/features/string/search.js +3 -1
- package/features/string/small.js +3 -1
- package/features/string/split.js +3 -1
- package/features/string/starts-with.js +3 -1
- package/features/string/strike.js +3 -1
- package/features/string/sub.js +3 -1
- package/features/string/sup.js +3 -1
- package/features/string/trim-end.js +3 -1
- package/features/string/trim-left.js +3 -1
- package/features/string/trim-right.js +3 -1
- package/features/string/trim-start.js +3 -1
- package/features/string/trim.js +3 -1
- package/features/string/virtual/anchor.js +3 -1
- package/features/string/virtual/big.js +3 -1
- package/features/string/virtual/blink.js +3 -1
- package/features/string/virtual/bold.js +3 -1
- package/features/string/virtual/code-point-at.js +3 -1
- package/features/string/virtual/ends-with.js +3 -1
- package/features/string/virtual/fixed.js +3 -1
- package/features/string/virtual/fontcolor.js +3 -1
- package/features/string/virtual/fontsize.js +3 -1
- package/features/string/virtual/includes.js +3 -1
- package/features/string/virtual/index.js +4 -2
- package/features/string/virtual/italics.js +3 -1
- package/features/string/virtual/iterator.js +3 -1
- package/features/string/virtual/link.js +3 -1
- package/features/string/virtual/match-all.js +3 -1
- package/features/string/virtual/pad-end.js +3 -1
- package/features/string/virtual/pad-start.js +3 -1
- package/features/string/virtual/repeat.js +3 -1
- package/features/string/virtual/small.js +3 -1
- package/features/string/virtual/starts-with.js +3 -1
- package/features/string/virtual/strike.js +3 -1
- package/features/string/virtual/sub.js +3 -1
- package/features/string/virtual/sup.js +3 -1
- package/features/string/virtual/trim-end.js +3 -1
- package/features/string/virtual/trim-left.js +3 -1
- package/features/string/virtual/trim-right.js +3 -1
- package/features/string/virtual/trim-start.js +3 -1
- package/features/string/virtual/trim.js +3 -1
- package/features/symbol/async-iterator.js +3 -1
- package/features/symbol/for.js +3 -1
- package/features/symbol/has-instance.js +3 -1
- package/features/symbol/index.js +3 -2
- package/features/symbol/is-concat-spreadable.js +3 -1
- package/features/symbol/iterator.js +3 -1
- package/features/symbol/key-for.js +3 -1
- package/features/symbol/match-all.js +3 -1
- package/features/symbol/match.js +3 -1
- package/features/symbol/replace.js +3 -1
- package/features/symbol/search.js +3 -1
- package/features/symbol/species.js +3 -1
- package/features/symbol/split.js +3 -1
- package/features/symbol/to-primitive.js +3 -1
- package/features/symbol/to-string-tag.js +3 -1
- package/features/symbol/unscopables.js +3 -1
- package/features/typed-array/float32-array.js +3 -1
- package/features/typed-array/float64-array.js +3 -1
- package/features/typed-array/index.js +3 -1
- package/features/typed-array/int16-array.js +3 -1
- package/features/typed-array/int32-array.js +3 -1
- package/features/typed-array/int8-array.js +3 -1
- package/features/typed-array/uint16-array.js +3 -1
- package/features/typed-array/uint32-array.js +3 -1
- package/features/typed-array/uint8-array.js +3 -1
- package/features/typed-array/uint8-clamped-array.js +3 -1
- package/features/url/index.js +3 -1
- package/features/url/to-json.js +3 -1
- package/features/url-search-params/index.js +3 -1
- package/features/weak-map/index.js +3 -2
- package/features/weak-set/index.js +3 -2
- package/index.js +2 -1
- package/internals/array-buffer-view-core.js +4 -4
- package/internals/array-buffer.js +9 -91
- package/internals/classof.js +2 -1
- package/internals/collection.js +4 -2
- package/internals/ieee754.js +88 -0
- package/internals/inspect-source.js +7 -0
- package/internals/native-weak-map.js +2 -2
- package/internals/object-assign.js +12 -1
- package/internals/object-to-string.js +3 -8
- package/internals/path.js +3 -1
- package/internals/redefine.js +3 -8
- package/internals/shared.js +1 -1
- package/internals/to-absolute-index.js +1 -1
- package/internals/to-string-tag-support.js +8 -0
- package/internals/typed-array-constructor.js +2 -1
- package/internals/use-symbol-as-uid.js +7 -0
- package/internals/well-known-symbol.js +8 -3
- package/internals/wrapped-well-known-symbol.js +3 -1
- package/modules/es.array.filter.js +8 -1
- package/modules/es.array.map.js +8 -1
- package/modules/es.map.js +3 -3
- package/modules/es.object.to-string.js +3 -4
- package/modules/es.promise.finally.js +7 -1
- package/modules/es.promise.js +9 -8
- package/modules/es.reflect.set.js +10 -1
- package/modules/es.set.js +2 -2
- package/modules/es.string.ends-with.js +10 -1
- package/modules/es.string.match-all.js +1 -1
- package/modules/es.string.starts-with.js +10 -1
- package/modules/es.symbol.js +3 -0
- package/modules/es.typed-array.copy-within.js +2 -1
- package/modules/es.typed-array.every.js +2 -1
- package/modules/es.typed-array.fill.js +2 -1
- package/modules/es.typed-array.filter.js +2 -1
- package/modules/es.typed-array.find-index.js +2 -1
- package/modules/es.typed-array.find.js +2 -1
- package/modules/es.typed-array.float32-array.js +2 -2
- package/modules/es.typed-array.float64-array.js +2 -2
- package/modules/es.typed-array.for-each.js +2 -1
- package/modules/es.typed-array.from.js +2 -2
- package/modules/es.typed-array.includes.js +2 -1
- package/modules/es.typed-array.index-of.js +2 -1
- package/modules/es.typed-array.int16-array.js +2 -2
- package/modules/es.typed-array.int32-array.js +2 -2
- package/modules/es.typed-array.int8-array.js +2 -2
- package/modules/es.typed-array.iterator.js +5 -5
- package/modules/es.typed-array.join.js +2 -1
- package/modules/es.typed-array.last-index-of.js +2 -1
- package/modules/es.typed-array.map.js +2 -1
- package/modules/es.typed-array.of.js +2 -1
- package/modules/es.typed-array.reduce-right.js +2 -1
- package/modules/es.typed-array.reduce.js +2 -1
- package/modules/es.typed-array.reverse.js +2 -1
- package/modules/es.typed-array.set.js +2 -1
- package/modules/es.typed-array.slice.js +2 -1
- package/modules/es.typed-array.some.js +2 -1
- package/modules/es.typed-array.sort.js +2 -1
- package/modules/es.typed-array.subarray.js +2 -1
- package/modules/es.typed-array.to-locale-string.js +2 -1
- package/modules/es.typed-array.to-string.js +6 -4
- package/modules/es.typed-array.uint16-array.js +2 -2
- package/modules/es.typed-array.uint32-array.js +2 -2
- package/modules/es.typed-array.uint8-array.js +2 -2
- package/modules/es.typed-array.uint8-clamped-array.js +2 -2
- package/modules/es.weak-map.js +3 -3
- package/modules/es.weak-set.js +3 -3
- package/modules/esnext.iterator.constructor.js +7 -2
- package/modules/web.immediate.js +2 -1
- package/package.json +2 -2
- package/proposals/global-this.js +2 -1
- package/proposals/iterator-helpers.js +8 -0
- package/stable/array/concat.js +3 -1
- package/stable/array/copy-within.js +3 -1
- package/stable/array/entries.js +3 -1
- package/stable/array/every.js +3 -1
- package/stable/array/fill.js +3 -1
- package/stable/array/filter.js +3 -1
- package/stable/array/find-index.js +3 -1
- package/stable/array/find.js +3 -1
- package/stable/array/flat-map.js +3 -1
- package/stable/array/flat.js +3 -1
- package/stable/array/for-each.js +3 -1
- package/stable/array/from.js +3 -1
- package/stable/array/includes.js +3 -1
- package/stable/array/index-of.js +3 -1
- package/stable/array/index.js +3 -1
- package/stable/array/is-array.js +3 -1
- package/stable/array/iterator.js +3 -1
- package/stable/array/join.js +3 -1
- package/stable/array/keys.js +3 -1
- package/stable/array/last-index-of.js +3 -1
- package/stable/array/map.js +3 -1
- package/stable/array/of.js +3 -1
- package/stable/array/reduce-right.js +3 -1
- package/stable/array/reduce.js +3 -1
- package/stable/array/reverse.js +3 -1
- package/stable/array/slice.js +3 -1
- package/stable/array/some.js +3 -1
- package/stable/array/sort.js +3 -1
- package/stable/array/splice.js +3 -1
- package/stable/array/values.js +3 -1
- package/stable/array/virtual/concat.js +3 -1
- package/stable/array/virtual/copy-within.js +3 -1
- package/stable/array/virtual/entries.js +3 -1
- package/stable/array/virtual/every.js +3 -1
- package/stable/array/virtual/fill.js +3 -1
- package/stable/array/virtual/filter.js +3 -1
- package/stable/array/virtual/find-index.js +3 -1
- package/stable/array/virtual/find.js +3 -1
- package/stable/array/virtual/flat-map.js +3 -1
- package/stable/array/virtual/flat.js +3 -1
- package/stable/array/virtual/for-each.js +3 -1
- package/stable/array/virtual/includes.js +3 -1
- package/stable/array/virtual/index-of.js +3 -1
- package/stable/array/virtual/index.js +3 -1
- package/stable/array/virtual/iterator.js +3 -1
- package/stable/array/virtual/join.js +3 -1
- package/stable/array/virtual/keys.js +3 -1
- package/stable/array/virtual/last-index-of.js +3 -1
- package/stable/array/virtual/map.js +3 -1
- package/stable/array/virtual/reduce-right.js +3 -1
- package/stable/array/virtual/reduce.js +3 -1
- package/stable/array/virtual/reverse.js +3 -1
- package/stable/array/virtual/slice.js +3 -1
- package/stable/array/virtual/some.js +3 -1
- package/stable/array/virtual/sort.js +3 -1
- package/stable/array/virtual/splice.js +3 -1
- package/stable/array/virtual/values.js +3 -1
- package/stable/array-buffer/constructor.js +3 -1
- package/stable/array-buffer/index.js +3 -1
- package/stable/array-buffer/is-view.js +3 -1
- package/stable/array-buffer/slice.js +3 -1
- package/stable/clear-immediate.js +2 -1
- package/stable/data-view/index.js +3 -1
- package/stable/date/index.js +3 -1
- package/stable/date/now.js +3 -1
- package/stable/date/to-iso-string.js +3 -1
- package/stable/date/to-json.js +3 -1
- package/stable/date/to-primitive.js +3 -1
- package/stable/date/to-string.js +3 -1
- package/stable/dom-collections/for-each.js +3 -1
- package/stable/function/bind.js +3 -1
- package/stable/function/has-instance.js +3 -1
- package/stable/function/index.js +3 -1
- package/stable/function/name.js +3 -1
- package/stable/function/virtual/bind.js +3 -1
- package/stable/function/virtual/index.js +3 -1
- package/stable/global-this.js +3 -1
- package/stable/index.js +2 -1
- package/stable/instance/bind.js +3 -1
- package/stable/instance/code-point-at.js +3 -1
- package/stable/instance/concat.js +3 -1
- package/stable/instance/copy-within.js +3 -1
- package/stable/instance/ends-with.js +3 -1
- package/stable/instance/every.js +3 -1
- package/stable/instance/fill.js +3 -1
- package/stable/instance/filter.js +3 -1
- package/stable/instance/find-index.js +3 -1
- package/stable/instance/find.js +3 -1
- package/stable/instance/flags.js +3 -1
- package/stable/instance/flat-map.js +3 -1
- package/stable/instance/flat.js +3 -1
- package/stable/instance/includes.js +3 -1
- package/stable/instance/index-of.js +3 -1
- package/stable/instance/last-index-of.js +3 -1
- package/stable/instance/map.js +3 -1
- package/stable/instance/match-all.js +3 -1
- package/stable/instance/pad-end.js +3 -1
- package/stable/instance/pad-start.js +3 -1
- package/stable/instance/reduce-right.js +3 -1
- package/stable/instance/reduce.js +3 -1
- package/stable/instance/repeat.js +3 -1
- package/stable/instance/reverse.js +3 -1
- package/stable/instance/slice.js +3 -1
- package/stable/instance/some.js +3 -1
- package/stable/instance/sort.js +3 -1
- package/stable/instance/splice.js +3 -1
- package/stable/instance/starts-with.js +3 -1
- package/stable/instance/trim-end.js +3 -1
- package/stable/instance/trim-left.js +3 -1
- package/stable/instance/trim-right.js +3 -1
- package/stable/instance/trim-start.js +3 -1
- package/stable/instance/trim.js +3 -1
- package/stable/json/index.js +3 -1
- package/stable/json/stringify.js +3 -1
- package/stable/json/to-string-tag.js +3 -1
- package/stable/map/index.js +3 -1
- package/stable/math/acosh.js +3 -1
- package/stable/math/asinh.js +3 -1
- package/stable/math/atanh.js +3 -1
- package/stable/math/cbrt.js +3 -1
- package/stable/math/clz32.js +3 -1
- package/stable/math/cosh.js +3 -1
- package/stable/math/expm1.js +3 -1
- package/stable/math/fround.js +3 -1
- package/stable/math/hypot.js +3 -1
- package/stable/math/imul.js +3 -1
- package/stable/math/index.js +3 -1
- package/stable/math/log10.js +3 -1
- package/stable/math/log1p.js +3 -1
- package/stable/math/log2.js +3 -1
- package/stable/math/sign.js +3 -1
- package/stable/math/sinh.js +3 -1
- package/stable/math/tanh.js +3 -1
- package/stable/math/to-string-tag.js +3 -1
- package/stable/math/trunc.js +3 -1
- package/stable/number/constructor.js +3 -1
- package/stable/number/epsilon.js +3 -1
- package/stable/number/index.js +3 -1
- package/stable/number/is-finite.js +3 -1
- package/stable/number/is-integer.js +3 -1
- package/stable/number/is-nan.js +3 -1
- package/stable/number/is-safe-integer.js +3 -1
- package/stable/number/max-safe-integer.js +3 -1
- package/stable/number/min-safe-integer.js +3 -1
- package/stable/number/parse-float.js +3 -1
- package/stable/number/parse-int.js +3 -1
- package/stable/number/to-fixed.js +3 -1
- package/stable/number/to-precision.js +3 -1
- package/stable/number/virtual/index.js +3 -1
- package/stable/number/virtual/to-fixed.js +3 -1
- package/stable/number/virtual/to-precision.js +3 -1
- package/stable/object/assign.js +3 -1
- package/stable/object/create.js +3 -1
- package/stable/object/define-getter.js +3 -1
- package/stable/object/define-properties.js +3 -1
- package/stable/object/define-property.js +3 -1
- package/stable/object/define-setter.js +3 -1
- package/stable/object/entries.js +3 -1
- package/stable/object/freeze.js +3 -1
- package/stable/object/from-entries.js +3 -1
- package/stable/object/get-own-property-descriptor.js +3 -1
- package/stable/object/get-own-property-descriptors.js +3 -1
- package/stable/object/get-own-property-names.js +3 -1
- package/stable/object/get-own-property-symbols.js +3 -1
- package/stable/object/get-prototype-of.js +3 -1
- package/stable/object/index.js +3 -1
- package/stable/object/is-extensible.js +3 -1
- package/stable/object/is-frozen.js +3 -1
- package/stable/object/is-sealed.js +3 -1
- package/stable/object/is.js +3 -1
- package/stable/object/keys.js +3 -1
- package/stable/object/lookup-getter.js +3 -1
- package/stable/object/lookup-setter.js +3 -1
- package/stable/object/prevent-extensions.js +3 -1
- package/stable/object/seal.js +3 -1
- package/stable/object/set-prototype-of.js +3 -1
- package/stable/object/to-string.js +3 -1
- package/stable/object/values.js +3 -1
- package/stable/parse-float.js +3 -1
- package/stable/parse-int.js +3 -1
- package/stable/promise/all-settled.js +3 -1
- package/stable/promise/finally.js +3 -1
- package/stable/promise/index.js +3 -1
- package/stable/queue-microtask.js +3 -1
- package/stable/reflect/apply.js +3 -1
- package/stable/reflect/construct.js +3 -1
- package/stable/reflect/define-property.js +3 -1
- package/stable/reflect/delete-property.js +3 -1
- package/stable/reflect/get-own-property-descriptor.js +3 -1
- package/stable/reflect/get-prototype-of.js +3 -1
- package/stable/reflect/get.js +3 -1
- package/stable/reflect/has.js +3 -1
- package/stable/reflect/index.js +3 -1
- package/stable/reflect/is-extensible.js +3 -1
- package/stable/reflect/own-keys.js +3 -1
- package/stable/reflect/prevent-extensions.js +3 -1
- package/stable/reflect/set-prototype-of.js +3 -1
- package/stable/reflect/set.js +3 -1
- package/stable/regexp/constructor.js +3 -1
- package/stable/regexp/flags.js +3 -1
- package/stable/regexp/index.js +3 -1
- package/stable/regexp/match.js +3 -1
- package/stable/regexp/replace.js +3 -1
- package/stable/regexp/search.js +3 -1
- package/stable/regexp/split.js +3 -1
- package/stable/regexp/to-string.js +3 -1
- package/stable/set/index.js +3 -1
- package/stable/set-immediate.js +2 -1
- package/stable/set-interval.js +2 -1
- package/stable/set-timeout.js +2 -1
- package/stable/string/anchor.js +3 -1
- package/stable/string/big.js +3 -1
- package/stable/string/blink.js +3 -1
- package/stable/string/bold.js +3 -1
- package/stable/string/code-point-at.js +3 -1
- package/stable/string/ends-with.js +3 -1
- package/stable/string/fixed.js +3 -1
- package/stable/string/fontcolor.js +3 -1
- package/stable/string/fontsize.js +3 -1
- package/stable/string/from-code-point.js +3 -1
- package/stable/string/includes.js +3 -1
- package/stable/string/index.js +3 -1
- package/stable/string/italics.js +3 -1
- package/stable/string/iterator.js +3 -1
- package/stable/string/link.js +3 -1
- package/stable/string/match-all.js +3 -1
- package/stable/string/match.js +3 -1
- package/stable/string/pad-end.js +3 -1
- package/stable/string/pad-start.js +3 -1
- package/stable/string/raw.js +3 -1
- package/stable/string/repeat.js +3 -1
- package/stable/string/replace.js +3 -1
- package/stable/string/search.js +3 -1
- package/stable/string/small.js +3 -1
- package/stable/string/split.js +3 -1
- package/stable/string/starts-with.js +3 -1
- package/stable/string/strike.js +3 -1
- package/stable/string/sub.js +3 -1
- package/stable/string/sup.js +3 -1
- package/stable/string/trim-end.js +3 -1
- package/stable/string/trim-left.js +3 -1
- package/stable/string/trim-right.js +3 -1
- package/stable/string/trim-start.js +3 -1
- package/stable/string/trim.js +3 -1
- package/stable/string/virtual/anchor.js +3 -1
- package/stable/string/virtual/big.js +3 -1
- package/stable/string/virtual/blink.js +3 -1
- package/stable/string/virtual/bold.js +3 -1
- package/stable/string/virtual/code-point-at.js +3 -1
- package/stable/string/virtual/ends-with.js +3 -1
- package/stable/string/virtual/fixed.js +3 -1
- package/stable/string/virtual/fontcolor.js +3 -1
- package/stable/string/virtual/fontsize.js +3 -1
- package/stable/string/virtual/includes.js +3 -1
- package/stable/string/virtual/index.js +3 -1
- package/stable/string/virtual/italics.js +3 -1
- package/stable/string/virtual/iterator.js +3 -1
- package/stable/string/virtual/link.js +3 -1
- package/stable/string/virtual/match-all.js +3 -1
- package/stable/string/virtual/pad-end.js +3 -1
- package/stable/string/virtual/pad-start.js +3 -1
- package/stable/string/virtual/repeat.js +3 -1
- package/stable/string/virtual/small.js +3 -1
- package/stable/string/virtual/starts-with.js +3 -1
- package/stable/string/virtual/strike.js +3 -1
- package/stable/string/virtual/sub.js +3 -1
- package/stable/string/virtual/sup.js +3 -1
- package/stable/string/virtual/trim-end.js +3 -1
- package/stable/string/virtual/trim-left.js +3 -1
- package/stable/string/virtual/trim-right.js +3 -1
- package/stable/string/virtual/trim-start.js +3 -1
- package/stable/string/virtual/trim.js +3 -1
- package/stable/symbol/async-iterator.js +3 -1
- package/stable/symbol/for.js +3 -1
- package/stable/symbol/has-instance.js +3 -1
- package/stable/symbol/index.js +3 -1
- package/stable/symbol/is-concat-spreadable.js +3 -1
- package/stable/symbol/iterator.js +3 -1
- package/stable/symbol/key-for.js +3 -1
- package/stable/symbol/match-all.js +3 -1
- package/stable/symbol/match.js +3 -1
- package/stable/symbol/replace.js +3 -1
- package/stable/symbol/search.js +3 -1
- package/stable/symbol/species.js +3 -1
- package/stable/symbol/split.js +3 -1
- package/stable/symbol/to-primitive.js +3 -1
- package/stable/symbol/to-string-tag.js +3 -1
- package/stable/symbol/unscopables.js +3 -1
- package/stable/typed-array/float32-array.js +3 -1
- package/stable/typed-array/float64-array.js +3 -1
- package/stable/typed-array/index.js +3 -1
- package/stable/typed-array/int16-array.js +3 -1
- package/stable/typed-array/int32-array.js +3 -1
- package/stable/typed-array/int8-array.js +3 -1
- package/stable/typed-array/uint16-array.js +3 -1
- package/stable/typed-array/uint32-array.js +3 -1
- package/stable/typed-array/uint8-array.js +3 -1
- package/stable/typed-array/uint8-clamped-array.js +3 -1
- package/stable/url/index.js +3 -1
- package/stable/url-search-params/index.js +3 -1
- package/stable/weak-map/index.js +3 -1
- package/stable/weak-set/index.js +3 -1
- package/stage/0.js +2 -1
- package/stage/1.js +2 -1
- package/stage/2.js +2 -1
- package/stage/3.js +2 -1
- package/stage/4.js +2 -1
- package/stage/index.js +3 -1
- package/stage/pre.js +2 -1
- package/web/dom-collections.js +2 -1
- package/web/immediate.js +2 -1
- package/web/index.js +2 -1
- package/web/timers.js +2 -1
- package/internals/function-to-string.js +0 -3
package/internals/redefine.js
CHANGED
|
@@ -1,18 +1,13 @@
|
|
|
1
1
|
var global = require('../internals/global');
|
|
2
|
-
var shared = require('../internals/shared');
|
|
3
2
|
var createNonEnumerableProperty = require('../internals/create-non-enumerable-property');
|
|
4
3
|
var has = require('../internals/has');
|
|
5
4
|
var setGlobal = require('../internals/set-global');
|
|
6
|
-
var
|
|
5
|
+
var inspectSource = require('../internals/inspect-source');
|
|
7
6
|
var InternalStateModule = require('../internals/internal-state');
|
|
8
7
|
|
|
9
8
|
var getInternalState = InternalStateModule.get;
|
|
10
9
|
var enforceInternalState = InternalStateModule.enforce;
|
|
11
|
-
var TEMPLATE = String(
|
|
12
|
-
|
|
13
|
-
shared('inspectSource', function (it) {
|
|
14
|
-
return nativeFunctionToString.call(it);
|
|
15
|
-
});
|
|
10
|
+
var TEMPLATE = String(String).split('String');
|
|
16
11
|
|
|
17
12
|
(module.exports = function (O, key, value, options) {
|
|
18
13
|
var unsafe = options ? !!options.unsafe : false;
|
|
@@ -35,5 +30,5 @@ shared('inspectSource', function (it) {
|
|
|
35
30
|
else createNonEnumerableProperty(O, key, value);
|
|
36
31
|
// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
|
|
37
32
|
})(Function.prototype, 'toString', function toString() {
|
|
38
|
-
return typeof this == 'function' && getInternalState(this).source ||
|
|
33
|
+
return typeof this == 'function' && getInternalState(this).source || inspectSource(this);
|
|
39
34
|
});
|
package/internals/shared.js
CHANGED
|
@@ -4,7 +4,7 @@ var store = require('../internals/shared-store');
|
|
|
4
4
|
(module.exports = function (key, value) {
|
|
5
5
|
return store[key] || (store[key] = value !== undefined ? value : {});
|
|
6
6
|
})('versions', []).push({
|
|
7
|
-
version: '3.4.
|
|
7
|
+
version: '3.4.5',
|
|
8
8
|
mode: IS_PURE ? 'pure' : 'global',
|
|
9
9
|
copyright: '© 2019 Denis Pushkarev (zloirock.ru)'
|
|
10
10
|
});
|
|
@@ -5,7 +5,7 @@ var min = Math.min;
|
|
|
5
5
|
|
|
6
6
|
// Helper for a popular repeating case of the spec:
|
|
7
7
|
// Let integer be ? ToInteger(index).
|
|
8
|
-
// If integer < 0, let result be max((length + integer), 0); else let result be min(
|
|
8
|
+
// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
|
|
9
9
|
module.exports = function (index, length) {
|
|
10
10
|
var integer = toInteger(index);
|
|
11
11
|
return integer < 0 ? max(integer + length, 0) : min(integer, length);
|
|
@@ -106,7 +106,8 @@ if (DESCRIPTORS) {
|
|
|
106
106
|
defineProperty: wrappedDefineProperty
|
|
107
107
|
});
|
|
108
108
|
|
|
109
|
-
module.exports = function (TYPE,
|
|
109
|
+
module.exports = function (TYPE, wrapper, CLAMPED) {
|
|
110
|
+
var BYTES = TYPE.match(/\d+$/)[0] / 8;
|
|
110
111
|
var CONSTRUCTOR_NAME = TYPE + (CLAMPED ? 'Clamped' : '') + 'Array';
|
|
111
112
|
var GETTER = 'get' + TYPE;
|
|
112
113
|
var SETTER = 'set' + TYPE;
|
|
@@ -1,12 +1,17 @@
|
|
|
1
1
|
var global = require('../internals/global');
|
|
2
2
|
var shared = require('../internals/shared');
|
|
3
|
+
var has = require('../internals/has');
|
|
3
4
|
var uid = require('../internals/uid');
|
|
4
5
|
var NATIVE_SYMBOL = require('../internals/native-symbol');
|
|
6
|
+
var USE_SYMBOL_AS_UID = require('../internals/use-symbol-as-uid');
|
|
5
7
|
|
|
8
|
+
var WellKnownSymbolsStore = shared('wks');
|
|
6
9
|
var Symbol = global.Symbol;
|
|
7
|
-
var
|
|
10
|
+
var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol : uid;
|
|
8
11
|
|
|
9
12
|
module.exports = function (name) {
|
|
10
|
-
|
|
11
|
-
|
|
13
|
+
if (!has(WellKnownSymbolsStore, name)) {
|
|
14
|
+
if (NATIVE_SYMBOL && has(Symbol, name)) WellKnownSymbolsStore[name] = Symbol[name];
|
|
15
|
+
else WellKnownSymbolsStore[name] = createWellKnownSymbol('Symbol.' + name);
|
|
16
|
+
} return WellKnownSymbolsStore[name];
|
|
12
17
|
};
|
|
@@ -1,12 +1,19 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
var $ = require('../internals/export');
|
|
3
3
|
var $filter = require('../internals/array-iteration').filter;
|
|
4
|
+
var fails = require('../internals/fails');
|
|
4
5
|
var arrayMethodHasSpeciesSupport = require('../internals/array-method-has-species-support');
|
|
5
6
|
|
|
7
|
+
var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('filter');
|
|
8
|
+
// Edge 14- issue
|
|
9
|
+
var USES_TO_LENGTH = HAS_SPECIES_SUPPORT && !fails(function () {
|
|
10
|
+
[].filter.call({ length: -1, 0: 1 }, function (it) { throw it; });
|
|
11
|
+
});
|
|
12
|
+
|
|
6
13
|
// `Array.prototype.filter` method
|
|
7
14
|
// https://tc39.github.io/ecma262/#sec-array.prototype.filter
|
|
8
15
|
// with adding support of @@species
|
|
9
|
-
$({ target: 'Array', proto: true, forced: !
|
|
16
|
+
$({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT || !USES_TO_LENGTH }, {
|
|
10
17
|
filter: function filter(callbackfn /* , thisArg */) {
|
|
11
18
|
return $filter(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
|
|
12
19
|
}
|
package/modules/es.array.map.js
CHANGED
|
@@ -1,12 +1,19 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
var $ = require('../internals/export');
|
|
3
3
|
var $map = require('../internals/array-iteration').map;
|
|
4
|
+
var fails = require('../internals/fails');
|
|
4
5
|
var arrayMethodHasSpeciesSupport = require('../internals/array-method-has-species-support');
|
|
5
6
|
|
|
7
|
+
var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('map');
|
|
8
|
+
// FF49- issue
|
|
9
|
+
var USES_TO_LENGTH = HAS_SPECIES_SUPPORT && !fails(function () {
|
|
10
|
+
[].map.call({ length: -1, 0: 1 }, function (it) { throw it; });
|
|
11
|
+
});
|
|
12
|
+
|
|
6
13
|
// `Array.prototype.map` method
|
|
7
14
|
// https://tc39.github.io/ecma262/#sec-array.prototype.map
|
|
8
15
|
// with adding support of @@species
|
|
9
|
-
$({ target: 'Array', proto: true, forced: !
|
|
16
|
+
$({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT || !USES_TO_LENGTH }, {
|
|
10
17
|
map: function map(callbackfn /* , thisArg */) {
|
|
11
18
|
return $map(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
|
|
12
19
|
}
|
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.github.io/ecma262/#sec-map-objects
|
|
7
|
-
module.exports = collection('Map', function (
|
|
8
|
-
return function Map() { return
|
|
9
|
-
}, collectionStrong
|
|
7
|
+
module.exports = collection('Map', function (init) {
|
|
8
|
+
return function Map() { return init(this, arguments.length ? arguments[0] : undefined); };
|
|
9
|
+
}, collectionStrong);
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
+
var TO_STRING_TAG_SUPPORT = require('../internals/to-string-tag-support');
|
|
1
2
|
var redefine = require('../internals/redefine');
|
|
2
3
|
var toString = require('../internals/object-to-string');
|
|
3
4
|
|
|
4
|
-
var ObjectPrototype = Object.prototype;
|
|
5
|
-
|
|
6
5
|
// `Object.prototype.toString` method
|
|
7
6
|
// https://tc39.github.io/ecma262/#sec-object.prototype.tostring
|
|
8
|
-
if (
|
|
9
|
-
redefine(
|
|
7
|
+
if (!TO_STRING_TAG_SUPPORT) {
|
|
8
|
+
redefine(Object.prototype, 'toString', toString, { unsafe: true });
|
|
10
9
|
}
|
|
@@ -2,14 +2,20 @@
|
|
|
2
2
|
var $ = require('../internals/export');
|
|
3
3
|
var IS_PURE = require('../internals/is-pure');
|
|
4
4
|
var NativePromise = require('../internals/native-promise-constructor');
|
|
5
|
+
var fails = require('../internals/fails');
|
|
5
6
|
var getBuiltIn = require('../internals/get-built-in');
|
|
6
7
|
var speciesConstructor = require('../internals/species-constructor');
|
|
7
8
|
var promiseResolve = require('../internals/promise-resolve');
|
|
8
9
|
var redefine = require('../internals/redefine');
|
|
9
10
|
|
|
11
|
+
// Safari bug https://bugs.webkit.org/show_bug.cgi?id=200829
|
|
12
|
+
var NON_GENERIC = !!NativePromise && fails(function () {
|
|
13
|
+
NativePromise.prototype['finally'].call({ then: function () { /* empty */ } }, function () { /* empty */ });
|
|
14
|
+
});
|
|
15
|
+
|
|
10
16
|
// `Promise.prototype.finally` method
|
|
11
17
|
// https://tc39.github.io/ecma262/#sec-promise.prototype.finally
|
|
12
|
-
$({ target: 'Promise', proto: true, real: true }, {
|
|
18
|
+
$({ target: 'Promise', proto: true, real: true, forced: NON_GENERIC }, {
|
|
13
19
|
'finally': function (onFinally) {
|
|
14
20
|
var C = speciesConstructor(this, getBuiltIn('Promise'));
|
|
15
21
|
var isFunction = typeof onFinally == 'function';
|
package/modules/es.promise.js
CHANGED
|
@@ -6,13 +6,13 @@ var getBuiltIn = require('../internals/get-built-in');
|
|
|
6
6
|
var NativePromise = require('../internals/native-promise-constructor');
|
|
7
7
|
var redefine = require('../internals/redefine');
|
|
8
8
|
var redefineAll = require('../internals/redefine-all');
|
|
9
|
-
var shared = require('../internals/shared');
|
|
10
9
|
var setToStringTag = require('../internals/set-to-string-tag');
|
|
11
10
|
var setSpecies = require('../internals/set-species');
|
|
12
11
|
var isObject = require('../internals/is-object');
|
|
13
12
|
var aFunction = require('../internals/a-function');
|
|
14
13
|
var anInstance = require('../internals/an-instance');
|
|
15
14
|
var classof = require('../internals/classof-raw');
|
|
15
|
+
var inspectSource = require('../internals/inspect-source');
|
|
16
16
|
var iterate = require('../internals/iterate');
|
|
17
17
|
var checkCorrectnessOfIteration = require('../internals/check-correctness-of-iteration');
|
|
18
18
|
var speciesConstructor = require('../internals/species-constructor');
|
|
@@ -36,7 +36,6 @@ var PromiseConstructor = NativePromise;
|
|
|
36
36
|
var TypeError = global.TypeError;
|
|
37
37
|
var document = global.document;
|
|
38
38
|
var process = global.process;
|
|
39
|
-
var inspectSource = shared('inspectSource');
|
|
40
39
|
var $fetch = getBuiltIn('fetch');
|
|
41
40
|
var newPromiseCapability = newPromiseCapabilityModule.f;
|
|
42
41
|
var newGenericPromiseCapability = newPromiseCapability;
|
|
@@ -53,12 +52,14 @@ var Internal, OwnPromiseCapability, PromiseWrapper, nativeThen;
|
|
|
53
52
|
|
|
54
53
|
var FORCED = isForced(PROMISE, function () {
|
|
55
54
|
var GLOBAL_CORE_JS_PROMISE = inspectSource(PromiseConstructor) !== String(PromiseConstructor);
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
55
|
+
if (!GLOBAL_CORE_JS_PROMISE) {
|
|
56
|
+
// V8 6.6 (Node 10 and Chrome 66) have a bug with resolving custom thenables
|
|
57
|
+
// https://bugs.chromium.org/p/chromium/issues/detail?id=830565
|
|
58
|
+
// We can't detect it synchronously, so just check versions
|
|
59
|
+
if (V8_VERSION === 66) return true;
|
|
60
|
+
// Unhandled rejections tracking support, NodeJS Promise without it fails @@species test
|
|
61
|
+
if (!IS_NODE && typeof PromiseRejectionEvent != 'function') return true;
|
|
62
|
+
}
|
|
62
63
|
// We need Promise#finally in the pure version for preventing prototype pollution
|
|
63
64
|
if (IS_PURE && !PromiseConstructor.prototype['finally']) return true;
|
|
64
65
|
// We can't use @@species feature detection in V8 since it causes
|
|
@@ -2,6 +2,7 @@ var $ = require('../internals/export');
|
|
|
2
2
|
var anObject = require('../internals/an-object');
|
|
3
3
|
var isObject = require('../internals/is-object');
|
|
4
4
|
var has = require('../internals/has');
|
|
5
|
+
var fails = require('../internals/fails');
|
|
5
6
|
var definePropertyModule = require('../internals/object-define-property');
|
|
6
7
|
var getOwnPropertyDescriptorModule = require('../internals/object-get-own-property-descriptor');
|
|
7
8
|
var getPrototypeOf = require('../internals/object-get-prototype-of');
|
|
@@ -31,6 +32,14 @@ function set(target, propertyKey, V /* , receiver */) {
|
|
|
31
32
|
return ownDescriptor.set === undefined ? false : (ownDescriptor.set.call(receiver, V), true);
|
|
32
33
|
}
|
|
33
34
|
|
|
34
|
-
|
|
35
|
+
// MS Edge 17-18 Reflect.set allows setting the property to object
|
|
36
|
+
// with non-writable property on the prototype
|
|
37
|
+
var MS_EDGE_BUG = fails(function () {
|
|
38
|
+
var object = definePropertyModule.f({}, 'a', { configurable: true });
|
|
39
|
+
// eslint-disable-next-line no-undef
|
|
40
|
+
return Reflect.set(getPrototypeOf(object), 'a', 1, object) !== false;
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
$({ target: 'Reflect', stat: true, forced: MS_EDGE_BUG }, {
|
|
35
44
|
set: set
|
|
36
45
|
});
|
package/modules/es.set.js
CHANGED
|
@@ -4,6 +4,6 @@ var collectionStrong = require('../internals/collection-strong');
|
|
|
4
4
|
|
|
5
5
|
// `Set` constructor
|
|
6
6
|
// https://tc39.github.io/ecma262/#sec-set-objects
|
|
7
|
-
module.exports = collection('Set', function (
|
|
8
|
-
return function Set() { return
|
|
7
|
+
module.exports = collection('Set', function (init) {
|
|
8
|
+
return function Set() { return init(this, arguments.length ? arguments[0] : undefined); };
|
|
9
9
|
}, collectionStrong);
|
|
@@ -1,16 +1,25 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
var $ = require('../internals/export');
|
|
3
|
+
var getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f;
|
|
3
4
|
var toLength = require('../internals/to-length');
|
|
4
5
|
var notARegExp = require('../internals/not-a-regexp');
|
|
5
6
|
var requireObjectCoercible = require('../internals/require-object-coercible');
|
|
6
7
|
var correctIsRegExpLogic = require('../internals/correct-is-regexp-logic');
|
|
8
|
+
var IS_PURE = require('../internals/is-pure');
|
|
7
9
|
|
|
8
10
|
var nativeEndsWith = ''.endsWith;
|
|
9
11
|
var min = Math.min;
|
|
10
12
|
|
|
13
|
+
var CORRECT_IS_REGEXP_LOGIC = correctIsRegExpLogic('endsWith');
|
|
14
|
+
// https://github.com/zloirock/core-js/pull/702
|
|
15
|
+
var MDN_POLYFILL_BUG = !IS_PURE && !CORRECT_IS_REGEXP_LOGIC && !!function () {
|
|
16
|
+
var descriptor = getOwnPropertyDescriptor(String.prototype, 'endsWith');
|
|
17
|
+
return descriptor && !descriptor.writable;
|
|
18
|
+
}();
|
|
19
|
+
|
|
11
20
|
// `String.prototype.endsWith` method
|
|
12
21
|
// https://tc39.github.io/ecma262/#sec-string.prototype.endswith
|
|
13
|
-
$({ target: 'String', proto: true, forced: !
|
|
22
|
+
$({ target: 'String', proto: true, forced: !MDN_POLYFILL_BUG && !CORRECT_IS_REGEXP_LOGIC }, {
|
|
14
23
|
endsWith: function endsWith(searchString /* , endPosition = @length */) {
|
|
15
24
|
var that = String(requireObjectCoercible(this));
|
|
16
25
|
notARegExp(searchString);
|
|
@@ -5,7 +5,7 @@ var requireObjectCoercible = require('../internals/require-object-coercible');
|
|
|
5
5
|
var toLength = require('../internals/to-length');
|
|
6
6
|
var aFunction = require('../internals/a-function');
|
|
7
7
|
var anObject = require('../internals/an-object');
|
|
8
|
-
var classof = require('../internals/classof');
|
|
8
|
+
var classof = require('../internals/classof-raw');
|
|
9
9
|
var isRegExp = require('../internals/is-regexp');
|
|
10
10
|
var getRegExpFlags = require('../internals/regexp-flags');
|
|
11
11
|
var createNonEnumerableProperty = require('../internals/create-non-enumerable-property');
|
|
@@ -1,16 +1,25 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
var $ = require('../internals/export');
|
|
3
|
+
var getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f;
|
|
3
4
|
var toLength = require('../internals/to-length');
|
|
4
5
|
var notARegExp = require('../internals/not-a-regexp');
|
|
5
6
|
var requireObjectCoercible = require('../internals/require-object-coercible');
|
|
6
7
|
var correctIsRegExpLogic = require('../internals/correct-is-regexp-logic');
|
|
8
|
+
var IS_PURE = require('../internals/is-pure');
|
|
7
9
|
|
|
8
10
|
var nativeStartsWith = ''.startsWith;
|
|
9
11
|
var min = Math.min;
|
|
10
12
|
|
|
13
|
+
var CORRECT_IS_REGEXP_LOGIC = correctIsRegExpLogic('startsWith');
|
|
14
|
+
// https://github.com/zloirock/core-js/pull/702
|
|
15
|
+
var MDN_POLYFILL_BUG = !IS_PURE && !CORRECT_IS_REGEXP_LOGIC && !!function () {
|
|
16
|
+
var descriptor = getOwnPropertyDescriptor(String.prototype, 'startsWith');
|
|
17
|
+
return descriptor && !descriptor.writable;
|
|
18
|
+
}();
|
|
19
|
+
|
|
11
20
|
// `String.prototype.startsWith` method
|
|
12
21
|
// https://tc39.github.io/ecma262/#sec-string.prototype.startswith
|
|
13
|
-
$({ target: 'String', proto: true, forced: !
|
|
22
|
+
$({ target: 'String', proto: true, forced: !MDN_POLYFILL_BUG && !CORRECT_IS_REGEXP_LOGIC }, {
|
|
14
23
|
startsWith: function startsWith(searchString /* , position = 0 */) {
|
|
15
24
|
var that = String(requireObjectCoercible(this));
|
|
16
25
|
notARegExp(searchString);
|
package/modules/es.symbol.js
CHANGED
|
@@ -5,6 +5,7 @@ var getBuiltIn = require('../internals/get-built-in');
|
|
|
5
5
|
var IS_PURE = require('../internals/is-pure');
|
|
6
6
|
var DESCRIPTORS = require('../internals/descriptors');
|
|
7
7
|
var NATIVE_SYMBOL = require('../internals/native-symbol');
|
|
8
|
+
var USE_SYMBOL_AS_UID = require('../internals/use-symbol-as-uid');
|
|
8
9
|
var fails = require('../internals/fails');
|
|
9
10
|
var has = require('../internals/has');
|
|
10
11
|
var isArray = require('../internals/is-array');
|
|
@@ -195,7 +196,9 @@ if (!NATIVE_SYMBOL) {
|
|
|
195
196
|
redefine(ObjectPrototype, 'propertyIsEnumerable', $propertyIsEnumerable, { unsafe: true });
|
|
196
197
|
}
|
|
197
198
|
}
|
|
199
|
+
}
|
|
198
200
|
|
|
201
|
+
if (!USE_SYMBOL_AS_UID) {
|
|
199
202
|
wrappedWellKnownSymbolModule.f = function (name) {
|
|
200
203
|
return wrap(wellKnownSymbol(name), name);
|
|
201
204
|
};
|
|
@@ -3,9 +3,10 @@ var ArrayBufferViewCore = require('../internals/array-buffer-view-core');
|
|
|
3
3
|
var $copyWithin = require('../internals/array-copy-within');
|
|
4
4
|
|
|
5
5
|
var aTypedArray = ArrayBufferViewCore.aTypedArray;
|
|
6
|
+
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
|
|
6
7
|
|
|
7
8
|
// `%TypedArray%.prototype.copyWithin` method
|
|
8
9
|
// https://tc39.github.io/ecma262/#sec-%typedarray%.prototype.copywithin
|
|
9
|
-
|
|
10
|
+
exportTypedArrayMethod('copyWithin', function copyWithin(target, start /* , end */) {
|
|
10
11
|
return $copyWithin.call(aTypedArray(this), target, start, arguments.length > 2 ? arguments[2] : undefined);
|
|
11
12
|
});
|
|
@@ -3,9 +3,10 @@ var ArrayBufferViewCore = require('../internals/array-buffer-view-core');
|
|
|
3
3
|
var $every = require('../internals/array-iteration').every;
|
|
4
4
|
|
|
5
5
|
var aTypedArray = ArrayBufferViewCore.aTypedArray;
|
|
6
|
+
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
|
|
6
7
|
|
|
7
8
|
// `%TypedArray%.prototype.every` method
|
|
8
9
|
// https://tc39.github.io/ecma262/#sec-%typedarray%.prototype.every
|
|
9
|
-
|
|
10
|
+
exportTypedArrayMethod('every', function every(callbackfn /* , thisArg */) {
|
|
10
11
|
return $every(aTypedArray(this), callbackfn, arguments.length > 1 ? arguments[1] : undefined);
|
|
11
12
|
});
|
|
@@ -3,10 +3,11 @@ var ArrayBufferViewCore = require('../internals/array-buffer-view-core');
|
|
|
3
3
|
var $fill = require('../internals/array-fill');
|
|
4
4
|
|
|
5
5
|
var aTypedArray = ArrayBufferViewCore.aTypedArray;
|
|
6
|
+
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
|
|
6
7
|
|
|
7
8
|
// `%TypedArray%.prototype.fill` method
|
|
8
9
|
// https://tc39.github.io/ecma262/#sec-%typedarray%.prototype.fill
|
|
9
10
|
// eslint-disable-next-line no-unused-vars
|
|
10
|
-
|
|
11
|
+
exportTypedArrayMethod('fill', function fill(value /* , start, end */) {
|
|
11
12
|
return $fill.apply(aTypedArray(this), arguments);
|
|
12
13
|
});
|
|
@@ -5,10 +5,11 @@ var speciesConstructor = require('../internals/species-constructor');
|
|
|
5
5
|
|
|
6
6
|
var aTypedArray = ArrayBufferViewCore.aTypedArray;
|
|
7
7
|
var aTypedArrayConstructor = ArrayBufferViewCore.aTypedArrayConstructor;
|
|
8
|
+
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
|
|
8
9
|
|
|
9
10
|
// `%TypedArray%.prototype.filter` method
|
|
10
11
|
// https://tc39.github.io/ecma262/#sec-%typedarray%.prototype.filter
|
|
11
|
-
|
|
12
|
+
exportTypedArrayMethod('filter', function filter(callbackfn /* , thisArg */) {
|
|
12
13
|
var list = $filter(aTypedArray(this), callbackfn, arguments.length > 1 ? arguments[1] : undefined);
|
|
13
14
|
var C = speciesConstructor(this, this.constructor);
|
|
14
15
|
var index = 0;
|
|
@@ -3,9 +3,10 @@ var ArrayBufferViewCore = require('../internals/array-buffer-view-core');
|
|
|
3
3
|
var $findIndex = require('../internals/array-iteration').findIndex;
|
|
4
4
|
|
|
5
5
|
var aTypedArray = ArrayBufferViewCore.aTypedArray;
|
|
6
|
+
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
|
|
6
7
|
|
|
7
8
|
// `%TypedArray%.prototype.findIndex` method
|
|
8
9
|
// https://tc39.github.io/ecma262/#sec-%typedarray%.prototype.findindex
|
|
9
|
-
|
|
10
|
+
exportTypedArrayMethod('findIndex', function findIndex(predicate /* , thisArg */) {
|
|
10
11
|
return $findIndex(aTypedArray(this), predicate, arguments.length > 1 ? arguments[1] : undefined);
|
|
11
12
|
});
|
|
@@ -3,9 +3,10 @@ var ArrayBufferViewCore = require('../internals/array-buffer-view-core');
|
|
|
3
3
|
var $find = require('../internals/array-iteration').find;
|
|
4
4
|
|
|
5
5
|
var aTypedArray = ArrayBufferViewCore.aTypedArray;
|
|
6
|
+
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
|
|
6
7
|
|
|
7
8
|
// `%TypedArray%.prototype.find` method
|
|
8
9
|
// https://tc39.github.io/ecma262/#sec-%typedarray%.prototype.find
|
|
9
|
-
|
|
10
|
+
exportTypedArrayMethod('find', function find(predicate /* , thisArg */) {
|
|
10
11
|
return $find(aTypedArray(this), predicate, arguments.length > 1 ? arguments[1] : undefined);
|
|
11
12
|
});
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
var
|
|
1
|
+
var createTypedArrayConstructor = require('../internals/typed-array-constructor');
|
|
2
2
|
|
|
3
3
|
// `Float32Array` constructor
|
|
4
4
|
// https://tc39.github.io/ecma262/#sec-typedarray-objects
|
|
5
|
-
|
|
5
|
+
createTypedArrayConstructor('Float32', function (init) {
|
|
6
6
|
return function Float32Array(data, byteOffset, length) {
|
|
7
7
|
return init(this, data, byteOffset, length);
|
|
8
8
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
var
|
|
1
|
+
var createTypedArrayConstructor = require('../internals/typed-array-constructor');
|
|
2
2
|
|
|
3
3
|
// `Float64Array` constructor
|
|
4
4
|
// https://tc39.github.io/ecma262/#sec-typedarray-objects
|
|
5
|
-
|
|
5
|
+
createTypedArrayConstructor('Float64', function (init) {
|
|
6
6
|
return function Float64Array(data, byteOffset, length) {
|
|
7
7
|
return init(this, data, byteOffset, length);
|
|
8
8
|
};
|
|
@@ -3,9 +3,10 @@ var ArrayBufferViewCore = require('../internals/array-buffer-view-core');
|
|
|
3
3
|
var $forEach = require('../internals/array-iteration').forEach;
|
|
4
4
|
|
|
5
5
|
var aTypedArray = ArrayBufferViewCore.aTypedArray;
|
|
6
|
+
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
|
|
6
7
|
|
|
7
8
|
// `%TypedArray%.prototype.forEach` method
|
|
8
9
|
// https://tc39.github.io/ecma262/#sec-%typedarray%.prototype.foreach
|
|
9
|
-
|
|
10
|
+
exportTypedArrayMethod('forEach', function forEach(callbackfn /* , thisArg */) {
|
|
10
11
|
$forEach(aTypedArray(this), callbackfn, arguments.length > 1 ? arguments[1] : undefined);
|
|
11
12
|
});
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
var TYPED_ARRAYS_CONSTRUCTORS_REQUIRES_WRAPPERS = require('../internals/typed-arrays-constructors-requires-wrappers');
|
|
3
|
-
var
|
|
3
|
+
var exportTypedArrayStaticMethod = require('../internals/array-buffer-view-core').exportTypedArrayStaticMethod;
|
|
4
4
|
var typedArrayFrom = require('../internals/typed-array-from');
|
|
5
5
|
|
|
6
6
|
// `%TypedArray%.from` method
|
|
7
7
|
// https://tc39.github.io/ecma262/#sec-%typedarray%.from
|
|
8
|
-
|
|
8
|
+
exportTypedArrayStaticMethod('from', typedArrayFrom, TYPED_ARRAYS_CONSTRUCTORS_REQUIRES_WRAPPERS);
|
|
@@ -3,9 +3,10 @@ var ArrayBufferViewCore = require('../internals/array-buffer-view-core');
|
|
|
3
3
|
var $includes = require('../internals/array-includes').includes;
|
|
4
4
|
|
|
5
5
|
var aTypedArray = ArrayBufferViewCore.aTypedArray;
|
|
6
|
+
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
|
|
6
7
|
|
|
7
8
|
// `%TypedArray%.prototype.includes` method
|
|
8
9
|
// https://tc39.github.io/ecma262/#sec-%typedarray%.prototype.includes
|
|
9
|
-
|
|
10
|
+
exportTypedArrayMethod('includes', function includes(searchElement /* , fromIndex */) {
|
|
10
11
|
return $includes(aTypedArray(this), searchElement, arguments.length > 1 ? arguments[1] : undefined);
|
|
11
12
|
});
|
|
@@ -3,9 +3,10 @@ var ArrayBufferViewCore = require('../internals/array-buffer-view-core');
|
|
|
3
3
|
var $indexOf = require('../internals/array-includes').indexOf;
|
|
4
4
|
|
|
5
5
|
var aTypedArray = ArrayBufferViewCore.aTypedArray;
|
|
6
|
+
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
|
|
6
7
|
|
|
7
8
|
// `%TypedArray%.prototype.indexOf` method
|
|
8
9
|
// https://tc39.github.io/ecma262/#sec-%typedarray%.prototype.indexof
|
|
9
|
-
|
|
10
|
+
exportTypedArrayMethod('indexOf', function indexOf(searchElement /* , fromIndex */) {
|
|
10
11
|
return $indexOf(aTypedArray(this), searchElement, arguments.length > 1 ? arguments[1] : undefined);
|
|
11
12
|
});
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
var
|
|
1
|
+
var createTypedArrayConstructor = require('../internals/typed-array-constructor');
|
|
2
2
|
|
|
3
3
|
// `Int16Array` constructor
|
|
4
4
|
// https://tc39.github.io/ecma262/#sec-typedarray-objects
|
|
5
|
-
|
|
5
|
+
createTypedArrayConstructor('Int16', function (init) {
|
|
6
6
|
return function Int16Array(data, byteOffset, length) {
|
|
7
7
|
return init(this, data, byteOffset, length);
|
|
8
8
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
var
|
|
1
|
+
var createTypedArrayConstructor = require('../internals/typed-array-constructor');
|
|
2
2
|
|
|
3
3
|
// `Int32Array` constructor
|
|
4
4
|
// https://tc39.github.io/ecma262/#sec-typedarray-objects
|
|
5
|
-
|
|
5
|
+
createTypedArrayConstructor('Int32', function (init) {
|
|
6
6
|
return function Int32Array(data, byteOffset, length) {
|
|
7
7
|
return init(this, data, byteOffset, length);
|
|
8
8
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
var
|
|
1
|
+
var createTypedArrayConstructor = require('../internals/typed-array-constructor');
|
|
2
2
|
|
|
3
3
|
// `Int8Array` constructor
|
|
4
4
|
// https://tc39.github.io/ecma262/#sec-typedarray-objects
|
|
5
|
-
|
|
5
|
+
createTypedArrayConstructor('Int8', function (init) {
|
|
6
6
|
return function Int8Array(data, byteOffset, length) {
|
|
7
7
|
return init(this, data, byteOffset, length);
|
|
8
8
|
};
|
|
@@ -10,7 +10,7 @@ var arrayValues = ArrayIterators.values;
|
|
|
10
10
|
var arrayKeys = ArrayIterators.keys;
|
|
11
11
|
var arrayEntries = ArrayIterators.entries;
|
|
12
12
|
var aTypedArray = ArrayBufferViewCore.aTypedArray;
|
|
13
|
-
var
|
|
13
|
+
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
|
|
14
14
|
var nativeTypedArrayIterator = Uint8Array && Uint8Array.prototype[ITERATOR];
|
|
15
15
|
|
|
16
16
|
var CORRECT_ITER_NAME = !!nativeTypedArrayIterator
|
|
@@ -22,17 +22,17 @@ var typedArrayValues = function values() {
|
|
|
22
22
|
|
|
23
23
|
// `%TypedArray%.prototype.entries` method
|
|
24
24
|
// https://tc39.github.io/ecma262/#sec-%typedarray%.prototype.entries
|
|
25
|
-
|
|
25
|
+
exportTypedArrayMethod('entries', function entries() {
|
|
26
26
|
return arrayEntries.call(aTypedArray(this));
|
|
27
27
|
});
|
|
28
28
|
// `%TypedArray%.prototype.keys` method
|
|
29
29
|
// https://tc39.github.io/ecma262/#sec-%typedarray%.prototype.keys
|
|
30
|
-
|
|
30
|
+
exportTypedArrayMethod('keys', function keys() {
|
|
31
31
|
return arrayKeys.call(aTypedArray(this));
|
|
32
32
|
});
|
|
33
33
|
// `%TypedArray%.prototype.values` method
|
|
34
34
|
// https://tc39.github.io/ecma262/#sec-%typedarray%.prototype.values
|
|
35
|
-
|
|
35
|
+
exportTypedArrayMethod('values', typedArrayValues, !CORRECT_ITER_NAME);
|
|
36
36
|
// `%TypedArray%.prototype[@@iterator]` method
|
|
37
37
|
// https://tc39.github.io/ecma262/#sec-%typedarray%.prototype-@@iterator
|
|
38
|
-
|
|
38
|
+
exportTypedArrayMethod(ITERATOR, typedArrayValues, !CORRECT_ITER_NAME);
|
|
@@ -2,11 +2,12 @@
|
|
|
2
2
|
var ArrayBufferViewCore = require('../internals/array-buffer-view-core');
|
|
3
3
|
|
|
4
4
|
var aTypedArray = ArrayBufferViewCore.aTypedArray;
|
|
5
|
+
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
|
|
5
6
|
var $join = [].join;
|
|
6
7
|
|
|
7
8
|
// `%TypedArray%.prototype.join` method
|
|
8
9
|
// https://tc39.github.io/ecma262/#sec-%typedarray%.prototype.join
|
|
9
10
|
// eslint-disable-next-line no-unused-vars
|
|
10
|
-
|
|
11
|
+
exportTypedArrayMethod('join', function join(separator) {
|
|
11
12
|
return $join.apply(aTypedArray(this), arguments);
|
|
12
13
|
});
|
|
@@ -3,10 +3,11 @@ var ArrayBufferViewCore = require('../internals/array-buffer-view-core');
|
|
|
3
3
|
var $lastIndexOf = require('../internals/array-last-index-of');
|
|
4
4
|
|
|
5
5
|
var aTypedArray = ArrayBufferViewCore.aTypedArray;
|
|
6
|
+
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
|
|
6
7
|
|
|
7
8
|
// `%TypedArray%.prototype.lastIndexOf` method
|
|
8
9
|
// https://tc39.github.io/ecma262/#sec-%typedarray%.prototype.lastindexof
|
|
9
10
|
// eslint-disable-next-line no-unused-vars
|
|
10
|
-
|
|
11
|
+
exportTypedArrayMethod('lastIndexOf', function lastIndexOf(searchElement /* , fromIndex */) {
|
|
11
12
|
return $lastIndexOf.apply(aTypedArray(this), arguments);
|
|
12
13
|
});
|