core-js 3.0.0-beta.7 → 3.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/README.md +18 -0
- package/es/array/flat-map.js +4 -0
- package/es/array/flat.js +4 -0
- package/es/array/index.js +21 -17
- package/es/array/virtual/flat-map.js +4 -0
- package/es/array/virtual/flat.js +4 -0
- package/es/array/virtual/index.js +7 -2
- package/es/index.js +7 -0
- package/es/instance/bind.js +7 -0
- package/es/instance/code-point-at.js +8 -0
- package/es/instance/concat.js +7 -0
- package/es/instance/copy-within.js +7 -0
- package/es/instance/ends-with.js +8 -0
- package/es/instance/entries.js +7 -0
- package/es/instance/every.js +7 -0
- package/es/instance/fill.js +7 -0
- package/es/instance/filter.js +7 -0
- package/es/instance/find-index.js +7 -0
- package/es/instance/find.js +7 -0
- package/es/instance/flags.js +6 -0
- package/es/instance/flat-map.js +7 -0
- package/es/instance/flat.js +7 -0
- package/es/instance/for-each.js +7 -0
- package/es/instance/includes.js +12 -0
- package/es/instance/index-of.js +7 -0
- package/es/instance/keys.js +7 -0
- package/es/instance/last-index-of.js +7 -0
- package/es/instance/map.js +7 -0
- package/es/instance/pad-end.js +8 -0
- package/es/instance/pad-start.js +8 -0
- package/es/instance/reduce-right.js +7 -0
- package/es/instance/reduce.js +7 -0
- package/es/instance/repeat.js +8 -0
- package/es/instance/reverse.js +7 -0
- package/es/instance/slice.js +7 -0
- package/es/instance/some.js +7 -0
- package/es/instance/sort.js +7 -0
- package/es/instance/splice.js +7 -0
- package/es/instance/starts-with.js +8 -0
- package/es/instance/trim-end.js +8 -0
- package/es/instance/trim-left.js +8 -0
- package/es/instance/trim-right.js +8 -0
- package/es/instance/trim-start.js +8 -0
- package/es/instance/trim.js +8 -0
- package/es/instance/values.js +7 -0
- package/es/number/max-safe-integer.js +1 -1
- package/es/number/min-safe-integer.js +1 -1
- package/es/object/from-entries.js +4 -0
- package/es/object/index.js +1 -0
- package/es/string/index.js +2 -0
- package/es/string/trim-end.js +3 -0
- package/es/string/trim-left.js +3 -0
- package/es/string/trim-right.js +3 -0
- package/es/string/trim-start.js +3 -0
- package/es/string/virtual/index.js +2 -0
- package/es/string/virtual/trim-end.js +3 -0
- package/es/string/virtual/trim-left.js +3 -0
- package/es/string/virtual/trim-right.js +3 -0
- package/es/string/virtual/trim-start.js +3 -0
- package/features/aggregate-error.js +5 -0
- package/features/array/flat-map.js +1 -3
- package/features/array/flat.js +1 -3
- package/features/array/index.js +0 -2
- package/features/array/virtual/flat-map.js +1 -3
- package/features/array/virtual/flat.js +1 -3
- package/features/array/virtual/index.js +0 -3
- package/features/clear-immediate.js +1 -3
- package/features/index.js +1 -0
- package/features/instance/at.js +8 -0
- package/features/instance/bind.js +1 -0
- package/features/instance/code-point-at.js +1 -0
- package/features/instance/code-points.js +8 -0
- package/features/instance/concat.js +1 -0
- package/features/instance/copy-within.js +1 -0
- package/features/instance/ends-with.js +1 -0
- package/features/instance/entries.js +1 -0
- package/features/instance/every.js +1 -0
- package/features/instance/fill.js +1 -0
- package/features/instance/filter.js +1 -0
- package/features/instance/find-index.js +1 -0
- package/features/instance/find.js +1 -0
- package/features/instance/flags.js +1 -0
- package/features/instance/flat-map.js +1 -0
- package/features/instance/flat.js +1 -0
- package/features/instance/for-each.js +1 -0
- package/features/instance/includes.js +1 -0
- package/features/instance/index-of.js +1 -0
- package/features/instance/keys.js +1 -0
- package/features/instance/last-index-of.js +1 -0
- package/features/instance/map.js +1 -0
- package/features/instance/match-all.js +8 -0
- package/features/instance/pad-end.js +1 -0
- package/features/instance/pad-start.js +1 -0
- package/features/instance/reduce-right.js +1 -0
- package/features/instance/reduce.js +1 -0
- package/features/instance/repeat.js +1 -0
- package/features/instance/replace-all.js +8 -0
- package/features/instance/reverse.js +1 -0
- package/features/instance/slice.js +1 -0
- package/features/instance/some.js +1 -0
- package/features/instance/sort.js +1 -0
- package/features/instance/splice.js +1 -0
- package/features/instance/starts-with.js +1 -0
- package/features/instance/trim-end.js +1 -0
- package/features/instance/trim-left.js +1 -0
- package/features/instance/trim-right.js +1 -0
- package/features/instance/trim-start.js +1 -0
- package/features/instance/trim.js +1 -0
- package/features/instance/values.js +1 -0
- package/features/map/index.js +1 -0
- package/features/map/update.js +4 -0
- package/features/object/from-entries.js +1 -4
- package/features/object/index.js +1 -3
- package/features/promise/any.js +10 -0
- package/features/promise/index.js +2 -0
- package/features/queue-microtask.js +1 -3
- package/features/reflect/delete-property.js +1 -3
- package/features/set/index.js +1 -1
- package/features/set/{is-disjoint-with.js → is-disjoint-from.js} +2 -2
- package/features/set-immediate.js +1 -3
- package/features/set-interval.js +1 -3
- package/features/set-timeout.js +1 -3
- package/features/string/index.js +0 -2
- package/features/string/trim-end.js +1 -3
- package/features/string/trim-left.js +1 -3
- package/features/string/trim-right.js +1 -3
- package/features/string/trim-start.js +1 -3
- package/features/string/virtual/index.js +0 -2
- package/features/string/virtual/trim-end.js +1 -3
- package/features/string/virtual/trim-left.js +1 -3
- package/features/string/virtual/trim-right.js +1 -3
- package/features/string/virtual/trim-start.js +1 -3
- package/internals/a-function.js +3 -2
- package/internals/add-to-unscopables.js +3 -1
- package/internals/advance-string-index.js +2 -2
- package/internals/an-instance.js +1 -1
- package/internals/an-object.js +3 -2
- package/internals/array-buffer-view-core.js +13 -7
- package/internals/array-buffer.js +7 -7
- package/internals/array-for-each.js +5 -3
- package/internals/array-from.js +5 -2
- package/internals/array-last-index-of.js +2 -1
- package/internals/{check-array-species-create.js → array-method-has-species-support.js} +2 -2
- package/internals/array-reduce.js +2 -2
- package/internals/call-with-safe-iteration-closing.js +2 -2
- package/internals/check-correctness-of-iteration.js +2 -2
- package/internals/classof.js +1 -1
- package/internals/collection-delete-all.js +3 -3
- package/internals/collection-from.js +25 -0
- package/internals/collection-of.js +8 -0
- package/internals/collection-strong.js +9 -9
- package/internals/collection-weak.js +4 -4
- package/internals/collection.js +9 -9
- package/internals/create-html.js +11 -0
- package/internals/date-to-primitive.js +3 -2
- package/internals/export.js +18 -13
- package/internals/fails.js +1 -1
- package/internals/fix-regexp-well-known-symbol-logic.js +17 -22
- package/internals/flatten-into-array.js +1 -1
- package/internals/{object-forced-pam.js → forced-object-prototype-accessors-methods.js} +4 -4
- package/internals/forced-string-html-method.js +10 -0
- package/internals/forced-string-trim-method.js +11 -0
- package/internals/function-bind.js +5 -5
- package/internals/get-built-in.js +11 -0
- package/internals/get-iterator.js +3 -2
- package/internals/get-map-iterator.js +2 -2
- package/internals/get-set-iterator.js +2 -2
- package/internals/global.js +2 -2
- package/internals/internal-state.js +4 -5
- package/internals/iterate.js +1 -1
- package/internals/math-scale.js +2 -5
- package/internals/microtask.js +13 -10
- package/internals/native-symbol.js +1 -1
- package/internals/native-weak-map.js +4 -0
- package/internals/object-assign.js +5 -5
- package/internals/object-create.js +4 -2
- package/internals/object-define-property.js +2 -2
- package/internals/object-get-own-property-descriptor.js +1 -1
- package/internals/object-get-own-property-names-external.js +1 -1
- package/internals/object-set-prototype-of.js +3 -3
- package/internals/object-to-array.js +12 -12
- package/internals/parse-float.js +1 -1
- package/internals/parse-int.js +1 -1
- package/internals/perform.js +3 -3
- package/internals/punycode-to-ascii.js +5 -5
- package/internals/redefine.js +4 -2
- package/internals/reflect-metadata.js +10 -10
- package/internals/regexp-exec-abstract.js +2 -2
- package/internals/regexp-exec.js +3 -5
- package/internals/require-object-coercible.js +1 -1
- package/internals/set-global.js +1 -1
- package/internals/set-species.js +5 -4
- package/internals/shared.js +2 -2
- package/internals/sloppy-array-method.js +10 -0
- package/internals/string-at.js +13 -15
- package/internals/string-pad.js +3 -2
- package/internals/string-repeat.js +1 -1
- package/internals/string-trim.js +6 -20
- package/internals/this-number-value.js +3 -1
- package/internals/to-index.js +1 -1
- package/internals/to-length.js +1 -1
- package/internals/to-offset.js +1 -1
- package/internals/typed-array-constructor.js +10 -10
- package/internals/typed-array-from.js +12 -6
- package/internals/typed-arrays-constructors-requires-wrappers.js +6 -5
- package/internals/validate-set-prototype-of-arguments.js +3 -1
- package/internals/validate-string-method-arguments.js +3 -2
- package/internals/webkit-string-pad-bug.js +5 -0
- package/internals/well-known-symbol.js +3 -2
- package/internals/whitespaces.js +1 -1
- package/modules/es.array-buffer.is-view.js +4 -3
- package/modules/es.array.concat.js +11 -8
- package/modules/es.array.every.js +1 -1
- package/modules/es.array.filter.js +1 -3
- package/modules/{esnext.array.flat-map.js → es.array.flat-map.js} +0 -2
- package/modules/{esnext.array.flat.js → es.array.flat.js} +0 -2
- package/modules/es.array.index-of.js +1 -1
- package/modules/es.array.join.js +1 -1
- package/modules/es.array.map.js +1 -3
- package/modules/es.array.reduce-right.js +1 -1
- package/modules/es.array.reduce.js +1 -1
- package/modules/es.array.slice.js +4 -4
- package/modules/es.array.some.js +1 -1
- package/modules/es.array.sort.js +7 -7
- package/modules/es.array.splice.js +9 -5
- package/modules/es.array.unscopables.flat-map.js +3 -0
- package/modules/es.array.unscopables.flat.js +3 -0
- package/modules/es.date.to-json.js +6 -4
- package/modules/es.function.name.js +12 -9
- package/modules/es.math.acosh.js +7 -6
- package/modules/es.math.asinh.js +3 -3
- package/modules/es.math.imul.js +6 -4
- package/modules/es.math.sinh.js +5 -3
- package/modules/es.number.constructor.js +7 -5
- package/modules/es.number.is-safe-integer.js +1 -1
- package/modules/es.number.max-safe-integer.js +1 -1
- package/modules/es.number.min-safe-integer.js +1 -1
- package/modules/es.number.to-fixed.js +1 -1
- package/modules/es.object.define-getter.js +2 -1
- package/modules/es.object.define-setter.js +2 -1
- package/modules/es.object.entries.js +2 -2
- package/modules/es.object.freeze.js +6 -4
- package/modules/{esnext.object.from-entries.js → es.object.from-entries.js} +0 -0
- package/modules/es.object.get-own-property-descriptor.js +7 -5
- package/modules/es.object.get-own-property-names.js +5 -2
- package/modules/es.object.get-prototype-of.js +8 -4
- package/modules/es.object.is-extensible.js +5 -3
- package/modules/es.object.is-frozen.js +5 -3
- package/modules/es.object.is-sealed.js +5 -3
- package/modules/es.object.keys.js +4 -3
- package/modules/es.object.lookup-getter.js +5 -4
- package/modules/es.object.lookup-setter.js +5 -4
- package/modules/es.object.prevent-extensions.js +6 -4
- package/modules/es.object.seal.js +6 -4
- package/modules/es.object.to-string.js +3 -2
- package/modules/es.object.values.js +2 -2
- package/modules/es.promise.finally.js +15 -14
- package/modules/es.promise.js +26 -15
- package/modules/es.reflect.apply.js +5 -3
- package/modules/es.reflect.define-property.js +1 -1
- package/modules/es.reflect.get.js +3 -3
- package/modules/es.reflect.prevent-extensions.js +4 -3
- package/modules/es.reflect.set-prototype-of.js +1 -1
- package/modules/es.regexp.constructor.js +9 -5
- package/modules/es.regexp.exec.js +1 -5
- package/modules/es.string.anchor.js +6 -3
- package/modules/es.string.big.js +6 -3
- package/modules/es.string.blink.js +6 -3
- package/modules/es.string.bold.js +6 -3
- package/modules/es.string.code-point-at.js +1 -1
- package/modules/es.string.fixed.js +6 -3
- package/modules/es.string.fontcolor.js +6 -3
- package/modules/es.string.fontsize.js +6 -3
- package/modules/es.string.from-code-point.js +2 -2
- package/modules/es.string.italics.js +6 -3
- package/modules/es.string.iterator.js +2 -2
- package/modules/es.string.link.js +6 -3
- package/modules/es.string.match.js +3 -2
- package/modules/es.string.pad-end.js +1 -4
- package/modules/es.string.pad-start.js +1 -4
- package/modules/es.string.replace.js +6 -5
- package/modules/es.string.search.js +3 -2
- package/modules/es.string.small.js +6 -3
- package/modules/es.string.split.js +27 -24
- package/modules/es.string.strike.js +6 -3
- package/modules/es.string.sub.js +6 -3
- package/modules/es.string.sup.js +6 -3
- package/modules/es.string.trim-end.js +14 -0
- package/modules/es.string.trim-start.js +14 -0
- package/modules/es.string.trim.js +7 -4
- package/modules/es.symbol.js +11 -11
- package/modules/es.typed-array.fill.js +2 -1
- package/modules/es.typed-array.join.js +2 -1
- package/modules/es.typed-array.set.js +1 -1
- package/modules/es.weak-map.js +8 -6
- package/modules/esnext.aggregate-error.js +27 -0
- package/modules/esnext.array.last-index.js +2 -0
- package/modules/esnext.array.last-item.js +2 -0
- package/modules/esnext.composite-key.js +3 -3
- package/modules/esnext.composite-symbol.js +4 -9
- package/modules/esnext.map.delete-all.js +1 -1
- package/modules/esnext.map.every.js +1 -1
- package/modules/esnext.map.filter.js +3 -3
- package/modules/esnext.map.find-key.js +1 -1
- package/modules/esnext.map.find.js +1 -1
- package/modules/esnext.map.from.js +3 -1
- package/modules/esnext.map.group-by.js +8 -3
- package/modules/esnext.map.includes.js +1 -1
- package/modules/esnext.map.key-by.js +5 -2
- package/modules/esnext.map.key-of.js +1 -1
- package/modules/esnext.map.map-keys.js +3 -3
- package/modules/esnext.map.map-values.js +3 -3
- package/modules/esnext.map.merge.js +9 -9
- package/modules/esnext.map.of.js +3 -1
- package/modules/esnext.map.reduce.js +2 -2
- package/modules/esnext.map.some.js +1 -1
- package/modules/esnext.map.update.js +19 -0
- package/modules/esnext.math.imulh.js +1 -1
- package/modules/esnext.math.umulh.js +1 -1
- package/modules/esnext.number.from-string.js +8 -8
- package/modules/esnext.observable.js +12 -12
- package/modules/esnext.promise.all-settled.js +3 -3
- package/modules/esnext.promise.any.js +42 -0
- package/modules/esnext.promise.try.js +8 -6
- package/modules/esnext.reflect.define-metadata.js +7 -4
- package/modules/esnext.reflect.delete-metadata.js +13 -11
- package/modules/esnext.reflect.get-metadata-keys.js +7 -4
- package/modules/esnext.reflect.get-metadata.js +7 -4
- package/modules/esnext.reflect.get-own-metadata-keys.js +7 -4
- package/modules/esnext.reflect.get-own-metadata.js +7 -5
- package/modules/esnext.reflect.has-metadata.js +7 -4
- package/modules/esnext.reflect.has-own-metadata.js +7 -5
- package/modules/esnext.reflect.metadata.js +8 -11
- package/modules/esnext.set.add-all.js +1 -1
- package/modules/esnext.set.delete-all.js +1 -1
- package/modules/esnext.set.difference.js +2 -3
- package/modules/esnext.set.every.js +1 -1
- package/modules/esnext.set.filter.js +3 -3
- package/modules/esnext.set.find.js +1 -1
- package/modules/esnext.set.from.js +3 -1
- package/modules/esnext.set.intersection.js +2 -3
- package/modules/{esnext.set.is-disjoint-with.js → esnext.set.is-disjoint-from.js} +3 -3
- package/modules/esnext.set.is-subset-of.js +10 -7
- package/modules/esnext.set.join.js +1 -1
- package/modules/esnext.set.map.js +3 -3
- package/modules/esnext.set.of.js +3 -1
- package/modules/esnext.set.reduce.js +2 -2
- package/modules/esnext.set.some.js +1 -1
- package/modules/esnext.set.symmetric-difference.js +2 -3
- package/modules/esnext.set.union.js +2 -3
- package/modules/esnext.string.at.js +2 -2
- package/modules/esnext.string.code-points.js +3 -5
- package/modules/esnext.string.match-all.js +3 -3
- package/modules/esnext.string.replace-all.js +15 -5
- package/modules/esnext.weak-map.delete-all.js +1 -1
- package/modules/esnext.weak-map.from.js +3 -1
- package/modules/esnext.weak-map.of.js +3 -1
- package/modules/esnext.weak-set.add-all.js +1 -1
- package/modules/esnext.weak-set.delete-all.js +1 -1
- package/modules/esnext.weak-set.from.js +3 -1
- package/modules/esnext.weak-set.of.js +3 -1
- package/modules/web.dom-collections.for-each.js +1 -1
- package/modules/web.dom-collections.iterator.js +2 -2
- package/modules/web.immediate.js +2 -1
- package/modules/web.queue-microtask.js +1 -1
- package/modules/web.url-search-params.js +21 -3
- package/modules/web.url.js +30 -34
- package/package.json +6 -1
- package/proposals/collection-methods.js +1 -0
- package/proposals/{richer-keys.js → keys-composition.js} +0 -0
- package/proposals/promise-any.js +2 -0
- package/proposals/set-methods.js +1 -1
- package/stable/README.md +1 -0
- package/stable/array/concat.js +1 -0
- package/stable/array/copy-within.js +1 -0
- package/stable/array/entries.js +1 -0
- package/stable/array/every.js +1 -0
- package/stable/array/fill.js +1 -0
- package/stable/array/filter.js +1 -0
- package/stable/array/find-index.js +1 -0
- package/stable/array/find.js +1 -0
- package/stable/array/flat-map.js +1 -0
- package/stable/array/flat.js +1 -0
- package/stable/array/for-each.js +1 -0
- package/stable/array/from.js +1 -0
- package/stable/array/includes.js +1 -0
- package/stable/array/index-of.js +1 -0
- package/stable/array/index.js +1 -0
- package/stable/array/is-array.js +1 -0
- package/stable/array/iterator.js +1 -0
- package/stable/array/join.js +1 -0
- package/stable/array/keys.js +1 -0
- package/stable/array/last-index-of.js +1 -0
- package/stable/array/map.js +1 -0
- package/stable/array/of.js +1 -0
- package/stable/array/reduce-right.js +1 -0
- package/stable/array/reduce.js +1 -0
- package/stable/array/reverse.js +1 -0
- package/stable/array/slice.js +1 -0
- package/stable/array/some.js +1 -0
- package/stable/array/sort.js +1 -0
- package/stable/array/splice.js +1 -0
- package/stable/array/values.js +1 -0
- package/stable/array/virtual/concat.js +1 -0
- package/stable/array/virtual/copy-within.js +1 -0
- package/stable/array/virtual/entries.js +1 -0
- package/stable/array/virtual/every.js +1 -0
- package/stable/array/virtual/fill.js +1 -0
- package/stable/array/virtual/filter.js +1 -0
- package/stable/array/virtual/find-index.js +1 -0
- package/stable/array/virtual/find.js +1 -0
- package/stable/array/virtual/flat-map.js +1 -0
- package/stable/array/virtual/flat.js +1 -0
- package/stable/array/virtual/for-each.js +1 -0
- package/stable/array/virtual/includes.js +1 -0
- package/stable/array/virtual/index-of.js +1 -0
- package/stable/array/virtual/index.js +1 -0
- package/stable/array/virtual/iterator.js +1 -0
- package/stable/array/virtual/join.js +1 -0
- package/stable/array/virtual/keys.js +1 -0
- package/stable/array/virtual/last-index-of.js +1 -0
- package/stable/array/virtual/map.js +1 -0
- package/stable/array/virtual/reduce-right.js +1 -0
- package/stable/array/virtual/reduce.js +1 -0
- package/stable/array/virtual/reverse.js +1 -0
- package/stable/array/virtual/slice.js +1 -0
- package/stable/array/virtual/some.js +1 -0
- package/stable/array/virtual/sort.js +1 -0
- package/stable/array/virtual/splice.js +1 -0
- package/stable/array/virtual/values.js +1 -0
- package/stable/array-buffer/constructor.js +1 -0
- package/stable/array-buffer/index.js +1 -0
- package/stable/array-buffer/is-view.js +1 -0
- package/stable/array-buffer/slice.js +1 -0
- package/stable/clear-immediate.js +3 -0
- package/stable/data-view/index.js +1 -0
- package/stable/date/index.js +1 -0
- package/stable/date/now.js +1 -0
- package/stable/date/to-iso-string.js +1 -0
- package/stable/date/to-json.js +1 -0
- package/stable/date/to-primitive.js +1 -0
- package/stable/date/to-string.js +1 -0
- package/stable/dom-collections/for-each.js +3 -0
- package/stable/dom-collections/index.js +11 -0
- package/stable/dom-collections/iterator.js +3 -0
- package/stable/function/bind.js +1 -0
- package/stable/function/has-instance.js +1 -0
- package/stable/function/index.js +1 -0
- package/stable/function/name.js +1 -0
- package/stable/function/virtual/bind.js +1 -0
- package/stable/function/virtual/index.js +1 -0
- package/stable/global-this.js +3 -0
- package/stable/index.js +4 -0
- package/stable/instance/bind.js +1 -0
- package/stable/instance/code-point-at.js +1 -0
- package/stable/instance/concat.js +1 -0
- package/stable/instance/copy-within.js +1 -0
- package/stable/instance/ends-with.js +1 -0
- package/stable/instance/entries.js +16 -0
- package/stable/instance/every.js +1 -0
- package/stable/instance/fill.js +1 -0
- package/stable/instance/filter.js +1 -0
- package/stable/instance/find-index.js +1 -0
- package/stable/instance/find.js +1 -0
- package/stable/instance/flags.js +1 -0
- package/stable/instance/flat-map.js +1 -0
- package/stable/instance/flat.js +1 -0
- package/stable/instance/for-each.js +16 -0
- package/stable/instance/includes.js +1 -0
- package/stable/instance/index-of.js +1 -0
- package/stable/instance/keys.js +16 -0
- package/stable/instance/last-index-of.js +1 -0
- package/stable/instance/map.js +1 -0
- package/stable/instance/pad-end.js +1 -0
- package/stable/instance/pad-start.js +1 -0
- package/stable/instance/reduce-right.js +1 -0
- package/stable/instance/reduce.js +1 -0
- package/stable/instance/repeat.js +1 -0
- package/stable/instance/reverse.js +1 -0
- package/stable/instance/slice.js +1 -0
- package/stable/instance/some.js +1 -0
- package/stable/instance/sort.js +1 -0
- package/stable/instance/splice.js +1 -0
- package/stable/instance/starts-with.js +1 -0
- package/stable/instance/trim-end.js +1 -0
- package/stable/instance/trim-left.js +1 -0
- package/stable/instance/trim-right.js +1 -0
- package/stable/instance/trim-start.js +1 -0
- package/stable/instance/trim.js +1 -0
- package/stable/instance/values.js +16 -0
- package/stable/json/index.js +1 -0
- package/stable/json/stringify.js +1 -0
- package/stable/json/to-string-tag.js +1 -0
- package/stable/map/index.js +1 -0
- package/stable/math/acosh.js +1 -0
- package/stable/math/asinh.js +1 -0
- package/stable/math/atanh.js +1 -0
- package/stable/math/cbrt.js +1 -0
- package/stable/math/clz32.js +1 -0
- package/stable/math/cosh.js +1 -0
- package/stable/math/expm1.js +1 -0
- package/stable/math/fround.js +1 -0
- package/stable/math/hypot.js +1 -0
- package/stable/math/imul.js +1 -0
- package/stable/math/index.js +1 -0
- package/stable/math/log10.js +1 -0
- package/stable/math/log1p.js +1 -0
- package/stable/math/log2.js +1 -0
- package/stable/math/sign.js +1 -0
- package/stable/math/sinh.js +1 -0
- package/stable/math/tanh.js +1 -0
- package/stable/math/to-string-tag.js +1 -0
- package/stable/math/trunc.js +1 -0
- package/stable/number/constructor.js +1 -0
- package/stable/number/epsilon.js +1 -0
- package/stable/number/index.js +1 -0
- package/stable/number/is-finite.js +1 -0
- package/stable/number/is-integer.js +1 -0
- package/stable/number/is-nan.js +1 -0
- package/stable/number/is-safe-integer.js +1 -0
- package/stable/number/max-safe-integer.js +1 -0
- package/stable/number/min-safe-integer.js +1 -0
- package/stable/number/parse-float.js +1 -0
- package/stable/number/parse-int.js +1 -0
- package/stable/number/to-fixed.js +1 -0
- package/stable/number/to-precision.js +1 -0
- package/stable/number/virtual/index.js +1 -0
- package/stable/number/virtual/to-fixed.js +1 -0
- package/stable/number/virtual/to-precision.js +1 -0
- package/stable/object/assign.js +1 -0
- package/stable/object/create.js +1 -0
- package/stable/object/define-getter.js +1 -0
- package/stable/object/define-properties.js +1 -0
- package/stable/object/define-property.js +1 -0
- package/stable/object/define-setter.js +1 -0
- package/stable/object/entries.js +1 -0
- package/stable/object/freeze.js +1 -0
- package/stable/object/from-entries.js +1 -0
- package/stable/object/get-own-property-descriptor.js +1 -0
- package/stable/object/get-own-property-descriptors.js +1 -0
- package/stable/object/get-own-property-names.js +1 -0
- package/stable/object/get-own-property-symbols.js +1 -0
- package/stable/object/get-prototype-of.js +1 -0
- package/stable/object/index.js +1 -0
- package/stable/object/is-extensible.js +1 -0
- package/stable/object/is-frozen.js +1 -0
- package/stable/object/is-sealed.js +1 -0
- package/stable/object/is.js +1 -0
- package/stable/object/keys.js +1 -0
- package/stable/object/lookup-getter.js +1 -0
- package/stable/object/lookup-setter.js +1 -0
- package/stable/object/prevent-extensions.js +1 -0
- package/stable/object/seal.js +1 -0
- package/stable/object/set-prototype-of.js +1 -0
- package/stable/object/to-string.js +1 -0
- package/stable/object/values.js +1 -0
- package/stable/parse-float.js +1 -0
- package/stable/parse-int.js +1 -0
- package/stable/promise/finally.js +1 -0
- package/stable/promise/index.js +1 -0
- package/stable/queue-microtask.js +1 -0
- package/stable/reflect/apply.js +1 -0
- package/stable/reflect/construct.js +1 -0
- package/stable/reflect/define-property.js +1 -0
- package/stable/reflect/delete-property.js +1 -0
- package/stable/reflect/get-own-property-descriptor.js +1 -0
- package/stable/reflect/get-prototype-of.js +1 -0
- package/stable/reflect/get.js +1 -0
- package/stable/reflect/has.js +1 -0
- package/stable/reflect/index.js +1 -0
- package/stable/reflect/is-extensible.js +1 -0
- package/stable/reflect/own-keys.js +1 -0
- package/stable/reflect/prevent-extensions.js +1 -0
- package/stable/reflect/set-prototype-of.js +1 -0
- package/stable/reflect/set.js +1 -0
- package/stable/regexp/constructor.js +1 -0
- package/stable/regexp/flags.js +1 -0
- package/stable/regexp/index.js +1 -0
- package/stable/regexp/match.js +1 -0
- package/stable/regexp/replace.js +1 -0
- package/stable/regexp/search.js +1 -0
- package/stable/regexp/split.js +1 -0
- package/stable/regexp/to-string.js +1 -0
- package/stable/set/index.js +1 -0
- package/stable/set-immediate.js +3 -0
- package/stable/set-interval.js +3 -0
- package/stable/set-timeout.js +3 -0
- package/stable/string/anchor.js +1 -0
- package/stable/string/big.js +1 -0
- package/stable/string/blink.js +1 -0
- package/stable/string/bold.js +1 -0
- package/stable/string/code-point-at.js +1 -0
- package/stable/string/ends-with.js +1 -0
- package/stable/string/fixed.js +1 -0
- package/stable/string/fontcolor.js +1 -0
- package/stable/string/fontsize.js +1 -0
- package/stable/string/from-code-point.js +1 -0
- package/stable/string/includes.js +1 -0
- package/stable/string/index.js +1 -0
- package/stable/string/italics.js +1 -0
- package/stable/string/iterator.js +1 -0
- package/stable/string/link.js +1 -0
- package/stable/string/match.js +1 -0
- package/stable/string/pad-end.js +1 -0
- package/stable/string/pad-start.js +1 -0
- package/stable/string/raw.js +1 -0
- package/stable/string/repeat.js +1 -0
- package/stable/string/replace.js +1 -0
- package/stable/string/search.js +1 -0
- package/stable/string/small.js +1 -0
- package/stable/string/split.js +1 -0
- package/stable/string/starts-with.js +1 -0
- package/stable/string/strike.js +1 -0
- package/stable/string/sub.js +1 -0
- package/stable/string/sup.js +1 -0
- package/stable/string/trim-end.js +1 -0
- package/stable/string/trim-left.js +1 -0
- package/stable/string/trim-right.js +1 -0
- package/stable/string/trim-start.js +1 -0
- package/stable/string/trim.js +1 -0
- package/stable/string/virtual/anchor.js +1 -0
- package/stable/string/virtual/big.js +1 -0
- package/stable/string/virtual/blink.js +1 -0
- package/stable/string/virtual/bold.js +1 -0
- package/stable/string/virtual/code-point-at.js +1 -0
- package/stable/string/virtual/ends-with.js +1 -0
- package/stable/string/virtual/fixed.js +1 -0
- package/stable/string/virtual/fontcolor.js +1 -0
- package/stable/string/virtual/fontsize.js +1 -0
- package/stable/string/virtual/includes.js +1 -0
- package/stable/string/virtual/index.js +1 -0
- package/stable/string/virtual/italics.js +1 -0
- package/stable/string/virtual/iterator.js +1 -0
- package/stable/string/virtual/link.js +1 -0
- package/stable/string/virtual/pad-end.js +1 -0
- package/stable/string/virtual/pad-start.js +1 -0
- package/stable/string/virtual/repeat.js +1 -0
- package/stable/string/virtual/small.js +1 -0
- package/stable/string/virtual/starts-with.js +1 -0
- package/stable/string/virtual/strike.js +1 -0
- package/stable/string/virtual/sub.js +1 -0
- package/stable/string/virtual/sup.js +1 -0
- package/stable/string/virtual/trim-end.js +1 -0
- package/stable/string/virtual/trim-left.js +1 -0
- package/stable/string/virtual/trim-right.js +1 -0
- package/stable/string/virtual/trim-start.js +1 -0
- package/stable/string/virtual/trim.js +1 -0
- package/stable/symbol/async-iterator.js +1 -0
- package/stable/symbol/description.js +1 -0
- package/stable/symbol/for.js +1 -0
- package/stable/symbol/has-instance.js +1 -0
- package/stable/symbol/index.js +1 -0
- package/stable/symbol/is-concat-spreadable.js +1 -0
- package/stable/symbol/iterator.js +1 -0
- package/stable/symbol/key-for.js +1 -0
- package/stable/symbol/match.js +1 -0
- package/stable/symbol/replace.js +1 -0
- package/stable/symbol/search.js +1 -0
- package/stable/symbol/species.js +1 -0
- package/stable/symbol/split.js +1 -0
- package/stable/symbol/to-primitive.js +1 -0
- package/stable/symbol/to-string-tag.js +1 -0
- package/stable/symbol/unscopables.js +1 -0
- package/stable/typed-array/copy-within.js +1 -0
- package/stable/typed-array/entries.js +1 -0
- package/stable/typed-array/every.js +1 -0
- package/stable/typed-array/fill.js +1 -0
- package/stable/typed-array/filter.js +1 -0
- package/stable/typed-array/find-index.js +1 -0
- package/stable/typed-array/find.js +1 -0
- package/stable/typed-array/float32-array.js +1 -0
- package/stable/typed-array/float64-array.js +1 -0
- package/stable/typed-array/for-each.js +1 -0
- package/stable/typed-array/from.js +1 -0
- package/stable/typed-array/includes.js +1 -0
- package/stable/typed-array/index-of.js +1 -0
- package/stable/typed-array/index.js +1 -0
- package/stable/typed-array/int16-array.js +1 -0
- package/stable/typed-array/int32-array.js +1 -0
- package/stable/typed-array/int8-array.js +1 -0
- package/stable/typed-array/iterator.js +1 -0
- package/stable/typed-array/join.js +1 -0
- package/stable/typed-array/keys.js +1 -0
- package/stable/typed-array/last-index-of.js +1 -0
- package/stable/typed-array/map.js +1 -0
- package/stable/typed-array/of.js +1 -0
- package/stable/typed-array/reduce-right.js +1 -0
- package/stable/typed-array/reduce.js +1 -0
- package/stable/typed-array/reverse.js +1 -0
- package/stable/typed-array/set.js +1 -0
- package/stable/typed-array/slice.js +1 -0
- package/stable/typed-array/some.js +1 -0
- package/stable/typed-array/sort.js +1 -0
- package/stable/typed-array/subarray.js +1 -0
- package/stable/typed-array/to-locale-string.js +1 -0
- package/stable/typed-array/to-string.js +1 -0
- package/stable/typed-array/uint16-array.js +1 -0
- package/stable/typed-array/uint32-array.js +1 -0
- package/stable/typed-array/uint8-array.js +1 -0
- package/stable/typed-array/uint8-clamped-array.js +1 -0
- package/stable/typed-array/values.js +1 -0
- package/stable/url/index.js +1 -0
- package/stable/url/to-json.js +1 -0
- package/stable/url-search-params/index.js +1 -0
- package/stable/weak-map/index.js +1 -0
- package/stable/weak-set/index.js +1 -0
- package/stage/0.js +1 -0
- package/stage/1.js +1 -2
- package/stage/2.js +1 -0
- package/stage/3.js +0 -3
- package/internals/object-statics-accept-primitives.js +0 -11
- package/internals/set-collection-from.js +0 -28
- package/internals/set-collection-of.js +0 -12
- package/internals/strict-method.js +0 -9
- package/internals/string-html.js +0 -21
- package/modules/esnext.string.trim-left.js +0 -8
- package/modules/esnext.string.trim-right.js +0 -8
- package/proposals/array-flat-and-flat-map.js +0 -2
- package/proposals/object-from-entries.js +0 -2
- package/proposals/string-trim-start-end.js +0 -2
package/internals/microtask.js
CHANGED
|
@@ -1,43 +1,46 @@
|
|
|
1
1
|
var global = require('../internals/global');
|
|
2
|
+
var getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f;
|
|
2
3
|
var classof = require('../internals/classof-raw');
|
|
3
4
|
var macrotask = require('../internals/task').set;
|
|
4
5
|
var userAgent = require('../internals/user-agent');
|
|
5
6
|
var MutationObserver = global.MutationObserver || global.WebKitMutationObserver;
|
|
6
7
|
var process = global.process;
|
|
7
8
|
var Promise = global.Promise;
|
|
8
|
-
var
|
|
9
|
-
|
|
9
|
+
var IS_NODE = classof(process) == 'process';
|
|
10
|
+
// Node.js 11 shows ExperimentalWarning on getting `queueMicrotask`
|
|
11
|
+
var queueMicrotaskDescriptor = getOwnPropertyDescriptor(global, 'queueMicrotask');
|
|
12
|
+
var queueMicrotask = queueMicrotaskDescriptor && queueMicrotaskDescriptor.value;
|
|
10
13
|
|
|
11
|
-
var flush, head, last, notify;
|
|
14
|
+
var flush, head, last, notify, toggle, node, promise;
|
|
12
15
|
|
|
13
16
|
// modern engines have queueMicrotask method
|
|
14
17
|
if (!queueMicrotask) {
|
|
15
18
|
flush = function () {
|
|
16
19
|
var parent, fn;
|
|
17
|
-
if (
|
|
20
|
+
if (IS_NODE && (parent = process.domain)) parent.exit();
|
|
18
21
|
while (head) {
|
|
19
22
|
fn = head.fn;
|
|
20
23
|
head = head.next;
|
|
21
24
|
try {
|
|
22
25
|
fn();
|
|
23
|
-
} catch (
|
|
26
|
+
} catch (error) {
|
|
24
27
|
if (head) notify();
|
|
25
28
|
else last = undefined;
|
|
26
|
-
throw
|
|
29
|
+
throw error;
|
|
27
30
|
}
|
|
28
31
|
} last = undefined;
|
|
29
32
|
if (parent) parent.enter();
|
|
30
33
|
};
|
|
31
34
|
|
|
32
35
|
// Node.js
|
|
33
|
-
if (
|
|
36
|
+
if (IS_NODE) {
|
|
34
37
|
notify = function () {
|
|
35
38
|
process.nextTick(flush);
|
|
36
39
|
};
|
|
37
40
|
// browsers with MutationObserver, except iOS - https://github.com/zloirock/core-js/issues/339
|
|
38
41
|
} else if (MutationObserver && !/(iPhone|iPod|iPad).*AppleWebKit/i.test(userAgent)) {
|
|
39
|
-
|
|
40
|
-
|
|
42
|
+
toggle = true;
|
|
43
|
+
node = document.createTextNode('');
|
|
41
44
|
new MutationObserver(flush).observe(node, { characterData: true }); // eslint-disable-line no-new
|
|
42
45
|
notify = function () {
|
|
43
46
|
node.data = toggle = !toggle;
|
|
@@ -45,7 +48,7 @@ if (!queueMicrotask) {
|
|
|
45
48
|
// environments with maybe non-completely correct, but existent Promise
|
|
46
49
|
} else if (Promise && Promise.resolve) {
|
|
47
50
|
// Promise.resolve without an argument throws an error in LG WebOS 2
|
|
48
|
-
|
|
51
|
+
promise = Promise.resolve(undefined);
|
|
49
52
|
notify = function () {
|
|
50
53
|
promise.then(flush);
|
|
51
54
|
};
|
|
@@ -12,11 +12,11 @@ module.exports = !nativeAssign || require('../internals/fails')(function () {
|
|
|
12
12
|
var A = {};
|
|
13
13
|
var B = {};
|
|
14
14
|
// eslint-disable-next-line no-undef
|
|
15
|
-
var
|
|
16
|
-
var
|
|
17
|
-
A[
|
|
18
|
-
|
|
19
|
-
return nativeAssign({}, A)[
|
|
15
|
+
var symbol = Symbol();
|
|
16
|
+
var alphabet = 'abcdefghijklmnopqrst';
|
|
17
|
+
A[symbol] = 7;
|
|
18
|
+
alphabet.split('').forEach(function (chr) { B[chr] = chr; });
|
|
19
|
+
return nativeAssign({}, A)[symbol] != 7 || objectKeys(nativeAssign({}, B)).join('') != alphabet;
|
|
20
20
|
}) ? function assign(target, source) { // eslint-disable-line no-unused-vars
|
|
21
21
|
var T = toObject(target);
|
|
22
22
|
var argumentsLength = arguments.length;
|
|
@@ -14,14 +14,16 @@ var createDict = function () {
|
|
|
14
14
|
var iframe = documentCreateElement('iframe');
|
|
15
15
|
var length = enumBugKeys.length;
|
|
16
16
|
var lt = '<';
|
|
17
|
+
var script = 'script';
|
|
17
18
|
var gt = '>';
|
|
19
|
+
var js = 'java' + script + ':';
|
|
18
20
|
var iframeDocument;
|
|
19
21
|
iframe.style.display = 'none';
|
|
20
22
|
html.appendChild(iframe);
|
|
21
|
-
iframe.src =
|
|
23
|
+
iframe.src = String(js);
|
|
22
24
|
iframeDocument = iframe.contentWindow.document;
|
|
23
25
|
iframeDocument.open();
|
|
24
|
-
iframeDocument.write(lt +
|
|
26
|
+
iframeDocument.write(lt + script + gt + 'document.F=Object' + lt + '/' + script + gt);
|
|
25
27
|
iframeDocument.close();
|
|
26
28
|
createDict = iframeDocument.F;
|
|
27
29
|
while (length--) delete createDict[PROTOTYPE][enumBugKeys[length]];
|
|
@@ -10,8 +10,8 @@ exports.f = DESCRIPTORS ? nativeDefineProperty : function defineProperty(O, P, A
|
|
|
10
10
|
anObject(Attributes);
|
|
11
11
|
if (IE8_DOM_DEFINE) try {
|
|
12
12
|
return nativeDefineProperty(O, P, Attributes);
|
|
13
|
-
} catch (
|
|
14
|
-
if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported
|
|
13
|
+
} catch (error) { /* empty */ }
|
|
14
|
+
if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported');
|
|
15
15
|
if ('value' in Attributes) O[P] = Attributes.value;
|
|
16
16
|
return O;
|
|
17
17
|
};
|
|
@@ -12,6 +12,6 @@ exports.f = DESCRIPTORS ? nativeGetOwnPropertyDescriptor : function getOwnProper
|
|
|
12
12
|
P = toPrimitive(P, true);
|
|
13
13
|
if (IE8_DOM_DEFINE) try {
|
|
14
14
|
return nativeGetOwnPropertyDescriptor(O, P);
|
|
15
|
-
} catch (
|
|
15
|
+
} catch (error) { /* empty */ }
|
|
16
16
|
if (has(O, P)) return createPropertyDescriptor(!propertyIsEnumerableModule.f.call(O, P), O[P]);
|
|
17
17
|
};
|
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
/* eslint-disable no-proto */
|
|
3
3
|
var validateSetPrototypeOfArguments = require('../internals/validate-set-prototype-of-arguments');
|
|
4
4
|
|
|
5
|
-
module.exports = Object.setPrototypeOf || ('__proto__' in {} ? function () {
|
|
5
|
+
module.exports = Object.setPrototypeOf || ('__proto__' in {} ? function () {
|
|
6
|
+
var correctSetter = false;
|
|
6
7
|
var test = {};
|
|
7
|
-
var correctSetter = true;
|
|
8
8
|
var setter;
|
|
9
9
|
try {
|
|
10
10
|
setter = Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set;
|
|
11
11
|
setter.call(test, []);
|
|
12
12
|
correctSetter = test instanceof Array;
|
|
13
|
-
} catch (
|
|
13
|
+
} catch (error) { /* empty */ }
|
|
14
14
|
return function setPrototypeOf(O, proto) {
|
|
15
15
|
validateSetPrototypeOfArguments(O, proto);
|
|
16
16
|
if (correctSetter) setter.call(O, proto);
|
|
@@ -2,16 +2,16 @@ var objectKeys = require('../internals/object-keys');
|
|
|
2
2
|
var toIndexedObject = require('../internals/to-indexed-object');
|
|
3
3
|
var propertyIsEnumerable = require('../internals/object-property-is-enumerable').f;
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
};
|
|
5
|
+
// TO_ENTRIES: true -> Object.entries
|
|
6
|
+
// TO_ENTRIES: false -> Object.values
|
|
7
|
+
module.exports = function (it, TO_ENTRIES) {
|
|
8
|
+
var O = toIndexedObject(it);
|
|
9
|
+
var keys = objectKeys(O);
|
|
10
|
+
var length = keys.length;
|
|
11
|
+
var i = 0;
|
|
12
|
+
var result = [];
|
|
13
|
+
var key;
|
|
14
|
+
while (length > i) if (propertyIsEnumerable.call(O, key = keys[i++])) {
|
|
15
|
+
result.push(TO_ENTRIES ? [key, O[key]] : O[key]);
|
|
16
|
+
} return result;
|
|
17
17
|
};
|
package/internals/parse-float.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
var nativeParseFloat = require('../internals/global').parseFloat;
|
|
2
|
-
var internalStringTrim = require('../internals/string-trim')
|
|
2
|
+
var internalStringTrim = require('../internals/string-trim');
|
|
3
3
|
var whitespaces = require('../internals/whitespaces');
|
|
4
4
|
var FORCED = 1 / nativeParseFloat(whitespaces + '-0') !== -Infinity;
|
|
5
5
|
|
package/internals/parse-int.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
var nativeParseInt = require('../internals/global').parseInt;
|
|
2
|
-
var internalStringTrim = require('../internals/string-trim')
|
|
2
|
+
var internalStringTrim = require('../internals/string-trim');
|
|
3
3
|
var whitespaces = require('../internals/whitespaces');
|
|
4
4
|
var hex = /^[-+]?0[xX]/;
|
|
5
5
|
var FORCED = nativeParseInt(whitespaces + '08') !== 8 || nativeParseInt(whitespaces + '0x16') !== 22;
|
package/internals/perform.js
CHANGED
|
@@ -9,8 +9,8 @@ var damp = 700;
|
|
|
9
9
|
var initialBias = 72;
|
|
10
10
|
var initialN = 128; // 0x80
|
|
11
11
|
var delimiter = '-'; // '\x2D'
|
|
12
|
-
var regexNonASCII = /[^\0-\
|
|
13
|
-
var regexSeparators = /[\
|
|
12
|
+
var regexNonASCII = /[^\0-\u007E]/; // non-ASCII chars
|
|
13
|
+
var regexSeparators = /[\u002E\u3002\uFF0E\uFF61]/g; // RFC 3490 separators
|
|
14
14
|
var OVERFLOW_ERROR = 'Overflow: input needs wider integers to process';
|
|
15
15
|
var baseMinusTMin = base - tMin;
|
|
16
16
|
var floor = Math.floor;
|
|
@@ -120,7 +120,7 @@ var encode = function (input) {
|
|
|
120
120
|
// Increase `delta` enough to advance the decoder's <n,i> state to <m,0>, but guard against overflow.
|
|
121
121
|
var handledCPCountPlusOne = handledCPCount + 1;
|
|
122
122
|
if (m - n > floor((maxInt - delta) / handledCPCountPlusOne)) {
|
|
123
|
-
throw
|
|
123
|
+
throw RangeError(OVERFLOW_ERROR);
|
|
124
124
|
}
|
|
125
125
|
|
|
126
126
|
delta += (m - n) * handledCPCountPlusOne;
|
|
@@ -129,7 +129,7 @@ var encode = function (input) {
|
|
|
129
129
|
for (i = 0; i < input.length; i++) {
|
|
130
130
|
currentValue = input[i];
|
|
131
131
|
if (currentValue < n && ++delta > maxInt) {
|
|
132
|
-
throw
|
|
132
|
+
throw RangeError(OVERFLOW_ERROR);
|
|
133
133
|
}
|
|
134
134
|
if (currentValue == n) {
|
|
135
135
|
// Represent delta as a generalized variable-length integer.
|
|
@@ -160,7 +160,7 @@ var encode = function (input) {
|
|
|
160
160
|
|
|
161
161
|
module.exports = function (input) {
|
|
162
162
|
var encoded = [];
|
|
163
|
-
var labels = input.toLowerCase().replace(regexSeparators, '\
|
|
163
|
+
var labels = input.toLowerCase().replace(regexSeparators, '\u002E').split('.');
|
|
164
164
|
var i, label;
|
|
165
165
|
for (i = 0; i < labels.length; i++) {
|
|
166
166
|
label = labels[i];
|
package/internals/redefine.js
CHANGED
|
@@ -15,16 +15,18 @@ require('../internals/shared')('inspectSource', function (it) {
|
|
|
15
15
|
(module.exports = function (O, key, value, options) {
|
|
16
16
|
var unsafe = options ? !!options.unsafe : false;
|
|
17
17
|
var simple = options ? !!options.enumerable : false;
|
|
18
|
+
var noTargetGet = options ? !!options.noTargetGet : false;
|
|
18
19
|
if (typeof value == 'function') {
|
|
19
20
|
if (typeof key == 'string' && !has(value, 'name')) hide(value, 'name', key);
|
|
20
21
|
enforceInternalState(value).source = TEMPLATE.join(typeof key == 'string' ? key : '');
|
|
21
22
|
}
|
|
22
23
|
if (O === global) {
|
|
23
|
-
|
|
24
|
+
if (simple) O[key] = value;
|
|
25
|
+
else setGlobal(key, value);
|
|
24
26
|
return;
|
|
25
27
|
} else if (!unsafe) {
|
|
26
28
|
delete O[key];
|
|
27
|
-
} else if (O[key]) {
|
|
29
|
+
} else if (!noTargetGet && O[key]) {
|
|
28
30
|
simple = true;
|
|
29
31
|
}
|
|
30
32
|
if (simple) O[key] = value;
|
|
@@ -1,52 +1,52 @@
|
|
|
1
1
|
var Map = require('../modules/es.map');
|
|
2
2
|
var WeakMap = require('../modules/es.weak-map');
|
|
3
|
-
var $export = require('../internals/export');
|
|
4
3
|
var shared = require('../internals/shared')('metadata');
|
|
5
4
|
var store = shared.store || (shared.store = new WeakMap());
|
|
6
5
|
|
|
7
6
|
var getOrCreateMetadataMap = function (target, targetKey, create) {
|
|
8
7
|
var targetMetadata = store.get(target);
|
|
9
8
|
if (!targetMetadata) {
|
|
10
|
-
if (!create) return
|
|
9
|
+
if (!create) return;
|
|
11
10
|
store.set(target, targetMetadata = new Map());
|
|
12
11
|
}
|
|
13
12
|
var keyMetadata = targetMetadata.get(targetKey);
|
|
14
13
|
if (!keyMetadata) {
|
|
15
|
-
if (!create) return
|
|
14
|
+
if (!create) return;
|
|
16
15
|
targetMetadata.set(targetKey, keyMetadata = new Map());
|
|
17
16
|
} return keyMetadata;
|
|
18
17
|
};
|
|
18
|
+
|
|
19
19
|
var ordinaryHasOwnMetadata = function (MetadataKey, O, P) {
|
|
20
20
|
var metadataMap = getOrCreateMetadataMap(O, P, false);
|
|
21
21
|
return metadataMap === undefined ? false : metadataMap.has(MetadataKey);
|
|
22
22
|
};
|
|
23
|
+
|
|
23
24
|
var ordinaryGetOwnMetadata = function (MetadataKey, O, P) {
|
|
24
25
|
var metadataMap = getOrCreateMetadataMap(O, P, false);
|
|
25
26
|
return metadataMap === undefined ? undefined : metadataMap.get(MetadataKey);
|
|
26
27
|
};
|
|
28
|
+
|
|
27
29
|
var ordinaryDefineOwnMetadata = function (MetadataKey, MetadataValue, O, P) {
|
|
28
30
|
getOrCreateMetadataMap(O, P, true).set(MetadataKey, MetadataValue);
|
|
29
31
|
};
|
|
32
|
+
|
|
30
33
|
var ordinaryOwnMetadataKeys = function (target, targetKey) {
|
|
31
34
|
var metadataMap = getOrCreateMetadataMap(target, targetKey, false);
|
|
32
35
|
var keys = [];
|
|
33
36
|
if (metadataMap) metadataMap.forEach(function (_, key) { keys.push(key); });
|
|
34
37
|
return keys;
|
|
35
38
|
};
|
|
36
|
-
|
|
39
|
+
|
|
40
|
+
var toMetadataKey = function (it) {
|
|
37
41
|
return it === undefined || typeof it == 'symbol' ? it : String(it);
|
|
38
42
|
};
|
|
39
|
-
var exp = function (exported) {
|
|
40
|
-
$export({ target: 'Reflect', stat: true }, exported);
|
|
41
|
-
};
|
|
42
43
|
|
|
43
44
|
module.exports = {
|
|
44
45
|
store: store,
|
|
45
|
-
|
|
46
|
+
getMap: getOrCreateMetadataMap,
|
|
46
47
|
has: ordinaryHasOwnMetadata,
|
|
47
48
|
get: ordinaryGetOwnMetadata,
|
|
48
49
|
set: ordinaryDefineOwnMetadata,
|
|
49
50
|
keys: ordinaryOwnMetadataKeys,
|
|
50
|
-
|
|
51
|
-
exp: exp
|
|
51
|
+
toKey: toMetadataKey
|
|
52
52
|
};
|
|
@@ -8,13 +8,13 @@ module.exports = function (R, S) {
|
|
|
8
8
|
if (typeof exec === 'function') {
|
|
9
9
|
var result = exec.call(R, S);
|
|
10
10
|
if (typeof result !== 'object') {
|
|
11
|
-
throw
|
|
11
|
+
throw TypeError('RegExp exec method returned something other than an Object or null');
|
|
12
12
|
}
|
|
13
13
|
return result;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
if (classof(R) !== 'RegExp') {
|
|
17
|
-
throw
|
|
17
|
+
throw TypeError('RegExp#exec called on incompatible receiver');
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
return regexpExec.call(R, S);
|
package/internals/regexp-exec.js
CHANGED
|
@@ -10,14 +10,12 @@ var nativeReplace = String.prototype.replace;
|
|
|
10
10
|
|
|
11
11
|
var patchedExec = nativeExec;
|
|
12
12
|
|
|
13
|
-
var LAST_INDEX = 'lastIndex';
|
|
14
|
-
|
|
15
13
|
var UPDATES_LAST_INDEX_WRONG = (function () {
|
|
16
14
|
var re1 = /a/;
|
|
17
15
|
var re2 = /b*/g;
|
|
18
16
|
nativeExec.call(re1, 'a');
|
|
19
17
|
nativeExec.call(re2, 'a');
|
|
20
|
-
return re1
|
|
18
|
+
return re1.lastIndex !== 0 || re2.lastIndex !== 0;
|
|
21
19
|
})();
|
|
22
20
|
|
|
23
21
|
// nonparticipating capturing group, copied from es5-shim's String#split patch.
|
|
@@ -33,12 +31,12 @@ if (PATCH) {
|
|
|
33
31
|
if (NPCG_INCLUDED) {
|
|
34
32
|
reCopy = new RegExp('^' + re.source + '$(?!\\s)', regexpFlags.call(re));
|
|
35
33
|
}
|
|
36
|
-
if (UPDATES_LAST_INDEX_WRONG) lastIndex = re
|
|
34
|
+
if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;
|
|
37
35
|
|
|
38
36
|
match = nativeExec.call(re, str);
|
|
39
37
|
|
|
40
38
|
if (UPDATES_LAST_INDEX_WRONG && match) {
|
|
41
|
-
re
|
|
39
|
+
re.lastIndex = re.global ? match.index + match[0].length : lastIndex;
|
|
42
40
|
}
|
|
43
41
|
if (NPCG_INCLUDED && match && match.length > 1) {
|
|
44
42
|
// Fix browsers whose `exec` methods don't consistently return `undefined`
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// `RequireObjectCoercible` abstract operation
|
|
2
2
|
// https://tc39.github.io/ecma262/#sec-requireobjectcoercible
|
|
3
3
|
module.exports = function (it) {
|
|
4
|
-
if (it == undefined) throw TypeError("Can't call method on
|
|
4
|
+
if (it == undefined) throw TypeError("Can't call method on " + it);
|
|
5
5
|
return it;
|
|
6
6
|
};
|
package/internals/set-global.js
CHANGED
package/internals/set-species.js
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
|
-
var
|
|
2
|
+
var getBuiltIn = require('../internals/get-built-in');
|
|
3
3
|
var definePropertyModule = require('../internals/object-define-property');
|
|
4
4
|
var DESCRIPTORS = require('../internals/descriptors');
|
|
5
5
|
var SPECIES = require('../internals/well-known-symbol')('species');
|
|
6
6
|
|
|
7
|
-
module.exports = function (
|
|
8
|
-
var C =
|
|
9
|
-
|
|
7
|
+
module.exports = function (CONSTRUCTOR_NAME) {
|
|
8
|
+
var C = getBuiltIn(CONSTRUCTOR_NAME);
|
|
9
|
+
var defineProperty = definePropertyModule.f;
|
|
10
|
+
if (DESCRIPTORS && C && !C[SPECIES]) defineProperty(C, SPECIES, {
|
|
10
11
|
configurable: true,
|
|
11
12
|
get: function () { return this; }
|
|
12
13
|
});
|
package/internals/shared.js
CHANGED
|
@@ -6,7 +6,7 @@ var store = global[SHARED] || setGlobal(SHARED, {});
|
|
|
6
6
|
(module.exports = function (key, value) {
|
|
7
7
|
return store[key] || (store[key] = value !== undefined ? value : {});
|
|
8
8
|
})('versions', []).push({
|
|
9
|
-
version: '3.0.
|
|
9
|
+
version: '3.0.1',
|
|
10
10
|
mode: require('../internals/is-pure') ? 'pure' : 'global',
|
|
11
|
-
copyright: '©
|
|
11
|
+
copyright: '© 2019 Denis Pushkarev (zloirock.ru)'
|
|
12
12
|
});
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
var fails = require('../internals/fails');
|
|
3
|
+
|
|
4
|
+
module.exports = function (METHOD_NAME, argument) {
|
|
5
|
+
var method = [][METHOD_NAME];
|
|
6
|
+
return !method || !fails(function () {
|
|
7
|
+
// eslint-disable-next-line no-useless-call,no-throw-literal
|
|
8
|
+
method.call(null, argument || function () { throw 1; }, 1);
|
|
9
|
+
});
|
|
10
|
+
};
|
package/internals/string-at.js
CHANGED
|
@@ -1,18 +1,16 @@
|
|
|
1
1
|
var toInteger = require('../internals/to-integer');
|
|
2
2
|
var requireObjectCoercible = require('../internals/require-object-coercible');
|
|
3
|
-
// true -> String#at
|
|
4
|
-
// false -> String#codePointAt
|
|
5
|
-
module.exports = function (
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
: TO_STRING ? S.slice(position, position + 2) : (first - 0xd800 << 10) + (second - 0xdc00) + 0x10000;
|
|
17
|
-
};
|
|
3
|
+
// CONVERT_TO_STRING: true -> String#at
|
|
4
|
+
// CONVERT_TO_STRING: false -> String#codePointAt
|
|
5
|
+
module.exports = function (that, pos, CONVERT_TO_STRING) {
|
|
6
|
+
var S = String(requireObjectCoercible(that));
|
|
7
|
+
var position = toInteger(pos);
|
|
8
|
+
var size = S.length;
|
|
9
|
+
var first, second;
|
|
10
|
+
if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;
|
|
11
|
+
first = S.charCodeAt(position);
|
|
12
|
+
return first < 0xD800 || first > 0xDBFF || position + 1 === size
|
|
13
|
+
|| (second = S.charCodeAt(position + 1)) < 0xDC00 || second > 0xDFFF
|
|
14
|
+
? CONVERT_TO_STRING ? S.charAt(position) : first
|
|
15
|
+
: CONVERT_TO_STRING ? S.slice(position, position + 2) : (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;
|
|
18
16
|
};
|
package/internals/string-pad.js
CHANGED
|
@@ -8,9 +8,10 @@ module.exports = function (that, maxLength, fillString, left) {
|
|
|
8
8
|
var stringLength = S.length;
|
|
9
9
|
var fillStr = fillString === undefined ? ' ' : String(fillString);
|
|
10
10
|
var intMaxLength = toLength(maxLength);
|
|
11
|
+
var fillLen, stringFiller;
|
|
11
12
|
if (intMaxLength <= stringLength || fillStr == '') return S;
|
|
12
|
-
|
|
13
|
-
|
|
13
|
+
fillLen = intMaxLength - stringLength;
|
|
14
|
+
stringFiller = repeat.call(fillStr, Math.ceil(fillLen / fillStr.length));
|
|
14
15
|
if (stringFiller.length > fillLen) stringFiller = stringFiller.slice(0, fillLen);
|
|
15
16
|
return left ? stringFiller + S : S + stringFiller;
|
|
16
17
|
};
|
|
@@ -8,7 +8,7 @@ module.exports = ''.repeat || function repeat(count) {
|
|
|
8
8
|
var str = String(requireObjectCoercible(this));
|
|
9
9
|
var result = '';
|
|
10
10
|
var n = toInteger(count);
|
|
11
|
-
if (n < 0 || n == Infinity) throw RangeError(
|
|
11
|
+
if (n < 0 || n == Infinity) throw RangeError('Wrong number of repetitions');
|
|
12
12
|
for (;n > 0; (n >>>= 1) && (str += str)) if (n & 1) result += str;
|
|
13
13
|
return result;
|
|
14
14
|
};
|
package/internals/string-trim.js
CHANGED
|
@@ -1,26 +1,12 @@
|
|
|
1
|
-
var $export = require('../internals/export');
|
|
2
1
|
var requireObjectCoercible = require('../internals/require-object-coercible');
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var non = '\u200b\u0085\u180e';
|
|
7
|
-
var ltrim = RegExp('^' + space + space + '*');
|
|
8
|
-
var rtrim = RegExp(space + space + '*$');
|
|
2
|
+
var whitespace = '[' + require('../internals/whitespaces') + ']';
|
|
3
|
+
var ltrim = RegExp('^' + whitespace + whitespace + '*');
|
|
4
|
+
var rtrim = RegExp(whitespace + whitespace + '*$');
|
|
9
5
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
var FORCED = fails(function () {
|
|
13
|
-
return !!whitespaces[KEY]() || non[KEY]() != non || whitespaces[KEY].name !== KEY;
|
|
14
|
-
});
|
|
15
|
-
var fn = exported[KEY] = FORCED ? exec(trim) : whitespaces[KEY];
|
|
16
|
-
if (ALIAS) exported[ALIAS] = fn;
|
|
17
|
-
$export({ target: 'String', proto: true, forced: FORCED }, exported);
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
// 1 -> String#trimLeft
|
|
21
|
-
// 2 -> String#trimRight
|
|
6
|
+
// 1 -> String#trimStart
|
|
7
|
+
// 2 -> String#trimEnd
|
|
22
8
|
// 3 -> String#trim
|
|
23
|
-
|
|
9
|
+
module.exports = function (string, TYPE) {
|
|
24
10
|
string = String(requireObjectCoercible(string));
|
|
25
11
|
if (TYPE & 1) string = string.replace(ltrim, '');
|
|
26
12
|
if (TYPE & 2) string = string.replace(rtrim, '');
|
|
@@ -3,6 +3,8 @@ var classof = require('../internals/classof-raw');
|
|
|
3
3
|
// `thisNumberValue` abstract operation
|
|
4
4
|
// https://tc39.github.io/ecma262/#sec-thisnumbervalue
|
|
5
5
|
module.exports = function (value) {
|
|
6
|
-
if (typeof value != 'number' && classof(value) != 'Number')
|
|
6
|
+
if (typeof value != 'number' && classof(value) != 'Number') {
|
|
7
|
+
throw TypeError('Incorrect invocation');
|
|
8
|
+
}
|
|
7
9
|
return +value;
|
|
8
10
|
};
|
package/internals/to-index.js
CHANGED
|
@@ -7,6 +7,6 @@ module.exports = function (it) {
|
|
|
7
7
|
if (it === undefined) return 0;
|
|
8
8
|
var number = toInteger(it);
|
|
9
9
|
var length = toLength(number);
|
|
10
|
-
if (number !== length) throw RangeError('Wrong length or index
|
|
10
|
+
if (number !== length) throw RangeError('Wrong length or index');
|
|
11
11
|
return length;
|
|
12
12
|
};
|
package/internals/to-length.js
CHANGED
|
@@ -4,5 +4,5 @@ var min = Math.min;
|
|
|
4
4
|
// `ToLength` abstract operation
|
|
5
5
|
// https://tc39.github.io/ecma262/#sec-tolength
|
|
6
6
|
module.exports = function (argument) {
|
|
7
|
-
return argument > 0 ? min(toInteger(argument),
|
|
7
|
+
return argument > 0 ? min(toInteger(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
|
|
8
8
|
};
|
package/internals/to-offset.js
CHANGED
|
@@ -2,6 +2,6 @@ var toInteger = require('../internals/to-integer');
|
|
|
2
2
|
|
|
3
3
|
module.exports = function (it, BYTES) {
|
|
4
4
|
var offset = toInteger(it);
|
|
5
|
-
if (offset < 0 || offset % BYTES) throw RangeError('Wrong offset
|
|
5
|
+
if (offset < 0 || offset % BYTES) throw RangeError('Wrong offset');
|
|
6
6
|
return offset;
|
|
7
7
|
};
|