core-js 3.1.2 → 3.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/es/array/concat.js +2 -1
- package/es/array/copy-within.js +2 -1
- package/es/array/entries.js +2 -1
- package/es/array/every.js +2 -1
- package/es/array/fill.js +2 -1
- package/es/array/filter.js +2 -1
- package/es/array/find-index.js +2 -1
- package/es/array/find.js +2 -1
- package/es/array/flat-map.js +2 -1
- package/es/array/flat.js +2 -1
- package/es/array/for-each.js +2 -1
- package/es/array/from.js +2 -1
- package/es/array/includes.js +2 -1
- package/es/array/index-of.js +2 -1
- package/es/array/index.js +2 -1
- package/es/array/is-array.js +2 -1
- package/es/array/iterator.js +2 -1
- package/es/array/join.js +2 -1
- package/es/array/keys.js +2 -1
- package/es/array/last-index-of.js +2 -1
- package/es/array/map.js +2 -1
- package/es/array/of.js +2 -1
- package/es/array/reduce-right.js +2 -1
- package/es/array/reduce.js +2 -1
- package/es/array/reverse.js +2 -1
- package/es/array/slice.js +2 -1
- package/es/array/some.js +2 -1
- package/es/array/sort.js +2 -1
- package/es/array/splice.js +2 -1
- package/es/array/values.js +2 -1
- package/es/array/virtual/concat.js +2 -1
- package/es/array/virtual/copy-within.js +2 -1
- package/es/array/virtual/entries.js +2 -1
- package/es/array/virtual/every.js +2 -1
- package/es/array/virtual/fill.js +2 -1
- package/es/array/virtual/filter.js +2 -1
- package/es/array/virtual/find-index.js +2 -1
- package/es/array/virtual/find.js +2 -1
- package/es/array/virtual/flat-map.js +2 -1
- package/es/array/virtual/flat.js +2 -1
- package/es/array/virtual/for-each.js +2 -1
- package/es/array/virtual/includes.js +2 -1
- package/es/array/virtual/index-of.js +2 -1
- package/es/array/virtual/index.js +2 -1
- package/es/array/virtual/iterator.js +2 -1
- package/es/array/virtual/join.js +2 -1
- package/es/array/virtual/keys.js +2 -1
- package/es/array/virtual/last-index-of.js +2 -1
- package/es/array/virtual/map.js +2 -1
- package/es/array/virtual/reduce-right.js +2 -1
- package/es/array/virtual/reduce.js +2 -1
- package/es/array/virtual/reverse.js +2 -1
- package/es/array/virtual/slice.js +2 -1
- package/es/array/virtual/some.js +2 -1
- package/es/array/virtual/sort.js +2 -1
- package/es/array/virtual/splice.js +2 -1
- package/es/array/virtual/values.js +2 -1
- package/es/array-buffer/constructor.js +2 -1
- package/es/array-buffer/index.js +2 -1
- package/es/array-buffer/is-view.js +2 -1
- package/es/data-view/index.js +2 -1
- package/es/date/index.js +2 -1
- package/es/date/now.js +2 -1
- package/es/date/to-iso-string.js +2 -1
- package/es/date/to-json.js +2 -1
- package/es/function/bind.js +2 -1
- package/es/function/has-instance.js +2 -1
- package/es/function/index.js +2 -1
- package/es/function/virtual/bind.js +2 -1
- package/es/function/virtual/index.js +2 -1
- package/es/instance/bind.js +1 -0
- package/es/instance/code-point-at.js +1 -0
- package/es/instance/concat.js +1 -0
- package/es/instance/copy-within.js +1 -0
- package/es/instance/ends-with.js +1 -0
- package/es/instance/entries.js +1 -0
- package/es/instance/every.js +1 -0
- package/es/instance/fill.js +1 -0
- package/es/instance/filter.js +1 -0
- package/es/instance/find-index.js +1 -0
- package/es/instance/find.js +1 -0
- package/es/instance/flags.js +1 -0
- package/es/instance/flat-map.js +1 -0
- package/es/instance/flat.js +1 -0
- package/es/instance/for-each.js +1 -0
- package/es/instance/includes.js +1 -0
- package/es/instance/index-of.js +1 -0
- package/es/instance/keys.js +1 -0
- package/es/instance/last-index-of.js +1 -0
- package/es/instance/map.js +1 -0
- package/es/instance/match-all.js +1 -0
- package/es/instance/pad-end.js +1 -0
- package/es/instance/pad-start.js +1 -0
- package/es/instance/reduce-right.js +1 -0
- package/es/instance/reduce.js +1 -0
- package/es/instance/repeat.js +1 -0
- package/es/instance/reverse.js +1 -0
- package/es/instance/slice.js +1 -0
- package/es/instance/some.js +1 -0
- package/es/instance/sort.js +1 -0
- package/es/instance/splice.js +1 -0
- package/es/instance/starts-with.js +1 -0
- package/es/instance/trim-end.js +1 -0
- package/es/instance/trim-left.js +1 -0
- package/es/instance/trim-right.js +1 -0
- package/es/instance/trim-start.js +1 -0
- package/es/instance/trim.js +1 -0
- package/es/instance/values.js +1 -0
- package/es/json/index.js +0 -1
- package/es/map/index.js +2 -1
- package/es/math/acosh.js +2 -1
- package/es/math/asinh.js +2 -1
- package/es/math/atanh.js +2 -1
- package/es/math/cbrt.js +2 -1
- package/es/math/clz32.js +2 -1
- package/es/math/cosh.js +2 -1
- package/es/math/expm1.js +2 -1
- package/es/math/fround.js +2 -1
- package/es/math/hypot.js +2 -1
- package/es/math/imul.js +2 -1
- package/es/math/index.js +2 -1
- package/es/math/log10.js +2 -1
- package/es/math/log1p.js +2 -1
- package/es/math/log2.js +2 -1
- package/es/math/sign.js +2 -1
- package/es/math/sinh.js +2 -1
- package/es/math/tanh.js +2 -1
- package/es/math/trunc.js +2 -1
- package/es/number/index.js +2 -1
- package/es/number/is-finite.js +2 -1
- package/es/number/is-integer.js +2 -1
- package/es/number/is-nan.js +2 -1
- package/es/number/is-safe-integer.js +2 -1
- package/es/number/parse-float.js +2 -1
- package/es/number/parse-int.js +2 -1
- package/es/number/to-fixed.js +2 -1
- package/es/number/to-precision.js +2 -1
- package/es/number/virtual/index.js +2 -1
- package/es/number/virtual/to-fixed.js +2 -1
- package/es/number/virtual/to-precision.js +2 -1
- package/es/object/assign.js +2 -1
- package/es/object/create.js +3 -1
- package/es/object/define-getter.js +2 -1
- package/es/object/define-properties.js +3 -1
- package/es/object/define-property.js +3 -1
- package/es/object/define-setter.js +2 -1
- package/es/object/entries.js +2 -1
- package/es/object/freeze.js +2 -1
- package/es/object/from-entries.js +2 -1
- package/es/object/get-own-property-descriptor.js +3 -1
- package/es/object/get-own-property-descriptors.js +2 -1
- package/es/object/get-own-property-names.js +3 -1
- package/es/object/get-own-property-symbols.js +2 -1
- package/es/object/get-prototype-of.js +2 -1
- package/es/object/index.js +2 -1
- package/es/object/is-extensible.js +2 -1
- package/es/object/is-frozen.js +2 -1
- package/es/object/is-sealed.js +2 -1
- package/es/object/is.js +2 -1
- package/es/object/keys.js +2 -1
- package/es/object/lookup-getter.js +2 -1
- package/es/object/lookup-setter.js +2 -1
- package/es/object/prevent-extensions.js +2 -1
- package/es/object/seal.js +2 -1
- package/es/object/set-prototype-of.js +2 -1
- package/es/object/values.js +2 -1
- package/es/parse-float.js +2 -1
- package/es/parse-int.js +2 -1
- package/es/promise/finally.js +2 -1
- package/es/promise/index.js +2 -1
- package/es/reflect/apply.js +2 -1
- package/es/reflect/construct.js +2 -1
- package/es/reflect/define-property.js +2 -1
- package/es/reflect/delete-property.js +2 -1
- package/es/reflect/get-own-property-descriptor.js +2 -1
- package/es/reflect/get-prototype-of.js +2 -1
- package/es/reflect/get.js +2 -1
- package/es/reflect/has.js +2 -1
- package/es/reflect/index.js +2 -1
- package/es/reflect/is-extensible.js +2 -1
- package/es/reflect/own-keys.js +2 -1
- package/es/reflect/prevent-extensions.js +2 -1
- package/es/reflect/set-prototype-of.js +2 -1
- package/es/reflect/set.js +2 -1
- package/es/regexp/match.js +3 -1
- package/es/regexp/replace.js +3 -1
- package/es/regexp/search.js +3 -1
- package/es/regexp/split.js +3 -1
- package/es/set/index.js +2 -1
- package/es/string/anchor.js +2 -1
- package/es/string/big.js +2 -1
- package/es/string/blink.js +2 -1
- package/es/string/bold.js +2 -1
- package/es/string/code-point-at.js +2 -1
- package/es/string/ends-with.js +2 -1
- package/es/string/fixed.js +2 -1
- package/es/string/fontcolor.js +2 -1
- package/es/string/fontsize.js +2 -1
- package/es/string/from-code-point.js +2 -1
- package/es/string/includes.js +2 -1
- package/es/string/index.js +2 -1
- package/es/string/italics.js +2 -1
- package/es/string/iterator.js +3 -1
- package/es/string/link.js +2 -1
- package/es/string/match-all.js +2 -1
- package/es/string/match.js +2 -1
- package/es/string/pad-end.js +2 -1
- package/es/string/pad-start.js +2 -1
- package/es/string/raw.js +2 -1
- package/es/string/repeat.js +2 -1
- package/es/string/replace.js +2 -1
- package/es/string/search.js +2 -1
- package/es/string/small.js +2 -1
- package/es/string/split.js +2 -1
- package/es/string/starts-with.js +2 -1
- package/es/string/strike.js +2 -1
- package/es/string/sub.js +2 -1
- package/es/string/sup.js +2 -1
- package/es/string/trim-end.js +2 -1
- package/es/string/trim-left.js +2 -1
- package/es/string/trim-right.js +2 -1
- package/es/string/trim-start.js +2 -1
- package/es/string/trim.js +2 -1
- package/es/string/virtual/anchor.js +2 -1
- package/es/string/virtual/big.js +2 -1
- package/es/string/virtual/blink.js +2 -1
- package/es/string/virtual/bold.js +2 -1
- package/es/string/virtual/code-point-at.js +2 -1
- package/es/string/virtual/ends-with.js +2 -1
- package/es/string/virtual/fixed.js +2 -1
- package/es/string/virtual/fontcolor.js +2 -1
- package/es/string/virtual/fontsize.js +2 -1
- package/es/string/virtual/includes.js +2 -1
- package/es/string/virtual/index.js +2 -1
- package/es/string/virtual/italics.js +2 -1
- package/es/string/virtual/iterator.js +2 -1
- package/es/string/virtual/link.js +2 -1
- package/es/string/virtual/match-all.js +2 -1
- package/es/string/virtual/pad-end.js +2 -1
- package/es/string/virtual/pad-start.js +2 -1
- package/es/string/virtual/repeat.js +2 -1
- package/es/string/virtual/small.js +2 -1
- package/es/string/virtual/starts-with.js +2 -1
- package/es/string/virtual/strike.js +2 -1
- package/es/string/virtual/sub.js +2 -1
- package/es/string/virtual/sup.js +2 -1
- package/es/string/virtual/trim-end.js +2 -1
- package/es/string/virtual/trim-left.js +2 -1
- package/es/string/virtual/trim-right.js +2 -1
- package/es/string/virtual/trim-start.js +2 -1
- package/es/string/virtual/trim.js +2 -1
- package/es/symbol/async-iterator.js +2 -1
- package/es/symbol/for.js +2 -1
- package/es/symbol/has-instance.js +2 -1
- package/es/symbol/index.js +2 -1
- package/es/symbol/is-concat-spreadable.js +2 -1
- package/es/symbol/iterator.js +2 -1
- package/es/symbol/key-for.js +2 -1
- package/es/symbol/match-all.js +2 -1
- package/es/symbol/match.js +2 -1
- package/es/symbol/replace.js +2 -1
- package/es/symbol/search.js +2 -1
- package/es/symbol/species.js +3 -1
- package/es/symbol/split.js +2 -1
- package/es/symbol/to-primitive.js +2 -1
- package/es/symbol/to-string-tag.js +2 -1
- package/es/symbol/unscopables.js +2 -1
- package/es/typed-array/float32-array.js +2 -1
- package/es/typed-array/float64-array.js +2 -1
- package/es/typed-array/int16-array.js +2 -1
- package/es/typed-array/int32-array.js +2 -1
- package/es/typed-array/int8-array.js +2 -1
- package/es/typed-array/uint16-array.js +2 -1
- package/es/typed-array/uint32-array.js +2 -1
- package/es/typed-array/uint8-array.js +2 -1
- package/es/typed-array/uint8-clamped-array.js +2 -1
- package/es/weak-map/index.js +2 -1
- package/es/weak-set/index.js +2 -1
- package/features/aggregate-error.js +2 -1
- package/features/composite-key.js +2 -1
- package/features/composite-symbol.js +2 -1
- package/features/dom-collections/for-each.js +1 -3
- package/features/dom-collections/index.js +1 -11
- package/features/dom-collections/iterator.js +1 -3
- package/features/global-this.js +1 -1
- package/features/instance/at.js +1 -0
- package/features/instance/code-points.js +1 -0
- package/features/instance/replace-all.js +1 -0
- package/features/map/delete-all.js +2 -1
- package/features/map/every.js +2 -1
- package/features/map/filter.js +2 -1
- package/features/map/find-key.js +2 -1
- package/features/map/find.js +2 -1
- package/features/map/from.js +3 -1
- package/features/map/group-by.js +3 -1
- package/features/map/includes.js +2 -1
- package/features/map/key-by.js +3 -1
- package/features/map/key-of.js +2 -1
- package/features/map/map-keys.js +2 -1
- package/features/map/map-values.js +2 -1
- package/features/map/merge.js +2 -1
- package/features/map/of.js +3 -1
- package/features/map/reduce.js +2 -1
- package/features/map/some.js +2 -1
- package/features/map/update.js +2 -1
- package/features/math/clamp.js +2 -1
- package/features/math/degrees.js +2 -1
- package/features/math/fscale.js +2 -1
- package/features/math/iaddh.js +2 -1
- package/features/math/imulh.js +2 -1
- package/features/math/isubh.js +2 -1
- package/features/math/radians.js +2 -1
- package/features/math/scale.js +2 -1
- package/features/math/seeded-prng.js +2 -1
- package/features/math/signbit.js +2 -1
- package/features/math/umulh.js +2 -1
- package/features/number/from-string.js +2 -1
- package/features/observable/index.js +2 -1
- package/features/promise/all-settled.js +3 -1
- package/features/promise/any.js +3 -1
- package/features/promise/try.js +3 -1
- package/features/reflect/define-metadata.js +2 -1
- package/features/reflect/delete-metadata.js +4 -1
- package/features/reflect/get-metadata-keys.js +2 -1
- package/features/reflect/get-metadata.js +2 -1
- package/features/reflect/get-own-metadata-keys.js +2 -1
- package/features/reflect/get-own-metadata.js +2 -1
- package/features/reflect/has-metadata.js +2 -1
- package/features/reflect/has-own-metadata.js +2 -1
- package/features/reflect/metadata.js +2 -1
- package/features/set/add-all.js +2 -1
- package/features/set/delete-all.js +2 -1
- package/features/set/difference.js +2 -1
- package/features/set/every.js +2 -1
- package/features/set/filter.js +2 -1
- package/features/set/find.js +2 -1
- package/features/set/from.js +3 -1
- package/features/set/intersection.js +2 -1
- package/features/set/is-disjoint-from.js +2 -1
- package/features/set/is-subset-of.js +2 -1
- package/features/set/is-superset-of.js +2 -1
- package/features/set/join.js +2 -1
- package/features/set/map.js +2 -1
- package/features/set/of.js +3 -1
- package/features/set/reduce.js +2 -1
- package/features/set/some.js +2 -1
- package/features/set/symmetric-difference.js +2 -1
- package/features/set/union.js +2 -1
- package/features/string/at.js +2 -1
- package/features/string/replace-all.js +2 -1
- package/features/string/virtual/at.js +2 -1
- package/features/string/virtual/replace-all.js +2 -1
- package/features/symbol/dispose.js +2 -1
- package/features/symbol/observable.js +2 -1
- package/features/symbol/pattern-match.js +2 -1
- package/features/symbol/replace-all.js +2 -1
- package/features/url/index.js +1 -5
- package/features/url/to-json.js +1 -1
- package/features/url-search-params/index.js +1 -3
- package/features/weak-map/delete-all.js +2 -1
- package/features/weak-map/from.js +3 -1
- package/features/weak-map/of.js +3 -1
- package/features/weak-set/add-all.js +2 -1
- package/features/weak-set/delete-all.js +2 -1
- package/features/weak-set/from.js +3 -1
- package/features/weak-set/of.js +3 -1
- package/internals/add-to-unscopables.js +3 -1
- package/internals/array-buffer-view-core.js +4 -2
- package/internals/array-buffer.js +1 -0
- package/internals/array-for-each.js +5 -4
- package/internals/array-last-index-of.js +3 -2
- package/internals/array-method-has-species-support.js +3 -1
- package/internals/array-species-create.js +3 -1
- package/internals/check-correctness-of-iteration.js +3 -1
- package/internals/classof.js +3 -1
- package/internals/collection-strong.js +1 -0
- package/internals/collection-weak.js +1 -0
- package/internals/collection.js +2 -2
- package/internals/correct-is-regexp-logic.js +3 -1
- package/internals/correct-prototype-getter.js +3 -1
- package/internals/create-html.js +1 -0
- package/internals/date-to-iso-string.js +1 -0
- package/internals/define-iterator.js +5 -3
- package/internals/descriptors.js +3 -1
- package/internals/document-create-element.js +3 -1
- package/internals/entry-unbind.js +1 -0
- package/internals/forced-string-trim-method.js +1 -0
- package/internals/freezing.js +3 -1
- package/internals/function-bind.js +1 -0
- package/internals/function-to-string.js +3 -1
- package/internals/get-iterator-method.js +3 -1
- package/internals/html.js +3 -1
- package/internals/indexed-object.js +1 -0
- package/internals/internal-metadata.js +4 -2
- package/internals/internal-state.js +3 -1
- package/internals/is-array-iterator-method.js +4 -2
- package/internals/is-forced.js +1 -0
- package/internals/is-integer.js +1 -0
- package/internals/is-iterable.js +3 -1
- package/internals/is-regexp.js +3 -1
- package/internals/iterate.js +1 -0
- package/internals/iterators-core.js +3 -1
- package/internals/math-fround.js +1 -0
- package/internals/microtask.js +1 -0
- package/internals/native-url.js +4 -2
- package/internals/native-weak-map.js +3 -1
- package/internals/new-promise-capability.js +1 -1
- package/internals/number-is-finite.js +3 -1
- package/internals/object-assign.js +2 -1
- package/internals/object-create.js +4 -2
- package/internals/object-define-property.js +1 -0
- package/internals/object-get-own-property-descriptor.js +1 -0
- package/internals/object-get-own-property-names-external.js +2 -1
- package/internals/object-get-own-property-names.js +3 -1
- package/internals/object-get-prototype-of.js +4 -2
- package/internals/object-keys-internal.js +3 -1
- package/internals/object-keys.js +1 -1
- package/internals/object-property-is-enumerable.js +3 -3
- package/internals/object-set-prototype-of.js +2 -2
- package/internals/object-to-string.js +3 -1
- package/internals/own-keys.js +3 -1
- package/internals/parse-float.js +3 -1
- package/internals/parse-int.js +3 -1
- package/internals/redefine.js +1 -0
- package/internals/reflect-metadata.js +4 -2
- package/internals/regexp-exec.js +0 -1
- package/internals/set-species.js +3 -1
- package/internals/set-to-string-tag.js +3 -1
- package/internals/shared-key.js +4 -2
- package/internals/shared.js +2 -1
- package/internals/species-constructor.js +3 -1
- package/internals/string-at.js +1 -0
- package/internals/string-trim.js +3 -1
- package/internals/task.js +1 -0
- package/internals/to-absolute-index.js +1 -0
- package/internals/to-length.js +1 -0
- package/internals/to-primitive.js +2 -1
- package/internals/typed-array-constructor.js +95 -92
- package/internals/typed-arrays-constructors-requires-wrappers.js +1 -0
- package/internals/user-agent.js +1 -0
- package/internals/well-known-symbol.js +5 -2
- package/modules/es.array-buffer.constructor.js +9 -4
- package/modules/es.array-buffer.is-view.js +3 -1
- package/modules/es.array-buffer.slice.js +5 -2
- package/modules/es.array.concat.js +9 -4
- package/modules/es.array.copy-within.js +7 -3
- package/modules/es.array.every.js +6 -3
- package/modules/es.array.fill.js +6 -2
- package/modules/es.array.filter.js +6 -3
- package/modules/es.array.find-index.js +7 -3
- package/modules/es.array.find.js +7 -3
- package/modules/es.array.flat-map.js +2 -1
- package/modules/es.array.flat.js +2 -1
- package/modules/es.array.for-each.js +4 -1
- package/modules/es.array.from.js +7 -3
- package/modules/es.array.includes.js +7 -3
- package/modules/es.array.index-of.js +7 -3
- package/modules/es.array.is-array.js +4 -1
- package/modules/es.array.iterator.js +1 -0
- package/modules/es.array.join.js +7 -3
- package/modules/es.array.last-index-of.js +4 -3
- package/modules/es.array.map.js +6 -3
- package/modules/es.array.of.js +4 -2
- package/modules/es.array.reduce-right.js +6 -5
- package/modules/es.array.reduce.js +4 -2
- package/modules/es.array.reverse.js +3 -1
- package/modules/es.array.slice.js +7 -3
- package/modules/es.array.some.js +6 -3
- package/modules/es.array.sort.js +5 -2
- package/modules/es.array.species.js +3 -1
- package/modules/es.array.splice.js +5 -2
- package/modules/es.array.unscopables.flat-map.js +3 -1
- package/modules/es.array.unscopables.flat.js +3 -1
- package/modules/es.data-view.js +4 -2
- package/modules/es.date.now.js +3 -1
- package/modules/es.date.to-iso-string.js +2 -1
- package/modules/es.date.to-json.js +4 -2
- package/modules/es.date.to-primitive.js +3 -1
- package/modules/es.date.to-string.js +3 -1
- package/modules/es.function.bind.js +5 -2
- package/modules/es.function.has-instance.js +3 -1
- package/modules/es.function.name.js +1 -0
- package/modules/es.json.to-string-tag.js +4 -1
- package/modules/es.map.js +5 -2
- package/modules/es.math.acosh.js +3 -1
- package/modules/es.math.asinh.js +3 -1
- package/modules/es.math.atanh.js +3 -1
- package/modules/es.math.cbrt.js +3 -1
- package/modules/es.math.clz32.js +3 -1
- package/modules/es.math.cosh.js +3 -1
- package/modules/es.math.expm1.js +3 -4
- package/modules/es.math.fround.js +4 -1
- package/modules/es.math.hypot.js +3 -1
- package/modules/es.math.imul.js +5 -2
- package/modules/es.math.log10.js +3 -1
- package/modules/es.math.log1p.js +4 -1
- package/modules/es.math.log2.js +3 -1
- package/modules/es.math.sign.js +6 -1
- package/modules/es.math.sinh.js +5 -2
- package/modules/es.math.tanh.js +3 -1
- package/modules/es.math.to-string-tag.js +3 -1
- package/modules/es.math.trunc.js +3 -1
- package/modules/es.number.constructor.js +7 -3
- package/modules/es.number.epsilon.js +5 -1
- package/modules/es.number.is-finite.js +4 -3
- package/modules/es.number.is-integer.js +5 -2
- package/modules/es.number.is-nan.js +3 -1
- package/modules/es.number.is-safe-integer.js +3 -1
- package/modules/es.number.max-safe-integer.js +5 -1
- package/modules/es.number.min-safe-integer.js +5 -1
- package/modules/es.number.parse-float.js +2 -1
- package/modules/es.number.parse-int.js +2 -1
- package/modules/es.number.to-fixed.js +10 -5
- package/modules/es.number.to-precision.js +8 -4
- package/modules/es.object.assign.js +4 -1
- package/modules/es.object.create.js +7 -3
- package/modules/es.object.define-getter.js +5 -3
- package/modules/es.object.define-properties.js +4 -2
- package/modules/es.object.define-property.js +4 -2
- package/modules/es.object.define-setter.js +5 -3
- package/modules/es.object.entries.js +2 -1
- package/modules/es.object.freeze.js +6 -3
- package/modules/es.object.from-entries.js +2 -1
- package/modules/es.object.get-own-property-descriptor.js +5 -2
- package/modules/es.object.get-own-property-descriptors.js +2 -1
- package/modules/es.object.get-own-property-names.js +5 -2
- package/modules/es.object.get-prototype-of.js +4 -4
- package/modules/es.object.is-extensible.js +5 -2
- package/modules/es.object.is-frozen.js +5 -2
- package/modules/es.object.is-sealed.js +5 -2
- package/modules/es.object.is.js +6 -1
- package/modules/es.object.keys.js +5 -2
- package/modules/es.object.lookup-getter.js +5 -3
- package/modules/es.object.lookup-setter.js +5 -3
- package/modules/es.object.prevent-extensions.js +6 -3
- package/modules/es.object.seal.js +6 -3
- package/modules/es.object.set-prototype-of.js +5 -2
- package/modules/es.object.to-string.js +3 -1
- package/modules/es.object.values.js +2 -1
- package/modules/es.parse-float.js +2 -1
- package/modules/es.parse-int.js +2 -1
- package/modules/es.promise.finally.js +2 -1
- package/modules/es.promise.js +20 -12
- package/modules/es.reflect.apply.js +7 -3
- package/modules/es.reflect.construct.js +5 -2
- package/modules/es.reflect.define-property.js +4 -2
- package/modules/es.reflect.delete-property.js +2 -1
- package/modules/es.reflect.get-own-property-descriptor.js +2 -1
- package/modules/es.reflect.get-prototype-of.js +2 -1
- package/modules/es.reflect.get.js +4 -1
- package/modules/es.reflect.has.js +3 -1
- package/modules/es.reflect.is-extensible.js +3 -1
- package/modules/es.reflect.own-keys.js +6 -1
- package/modules/es.reflect.prevent-extensions.js +2 -1
- package/modules/es.reflect.set-prototype-of.js +2 -1
- package/modules/es.reflect.set.js +4 -1
- package/modules/es.regexp.constructor.js +5 -2
- package/modules/es.regexp.exec.js +4 -4
- package/modules/es.regexp.flags.js +7 -3
- package/modules/es.regexp.to-string.js +3 -1
- package/modules/es.set.js +5 -2
- package/modules/es.string.anchor.js +3 -2
- package/modules/es.string.big.js +3 -2
- package/modules/es.string.blink.js +3 -2
- package/modules/es.string.bold.js +3 -2
- package/modules/es.string.code-point-at.js +2 -1
- package/modules/es.string.ends-with.js +4 -3
- package/modules/es.string.fixed.js +3 -2
- package/modules/es.string.fontcolor.js +3 -2
- package/modules/es.string.fontsize.js +3 -2
- package/modules/es.string.from-code-point.js +3 -1
- package/modules/es.string.includes.js +4 -5
- package/modules/es.string.italics.js +3 -2
- package/modules/es.string.iterator.js +1 -0
- package/modules/es.string.link.js +3 -2
- package/modules/es.string.match-all.js +6 -3
- package/modules/es.string.match.js +32 -36
- package/modules/es.string.pad-end.js +2 -1
- package/modules/es.string.pad-start.js +2 -1
- package/modules/es.string.raw.js +2 -1
- package/modules/es.string.repeat.js +5 -2
- package/modules/es.string.replace.js +95 -98
- package/modules/es.string.search.js +25 -29
- package/modules/es.string.small.js +3 -2
- package/modules/es.string.split.js +107 -111
- package/modules/es.string.starts-with.js +4 -2
- package/modules/es.string.strike.js +3 -2
- package/modules/es.string.sub.js +3 -2
- package/modules/es.string.sup.js +3 -2
- package/modules/es.string.trim-end.js +5 -2
- package/modules/es.string.trim-start.js +5 -2
- package/modules/es.string.trim.js +5 -2
- package/modules/es.symbol.async-iterator.js +3 -1
- package/modules/es.symbol.description.js +7 -2
- package/modules/es.symbol.has-instance.js +3 -1
- package/modules/es.symbol.is-concat-spreadable.js +3 -1
- package/modules/es.symbol.iterator.js +3 -1
- package/modules/es.symbol.js +16 -12
- package/modules/es.symbol.match-all.js +3 -1
- package/modules/es.symbol.match.js +3 -1
- package/modules/es.symbol.replace.js +3 -1
- package/modules/es.symbol.search.js +3 -1
- package/modules/es.symbol.species.js +3 -1
- package/modules/es.symbol.split.js +3 -1
- package/modules/es.symbol.to-primitive.js +3 -1
- package/modules/es.symbol.to-string-tag.js +3 -1
- package/modules/es.symbol.unscopables.js +3 -1
- package/modules/es.typed-array.copy-within.js +1 -0
- package/modules/es.typed-array.every.js +3 -1
- package/modules/es.typed-array.fill.js +2 -1
- package/modules/es.typed-array.filter.js +3 -1
- package/modules/es.typed-array.find-index.js +3 -1
- package/modules/es.typed-array.find.js +3 -1
- package/modules/es.typed-array.float32-array.js +3 -1
- package/modules/es.typed-array.float64-array.js +3 -1
- package/modules/es.typed-array.for-each.js +3 -1
- package/modules/es.typed-array.includes.js +3 -1
- package/modules/es.typed-array.index-of.js +3 -1
- package/modules/es.typed-array.int16-array.js +3 -1
- package/modules/es.typed-array.int32-array.js +3 -1
- package/modules/es.typed-array.int8-array.js +3 -1
- package/modules/es.typed-array.iterator.js +5 -2
- package/modules/es.typed-array.join.js +1 -0
- package/modules/es.typed-array.last-index-of.js +1 -0
- package/modules/es.typed-array.map.js +3 -1
- package/modules/es.typed-array.of.js +1 -0
- package/modules/es.typed-array.reduce-right.js +3 -3
- package/modules/es.typed-array.reduce.js +3 -3
- package/modules/es.typed-array.reverse.js +1 -0
- package/modules/es.typed-array.set.js +3 -1
- package/modules/es.typed-array.slice.js +3 -1
- package/modules/es.typed-array.some.js +3 -1
- package/modules/es.typed-array.sort.js +1 -0
- package/modules/es.typed-array.subarray.js +1 -0
- package/modules/es.typed-array.to-locale-string.js +3 -1
- package/modules/es.typed-array.to-string.js +6 -3
- package/modules/es.typed-array.uint16-array.js +3 -1
- package/modules/es.typed-array.uint32-array.js +3 -1
- package/modules/es.typed-array.uint8-array.js +3 -1
- package/modules/es.typed-array.uint8-clamped-array.js +3 -1
- package/modules/es.weak-map.js +5 -3
- package/modules/es.weak-set.js +5 -2
- package/modules/esnext.aggregate-error.js +5 -3
- package/modules/esnext.array.last-index.js +2 -1
- package/modules/esnext.array.last-item.js +2 -1
- package/modules/esnext.composite-key.js +2 -1
- package/modules/esnext.composite-symbol.js +2 -1
- package/modules/esnext.global-this.js +4 -1
- package/modules/esnext.map.delete-all.js +3 -3
- package/modules/esnext.map.every.js +3 -1
- package/modules/esnext.map.filter.js +3 -1
- package/modules/esnext.map.find-key.js +3 -1
- package/modules/esnext.map.find.js +3 -1
- package/modules/esnext.map.from.js +5 -2
- package/modules/esnext.map.group-by.js +2 -1
- package/modules/esnext.map.includes.js +3 -1
- package/modules/esnext.map.key-by.js +2 -1
- package/modules/esnext.map.key-of.js +3 -1
- package/modules/esnext.map.map-keys.js +3 -1
- package/modules/esnext.map.map-values.js +3 -1
- package/modules/esnext.map.merge.js +3 -1
- package/modules/esnext.map.of.js +5 -2
- package/modules/esnext.map.reduce.js +3 -1
- package/modules/esnext.map.some.js +3 -1
- package/modules/esnext.map.update.js +3 -1
- package/modules/esnext.math.clamp.js +3 -1
- package/modules/esnext.math.deg-per-rad.js +5 -1
- package/modules/esnext.math.degrees.js +5 -3
- package/modules/esnext.math.fscale.js +3 -1
- package/modules/esnext.math.iaddh.js +3 -1
- package/modules/esnext.math.imulh.js +3 -1
- package/modules/esnext.math.isubh.js +3 -1
- package/modules/esnext.math.rad-per-deg.js +5 -1
- package/modules/esnext.math.radians.js +3 -1
- package/modules/esnext.math.scale.js +6 -1
- package/modules/esnext.math.seeded-prng.js +4 -2
- package/modules/esnext.math.signbit.js +8 -4
- package/modules/esnext.math.umulh.js +3 -1
- package/modules/esnext.number.from-string.js +3 -1
- package/modules/esnext.observable.js +10 -4
- package/modules/esnext.promise.all-settled.js +4 -3
- package/modules/esnext.promise.any.js +5 -3
- package/modules/esnext.promise.try.js +4 -3
- package/modules/esnext.reflect.define-metadata.js +3 -1
- package/modules/esnext.reflect.delete-metadata.js +3 -1
- package/modules/esnext.reflect.get-metadata-keys.js +3 -1
- package/modules/esnext.reflect.get-metadata.js +3 -1
- package/modules/esnext.reflect.get-own-metadata-keys.js +3 -1
- package/modules/esnext.reflect.get-own-metadata.js +3 -1
- package/modules/esnext.reflect.has-metadata.js +3 -1
- package/modules/esnext.reflect.has-own-metadata.js +3 -1
- package/modules/esnext.reflect.metadata.js +3 -1
- package/modules/esnext.set.add-all.js +3 -1
- package/modules/esnext.set.delete-all.js +3 -1
- package/modules/esnext.set.difference.js +3 -1
- package/modules/esnext.set.every.js +3 -1
- package/modules/esnext.set.filter.js +3 -1
- package/modules/esnext.set.find.js +3 -1
- package/modules/esnext.set.from.js +5 -2
- package/modules/esnext.set.intersection.js +3 -1
- package/modules/esnext.set.is-disjoint-from.js +4 -1
- package/modules/esnext.set.is-subset-of.js +4 -1
- package/modules/esnext.set.is-superset-of.js +4 -1
- package/modules/esnext.set.join.js +3 -1
- package/modules/esnext.set.map.js +3 -1
- package/modules/esnext.set.of.js +5 -2
- package/modules/esnext.set.reduce.js +3 -1
- package/modules/esnext.set.some.js +3 -1
- package/modules/esnext.set.symmetric-difference.js +3 -1
- package/modules/esnext.set.union.js +3 -1
- package/modules/esnext.string.at.js +2 -1
- package/modules/esnext.string.code-points.js +3 -1
- package/modules/esnext.string.replace-all.js +5 -2
- package/modules/esnext.symbol.dispose.js +3 -1
- package/modules/esnext.symbol.observable.js +4 -1
- package/modules/esnext.symbol.pattern-match.js +3 -1
- package/modules/esnext.symbol.replace-all.js +3 -1
- package/modules/esnext.weak-map.delete-all.js +3 -3
- package/modules/esnext.weak-map.from.js +5 -2
- package/modules/esnext.weak-map.of.js +5 -2
- package/modules/esnext.weak-set.add-all.js +3 -2
- package/modules/esnext.weak-set.delete-all.js +3 -2
- package/modules/esnext.weak-set.from.js +5 -2
- package/modules/esnext.weak-set.of.js +5 -2
- package/modules/web.dom-collections.for-each.js +1 -1
- package/modules/web.dom-collections.iterator.js +2 -1
- package/modules/web.immediate.js +1 -0
- package/modules/web.queue-microtask.js +9 -5
- package/modules/web.timers.js +3 -2
- package/modules/web.url-search-params.js +14 -6
- package/modules/web.url.js +8 -4
- package/modules/web.url.to-json.js +3 -1
- package/package.json +2 -2
- package/scripts/postinstall.js +19 -8
- package/stable/dom-collections/index.js +2 -1
- package/stable/dom-collections/iterator.js +2 -1
- package/web/queue-microtask.js +2 -1
- package/web/url-search-params.js +2 -1
- package/web/url.js +2 -1
|
@@ -1,12 +1,15 @@
|
|
|
1
|
+
var $ = require('../internals/export');
|
|
1
2
|
var isObject = require('../internals/is-object');
|
|
2
3
|
var onFreeze = require('../internals/internal-metadata').onFreeze;
|
|
3
|
-
var nativeSeal = Object.seal;
|
|
4
4
|
var FREEZING = require('../internals/freezing');
|
|
5
|
-
var
|
|
5
|
+
var fails = require('../internals/fails');
|
|
6
|
+
|
|
7
|
+
var nativeSeal = Object.seal;
|
|
8
|
+
var FAILS_ON_PRIMITIVES = fails(function () { nativeSeal(1); });
|
|
6
9
|
|
|
7
10
|
// `Object.seal` method
|
|
8
11
|
// https://tc39.github.io/ecma262/#sec-object.seal
|
|
9
|
-
|
|
12
|
+
$({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES, sham: !FREEZING }, {
|
|
10
13
|
seal: function seal(it) {
|
|
11
14
|
return nativeSeal && isObject(it) ? nativeSeal(onFreeze(it)) : it;
|
|
12
15
|
}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
+
var $ = require('../internals/export');
|
|
2
|
+
var setPrototypeOf = require('../internals/object-set-prototype-of');
|
|
3
|
+
|
|
1
4
|
// `Object.setPrototypeOf` method
|
|
2
5
|
// https://tc39.github.io/ecma262/#sec-object.setprototypeof
|
|
3
|
-
|
|
4
|
-
setPrototypeOf:
|
|
6
|
+
$({ target: 'Object', stat: true }, {
|
|
7
|
+
setPrototypeOf: setPrototypeOf
|
|
5
8
|
});
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
var redefine = require('../internals/redefine');
|
|
1
2
|
var toString = require('../internals/object-to-string');
|
|
3
|
+
|
|
2
4
|
var ObjectPrototype = Object.prototype;
|
|
3
5
|
|
|
4
6
|
// `Object.prototype.toString` method
|
|
5
7
|
// https://tc39.github.io/ecma262/#sec-object.prototype.tostring
|
|
6
8
|
if (toString !== ObjectPrototype.toString) {
|
|
7
|
-
|
|
9
|
+
redefine(ObjectPrototype, 'toString', toString, { unsafe: true });
|
|
8
10
|
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
var $ = require('../internals/export');
|
|
1
2
|
var objectToArray = require('../internals/object-to-array');
|
|
2
3
|
|
|
3
4
|
// `Object.values` method
|
|
4
5
|
// https://tc39.github.io/ecma262/#sec-object.values
|
|
5
|
-
|
|
6
|
+
$({ target: 'Object', stat: true }, {
|
|
6
7
|
values: function values(O) {
|
|
7
8
|
return objectToArray(O);
|
|
8
9
|
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
var $ = require('../internals/export');
|
|
1
2
|
var parseFloatImplementation = require('../internals/parse-float');
|
|
2
3
|
|
|
3
4
|
// `parseFloat` method
|
|
4
5
|
// https://tc39.github.io/ecma262/#sec-parsefloat-string
|
|
5
|
-
|
|
6
|
+
$({ global: true, forced: parseFloat != parseFloatImplementation }, {
|
|
6
7
|
parseFloat: parseFloatImplementation
|
|
7
8
|
});
|
package/modules/es.parse-int.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
var $ = require('../internals/export');
|
|
1
2
|
var parseIntImplementation = require('../internals/parse-int');
|
|
2
3
|
|
|
3
4
|
// `parseInt` method
|
|
4
5
|
// https://tc39.github.io/ecma262/#sec-parseint-string-radix
|
|
5
|
-
|
|
6
|
+
$({ global: true, forced: parseInt != parseIntImplementation }, {
|
|
6
7
|
parseInt: parseIntImplementation
|
|
7
8
|
});
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
|
+
var $ = require('../internals/export');
|
|
2
3
|
var getBuiltIn = require('../internals/get-built-in');
|
|
3
4
|
var speciesConstructor = require('../internals/species-constructor');
|
|
4
5
|
var promiseResolve = require('../internals/promise-resolve');
|
|
5
6
|
|
|
6
7
|
// `Promise.prototype.finally` method
|
|
7
8
|
// https://tc39.github.io/ecma262/#sec-promise.prototype.finally
|
|
8
|
-
|
|
9
|
+
$({ target: 'Promise', proto: true, real: true }, {
|
|
9
10
|
'finally': function (onFinally) {
|
|
10
11
|
var C = speciesConstructor(this, getBuiltIn('Promise'));
|
|
11
12
|
var isFunction = typeof onFinally == 'function';
|
package/modules/es.promise.js
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
|
-
var
|
|
2
|
+
var $ = require('../internals/export');
|
|
3
3
|
var IS_PURE = require('../internals/is-pure');
|
|
4
4
|
var global = require('../internals/global');
|
|
5
|
-
var
|
|
5
|
+
var path = require('../internals/path');
|
|
6
|
+
var redefineAll = require('../internals/redefine-all');
|
|
7
|
+
var setToStringTag = require('../internals/set-to-string-tag');
|
|
8
|
+
var setSpecies = require('../internals/set-species');
|
|
6
9
|
var isObject = require('../internals/is-object');
|
|
7
10
|
var aFunction = require('../internals/a-function');
|
|
8
11
|
var anInstance = require('../internals/an-instance');
|
|
@@ -17,9 +20,12 @@ var hostReportErrors = require('../internals/host-report-errors');
|
|
|
17
20
|
var newPromiseCapabilityModule = require('../internals/new-promise-capability');
|
|
18
21
|
var perform = require('../internals/perform');
|
|
19
22
|
var userAgent = require('../internals/user-agent');
|
|
20
|
-
var SPECIES = require('../internals/well-known-symbol')('species');
|
|
21
23
|
var InternalStateModule = require('../internals/internal-state');
|
|
22
24
|
var isForced = require('../internals/is-forced');
|
|
25
|
+
var wellKnownSymbol = require('../internals/well-known-symbol');
|
|
26
|
+
|
|
27
|
+
var SPECIES = wellKnownSymbol('species');
|
|
28
|
+
var PROMISE = 'Promise';
|
|
23
29
|
var getInternalState = InternalStateModule.get;
|
|
24
30
|
var setInternalState = InternalStateModule.set;
|
|
25
31
|
var getInternalPromiseState = InternalStateModule.getterFor(PROMISE);
|
|
@@ -232,7 +238,7 @@ if (FORCED) {
|
|
|
232
238
|
value: undefined
|
|
233
239
|
});
|
|
234
240
|
};
|
|
235
|
-
Internal.prototype =
|
|
241
|
+
Internal.prototype = redefineAll(PromiseConstructor.prototype, {
|
|
236
242
|
// `Promise.prototype.then` method
|
|
237
243
|
// https://tc39.github.io/ecma262/#sec-promise.prototype.then
|
|
238
244
|
then: function then(onFulfilled, onRejected) {
|
|
@@ -266,7 +272,7 @@ if (FORCED) {
|
|
|
266
272
|
};
|
|
267
273
|
|
|
268
274
|
// wrap fetch result
|
|
269
|
-
if (!IS_PURE && typeof $fetch == 'function') $
|
|
275
|
+
if (!IS_PURE && typeof $fetch == 'function') $({ global: true, enumerable: true, forced: true }, {
|
|
270
276
|
// eslint-disable-next-line no-unused-vars
|
|
271
277
|
fetch: function fetch(input) {
|
|
272
278
|
return promiseResolve(PromiseConstructor, $fetch.apply(global, arguments));
|
|
@@ -274,15 +280,17 @@ if (FORCED) {
|
|
|
274
280
|
});
|
|
275
281
|
}
|
|
276
282
|
|
|
277
|
-
$
|
|
283
|
+
$({ global: true, wrap: true, forced: FORCED }, {
|
|
284
|
+
Promise: PromiseConstructor
|
|
285
|
+
});
|
|
278
286
|
|
|
279
|
-
|
|
280
|
-
|
|
287
|
+
setToStringTag(PromiseConstructor, PROMISE, false, true);
|
|
288
|
+
setSpecies(PROMISE);
|
|
281
289
|
|
|
282
|
-
PromiseWrapper =
|
|
290
|
+
PromiseWrapper = path[PROMISE];
|
|
283
291
|
|
|
284
292
|
// statics
|
|
285
|
-
$
|
|
293
|
+
$({ target: PROMISE, stat: true, forced: FORCED }, {
|
|
286
294
|
// `Promise.reject` method
|
|
287
295
|
// https://tc39.github.io/ecma262/#sec-promise.reject
|
|
288
296
|
reject: function reject(r) {
|
|
@@ -292,7 +300,7 @@ $export({ target: PROMISE, stat: true, forced: FORCED }, {
|
|
|
292
300
|
}
|
|
293
301
|
});
|
|
294
302
|
|
|
295
|
-
$
|
|
303
|
+
$({ target: PROMISE, stat: true, forced: IS_PURE || FORCED }, {
|
|
296
304
|
// `Promise.resolve` method
|
|
297
305
|
// https://tc39.github.io/ecma262/#sec-promise.resolve
|
|
298
306
|
resolve: function resolve(x) {
|
|
@@ -300,7 +308,7 @@ $export({ target: PROMISE, stat: true, forced: IS_PURE || FORCED }, {
|
|
|
300
308
|
}
|
|
301
309
|
});
|
|
302
310
|
|
|
303
|
-
$
|
|
311
|
+
$({ target: PROMISE, stat: true, forced: INCORRECT_ITERATION }, {
|
|
304
312
|
// `Promise.all` method
|
|
305
313
|
// https://tc39.github.io/ecma262/#sec-promise.all
|
|
306
314
|
all: function all(iterable) {
|
|
@@ -1,16 +1,20 @@
|
|
|
1
|
+
var $ = require('../internals/export');
|
|
2
|
+
var global = require('../internals/global');
|
|
1
3
|
var aFunction = require('../internals/a-function');
|
|
2
4
|
var anObject = require('../internals/an-object');
|
|
3
|
-
var
|
|
5
|
+
var fails = require('../internals/fails');
|
|
6
|
+
|
|
7
|
+
var nativeApply = (global.Reflect || {}).apply;
|
|
4
8
|
var functionApply = Function.apply;
|
|
5
9
|
|
|
6
10
|
// MS Edge argumentsList argument is optional
|
|
7
|
-
var OPTIONAL_ARGUMENTS_LIST = !
|
|
11
|
+
var OPTIONAL_ARGUMENTS_LIST = !fails(function () {
|
|
8
12
|
nativeApply(function () { /* empty */ });
|
|
9
13
|
});
|
|
10
14
|
|
|
11
15
|
// `Reflect.apply` method
|
|
12
16
|
// https://tc39.github.io/ecma262/#sec-reflect.apply
|
|
13
|
-
|
|
17
|
+
$({ target: 'Reflect', stat: true, forced: OPTIONAL_ARGUMENTS_LIST }, {
|
|
14
18
|
apply: function apply(target, thisArgument, argumentsList) {
|
|
15
19
|
aFunction(target);
|
|
16
20
|
anObject(argumentsList);
|
|
@@ -1,10 +1,13 @@
|
|
|
1
|
+
var $ = require('../internals/export');
|
|
2
|
+
var global = require('../internals/global');
|
|
1
3
|
var create = require('../internals/object-create');
|
|
2
4
|
var aFunction = require('../internals/a-function');
|
|
3
5
|
var anObject = require('../internals/an-object');
|
|
4
6
|
var isObject = require('../internals/is-object');
|
|
5
7
|
var fails = require('../internals/fails');
|
|
6
8
|
var bind = require('../internals/function-bind');
|
|
7
|
-
|
|
9
|
+
|
|
10
|
+
var nativeConstruct = (global.Reflect || {}).construct;
|
|
8
11
|
|
|
9
12
|
// `Reflect.construct` method
|
|
10
13
|
// https://tc39.github.io/ecma262/#sec-reflect.construct
|
|
@@ -19,7 +22,7 @@ var ARGS_BUG = !fails(function () {
|
|
|
19
22
|
});
|
|
20
23
|
var FORCED = NEW_TARGET_BUG || ARGS_BUG;
|
|
21
24
|
|
|
22
|
-
|
|
25
|
+
$({ target: 'Reflect', stat: true, forced: FORCED, sham: FORCED }, {
|
|
23
26
|
construct: function construct(Target, args /* , newTarget */) {
|
|
24
27
|
aFunction(Target);
|
|
25
28
|
anObject(args);
|
|
@@ -1,17 +1,19 @@
|
|
|
1
|
+
var $ = require('../internals/export');
|
|
2
|
+
var fails = require('../internals/fails');
|
|
1
3
|
var definePropertyModule = require('../internals/object-define-property');
|
|
2
4
|
var anObject = require('../internals/an-object');
|
|
3
5
|
var toPrimitive = require('../internals/to-primitive');
|
|
4
6
|
var DESCRIPTORS = require('../internals/descriptors');
|
|
5
7
|
|
|
6
8
|
// MS Edge has broken Reflect.defineProperty - throwing instead of returning false
|
|
7
|
-
var ERROR_INSTEAD_OF_FALSE =
|
|
9
|
+
var ERROR_INSTEAD_OF_FALSE = fails(function () {
|
|
8
10
|
// eslint-disable-next-line no-undef
|
|
9
11
|
Reflect.defineProperty(definePropertyModule.f({}, 1, { value: 1 }), 1, { value: 2 });
|
|
10
12
|
});
|
|
11
13
|
|
|
12
14
|
// `Reflect.defineProperty` method
|
|
13
15
|
// https://tc39.github.io/ecma262/#sec-reflect.defineproperty
|
|
14
|
-
|
|
16
|
+
$({ target: 'Reflect', stat: true, forced: ERROR_INSTEAD_OF_FALSE, sham: !DESCRIPTORS }, {
|
|
15
17
|
defineProperty: function defineProperty(target, propertyKey, attributes) {
|
|
16
18
|
anObject(target);
|
|
17
19
|
propertyKey = toPrimitive(propertyKey, true);
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
var $ = require('../internals/export');
|
|
1
2
|
var getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f;
|
|
2
3
|
var anObject = require('../internals/an-object');
|
|
3
4
|
|
|
4
5
|
// `Reflect.deleteProperty` method
|
|
5
6
|
// https://tc39.github.io/ecma262/#sec-reflect.deleteproperty
|
|
6
|
-
|
|
7
|
+
$({ target: 'Reflect', stat: true }, {
|
|
7
8
|
deleteProperty: function deleteProperty(target, propertyKey) {
|
|
8
9
|
var descriptor = getOwnPropertyDescriptor(anObject(target), propertyKey);
|
|
9
10
|
return descriptor && !descriptor.configurable ? false : delete target[propertyKey];
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
var $ = require('../internals/export');
|
|
1
2
|
var getOwnPropertyDescriptorModule = require('../internals/object-get-own-property-descriptor');
|
|
2
3
|
var anObject = require('../internals/an-object');
|
|
3
4
|
var DESCRIPTORS = require('../internals/descriptors');
|
|
4
5
|
|
|
5
6
|
// `Reflect.getOwnPropertyDescriptor` method
|
|
6
7
|
// https://tc39.github.io/ecma262/#sec-reflect.getownpropertydescriptor
|
|
7
|
-
|
|
8
|
+
$({ target: 'Reflect', stat: true, sham: !DESCRIPTORS }, {
|
|
8
9
|
getOwnPropertyDescriptor: function getOwnPropertyDescriptor(target, propertyKey) {
|
|
9
10
|
return getOwnPropertyDescriptorModule.f(anObject(target), propertyKey);
|
|
10
11
|
}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
var $ = require('../internals/export');
|
|
1
2
|
var objectGetPrototypeOf = require('../internals/object-get-prototype-of');
|
|
2
3
|
var anObject = require('../internals/an-object');
|
|
3
4
|
var CORRECT_PROTOTYPE_GETTER = require('../internals/correct-prototype-getter');
|
|
4
5
|
|
|
5
6
|
// `Reflect.getPrototypeOf` method
|
|
6
7
|
// https://tc39.github.io/ecma262/#sec-reflect.getprototypeof
|
|
7
|
-
|
|
8
|
+
$({ target: 'Reflect', stat: true, sham: !CORRECT_PROTOTYPE_GETTER }, {
|
|
8
9
|
getPrototypeOf: function getPrototypeOf(target) {
|
|
9
10
|
return objectGetPrototypeOf(anObject(target));
|
|
10
11
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
var $ = require('../internals/export');
|
|
1
2
|
var getOwnPropertyDescriptorModule = require('../internals/object-get-own-property-descriptor');
|
|
2
3
|
var getPrototypeOf = require('../internals/object-get-prototype-of');
|
|
3
4
|
var has = require('../internals/has');
|
|
@@ -18,4 +19,6 @@ function get(target, propertyKey /* , receiver */) {
|
|
|
18
19
|
if (isObject(prototype = getPrototypeOf(target))) return get(prototype, propertyKey, receiver);
|
|
19
20
|
}
|
|
20
21
|
|
|
21
|
-
|
|
22
|
+
$({ target: 'Reflect', stat: true }, {
|
|
23
|
+
get: get
|
|
24
|
+
});
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
var $ = require('../internals/export');
|
|
2
|
+
|
|
1
3
|
// `Reflect.has` method
|
|
2
4
|
// https://tc39.github.io/ecma262/#sec-reflect.has
|
|
3
|
-
|
|
5
|
+
$({ target: 'Reflect', stat: true }, {
|
|
4
6
|
has: function has(target, propertyKey) {
|
|
5
7
|
return propertyKey in target;
|
|
6
8
|
}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
+
var $ = require('../internals/export');
|
|
1
2
|
var anObject = require('../internals/an-object');
|
|
3
|
+
|
|
2
4
|
var objectIsExtensible = Object.isExtensible;
|
|
3
5
|
|
|
4
6
|
// `Reflect.isExtensible` method
|
|
5
7
|
// https://tc39.github.io/ecma262/#sec-reflect.isextensible
|
|
6
|
-
|
|
8
|
+
$({ target: 'Reflect', stat: true }, {
|
|
7
9
|
isExtensible: function isExtensible(target) {
|
|
8
10
|
anObject(target);
|
|
9
11
|
return objectIsExtensible ? objectIsExtensible(target) : true;
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
var $ = require('../internals/export');
|
|
2
|
+
var ownKeys = require('../internals/own-keys');
|
|
3
|
+
|
|
1
4
|
// `Reflect.ownKeys` method
|
|
2
5
|
// https://tc39.github.io/ecma262/#sec-reflect.ownkeys
|
|
3
|
-
|
|
6
|
+
$({ target: 'Reflect', stat: true }, {
|
|
7
|
+
ownKeys: ownKeys
|
|
8
|
+
});
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
var $ = require('../internals/export');
|
|
1
2
|
var getBuiltIn = require('../internals/get-built-in');
|
|
2
3
|
var anObject = require('../internals/an-object');
|
|
3
4
|
var FREEZING = require('../internals/freezing');
|
|
4
5
|
|
|
5
6
|
// `Reflect.preventExtensions` method
|
|
6
7
|
// https://tc39.github.io/ecma262/#sec-reflect.preventextensions
|
|
7
|
-
|
|
8
|
+
$({ target: 'Reflect', stat: true, sham: !FREEZING }, {
|
|
8
9
|
preventExtensions: function preventExtensions(target) {
|
|
9
10
|
anObject(target);
|
|
10
11
|
try {
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
var $ = require('../internals/export');
|
|
1
2
|
var objectSetPrototypeOf = require('../internals/object-set-prototype-of');
|
|
2
3
|
var validateSetPrototypeOfArguments = require('../internals/validate-set-prototype-of-arguments');
|
|
3
4
|
|
|
4
5
|
// `Reflect.setPrototypeOf` method
|
|
5
6
|
// https://tc39.github.io/ecma262/#sec-reflect.setprototypeof
|
|
6
|
-
if (objectSetPrototypeOf)
|
|
7
|
+
if (objectSetPrototypeOf) $({ target: 'Reflect', stat: true }, {
|
|
7
8
|
setPrototypeOf: function setPrototypeOf(target, proto) {
|
|
8
9
|
validateSetPrototypeOfArguments(target, proto);
|
|
9
10
|
try {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
var $ = require('../internals/export');
|
|
1
2
|
var definePropertyModule = require('../internals/object-define-property');
|
|
2
3
|
var getOwnPropertyDescriptorModule = require('../internals/object-get-own-property-descriptor');
|
|
3
4
|
var getPrototypeOf = require('../internals/object-get-prototype-of');
|
|
@@ -30,4 +31,6 @@ function set(target, propertyKey, V /* , receiver */) {
|
|
|
30
31
|
return ownDescriptor.set === undefined ? false : (ownDescriptor.set.call(receiver, V), true);
|
|
31
32
|
}
|
|
32
33
|
|
|
33
|
-
|
|
34
|
+
$({ target: 'Reflect', stat: true }, {
|
|
35
|
+
set: set
|
|
36
|
+
});
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
var DESCRIPTORS = require('../internals/descriptors');
|
|
2
|
-
var MATCH = require('../internals/well-known-symbol')('match');
|
|
3
2
|
var global = require('../internals/global');
|
|
4
3
|
var isForced = require('../internals/is-forced');
|
|
5
4
|
var inheritIfRequired = require('../internals/inherit-if-required');
|
|
@@ -9,6 +8,10 @@ var isRegExp = require('../internals/is-regexp');
|
|
|
9
8
|
var getFlags = require('../internals/regexp-flags');
|
|
10
9
|
var redefine = require('../internals/redefine');
|
|
11
10
|
var fails = require('../internals/fails');
|
|
11
|
+
var setSpecies = require('../internals/set-species');
|
|
12
|
+
var wellKnownSymbol = require('../internals/well-known-symbol');
|
|
13
|
+
|
|
14
|
+
var MATCH = wellKnownSymbol('match');
|
|
12
15
|
var NativeRegExp = global.RegExp;
|
|
13
16
|
var RegExpPrototype = NativeRegExp.prototype;
|
|
14
17
|
var re1 = /a/g;
|
|
@@ -54,4 +57,4 @@ if (FORCED) {
|
|
|
54
57
|
}
|
|
55
58
|
|
|
56
59
|
// https://tc39.github.io/ecma262/#sec-get-regexp-@@species
|
|
57
|
-
|
|
60
|
+
setSpecies('RegExp');
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
|
+
var $ = require('../internals/export');
|
|
3
|
+
var exec = require('../internals/regexp-exec');
|
|
2
4
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
require('../internals/export')({ target: 'RegExp', proto: true, forced: /./.exec !== regexpExec }, {
|
|
6
|
-
exec: regexpExec
|
|
5
|
+
$({ target: 'RegExp', proto: true, forced: /./.exec !== exec }, {
|
|
6
|
+
exec: exec
|
|
7
7
|
});
|
|
@@ -1,8 +1,12 @@
|
|
|
1
|
+
var DESCRIPTORS = require('../internals/descriptors');
|
|
2
|
+
var objectDefinePropertyModule = require('../internals/object-define-property');
|
|
3
|
+
var regExpFlags = require('../internals/regexp-flags');
|
|
4
|
+
|
|
1
5
|
// `RegExp.prototype.flags` getter
|
|
2
6
|
// https://tc39.github.io/ecma262/#sec-get-regexp.prototype.flags
|
|
3
|
-
if (
|
|
4
|
-
|
|
7
|
+
if (DESCRIPTORS && /./g.flags != 'g') {
|
|
8
|
+
objectDefinePropertyModule.f(RegExp.prototype, 'flags', {
|
|
5
9
|
configurable: true,
|
|
6
|
-
get:
|
|
10
|
+
get: regExpFlags
|
|
7
11
|
});
|
|
8
12
|
}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
|
+
var redefine = require('../internals/redefine');
|
|
2
3
|
var anObject = require('../internals/an-object');
|
|
3
4
|
var fails = require('../internals/fails');
|
|
4
5
|
var flags = require('../internals/regexp-flags');
|
|
6
|
+
|
|
5
7
|
var TO_STRING = 'toString';
|
|
6
8
|
var nativeToString = /./[TO_STRING];
|
|
7
9
|
var RegExpPrototype = RegExp.prototype;
|
|
@@ -13,7 +15,7 @@ var INCORRECT_NAME = nativeToString.name != TO_STRING;
|
|
|
13
15
|
// `RegExp.prototype.toString` method
|
|
14
16
|
// https://tc39.github.io/ecma262/#sec-regexp.prototype.tostring
|
|
15
17
|
if (NOT_GENERIC || INCORRECT_NAME) {
|
|
16
|
-
|
|
18
|
+
redefine(RegExp.prototype, TO_STRING, function toString() {
|
|
17
19
|
var R = anObject(this);
|
|
18
20
|
var p = String(R.source);
|
|
19
21
|
var rf = R.flags;
|
package/modules/es.set.js
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
|
+
var collection = require('../internals/collection');
|
|
3
|
+
var collectionStrong = require('../internals/collection-strong');
|
|
4
|
+
|
|
2
5
|
// `Set` constructor
|
|
3
6
|
// https://tc39.github.io/ecma262/#sec-set-objects
|
|
4
|
-
module.exports =
|
|
7
|
+
module.exports = collection('Set', function (get) {
|
|
5
8
|
return function Set() { return get(this, arguments.length > 0 ? arguments[0] : undefined); };
|
|
6
|
-
},
|
|
9
|
+
}, collectionStrong);
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
|
+
var $ = require('../internals/export');
|
|
2
3
|
var createHTML = require('../internals/create-html');
|
|
3
|
-
var
|
|
4
|
+
var forcedStringHTMLMethod = require('../internals/forced-string-html-method');
|
|
4
5
|
|
|
5
6
|
// `String.prototype.anchor` method
|
|
6
7
|
// https://tc39.github.io/ecma262/#sec-string.prototype.anchor
|
|
7
|
-
|
|
8
|
+
$({ target: 'String', proto: true, forced: forcedStringHTMLMethod('anchor') }, {
|
|
8
9
|
anchor: function anchor(name) {
|
|
9
10
|
return createHTML(this, 'a', 'name', name);
|
|
10
11
|
}
|
package/modules/es.string.big.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
|
+
var $ = require('../internals/export');
|
|
2
3
|
var createHTML = require('../internals/create-html');
|
|
3
|
-
var
|
|
4
|
+
var forcedStringHTMLMethod = require('../internals/forced-string-html-method');
|
|
4
5
|
|
|
5
6
|
// `String.prototype.big` method
|
|
6
7
|
// https://tc39.github.io/ecma262/#sec-string.prototype.big
|
|
7
|
-
|
|
8
|
+
$({ target: 'String', proto: true, forced: forcedStringHTMLMethod('big') }, {
|
|
8
9
|
big: function big() {
|
|
9
10
|
return createHTML(this, 'big', '', '');
|
|
10
11
|
}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
|
+
var $ = require('../internals/export');
|
|
2
3
|
var createHTML = require('../internals/create-html');
|
|
3
|
-
var
|
|
4
|
+
var forcedStringHTMLMethod = require('../internals/forced-string-html-method');
|
|
4
5
|
|
|
5
6
|
// `String.prototype.blink` method
|
|
6
7
|
// https://tc39.github.io/ecma262/#sec-string.prototype.blink
|
|
7
|
-
|
|
8
|
+
$({ target: 'String', proto: true, forced: forcedStringHTMLMethod('blink') }, {
|
|
8
9
|
blink: function blink() {
|
|
9
10
|
return createHTML(this, 'blink', '', '');
|
|
10
11
|
}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
|
+
var $ = require('../internals/export');
|
|
2
3
|
var createHTML = require('../internals/create-html');
|
|
3
|
-
var
|
|
4
|
+
var forcedStringHTMLMethod = require('../internals/forced-string-html-method');
|
|
4
5
|
|
|
5
6
|
// `String.prototype.bold` method
|
|
6
7
|
// https://tc39.github.io/ecma262/#sec-string.prototype.bold
|
|
7
|
-
|
|
8
|
+
$({ target: 'String', proto: true, forced: forcedStringHTMLMethod('bold') }, {
|
|
8
9
|
bold: function bold() {
|
|
9
10
|
return createHTML(this, 'b', '', '');
|
|
10
11
|
}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
|
+
var $ = require('../internals/export');
|
|
2
3
|
var internalCodePointAt = require('../internals/string-at');
|
|
3
4
|
|
|
4
5
|
// `String.prototype.codePointAt` method
|
|
5
6
|
// https://tc39.github.io/ecma262/#sec-string.prototype.codepointat
|
|
6
|
-
|
|
7
|
+
$({ target: 'String', proto: true }, {
|
|
7
8
|
codePointAt: function codePointAt(pos) {
|
|
8
9
|
return internalCodePointAt(this, pos);
|
|
9
10
|
}
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
'use strict';
|
|
2
|
+
var $ = require('../internals/export');
|
|
2
3
|
var toLength = require('../internals/to-length');
|
|
3
4
|
var validateArguments = require('../internals/validate-string-method-arguments');
|
|
5
|
+
var correctIsRegExpLogic = require('../internals/correct-is-regexp-logic');
|
|
6
|
+
|
|
4
7
|
var ENDS_WITH = 'endsWith';
|
|
5
8
|
var nativeEndsWith = ''[ENDS_WITH];
|
|
6
9
|
var min = Math.min;
|
|
7
10
|
|
|
8
|
-
var CORRECT_IS_REGEXP_LOGIC = require('../internals/correct-is-regexp-logic')(ENDS_WITH);
|
|
9
|
-
|
|
10
11
|
// `String.prototype.endsWith` method
|
|
11
12
|
// https://tc39.github.io/ecma262/#sec-string.prototype.endswith
|
|
12
|
-
|
|
13
|
+
$({ target: 'String', proto: true, forced: !correctIsRegExpLogic(ENDS_WITH) }, {
|
|
13
14
|
endsWith: function endsWith(searchString /* , endPosition = @length */) {
|
|
14
15
|
var that = validateArguments(this, searchString, ENDS_WITH);
|
|
15
16
|
var endPosition = arguments.length > 1 ? arguments[1] : undefined;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
|
+
var $ = require('../internals/export');
|
|
2
3
|
var createHTML = require('../internals/create-html');
|
|
3
|
-
var
|
|
4
|
+
var forcedStringHTMLMethod = require('../internals/forced-string-html-method');
|
|
4
5
|
|
|
5
6
|
// `String.prototype.fixed` method
|
|
6
7
|
// https://tc39.github.io/ecma262/#sec-string.prototype.fixed
|
|
7
|
-
|
|
8
|
+
$({ target: 'String', proto: true, forced: forcedStringHTMLMethod('fixed') }, {
|
|
8
9
|
fixed: function fixed() {
|
|
9
10
|
return createHTML(this, 'tt', '', '');
|
|
10
11
|
}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
|
+
var $ = require('../internals/export');
|
|
2
3
|
var createHTML = require('../internals/create-html');
|
|
3
|
-
var
|
|
4
|
+
var forcedStringHTMLMethod = require('../internals/forced-string-html-method');
|
|
4
5
|
|
|
5
6
|
// `String.prototype.fontcolor` method
|
|
6
7
|
// https://tc39.github.io/ecma262/#sec-string.prototype.fontcolor
|
|
7
|
-
|
|
8
|
+
$({ target: 'String', proto: true, forced: forcedStringHTMLMethod('fontcolor') }, {
|
|
8
9
|
fontcolor: function fontcolor(color) {
|
|
9
10
|
return createHTML(this, 'font', 'color', color);
|
|
10
11
|
}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
|
+
var $ = require('../internals/export');
|
|
2
3
|
var createHTML = require('../internals/create-html');
|
|
3
|
-
var
|
|
4
|
+
var forcedStringHTMLMethod = require('../internals/forced-string-html-method');
|
|
4
5
|
|
|
5
6
|
// `String.prototype.fontsize` method
|
|
6
7
|
// https://tc39.github.io/ecma262/#sec-string.prototype.fontsize
|
|
7
|
-
|
|
8
|
+
$({ target: 'String', proto: true, forced: forcedStringHTMLMethod('fontsize') }, {
|
|
8
9
|
fontsize: function fontsize(size) {
|
|
9
10
|
return createHTML(this, 'font', 'size', size);
|
|
10
11
|
}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
var $ = require('../internals/export');
|
|
1
2
|
var toAbsoluteIndex = require('../internals/to-absolute-index');
|
|
3
|
+
|
|
2
4
|
var fromCharCode = String.fromCharCode;
|
|
3
5
|
var nativeFromCodePoint = String.fromCodePoint;
|
|
4
6
|
|
|
@@ -7,7 +9,7 @@ var INCORRECT_LENGTH = !!nativeFromCodePoint && nativeFromCodePoint.length != 1;
|
|
|
7
9
|
|
|
8
10
|
// `String.fromCodePoint` method
|
|
9
11
|
// https://tc39.github.io/ecma262/#sec-string.fromcodepoint
|
|
10
|
-
|
|
12
|
+
$({ target: 'String', stat: true, forced: INCORRECT_LENGTH }, {
|
|
11
13
|
fromCodePoint: function fromCodePoint(x) { // eslint-disable-line no-unused-vars
|
|
12
14
|
var elements = [];
|
|
13
15
|
var length = arguments.length;
|