core-js 2.4.1 → 2.5.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/CHANGELOG.md +341 -253
- package/Gruntfile.js +2 -1
- package/LICENSE +1 -1
- package/README.md +2289 -0
- package/bower.json +8 -6
- package/build/Gruntfile.ls +4 -2
- package/build/build.ls +5 -5
- package/build/config.js +23 -8
- package/build/index.js +5 -5
- package/client/core.js +7932 -6921
- package/client/core.min.js +5 -5
- package/client/core.min.js.map +1 -1
- package/client/library.js +7418 -6447
- package/client/library.min.js +5 -5
- package/client/library.min.js.map +1 -1
- package/client/shim.js +7549 -6615
- package/client/shim.min.js +5 -5
- package/client/shim.min.js.map +1 -1
- package/core/_.js +1 -1
- package/core/dict.js +1 -1
- package/core/number.js +1 -1
- package/core/regexp.js +1 -1
- package/core/string.js +1 -1
- package/es5/index.js +1 -1
- package/es6/array.js +1 -1
- package/es6/date.js +1 -1
- package/es6/function.js +1 -1
- package/es6/index.js +1 -1
- package/es6/map.js +1 -1
- package/es6/math.js +1 -1
- package/es6/number.js +1 -1
- package/es6/object.js +1 -1
- package/es6/parse-float.js +1 -1
- package/es6/parse-int.js +1 -1
- package/es6/promise.js +1 -1
- package/es6/reflect.js +1 -1
- package/es6/regexp.js +1 -1
- package/es6/set.js +1 -1
- package/es6/string.js +1 -1
- package/es6/symbol.js +1 -1
- package/es6/typed.js +1 -1
- package/es6/weak-map.js +1 -1
- package/es6/weak-set.js +1 -1
- package/es7/array.js +3 -1
- package/es7/error.js +1 -1
- package/es7/global.js +2 -0
- package/es7/index.js +20 -0
- package/es7/map.js +3 -1
- package/es7/math.js +8 -0
- package/es7/object.js +1 -1
- package/es7/observable.js +1 -1
- package/es7/promise.js +3 -0
- package/es7/set.js +3 -1
- package/es7/symbol.js +1 -1
- package/es7/system.js +1 -1
- package/es7/weak-map.js +3 -0
- package/es7/weak-set.js +3 -0
- package/fn/_.js +1 -1
- package/fn/array/concat.js +2 -2
- package/fn/array/copy-within.js +1 -1
- package/fn/array/entries.js +1 -1
- package/fn/array/every.js +1 -1
- package/fn/array/fill.js +1 -1
- package/fn/array/filter.js +1 -1
- package/fn/array/find-index.js +1 -1
- package/fn/array/find.js +1 -1
- package/fn/array/flat-map.js +2 -0
- package/fn/array/flatten.js +2 -0
- package/fn/array/for-each.js +1 -1
- package/fn/array/from.js +1 -1
- package/fn/array/includes.js +1 -1
- package/fn/array/index-of.js +1 -1
- package/fn/array/index.js +3 -1
- package/fn/array/is-array.js +1 -1
- package/fn/array/iterator.js +1 -1
- package/fn/array/join.js +1 -1
- package/fn/array/keys.js +1 -1
- package/fn/array/last-index-of.js +1 -1
- package/fn/array/map.js +1 -1
- package/fn/array/of.js +1 -1
- package/fn/array/pop.js +2 -2
- package/fn/array/push.js +2 -2
- package/fn/array/reduce-right.js +1 -1
- package/fn/array/reduce.js +1 -1
- package/fn/array/reverse.js +2 -2
- package/fn/array/shift.js +2 -2
- package/fn/array/slice.js +1 -1
- package/fn/array/some.js +1 -1
- package/fn/array/sort.js +1 -1
- package/fn/array/splice.js +2 -2
- package/fn/array/unshift.js +2 -2
- package/fn/array/values.js +1 -1
- package/fn/array/virtual/copy-within.js +1 -1
- package/fn/array/virtual/entries.js +1 -1
- package/fn/array/virtual/every.js +1 -1
- package/fn/array/virtual/fill.js +1 -1
- package/fn/array/virtual/filter.js +1 -1
- package/fn/array/virtual/find-index.js +1 -1
- package/fn/array/virtual/find.js +1 -1
- package/fn/array/virtual/flat-map.js +2 -0
- package/fn/array/virtual/flatten.js +2 -0
- package/fn/array/virtual/for-each.js +1 -1
- package/fn/array/virtual/includes.js +1 -1
- package/fn/array/virtual/index-of.js +1 -1
- package/fn/array/virtual/index.js +1 -1
- package/fn/array/virtual/iterator.js +2 -2
- package/fn/array/virtual/join.js +1 -1
- package/fn/array/virtual/keys.js +1 -1
- package/fn/array/virtual/last-index-of.js +1 -1
- package/fn/array/virtual/map.js +1 -1
- package/fn/array/virtual/reduce-right.js +1 -1
- package/fn/array/virtual/reduce.js +1 -1
- package/fn/array/virtual/slice.js +1 -1
- package/fn/array/virtual/some.js +1 -1
- package/fn/array/virtual/sort.js +1 -1
- package/fn/array/virtual/values.js +2 -2
- package/fn/asap.js +1 -1
- package/fn/clear-immediate.js +1 -1
- package/fn/date/index.js +1 -1
- package/fn/date/now.js +1 -1
- package/fn/date/to-iso-string.js +1 -1
- package/fn/date/to-json.js +1 -1
- package/fn/date/to-primitive.js +2 -2
- package/fn/date/to-string.js +3 -3
- package/fn/dict.js +1 -1
- package/fn/dom-collections/index.js +4 -4
- package/fn/dom-collections/iterator.js +1 -1
- package/fn/error/index.js +1 -1
- package/fn/error/is-error.js +1 -1
- package/fn/function/bind.js +1 -1
- package/fn/function/has-instance.js +1 -1
- package/fn/function/name.js +1 -1
- package/fn/function/part.js +1 -1
- package/fn/function/virtual/bind.js +1 -1
- package/fn/function/virtual/index.js +1 -1
- package/fn/function/virtual/part.js +1 -1
- package/fn/get-iterator-method.js +1 -1
- package/fn/get-iterator.js +1 -1
- package/fn/global.js +2 -0
- package/fn/is-iterable.js +1 -1
- package/fn/json/index.js +1 -1
- package/fn/json/stringify.js +4 -4
- package/fn/map/from.js +8 -0
- package/fn/map/index.js +8 -0
- package/fn/map/of.js +8 -0
- package/fn/map.js +3 -1
- package/fn/math/acosh.js +1 -1
- package/fn/math/asinh.js +1 -1
- package/fn/math/atanh.js +1 -1
- package/fn/math/cbrt.js +1 -1
- package/fn/math/clamp.js +2 -0
- package/fn/math/clz32.js +1 -1
- package/fn/math/cosh.js +1 -1
- package/fn/math/deg-per-rad.js +2 -0
- package/fn/math/degrees.js +2 -0
- package/fn/math/expm1.js +1 -1
- package/fn/math/fround.js +1 -1
- package/fn/math/fscale.js +2 -0
- package/fn/math/hypot.js +1 -1
- package/fn/math/iaddh.js +1 -1
- package/fn/math/imul.js +1 -1
- package/fn/math/imulh.js +1 -1
- package/fn/math/index.js +9 -1
- package/fn/math/isubh.js +1 -1
- package/fn/math/log10.js +1 -1
- package/fn/math/log1p.js +1 -1
- package/fn/math/log2.js +1 -1
- package/fn/math/rad-per-deg.js +2 -0
- package/fn/math/radians.js +2 -0
- package/fn/math/scale.js +2 -0
- package/fn/math/sign.js +1 -1
- package/fn/math/signbit.js +3 -0
- package/fn/math/sinh.js +1 -1
- package/fn/math/tanh.js +1 -1
- package/fn/math/trunc.js +1 -1
- package/fn/math/umulh.js +1 -1
- package/fn/number/constructor.js +1 -1
- package/fn/number/epsilon.js +1 -1
- package/fn/number/index.js +1 -1
- package/fn/number/is-finite.js +1 -1
- package/fn/number/is-integer.js +1 -1
- package/fn/number/is-nan.js +1 -1
- package/fn/number/is-safe-integer.js +1 -1
- package/fn/number/iterator.js +2 -2
- package/fn/number/max-safe-integer.js +1 -1
- package/fn/number/min-safe-integer.js +1 -1
- package/fn/number/parse-float.js +1 -1
- package/fn/number/parse-int.js +1 -1
- package/fn/number/to-fixed.js +1 -1
- package/fn/number/to-precision.js +1 -1
- package/fn/number/virtual/index.js +1 -1
- package/fn/number/virtual/iterator.js +1 -1
- package/fn/number/virtual/to-fixed.js +1 -1
- package/fn/number/virtual/to-precision.js +1 -1
- package/fn/object/assign.js +1 -1
- package/fn/object/classof.js +1 -1
- package/fn/object/create.js +2 -2
- package/fn/object/define-getter.js +1 -1
- package/fn/object/define-properties.js +2 -2
- package/fn/object/define-property.js +2 -2
- package/fn/object/define-setter.js +1 -1
- package/fn/object/define.js +1 -1
- package/fn/object/entries.js +1 -1
- package/fn/object/freeze.js +1 -1
- package/fn/object/get-own-property-descriptor.js +2 -2
- package/fn/object/get-own-property-descriptors.js +1 -1
- package/fn/object/get-own-property-names.js +2 -2
- package/fn/object/get-own-property-symbols.js +1 -1
- package/fn/object/get-prototype-of.js +1 -1
- package/fn/object/index.js +1 -1
- package/fn/object/is-extensible.js +1 -1
- package/fn/object/is-frozen.js +1 -1
- package/fn/object/is-object.js +1 -1
- package/fn/object/is-sealed.js +1 -1
- package/fn/object/is.js +1 -1
- package/fn/object/keys.js +1 -1
- package/fn/object/lookup-getter.js +1 -1
- package/fn/object/lookup-setter.js +1 -1
- package/fn/object/make.js +1 -1
- package/fn/object/prevent-extensions.js +1 -1
- package/fn/object/seal.js +1 -1
- package/fn/object/set-prototype-of.js +1 -1
- package/fn/object/values.js +1 -1
- package/fn/observable.js +1 -1
- package/fn/parse-float.js +1 -1
- package/fn/parse-int.js +1 -1
- package/fn/promise/finally.js +4 -0
- package/fn/promise/index.js +7 -0
- package/fn/promise/try.js +8 -0
- package/fn/promise.js +3 -1
- package/fn/reflect/apply.js +1 -1
- package/fn/reflect/construct.js +1 -1
- package/fn/reflect/define-metadata.js +1 -1
- package/fn/reflect/define-property.js +1 -1
- package/fn/reflect/delete-metadata.js +1 -1
- package/fn/reflect/delete-property.js +1 -1
- package/fn/reflect/enumerate.js +1 -1
- package/fn/reflect/get-metadata-keys.js +1 -1
- package/fn/reflect/get-metadata.js +1 -1
- package/fn/reflect/get-own-metadata-keys.js +1 -1
- package/fn/reflect/get-own-metadata.js +1 -1
- package/fn/reflect/get-own-property-descriptor.js +1 -1
- package/fn/reflect/get-prototype-of.js +1 -1
- package/fn/reflect/get.js +1 -1
- package/fn/reflect/has-metadata.js +1 -1
- package/fn/reflect/has-own-metadata.js +1 -1
- package/fn/reflect/has.js +1 -1
- package/fn/reflect/index.js +1 -1
- package/fn/reflect/is-extensible.js +1 -1
- package/fn/reflect/metadata.js +1 -1
- package/fn/reflect/own-keys.js +1 -1
- package/fn/reflect/prevent-extensions.js +1 -1
- package/fn/reflect/set-prototype-of.js +1 -1
- package/fn/reflect/set.js +1 -1
- package/fn/regexp/constructor.js +1 -1
- package/fn/regexp/escape.js +1 -1
- package/fn/regexp/flags.js +2 -2
- package/fn/regexp/index.js +1 -1
- package/fn/regexp/match.js +2 -2
- package/fn/regexp/replace.js +2 -2
- package/fn/regexp/search.js +2 -2
- package/fn/regexp/split.js +2 -2
- package/fn/regexp/to-string.js +2 -2
- package/fn/set/from.js +8 -0
- package/fn/set/index.js +8 -0
- package/fn/set/of.js +8 -0
- package/fn/set-immediate.js +1 -1
- package/fn/set-interval.js +1 -1
- package/fn/set-timeout.js +1 -1
- package/fn/set.js +3 -1
- package/fn/string/anchor.js +1 -1
- package/fn/string/at.js +1 -1
- package/fn/string/big.js +1 -1
- package/fn/string/blink.js +1 -1
- package/fn/string/bold.js +1 -1
- package/fn/string/code-point-at.js +1 -1
- package/fn/string/ends-with.js +1 -1
- package/fn/string/escape-html.js +1 -1
- package/fn/string/fixed.js +1 -1
- package/fn/string/fontcolor.js +1 -1
- package/fn/string/fontsize.js +1 -1
- package/fn/string/from-code-point.js +1 -1
- package/fn/string/includes.js +1 -1
- package/fn/string/italics.js +1 -1
- package/fn/string/iterator.js +2 -2
- package/fn/string/link.js +1 -1
- package/fn/string/match-all.js +1 -1
- package/fn/string/raw.js +1 -1
- package/fn/string/repeat.js +1 -1
- package/fn/string/small.js +1 -1
- package/fn/string/starts-with.js +1 -1
- package/fn/string/strike.js +1 -1
- package/fn/string/sub.js +1 -1
- package/fn/string/sup.js +1 -1
- package/fn/string/trim-end.js +1 -1
- package/fn/string/trim-left.js +1 -1
- package/fn/string/trim-right.js +1 -1
- package/fn/string/trim-start.js +1 -1
- package/fn/string/trim.js +1 -1
- package/fn/string/unescape-html.js +1 -1
- package/fn/string/virtual/anchor.js +1 -1
- package/fn/string/virtual/at.js +1 -1
- package/fn/string/virtual/big.js +1 -1
- package/fn/string/virtual/blink.js +1 -1
- package/fn/string/virtual/bold.js +1 -1
- package/fn/string/virtual/code-point-at.js +1 -1
- package/fn/string/virtual/ends-with.js +1 -1
- package/fn/string/virtual/escape-html.js +1 -1
- package/fn/string/virtual/fixed.js +1 -1
- package/fn/string/virtual/fontcolor.js +1 -1
- package/fn/string/virtual/fontsize.js +1 -1
- package/fn/string/virtual/includes.js +1 -1
- package/fn/string/virtual/italics.js +1 -1
- package/fn/string/virtual/iterator.js +2 -2
- package/fn/string/virtual/link.js +1 -1
- package/fn/string/virtual/match-all.js +1 -1
- package/fn/string/virtual/pad-end.js +1 -1
- package/fn/string/virtual/pad-start.js +1 -1
- package/fn/string/virtual/repeat.js +1 -1
- package/fn/string/virtual/small.js +1 -1
- package/fn/string/virtual/starts-with.js +1 -1
- package/fn/string/virtual/strike.js +1 -1
- package/fn/string/virtual/sub.js +1 -1
- package/fn/string/virtual/sup.js +1 -1
- package/fn/string/virtual/trim-end.js +1 -1
- package/fn/string/virtual/trim-left.js +1 -1
- package/fn/string/virtual/trim-right.js +1 -1
- package/fn/string/virtual/trim-start.js +1 -1
- package/fn/string/virtual/trim.js +1 -1
- package/fn/string/virtual/unescape-html.js +1 -1
- package/fn/symbol/async-iterator.js +1 -1
- package/fn/symbol/for.js +1 -1
- package/fn/symbol/has-instance.js +1 -1
- package/fn/symbol/index.js +1 -1
- package/fn/symbol/is-concat-spreadable.js +1 -1
- package/fn/symbol/iterator.js +1 -1
- package/fn/symbol/key-for.js +1 -1
- package/fn/symbol/match.js +1 -1
- package/fn/symbol/observable.js +1 -1
- package/fn/symbol/replace.js +1 -1
- package/fn/symbol/search.js +1 -1
- package/fn/symbol/species.js +1 -1
- package/fn/symbol/split.js +1 -1
- package/fn/symbol/to-primitive.js +1 -1
- package/fn/symbol/to-string-tag.js +1 -1
- package/fn/symbol/unscopables.js +1 -1
- package/fn/system/global.js +1 -1
- package/fn/system/index.js +1 -1
- package/fn/typed/array-buffer.js +1 -1
- package/fn/typed/data-view.js +1 -1
- package/fn/typed/float32-array.js +1 -1
- package/fn/typed/float64-array.js +1 -1
- package/fn/typed/index.js +1 -1
- package/fn/typed/int16-array.js +1 -1
- package/fn/typed/int32-array.js +1 -1
- package/fn/typed/int8-array.js +1 -1
- package/fn/typed/uint16-array.js +1 -1
- package/fn/typed/uint32-array.js +1 -1
- package/fn/typed/uint8-array.js +1 -1
- package/fn/typed/uint8-clamped-array.js +1 -1
- package/fn/weak-map/from.js +8 -0
- package/fn/weak-map/index.js +6 -0
- package/fn/weak-map/of.js +8 -0
- package/fn/weak-map.js +3 -1
- package/fn/weak-set/from.js +8 -0
- package/fn/weak-set/index.js +6 -0
- package/fn/weak-set/of.js +8 -0
- package/fn/weak-set.js +3 -1
- package/index.js +1 -1
- package/library/core/_.js +1 -1
- package/library/core/dict.js +1 -1
- package/library/core/number.js +1 -1
- package/library/core/regexp.js +1 -1
- package/library/core/string.js +1 -1
- package/library/es5/index.js +1 -1
- package/library/es6/array.js +1 -1
- package/library/es6/date.js +1 -1
- package/library/es6/function.js +1 -1
- package/library/es6/index.js +1 -1
- package/library/es6/map.js +1 -1
- package/library/es6/math.js +1 -1
- package/library/es6/number.js +1 -1
- package/library/es6/object.js +1 -1
- package/library/es6/parse-float.js +1 -1
- package/library/es6/parse-int.js +1 -1
- package/library/es6/promise.js +1 -1
- package/library/es6/reflect.js +1 -1
- package/library/es6/regexp.js +1 -1
- package/library/es6/set.js +1 -1
- package/library/es6/string.js +1 -1
- package/library/es6/symbol.js +1 -1
- package/library/es6/typed.js +1 -1
- package/library/es6/weak-map.js +1 -1
- package/library/es6/weak-set.js +1 -1
- package/library/es7/array.js +3 -1
- package/library/es7/error.js +1 -1
- package/library/es7/global.js +2 -0
- package/library/es7/index.js +20 -0
- package/library/es7/map.js +3 -1
- package/library/es7/math.js +8 -0
- package/library/es7/object.js +1 -1
- package/library/es7/observable.js +1 -1
- package/library/es7/promise.js +3 -0
- package/library/es7/set.js +3 -1
- package/library/es7/symbol.js +1 -1
- package/library/es7/system.js +1 -1
- package/library/es7/weak-map.js +3 -0
- package/library/es7/weak-set.js +3 -0
- package/library/fn/_.js +1 -1
- package/library/fn/array/concat.js +2 -2
- package/library/fn/array/copy-within.js +1 -1
- package/library/fn/array/entries.js +1 -1
- package/library/fn/array/every.js +1 -1
- package/library/fn/array/fill.js +1 -1
- package/library/fn/array/filter.js +1 -1
- package/library/fn/array/find-index.js +1 -1
- package/library/fn/array/find.js +1 -1
- package/library/fn/array/flat-map.js +2 -0
- package/library/fn/array/flatten.js +2 -0
- package/library/fn/array/for-each.js +1 -1
- package/library/fn/array/from.js +1 -1
- package/library/fn/array/includes.js +1 -1
- package/library/fn/array/index-of.js +1 -1
- package/library/fn/array/index.js +3 -1
- package/library/fn/array/is-array.js +1 -1
- package/library/fn/array/iterator.js +1 -1
- package/library/fn/array/join.js +1 -1
- package/library/fn/array/keys.js +1 -1
- package/library/fn/array/last-index-of.js +1 -1
- package/library/fn/array/map.js +1 -1
- package/library/fn/array/of.js +1 -1
- package/library/fn/array/pop.js +2 -2
- package/library/fn/array/push.js +2 -2
- package/library/fn/array/reduce-right.js +1 -1
- package/library/fn/array/reduce.js +1 -1
- package/library/fn/array/reverse.js +2 -2
- package/library/fn/array/shift.js +2 -2
- package/library/fn/array/slice.js +1 -1
- package/library/fn/array/some.js +1 -1
- package/library/fn/array/sort.js +1 -1
- package/library/fn/array/splice.js +2 -2
- package/library/fn/array/unshift.js +2 -2
- package/library/fn/array/values.js +1 -1
- package/library/fn/array/virtual/copy-within.js +1 -1
- package/library/fn/array/virtual/entries.js +1 -1
- package/library/fn/array/virtual/every.js +1 -1
- package/library/fn/array/virtual/fill.js +1 -1
- package/library/fn/array/virtual/filter.js +1 -1
- package/library/fn/array/virtual/find-index.js +1 -1
- package/library/fn/array/virtual/find.js +1 -1
- package/library/fn/array/virtual/flat-map.js +2 -0
- package/library/fn/array/virtual/flatten.js +2 -0
- package/library/fn/array/virtual/for-each.js +1 -1
- package/library/fn/array/virtual/includes.js +1 -1
- package/library/fn/array/virtual/index-of.js +1 -1
- package/library/fn/array/virtual/index.js +1 -1
- package/library/fn/array/virtual/iterator.js +2 -2
- package/library/fn/array/virtual/join.js +1 -1
- package/library/fn/array/virtual/keys.js +1 -1
- package/library/fn/array/virtual/last-index-of.js +1 -1
- package/library/fn/array/virtual/map.js +1 -1
- package/library/fn/array/virtual/reduce-right.js +1 -1
- package/library/fn/array/virtual/reduce.js +1 -1
- package/library/fn/array/virtual/slice.js +1 -1
- package/library/fn/array/virtual/some.js +1 -1
- package/library/fn/array/virtual/sort.js +1 -1
- package/library/fn/array/virtual/values.js +2 -2
- package/library/fn/asap.js +1 -1
- package/library/fn/clear-immediate.js +1 -1
- package/library/fn/date/index.js +1 -1
- package/library/fn/date/now.js +1 -1
- package/library/fn/date/to-iso-string.js +1 -1
- package/library/fn/date/to-json.js +1 -1
- package/library/fn/date/to-primitive.js +2 -2
- package/library/fn/date/to-string.js +3 -3
- package/library/fn/dict.js +1 -1
- package/library/fn/dom-collections/index.js +4 -4
- package/library/fn/dom-collections/iterator.js +1 -1
- package/library/fn/error/index.js +1 -1
- package/library/fn/error/is-error.js +1 -1
- package/library/fn/function/bind.js +1 -1
- package/library/fn/function/has-instance.js +1 -1
- package/library/fn/function/name.js +1 -1
- package/library/fn/function/part.js +1 -1
- package/library/fn/function/virtual/bind.js +1 -1
- package/library/fn/function/virtual/index.js +1 -1
- package/library/fn/function/virtual/part.js +1 -1
- package/library/fn/get-iterator-method.js +1 -1
- package/library/fn/get-iterator.js +1 -1
- package/library/fn/global.js +2 -0
- package/library/fn/is-iterable.js +1 -1
- package/library/fn/json/index.js +1 -1
- package/library/fn/json/stringify.js +4 -4
- package/library/fn/map/from.js +8 -0
- package/library/fn/map/index.js +8 -0
- package/library/fn/map/of.js +8 -0
- package/library/fn/map.js +3 -1
- package/library/fn/math/acosh.js +1 -1
- package/library/fn/math/asinh.js +1 -1
- package/library/fn/math/atanh.js +1 -1
- package/library/fn/math/cbrt.js +1 -1
- package/library/fn/math/clamp.js +2 -0
- package/library/fn/math/clz32.js +1 -1
- package/library/fn/math/cosh.js +1 -1
- package/library/fn/math/deg-per-rad.js +2 -0
- package/library/fn/math/degrees.js +2 -0
- package/library/fn/math/expm1.js +1 -1
- package/library/fn/math/fround.js +1 -1
- package/library/fn/math/fscale.js +2 -0
- package/library/fn/math/hypot.js +1 -1
- package/library/fn/math/iaddh.js +1 -1
- package/library/fn/math/imul.js +1 -1
- package/library/fn/math/imulh.js +1 -1
- package/library/fn/math/index.js +9 -1
- package/library/fn/math/isubh.js +1 -1
- package/library/fn/math/log10.js +1 -1
- package/library/fn/math/log1p.js +1 -1
- package/library/fn/math/log2.js +1 -1
- package/library/fn/math/rad-per-deg.js +2 -0
- package/library/fn/math/radians.js +2 -0
- package/library/fn/math/scale.js +2 -0
- package/library/fn/math/sign.js +1 -1
- package/library/fn/math/signbit.js +3 -0
- package/library/fn/math/sinh.js +1 -1
- package/library/fn/math/tanh.js +1 -1
- package/library/fn/math/trunc.js +1 -1
- package/library/fn/math/umulh.js +1 -1
- package/library/fn/number/constructor.js +1 -1
- package/library/fn/number/epsilon.js +1 -1
- package/library/fn/number/index.js +1 -1
- package/library/fn/number/is-finite.js +1 -1
- package/library/fn/number/is-integer.js +1 -1
- package/library/fn/number/is-nan.js +1 -1
- package/library/fn/number/is-safe-integer.js +1 -1
- package/library/fn/number/iterator.js +2 -2
- package/library/fn/number/max-safe-integer.js +1 -1
- package/library/fn/number/min-safe-integer.js +1 -1
- package/library/fn/number/parse-float.js +1 -1
- package/library/fn/number/parse-int.js +1 -1
- package/library/fn/number/to-fixed.js +1 -1
- package/library/fn/number/to-precision.js +1 -1
- package/library/fn/number/virtual/index.js +1 -1
- package/library/fn/number/virtual/iterator.js +1 -1
- package/library/fn/number/virtual/to-fixed.js +1 -1
- package/library/fn/number/virtual/to-precision.js +1 -1
- package/library/fn/object/assign.js +1 -1
- package/library/fn/object/classof.js +1 -1
- package/library/fn/object/create.js +2 -2
- package/library/fn/object/define-getter.js +1 -1
- package/library/fn/object/define-properties.js +2 -2
- package/library/fn/object/define-property.js +2 -2
- package/library/fn/object/define-setter.js +1 -1
- package/library/fn/object/define.js +1 -1
- package/library/fn/object/entries.js +1 -1
- package/library/fn/object/freeze.js +1 -1
- package/library/fn/object/get-own-property-descriptor.js +2 -2
- package/library/fn/object/get-own-property-descriptors.js +1 -1
- package/library/fn/object/get-own-property-names.js +2 -2
- package/library/fn/object/get-own-property-symbols.js +1 -1
- package/library/fn/object/get-prototype-of.js +1 -1
- package/library/fn/object/index.js +1 -1
- package/library/fn/object/is-extensible.js +1 -1
- package/library/fn/object/is-frozen.js +1 -1
- package/library/fn/object/is-object.js +1 -1
- package/library/fn/object/is-sealed.js +1 -1
- package/library/fn/object/is.js +1 -1
- package/library/fn/object/keys.js +1 -1
- package/library/fn/object/lookup-getter.js +1 -1
- package/library/fn/object/lookup-setter.js +1 -1
- package/library/fn/object/make.js +1 -1
- package/library/fn/object/prevent-extensions.js +1 -1
- package/library/fn/object/seal.js +1 -1
- package/library/fn/object/set-prototype-of.js +1 -1
- package/library/fn/object/values.js +1 -1
- package/library/fn/observable.js +1 -1
- package/library/fn/parse-float.js +1 -1
- package/library/fn/parse-int.js +1 -1
- package/library/fn/promise/finally.js +4 -0
- package/library/fn/promise/index.js +7 -0
- package/library/fn/promise/try.js +8 -0
- package/library/fn/promise.js +3 -1
- package/library/fn/reflect/apply.js +1 -1
- package/library/fn/reflect/construct.js +1 -1
- package/library/fn/reflect/define-metadata.js +1 -1
- package/library/fn/reflect/define-property.js +1 -1
- package/library/fn/reflect/delete-metadata.js +1 -1
- package/library/fn/reflect/delete-property.js +1 -1
- package/library/fn/reflect/enumerate.js +1 -1
- package/library/fn/reflect/get-metadata-keys.js +1 -1
- package/library/fn/reflect/get-metadata.js +1 -1
- package/library/fn/reflect/get-own-metadata-keys.js +1 -1
- package/library/fn/reflect/get-own-metadata.js +1 -1
- package/library/fn/reflect/get-own-property-descriptor.js +1 -1
- package/library/fn/reflect/get-prototype-of.js +1 -1
- package/library/fn/reflect/get.js +1 -1
- package/library/fn/reflect/has-metadata.js +1 -1
- package/library/fn/reflect/has-own-metadata.js +1 -1
- package/library/fn/reflect/has.js +1 -1
- package/library/fn/reflect/index.js +1 -1
- package/library/fn/reflect/is-extensible.js +1 -1
- package/library/fn/reflect/metadata.js +1 -1
- package/library/fn/reflect/own-keys.js +1 -1
- package/library/fn/reflect/prevent-extensions.js +1 -1
- package/library/fn/reflect/set-prototype-of.js +1 -1
- package/library/fn/reflect/set.js +1 -1
- package/library/fn/regexp/constructor.js +1 -1
- package/library/fn/regexp/escape.js +1 -1
- package/library/fn/regexp/flags.js +2 -2
- package/library/fn/regexp/index.js +1 -1
- package/library/fn/regexp/match.js +2 -2
- package/library/fn/regexp/replace.js +2 -2
- package/library/fn/regexp/search.js +2 -2
- package/library/fn/regexp/split.js +2 -2
- package/library/fn/regexp/to-string.js +2 -2
- package/library/fn/set/from.js +8 -0
- package/library/fn/set/index.js +8 -0
- package/library/fn/set/of.js +8 -0
- package/library/fn/set-immediate.js +1 -1
- package/library/fn/set-interval.js +1 -1
- package/library/fn/set-timeout.js +1 -1
- package/library/fn/set.js +3 -1
- package/library/fn/string/anchor.js +1 -1
- package/library/fn/string/at.js +1 -1
- package/library/fn/string/big.js +1 -1
- package/library/fn/string/blink.js +1 -1
- package/library/fn/string/bold.js +1 -1
- package/library/fn/string/code-point-at.js +1 -1
- package/library/fn/string/ends-with.js +1 -1
- package/library/fn/string/escape-html.js +1 -1
- package/library/fn/string/fixed.js +1 -1
- package/library/fn/string/fontcolor.js +1 -1
- package/library/fn/string/fontsize.js +1 -1
- package/library/fn/string/from-code-point.js +1 -1
- package/library/fn/string/includes.js +1 -1
- package/library/fn/string/italics.js +1 -1
- package/library/fn/string/iterator.js +2 -2
- package/library/fn/string/link.js +1 -1
- package/library/fn/string/match-all.js +1 -1
- package/library/fn/string/raw.js +1 -1
- package/library/fn/string/repeat.js +1 -1
- package/library/fn/string/small.js +1 -1
- package/library/fn/string/starts-with.js +1 -1
- package/library/fn/string/strike.js +1 -1
- package/library/fn/string/sub.js +1 -1
- package/library/fn/string/sup.js +1 -1
- package/library/fn/string/trim-end.js +1 -1
- package/library/fn/string/trim-left.js +1 -1
- package/library/fn/string/trim-right.js +1 -1
- package/library/fn/string/trim-start.js +1 -1
- package/library/fn/string/trim.js +1 -1
- package/library/fn/string/unescape-html.js +1 -1
- package/library/fn/string/virtual/anchor.js +1 -1
- package/library/fn/string/virtual/at.js +1 -1
- package/library/fn/string/virtual/big.js +1 -1
- package/library/fn/string/virtual/blink.js +1 -1
- package/library/fn/string/virtual/bold.js +1 -1
- package/library/fn/string/virtual/code-point-at.js +1 -1
- package/library/fn/string/virtual/ends-with.js +1 -1
- package/library/fn/string/virtual/escape-html.js +1 -1
- package/library/fn/string/virtual/fixed.js +1 -1
- package/library/fn/string/virtual/fontcolor.js +1 -1
- package/library/fn/string/virtual/fontsize.js +1 -1
- package/library/fn/string/virtual/includes.js +1 -1
- package/library/fn/string/virtual/italics.js +1 -1
- package/library/fn/string/virtual/iterator.js +2 -2
- package/library/fn/string/virtual/link.js +1 -1
- package/library/fn/string/virtual/match-all.js +1 -1
- package/library/fn/string/virtual/pad-end.js +1 -1
- package/library/fn/string/virtual/pad-start.js +1 -1
- package/library/fn/string/virtual/repeat.js +1 -1
- package/library/fn/string/virtual/small.js +1 -1
- package/library/fn/string/virtual/starts-with.js +1 -1
- package/library/fn/string/virtual/strike.js +1 -1
- package/library/fn/string/virtual/sub.js +1 -1
- package/library/fn/string/virtual/sup.js +1 -1
- package/library/fn/string/virtual/trim-end.js +1 -1
- package/library/fn/string/virtual/trim-left.js +1 -1
- package/library/fn/string/virtual/trim-right.js +1 -1
- package/library/fn/string/virtual/trim-start.js +1 -1
- package/library/fn/string/virtual/trim.js +1 -1
- package/library/fn/string/virtual/unescape-html.js +1 -1
- package/library/fn/symbol/async-iterator.js +1 -1
- package/library/fn/symbol/for.js +1 -1
- package/library/fn/symbol/has-instance.js +1 -1
- package/library/fn/symbol/index.js +1 -1
- package/library/fn/symbol/is-concat-spreadable.js +1 -1
- package/library/fn/symbol/iterator.js +1 -1
- package/library/fn/symbol/key-for.js +1 -1
- package/library/fn/symbol/match.js +1 -1
- package/library/fn/symbol/observable.js +1 -1
- package/library/fn/symbol/replace.js +1 -1
- package/library/fn/symbol/search.js +1 -1
- package/library/fn/symbol/species.js +1 -1
- package/library/fn/symbol/split.js +1 -1
- package/library/fn/symbol/to-primitive.js +1 -1
- package/library/fn/symbol/to-string-tag.js +1 -1
- package/library/fn/symbol/unscopables.js +1 -1
- package/library/fn/system/global.js +1 -1
- package/library/fn/system/index.js +1 -1
- package/library/fn/typed/array-buffer.js +1 -1
- package/library/fn/typed/data-view.js +1 -1
- package/library/fn/typed/float32-array.js +1 -1
- package/library/fn/typed/float64-array.js +1 -1
- package/library/fn/typed/index.js +1 -1
- package/library/fn/typed/int16-array.js +1 -1
- package/library/fn/typed/int32-array.js +1 -1
- package/library/fn/typed/int8-array.js +1 -1
- package/library/fn/typed/uint16-array.js +1 -1
- package/library/fn/typed/uint32-array.js +1 -1
- package/library/fn/typed/uint8-array.js +1 -1
- package/library/fn/typed/uint8-clamped-array.js +1 -1
- package/library/fn/weak-map/from.js +8 -0
- package/library/fn/weak-map/index.js +6 -0
- package/library/fn/weak-map/of.js +8 -0
- package/library/fn/weak-map.js +3 -1
- package/library/fn/weak-set/from.js +8 -0
- package/library/fn/weak-set/index.js +6 -0
- package/library/fn/weak-set/of.js +8 -0
- package/library/fn/weak-set.js +3 -1
- package/library/index.js +1 -1
- package/library/modules/_a-function.js +3 -3
- package/library/modules/_a-number-value.js +3 -3
- package/library/modules/_add-to-unscopables.js +1 -1
- package/library/modules/_an-instance.js +3 -3
- package/library/modules/_an-object.js +3 -3
- package/library/modules/_array-copy-within.js +18 -18
- package/library/modules/_array-fill.js +12 -12
- package/library/modules/_array-from-iterable.js +1 -1
- package/library/modules/_array-includes.js +17 -15
- package/library/modules/_array-methods.js +31 -31
- package/library/modules/_array-reduce.js +15 -15
- package/library/modules/_array-species-constructor.js +9 -9
- package/library/modules/_array-species-create.js +2 -2
- package/library/modules/_bind.js +15 -14
- package/library/modules/_classof.js +8 -8
- package/library/modules/_cof.js +2 -2
- package/library/modules/_collection-strong.js +69 -67
- package/library/modules/_collection-to-json.js +6 -6
- package/library/modules/_collection-weak.js +38 -36
- package/library/modules/_collection.js +31 -31
- package/library/modules/_core.js +2 -2
- package/library/modules/_create-property.js +5 -5
- package/library/modules/_ctx.js +8 -8
- package/library/modules/_date-to-iso-string.js +26 -0
- package/library/modules/_date-to-primitive.js +6 -6
- package/library/modules/_defined.js +3 -3
- package/library/modules/_descriptors.js +3 -3
- package/library/modules/_dom-create.js +6 -6
- package/library/modules/_entry-virtual.js +2 -2
- package/library/modules/_enum-bug-keys.js +1 -1
- package/library/modules/_enum-keys.js +13 -13
- package/library/modules/_export.js +28 -28
- package/library/modules/_fails-is-regexp.js +4 -4
- package/library/modules/_fails.js +3 -3
- package/library/modules/_fix-re-wks.js +16 -16
- package/library/modules/_flags.js +9 -9
- package/library/modules/_flatten-into-array.js +39 -0
- package/library/modules/_for-of.js +20 -20
- package/library/modules/_global.js +4 -2
- package/library/modules/_has.js +2 -2
- package/library/modules/_hide.js +5 -5
- package/library/modules/_html.js +2 -1
- package/library/modules/_ie8-dom-define.js +3 -3
- package/library/modules/_inherit-if-required.js +7 -6
- package/library/modules/_invoke.js +4 -4
- package/library/modules/_iobject.js +3 -2
- package/library/modules/_is-array-iter.js +5 -5
- package/library/modules/_is-array.js +2 -2
- package/library/modules/_is-integer.js +4 -4
- package/library/modules/_is-object.js +2 -2
- package/library/modules/_is-regexp.js +5 -5
- package/library/modules/_iter-call.js +4 -4
- package/library/modules/_iter-create.js +8 -8
- package/library/modules/_iter-define.js +45 -45
- package/library/modules/_iter-detect.js +14 -13
- package/library/modules/_iter-step.js +3 -3
- package/library/modules/_iterators.js +1 -1
- package/library/modules/_keyof.js +10 -10
- package/library/modules/_library.js +1 -1
- package/library/modules/_math-expm1.js +2 -2
- package/library/modules/_math-fround.js +23 -0
- package/library/modules/_math-log1p.js +2 -2
- package/library/modules/_math-scale.js +18 -0
- package/library/modules/_math-sign.js +3 -2
- package/library/modules/_meta.js +26 -26
- package/library/modules/_metadata.js +21 -21
- package/library/modules/_microtask.js +30 -30
- package/library/modules/_new-promise-capability.js +18 -0
- package/library/modules/_object-assign.js +27 -26
- package/library/modules/_object-create.js +16 -16
- package/library/modules/_object-define.js +11 -10
- package/library/modules/_object-dp.js +10 -10
- package/library/modules/_object-dps.js +10 -10
- package/library/modules/_object-forced-pam.js +5 -3
- package/library/modules/_object-gopd.js +12 -12
- package/library/modules/_object-gopn-ext.js +6 -6
- package/library/modules/_object-gopn.js +4 -4
- package/library/modules/_object-gops.js +1 -1
- package/library/modules/_object-gpo.js +8 -8
- package/library/modules/_object-keys-internal.js +12 -12
- package/library/modules/_object-keys.js +4 -4
- package/library/modules/_object-pie.js +1 -1
- package/library/modules/_object-sap.js +8 -8
- package/library/modules/_object-to-array.js +13 -13
- package/library/modules/_own-keys.js +8 -8
- package/library/modules/_parse-float.js +6 -6
- package/library/modules/_parse-int.js +6 -6
- package/library/modules/_partial.js +21 -19
- package/library/modules/_path.js +1 -1
- package/library/modules/_perform.js +7 -0
- package/library/modules/_promise-resolve.js +12 -0
- package/library/modules/_property-desc.js +5 -5
- package/library/modules/_redefine-all.js +4 -4
- package/library/modules/_redefine.js +1 -1
- package/library/modules/_replacer.js +4 -4
- package/library/modules/_same-value.js +3 -2
- package/library/modules/_set-collection-from.js +28 -0
- package/library/modules/_set-collection-of.js +12 -0
- package/library/modules/_set-proto.js +9 -9
- package/library/modules/_set-species.js +9 -9
- package/library/modules/_set-to-string-tag.js +6 -6
- package/library/modules/_shared-key.js +4 -4
- package/library/modules/_shared.js +5 -5
- package/library/modules/_species-constructor.js +7 -6
- package/library/modules/_strict-method.js +6 -4
- package/library/modules/_string-at.js +10 -10
- package/library/modules/_string-context.js +5 -5
- package/library/modules/_string-html.js +11 -11
- package/library/modules/_string-pad.js +12 -12
- package/library/modules/_string-repeat.js +9 -9
- package/library/modules/_string-trim.js +16 -16
- package/library/modules/_string-ws.js +1 -1
- package/library/modules/_task.js +44 -35
- package/library/modules/_to-absolute-index.js +7 -0
- package/library/modules/_to-index.js +10 -7
- package/library/modules/_to-integer.js +4 -4
- package/library/modules/_to-iobject.js +4 -4
- package/library/modules/_to-length.js +4 -4
- package/library/modules/_to-object.js +2 -2
- package/library/modules/_to-primitive.js +6 -6
- package/library/modules/_typed-array.js +242 -241
- package/library/modules/_typed-buffer.js +155 -152
- package/library/modules/_typed.js +16 -14
- package/library/modules/_uid.js +4 -4
- package/library/modules/_user-agent.js +4 -0
- package/library/modules/_validate-collection.js +5 -0
- package/library/modules/_wks-define.js +8 -8
- package/library/modules/_wks-ext.js +1 -1
- package/library/modules/_wks.js +6 -6
- package/library/modules/core.delay.js +7 -7
- package/library/modules/core.dict.js +85 -83
- package/library/modules/core.function.part.js +3 -3
- package/library/modules/core.get-iterator-method.js +6 -6
- package/library/modules/core.get-iterator.js +5 -5
- package/library/modules/core.is-iterable.js +6 -5
- package/library/modules/core.number.iterator.js +6 -6
- package/library/modules/core.object.classof.js +1 -1
- package/library/modules/core.object.define.js +3 -3
- package/library/modules/core.object.is-object.js +1 -1
- package/library/modules/core.object.make.js +5 -5
- package/library/modules/core.regexp.escape.js +3 -3
- package/library/modules/core.string.escape-html.js +1 -1
- package/library/modules/core.string.unescape-html.js +4 -4
- package/library/modules/es5.js +1 -1
- package/library/modules/es6.array.copy-within.js +2 -2
- package/library/modules/es6.array.every.js +4 -4
- package/library/modules/es6.array.fill.js +2 -2
- package/library/modules/es6.array.filter.js +4 -4
- package/library/modules/es6.array.find-index.js +7 -7
- package/library/modules/es6.array.find.js +7 -7
- package/library/modules/es6.array.for-each.js +5 -5
- package/library/modules/es6.array.from.js +22 -22
- package/library/modules/es6.array.index-of.js +6 -6
- package/library/modules/es6.array.is-array.js +1 -1
- package/library/modules/es6.array.iterator.js +13 -13
- package/library/modules/es6.array.join.js +5 -5
- package/library/modules/es6.array.last-index-of.js +15 -15
- package/library/modules/es6.array.map.js +4 -4
- package/library/modules/es6.array.of.js +10 -10
- package/library/modules/es6.array.reduce-right.js +4 -4
- package/library/modules/es6.array.reduce.js +4 -4
- package/library/modules/es6.array.slice.js +19 -19
- package/library/modules/es6.array.some.js +4 -4
- package/library/modules/es6.array.sort.js +10 -10
- package/library/modules/es6.array.species.js +1 -1
- package/library/modules/es6.date.now.js +1 -1
- package/library/modules/es6.date.to-iso-string.js +5 -25
- package/library/modules/es6.date.to-json.js +15 -10
- package/library/modules/es6.function.bind.js +1 -1
- package/library/modules/es6.function.has-instance.js +9 -9
- package/library/modules/es6.map.js +9 -7
- package/library/modules/es6.math.acosh.js +7 -7
- package/library/modules/es6.math.asinh.js +5 -5
- package/library/modules/es6.math.atanh.js +5 -5
- package/library/modules/es6.math.cbrt.js +4 -4
- package/library/modules/es6.math.clz32.js +2 -2
- package/library/modules/es6.math.cosh.js +4 -4
- package/library/modules/es6.math.expm1.js +3 -3
- package/library/modules/es6.math.fround.js +2 -24
- package/library/modules/es6.math.hypot.js +15 -15
- package/library/modules/es6.math.imul.js +10 -10
- package/library/modules/es6.math.log10.js +3 -3
- package/library/modules/es6.math.log1p.js +1 -1
- package/library/modules/es6.math.log2.js +2 -2
- package/library/modules/es6.math.sign.js +1 -1
- package/library/modules/es6.math.sinh.js +6 -6
- package/library/modules/es6.math.tanh.js +7 -7
- package/library/modules/es6.math.trunc.js +2 -2
- package/library/modules/es6.number.epsilon.js +1 -1
- package/library/modules/es6.number.is-finite.js +4 -4
- package/library/modules/es6.number.is-integer.js +1 -1
- package/library/modules/es6.number.is-nan.js +3 -2
- package/library/modules/es6.number.is-safe-integer.js +5 -5
- package/library/modules/es6.number.max-safe-integer.js +1 -1
- package/library/modules/es6.number.min-safe-integer.js +1 -1
- package/library/modules/es6.number.parse-float.js +3 -3
- package/library/modules/es6.number.parse-int.js +3 -3
- package/library/modules/es6.number.to-fixed.js +48 -47
- package/library/modules/es6.number.to-precision.js +9 -9
- package/library/modules/es6.object.assign.js +1 -1
- package/library/modules/es6.object.create.js +2 -2
- package/library/modules/es6.object.define-properties.js +1 -1
- package/library/modules/es6.object.define-property.js +1 -1
- package/library/modules/es6.object.freeze.js +5 -5
- package/library/modules/es6.object.get-own-property-descriptor.js +5 -5
- package/library/modules/es6.object.get-own-property-names.js +2 -2
- package/library/modules/es6.object.get-prototype-of.js +5 -5
- package/library/modules/es6.object.is-extensible.js +3 -3
- package/library/modules/es6.object.is-frozen.js +3 -3
- package/library/modules/es6.object.is-sealed.js +3 -3
- package/library/modules/es6.object.is.js +1 -1
- package/library/modules/es6.object.keys.js +5 -5
- package/library/modules/es6.object.prevent-extensions.js +5 -5
- package/library/modules/es6.object.seal.js +5 -5
- package/library/modules/es6.object.set-prototype-of.js +1 -1
- package/library/modules/es6.parse-float.js +3 -3
- package/library/modules/es6.parse-int.js +3 -3
- package/library/modules/es6.promise.js +137 -163
- package/library/modules/es6.reflect.apply.js +11 -11
- package/library/modules/es6.reflect.construct.js +23 -23
- package/library/modules/es6.reflect.define-property.js +10 -9
- package/library/modules/es6.reflect.delete-property.js +5 -5
- package/library/modules/es6.reflect.enumerate.js +15 -15
- package/library/modules/es6.reflect.get-own-property-descriptor.js +5 -5
- package/library/modules/es6.reflect.get-prototype-of.js +5 -5
- package/library/modules/es6.reflect.get.js +13 -13
- package/library/modules/es6.reflect.has.js +2 -2
- package/library/modules/es6.reflect.is-extensible.js +5 -5
- package/library/modules/es6.reflect.own-keys.js +1 -1
- package/library/modules/es6.reflect.prevent-extensions.js +7 -7
- package/library/modules/es6.reflect.set-prototype-of.js +6 -6
- package/library/modules/es6.reflect.set.js +17 -17
- package/library/modules/es6.regexp.constructor.js +1 -1
- package/library/modules/es6.set.js +7 -5
- package/library/modules/es6.string.anchor.js +4 -4
- package/library/modules/es6.string.big.js +4 -4
- package/library/modules/es6.string.blink.js +4 -4
- package/library/modules/es6.string.bold.js +4 -4
- package/library/modules/es6.string.code-point-at.js +4 -4
- package/library/modules/es6.string.ends-with.js +12 -12
- package/library/modules/es6.string.fixed.js +4 -4
- package/library/modules/es6.string.fontcolor.js +4 -4
- package/library/modules/es6.string.fontsize.js +4 -4
- package/library/modules/es6.string.from-code-point.js +12 -12
- package/library/modules/es6.string.includes.js +5 -5
- package/library/modules/es6.string.italics.js +4 -4
- package/library/modules/es6.string.iterator.js +9 -9
- package/library/modules/es6.string.link.js +4 -4
- package/library/modules/es6.string.raw.js +12 -12
- package/library/modules/es6.string.repeat.js +1 -1
- package/library/modules/es6.string.small.js +4 -4
- package/library/modules/es6.string.starts-with.js +10 -10
- package/library/modules/es6.string.strike.js +4 -4
- package/library/modules/es6.string.sub.js +4 -4
- package/library/modules/es6.string.sup.js +4 -4
- package/library/modules/es6.string.trim.js +3 -3
- package/library/modules/es6.symbol.js +120 -121
- package/library/modules/es6.typed.array-buffer.js +29 -29
- package/library/modules/es6.typed.data-view.js +1 -1
- package/library/modules/es6.typed.float32-array.js +3 -3
- package/library/modules/es6.typed.float64-array.js +3 -3
- package/library/modules/es6.typed.int16-array.js +3 -3
- package/library/modules/es6.typed.int32-array.js +3 -3
- package/library/modules/es6.typed.int8-array.js +3 -3
- package/library/modules/es6.typed.uint16-array.js +3 -3
- package/library/modules/es6.typed.uint32-array.js +3 -3
- package/library/modules/es6.typed.uint8-array.js +3 -3
- package/library/modules/es6.typed.uint8-clamped-array.js +3 -3
- package/library/modules/es6.weak-map.js +31 -28
- package/library/modules/es6.weak-set.js +7 -5
- package/library/modules/es7.array.flat-map.js +22 -0
- package/library/modules/es7.array.flatten.js +21 -0
- package/library/modules/es7.array.includes.js +4 -4
- package/library/modules/es7.asap.js +6 -6
- package/library/modules/es7.error.is-error.js +4 -4
- package/library/modules/es7.global.js +4 -0
- package/library/modules/es7.map.from.js +2 -0
- package/library/modules/es7.map.of.js +2 -0
- package/library/modules/es7.map.to-json.js +2 -2
- package/library/modules/es7.math.clamp.js +8 -0
- package/library/modules/es7.math.deg-per-rad.js +4 -0
- package/library/modules/es7.math.degrees.js +9 -0
- package/library/modules/es7.math.fscale.js +10 -0
- package/library/modules/es7.math.iaddh.js +5 -5
- package/library/modules/es7.math.imulh.js +10 -10
- package/library/modules/es7.math.isubh.js +5 -5
- package/library/modules/es7.math.rad-per-deg.js +4 -0
- package/library/modules/es7.math.radians.js +9 -0
- package/library/modules/es7.math.scale.js +4 -0
- package/library/modules/es7.math.signbit.js +7 -0
- package/library/modules/es7.math.umulh.js +10 -10
- package/library/modules/es7.object.define-getter.js +7 -7
- package/library/modules/es7.object.define-setter.js +7 -7
- package/library/modules/es7.object.entries.js +4 -4
- package/library/modules/es7.object.get-own-property-descriptors.js +17 -14
- package/library/modules/es7.object.lookup-getter.js +12 -12
- package/library/modules/es7.object.lookup-setter.js +12 -12
- package/library/modules/es7.object.values.js +4 -4
- package/library/modules/es7.observable.js +68 -68
- package/library/modules/es7.promise.finally.js +20 -0
- package/library/modules/es7.promise.try.js +12 -0
- package/library/modules/es7.reflect.define-metadata.js +6 -6
- package/library/modules/es7.reflect.delete-metadata.js +11 -11
- package/library/modules/es7.reflect.get-metadata-keys.js +14 -14
- package/library/modules/es7.reflect.get-metadata.js +10 -10
- package/library/modules/es7.reflect.get-own-metadata-keys.js +6 -6
- package/library/modules/es7.reflect.get-own-metadata.js +6 -6
- package/library/modules/es7.reflect.has-metadata.js +9 -9
- package/library/modules/es7.reflect.has-own-metadata.js +6 -6
- package/library/modules/es7.reflect.metadata.js +8 -8
- package/library/modules/es7.set.from.js +2 -0
- package/library/modules/es7.set.of.js +2 -0
- package/library/modules/es7.set.to-json.js +2 -2
- package/library/modules/es7.string.at.js +4 -4
- package/library/modules/es7.string.match-all.js +15 -15
- package/library/modules/es7.string.pad-end.js +7 -5
- package/library/modules/es7.string.pad-start.js +7 -5
- package/library/modules/es7.string.trim-left.js +3 -3
- package/library/modules/es7.string.trim-right.js +3 -3
- package/library/modules/es7.symbol.async-iterator.js +1 -1
- package/library/modules/es7.symbol.observable.js +1 -1
- package/library/modules/es7.system.global.js +2 -2
- package/library/modules/es7.weak-map.from.js +2 -0
- package/library/modules/es7.weak-map.of.js +2 -0
- package/library/modules/es7.weak-set.from.js +2 -0
- package/library/modules/es7.weak-set.of.js +2 -0
- package/library/modules/web.dom.iterable.js +16 -10
- package/library/modules/web.immediate.js +4 -4
- package/library/modules/web.timers.js +16 -16
- package/library/shim.js +22 -1
- package/library/stage/0.js +1 -1
- package/library/stage/1.js +19 -2
- package/library/stage/2.js +2 -1
- package/library/stage/3.js +3 -3
- package/library/stage/4.js +3 -0
- package/library/stage/index.js +1 -1
- package/library/stage/pre.js +1 -1
- package/library/web/dom-collections.js +1 -1
- package/library/web/immediate.js +1 -1
- package/library/web/index.js +1 -1
- package/library/web/timers.js +1 -1
- package/modules/_a-function.js +3 -3
- package/modules/_a-number-value.js +3 -3
- package/modules/_add-to-unscopables.js +5 -5
- package/modules/_an-instance.js +3 -3
- package/modules/_an-object.js +3 -3
- package/modules/_array-copy-within.js +18 -18
- package/modules/_array-fill.js +12 -12
- package/modules/_array-from-iterable.js +1 -1
- package/modules/_array-includes.js +17 -15
- package/modules/_array-methods.js +31 -31
- package/modules/_array-reduce.js +15 -15
- package/modules/_array-species-constructor.js +9 -9
- package/modules/_array-species-create.js +2 -2
- package/modules/_bind.js +15 -14
- package/modules/_classof.js +8 -8
- package/modules/_cof.js +2 -2
- package/modules/_collection-strong.js +69 -67
- package/modules/_collection-to-json.js +6 -6
- package/modules/_collection-weak.js +38 -36
- package/modules/_collection.js +50 -50
- package/modules/_core.js +2 -2
- package/modules/_create-property.js +5 -5
- package/modules/_ctx.js +8 -8
- package/modules/_date-to-iso-string.js +26 -0
- package/modules/_date-to-primitive.js +6 -6
- package/modules/_defined.js +3 -3
- package/modules/_descriptors.js +3 -3
- package/modules/_dom-create.js +6 -6
- package/modules/_entry-virtual.js +2 -2
- package/modules/_enum-bug-keys.js +1 -1
- package/modules/_enum-keys.js +13 -13
- package/modules/_export.js +23 -23
- package/modules/_fails-is-regexp.js +4 -4
- package/modules/_fails.js +3 -3
- package/modules/_fix-re-wks.js +16 -16
- package/modules/_flags.js +9 -9
- package/modules/_flatten-into-array.js +39 -0
- package/modules/_for-of.js +20 -20
- package/modules/_global.js +4 -2
- package/modules/_has.js +2 -2
- package/modules/_hide.js +5 -5
- package/modules/_html.js +2 -1
- package/modules/_ie8-dom-define.js +3 -3
- package/modules/_inherit-if-required.js +7 -6
- package/modules/_invoke.js +4 -4
- package/modules/_iobject.js +3 -2
- package/modules/_is-array-iter.js +5 -5
- package/modules/_is-array.js +2 -2
- package/modules/_is-integer.js +4 -4
- package/modules/_is-object.js +2 -2
- package/modules/_is-regexp.js +5 -5
- package/modules/_iter-call.js +4 -4
- package/modules/_iter-create.js +8 -8
- package/modules/_iter-define.js +45 -45
- package/modules/_iter-detect.js +14 -13
- package/modules/_iter-step.js +3 -3
- package/modules/_iterators.js +1 -1
- package/modules/_keyof.js +10 -10
- package/modules/_library.js +1 -1
- package/modules/_math-expm1.js +2 -2
- package/modules/_math-fround.js +23 -0
- package/modules/_math-log1p.js +2 -2
- package/modules/_math-scale.js +18 -0
- package/modules/_math-sign.js +3 -2
- package/modules/_meta.js +26 -26
- package/modules/_metadata.js +21 -21
- package/modules/_microtask.js +30 -30
- package/modules/_new-promise-capability.js +18 -0
- package/modules/_object-assign.js +27 -26
- package/modules/_object-create.js +16 -16
- package/modules/_object-define.js +11 -10
- package/modules/_object-dp.js +10 -10
- package/modules/_object-dps.js +10 -10
- package/modules/_object-forced-pam.js +5 -3
- package/modules/_object-gopd.js +12 -12
- package/modules/_object-gopn-ext.js +6 -6
- package/modules/_object-gopn.js +4 -4
- package/modules/_object-gops.js +1 -1
- package/modules/_object-gpo.js +8 -8
- package/modules/_object-keys-internal.js +12 -12
- package/modules/_object-keys.js +4 -4
- package/modules/_object-pie.js +1 -1
- package/modules/_object-sap.js +8 -8
- package/modules/_object-to-array.js +13 -13
- package/modules/_own-keys.js +8 -8
- package/modules/_parse-float.js +6 -6
- package/modules/_parse-int.js +6 -6
- package/modules/_partial.js +21 -19
- package/modules/_path.js +1 -1
- package/modules/_perform.js +7 -0
- package/modules/_promise-resolve.js +12 -0
- package/modules/_property-desc.js +5 -5
- package/modules/_redefine-all.js +3 -3
- package/modules/_redefine.js +21 -22
- package/modules/_replacer.js +4 -4
- package/modules/_same-value.js +3 -2
- package/modules/_set-collection-from.js +28 -0
- package/modules/_set-collection-of.js +12 -0
- package/modules/_set-proto.js +9 -9
- package/modules/_set-species.js +8 -8
- package/modules/_set-to-string-tag.js +6 -6
- package/modules/_shared-key.js +4 -4
- package/modules/_shared.js +5 -5
- package/modules/_species-constructor.js +7 -6
- package/modules/_strict-method.js +6 -4
- package/modules/_string-at.js +10 -10
- package/modules/_string-context.js +5 -5
- package/modules/_string-html.js +11 -11
- package/modules/_string-pad.js +12 -12
- package/modules/_string-repeat.js +9 -9
- package/modules/_string-trim.js +16 -16
- package/modules/_string-ws.js +1 -1
- package/modules/_task.js +44 -35
- package/modules/_to-absolute-index.js +7 -0
- package/modules/_to-index.js +10 -7
- package/modules/_to-integer.js +4 -4
- package/modules/_to-iobject.js +4 -4
- package/modules/_to-length.js +4 -4
- package/modules/_to-object.js +2 -2
- package/modules/_to-primitive.js +6 -6
- package/modules/_typed-array.js +242 -241
- package/modules/_typed-buffer.js +155 -152
- package/modules/_typed.js +16 -14
- package/modules/_uid.js +4 -4
- package/modules/_user-agent.js +4 -0
- package/modules/_validate-collection.js +5 -0
- package/modules/_wks-define.js +8 -8
- package/modules/_wks-ext.js +1 -1
- package/modules/_wks.js +6 -6
- package/modules/core.delay.js +7 -7
- package/modules/core.dict.js +85 -83
- package/modules/core.function.part.js +3 -3
- package/modules/core.get-iterator-method.js +6 -6
- package/modules/core.get-iterator.js +5 -5
- package/modules/core.is-iterable.js +6 -5
- package/modules/core.number.iterator.js +6 -6
- package/modules/core.object.classof.js +1 -1
- package/modules/core.object.define.js +3 -3
- package/modules/core.object.is-object.js +1 -1
- package/modules/core.object.make.js +5 -5
- package/modules/core.regexp.escape.js +3 -3
- package/modules/core.string.escape-html.js +1 -1
- package/modules/core.string.unescape-html.js +4 -4
- package/modules/es5.js +1 -1
- package/modules/es6.array.copy-within.js +2 -2
- package/modules/es6.array.every.js +4 -4
- package/modules/es6.array.fill.js +2 -2
- package/modules/es6.array.filter.js +4 -4
- package/modules/es6.array.find-index.js +7 -7
- package/modules/es6.array.find.js +7 -7
- package/modules/es6.array.for-each.js +5 -5
- package/modules/es6.array.from.js +22 -22
- package/modules/es6.array.index-of.js +6 -6
- package/modules/es6.array.is-array.js +1 -1
- package/modules/es6.array.iterator.js +13 -13
- package/modules/es6.array.join.js +5 -5
- package/modules/es6.array.last-index-of.js +15 -15
- package/modules/es6.array.map.js +4 -4
- package/modules/es6.array.of.js +10 -10
- package/modules/es6.array.reduce-right.js +4 -4
- package/modules/es6.array.reduce.js +4 -4
- package/modules/es6.array.slice.js +19 -19
- package/modules/es6.array.some.js +4 -4
- package/modules/es6.array.sort.js +10 -10
- package/modules/es6.array.species.js +1 -1
- package/modules/es6.date.now.js +1 -1
- package/modules/es6.date.to-iso-string.js +5 -25
- package/modules/es6.date.to-json.js +11 -9
- package/modules/es6.date.to-primitive.js +3 -3
- package/modules/es6.date.to-string.js +9 -8
- package/modules/es6.function.bind.js +1 -1
- package/modules/es6.function.has-instance.js +9 -9
- package/modules/es6.function.name.js +8 -17
- package/modules/es6.map.js +9 -7
- package/modules/es6.math.acosh.js +7 -7
- package/modules/es6.math.asinh.js +5 -5
- package/modules/es6.math.atanh.js +5 -5
- package/modules/es6.math.cbrt.js +4 -4
- package/modules/es6.math.clz32.js +2 -2
- package/modules/es6.math.cosh.js +4 -4
- package/modules/es6.math.expm1.js +3 -3
- package/modules/es6.math.fround.js +2 -24
- package/modules/es6.math.hypot.js +15 -15
- package/modules/es6.math.imul.js +10 -10
- package/modules/es6.math.log10.js +3 -3
- package/modules/es6.math.log1p.js +1 -1
- package/modules/es6.math.log2.js +2 -2
- package/modules/es6.math.sign.js +1 -1
- package/modules/es6.math.sinh.js +6 -6
- package/modules/es6.math.tanh.js +7 -7
- package/modules/es6.math.trunc.js +2 -2
- package/modules/es6.number.constructor.js +39 -39
- package/modules/es6.number.epsilon.js +1 -1
- package/modules/es6.number.is-finite.js +4 -4
- package/modules/es6.number.is-integer.js +1 -1
- package/modules/es6.number.is-nan.js +3 -2
- package/modules/es6.number.is-safe-integer.js +5 -5
- package/modules/es6.number.max-safe-integer.js +1 -1
- package/modules/es6.number.min-safe-integer.js +1 -1
- package/modules/es6.number.parse-float.js +3 -3
- package/modules/es6.number.parse-int.js +3 -3
- package/modules/es6.number.to-fixed.js +48 -47
- package/modules/es6.number.to-precision.js +9 -9
- package/modules/es6.object.assign.js +1 -1
- package/modules/es6.object.create.js +2 -2
- package/modules/es6.object.define-properties.js +1 -1
- package/modules/es6.object.define-property.js +1 -1
- package/modules/es6.object.freeze.js +5 -5
- package/modules/es6.object.get-own-property-descriptor.js +5 -5
- package/modules/es6.object.get-own-property-names.js +2 -2
- package/modules/es6.object.get-prototype-of.js +5 -5
- package/modules/es6.object.is-extensible.js +3 -3
- package/modules/es6.object.is-frozen.js +3 -3
- package/modules/es6.object.is-sealed.js +3 -3
- package/modules/es6.object.is.js +1 -1
- package/modules/es6.object.keys.js +5 -5
- package/modules/es6.object.prevent-extensions.js +5 -5
- package/modules/es6.object.seal.js +5 -5
- package/modules/es6.object.set-prototype-of.js +1 -1
- package/modules/es6.object.to-string.js +5 -5
- package/modules/es6.parse-float.js +3 -3
- package/modules/es6.parse-int.js +3 -3
- package/modules/es6.promise.js +137 -163
- package/modules/es6.reflect.apply.js +11 -11
- package/modules/es6.reflect.construct.js +23 -23
- package/modules/es6.reflect.define-property.js +10 -9
- package/modules/es6.reflect.delete-property.js +5 -5
- package/modules/es6.reflect.enumerate.js +15 -15
- package/modules/es6.reflect.get-own-property-descriptor.js +5 -5
- package/modules/es6.reflect.get-prototype-of.js +5 -5
- package/modules/es6.reflect.get.js +13 -13
- package/modules/es6.reflect.has.js +2 -2
- package/modules/es6.reflect.is-extensible.js +5 -5
- package/modules/es6.reflect.own-keys.js +1 -1
- package/modules/es6.reflect.prevent-extensions.js +7 -7
- package/modules/es6.reflect.set-prototype-of.js +6 -6
- package/modules/es6.reflect.set.js +17 -17
- package/modules/es6.regexp.constructor.js +24 -24
- package/modules/es6.regexp.flags.js +2 -2
- package/modules/es6.regexp.match.js +5 -5
- package/modules/es6.regexp.replace.js +5 -5
- package/modules/es6.regexp.search.js +5 -5
- package/modules/es6.regexp.split.js +29 -28
- package/modules/es6.regexp.to-string.js +11 -11
- package/modules/es6.set.js +7 -5
- package/modules/es6.string.anchor.js +4 -4
- package/modules/es6.string.big.js +4 -4
- package/modules/es6.string.blink.js +4 -4
- package/modules/es6.string.bold.js +4 -4
- package/modules/es6.string.code-point-at.js +4 -4
- package/modules/es6.string.ends-with.js +12 -12
- package/modules/es6.string.fixed.js +4 -4
- package/modules/es6.string.fontcolor.js +4 -4
- package/modules/es6.string.fontsize.js +4 -4
- package/modules/es6.string.from-code-point.js +12 -12
- package/modules/es6.string.includes.js +5 -5
- package/modules/es6.string.italics.js +4 -4
- package/modules/es6.string.iterator.js +9 -9
- package/modules/es6.string.link.js +4 -4
- package/modules/es6.string.raw.js +12 -12
- package/modules/es6.string.repeat.js +1 -1
- package/modules/es6.string.small.js +4 -4
- package/modules/es6.string.starts-with.js +10 -10
- package/modules/es6.string.strike.js +4 -4
- package/modules/es6.string.sub.js +4 -4
- package/modules/es6.string.sup.js +4 -4
- package/modules/es6.string.trim.js +3 -3
- package/modules/es6.symbol.js +120 -121
- package/modules/es6.typed.array-buffer.js +29 -29
- package/modules/es6.typed.data-view.js +1 -1
- package/modules/es6.typed.float32-array.js +3 -3
- package/modules/es6.typed.float64-array.js +3 -3
- package/modules/es6.typed.int16-array.js +3 -3
- package/modules/es6.typed.int32-array.js +3 -3
- package/modules/es6.typed.int8-array.js +3 -3
- package/modules/es6.typed.uint16-array.js +3 -3
- package/modules/es6.typed.uint32-array.js +3 -3
- package/modules/es6.typed.uint8-array.js +3 -3
- package/modules/es6.typed.uint8-clamped-array.js +3 -3
- package/modules/es6.weak-map.js +31 -28
- package/modules/es6.weak-set.js +7 -5
- package/modules/es7.array.flat-map.js +22 -0
- package/modules/es7.array.flatten.js +21 -0
- package/modules/es7.array.includes.js +4 -4
- package/modules/es7.asap.js +6 -6
- package/modules/es7.error.is-error.js +4 -4
- package/modules/es7.global.js +4 -0
- package/modules/es7.map.from.js +2 -0
- package/modules/es7.map.of.js +2 -0
- package/modules/es7.map.to-json.js +2 -2
- package/modules/es7.math.clamp.js +8 -0
- package/modules/es7.math.deg-per-rad.js +4 -0
- package/modules/es7.math.degrees.js +9 -0
- package/modules/es7.math.fscale.js +10 -0
- package/modules/es7.math.iaddh.js +5 -5
- package/modules/es7.math.imulh.js +10 -10
- package/modules/es7.math.isubh.js +5 -5
- package/modules/es7.math.rad-per-deg.js +4 -0
- package/modules/es7.math.radians.js +9 -0
- package/modules/es7.math.scale.js +4 -0
- package/modules/es7.math.signbit.js +7 -0
- package/modules/es7.math.umulh.js +10 -10
- package/modules/es7.object.define-getter.js +7 -7
- package/modules/es7.object.define-setter.js +7 -7
- package/modules/es7.object.entries.js +4 -4
- package/modules/es7.object.get-own-property-descriptors.js +17 -14
- package/modules/es7.object.lookup-getter.js +12 -12
- package/modules/es7.object.lookup-setter.js +12 -12
- package/modules/es7.object.values.js +4 -4
- package/modules/es7.observable.js +68 -68
- package/modules/es7.promise.finally.js +20 -0
- package/modules/es7.promise.try.js +12 -0
- package/modules/es7.reflect.define-metadata.js +6 -6
- package/modules/es7.reflect.delete-metadata.js +11 -11
- package/modules/es7.reflect.get-metadata-keys.js +14 -14
- package/modules/es7.reflect.get-metadata.js +10 -10
- package/modules/es7.reflect.get-own-metadata-keys.js +6 -6
- package/modules/es7.reflect.get-own-metadata.js +6 -6
- package/modules/es7.reflect.has-metadata.js +9 -9
- package/modules/es7.reflect.has-own-metadata.js +6 -6
- package/modules/es7.reflect.metadata.js +8 -8
- package/modules/es7.set.from.js +2 -0
- package/modules/es7.set.of.js +2 -0
- package/modules/es7.set.to-json.js +2 -2
- package/modules/es7.string.at.js +4 -4
- package/modules/es7.string.match-all.js +15 -15
- package/modules/es7.string.pad-end.js +7 -5
- package/modules/es7.string.pad-start.js +7 -5
- package/modules/es7.string.trim-left.js +3 -3
- package/modules/es7.string.trim-right.js +3 -3
- package/modules/es7.symbol.async-iterator.js +1 -1
- package/modules/es7.symbol.observable.js +1 -1
- package/modules/es7.system.global.js +2 -2
- package/modules/es7.weak-map.from.js +2 -0
- package/modules/es7.weak-map.of.js +2 -0
- package/modules/es7.weak-set.from.js +2 -0
- package/modules/es7.weak-set.of.js +2 -0
- package/modules/library/_add-to-unscopables.js +1 -1
- package/modules/library/_collection.js +31 -31
- package/modules/library/_export.js +28 -28
- package/modules/library/_library.js +1 -1
- package/modules/library/_path.js +1 -1
- package/modules/library/_redefine-all.js +4 -4
- package/modules/library/_redefine.js +1 -1
- package/modules/library/_set-species.js +9 -9
- package/modules/library/es6.date.to-json.js +19 -0
- package/modules/library/es6.regexp.constructor.js +1 -1
- package/modules/library/web.dom.iterable.js +16 -10
- package/modules/web.dom.iterable.js +55 -19
- package/modules/web.immediate.js +4 -4
- package/modules/web.timers.js +16 -16
- package/package.json +30 -27
- package/shim.js +22 -1
- package/stage/0.js +1 -1
- package/stage/1.js +19 -2
- package/stage/2.js +2 -1
- package/stage/3.js +3 -3
- package/stage/4.js +3 -0
- package/stage/index.js +1 -1
- package/stage/pre.js +1 -1
- package/web/dom-collections.js +1 -1
- package/web/immediate.js +1 -1
- package/web/index.js +1 -1
- package/web/timers.js +1 -1
- package/library/modules/es7.object.enumerable-entries.js +0 -12
- package/library/modules/es7.object.enumerable-keys.js +0 -12
- package/library/modules/es7.object.enumerable-values.js +0 -12
- package/modules/es7.object.enumerable-entries.js +0 -12
- package/modules/es7.object.enumerable-keys.js +0 -12
- package/modules/es7.object.enumerable-values.js +0 -12
|
@@ -1,172 +1,145 @@
|
|
|
1
1
|
'use strict';
|
|
2
|
-
var LIBRARY
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
2
|
+
var LIBRARY = require('./_library');
|
|
3
|
+
var global = require('./_global');
|
|
4
|
+
var ctx = require('./_ctx');
|
|
5
|
+
var classof = require('./_classof');
|
|
6
|
+
var $export = require('./_export');
|
|
7
|
+
var isObject = require('./_is-object');
|
|
8
|
+
var aFunction = require('./_a-function');
|
|
9
|
+
var anInstance = require('./_an-instance');
|
|
10
|
+
var forOf = require('./_for-of');
|
|
11
|
+
var speciesConstructor = require('./_species-constructor');
|
|
12
|
+
var task = require('./_task').set;
|
|
13
|
+
var microtask = require('./_microtask')();
|
|
14
|
+
var newPromiseCapabilityModule = require('./_new-promise-capability');
|
|
15
|
+
var perform = require('./_perform');
|
|
16
|
+
var promiseResolve = require('./_promise-resolve');
|
|
17
|
+
var PROMISE = 'Promise';
|
|
18
|
+
var TypeError = global.TypeError;
|
|
19
|
+
var process = global.process;
|
|
20
|
+
var $Promise = global[PROMISE];
|
|
21
|
+
var isNode = classof(process) == 'process';
|
|
22
|
+
var empty = function () { /* empty */ };
|
|
23
|
+
var Internal, newGenericPromiseCapability, OwnPromiseCapability, Wrapper;
|
|
24
|
+
var newPromiseCapability = newGenericPromiseCapability = newPromiseCapabilityModule.f;
|
|
22
25
|
|
|
23
|
-
var USE_NATIVE = !!function(){
|
|
26
|
+
var USE_NATIVE = !!function () {
|
|
24
27
|
try {
|
|
25
28
|
// correct subclassing with @@species support
|
|
26
|
-
var promise
|
|
27
|
-
|
|
29
|
+
var promise = $Promise.resolve(1);
|
|
30
|
+
var FakePromise = (promise.constructor = {})[require('./_wks')('species')] = function (exec) {
|
|
31
|
+
exec(empty, empty);
|
|
32
|
+
};
|
|
28
33
|
// unhandled rejections tracking support, NodeJS Promise without it fails @@species test
|
|
29
34
|
return (isNode || typeof PromiseRejectionEvent == 'function') && promise.then(empty) instanceof FakePromise;
|
|
30
|
-
} catch(e){ /* empty */ }
|
|
35
|
+
} catch (e) { /* empty */ }
|
|
31
36
|
}();
|
|
32
37
|
|
|
33
38
|
// helpers
|
|
34
|
-
var
|
|
35
|
-
// with library wrapper special case
|
|
36
|
-
return a === b || a === $Promise && b === Wrapper;
|
|
37
|
-
};
|
|
38
|
-
var isThenable = function(it){
|
|
39
|
+
var isThenable = function (it) {
|
|
39
40
|
var then;
|
|
40
41
|
return isObject(it) && typeof (then = it.then) == 'function' ? then : false;
|
|
41
42
|
};
|
|
42
|
-
var
|
|
43
|
-
|
|
44
|
-
? new PromiseCapability(C)
|
|
45
|
-
: new GenericPromiseCapability(C);
|
|
46
|
-
};
|
|
47
|
-
var PromiseCapability = GenericPromiseCapability = function(C){
|
|
48
|
-
var resolve, reject;
|
|
49
|
-
this.promise = new C(function($$resolve, $$reject){
|
|
50
|
-
if(resolve !== undefined || reject !== undefined)throw TypeError('Bad Promise constructor');
|
|
51
|
-
resolve = $$resolve;
|
|
52
|
-
reject = $$reject;
|
|
53
|
-
});
|
|
54
|
-
this.resolve = aFunction(resolve);
|
|
55
|
-
this.reject = aFunction(reject);
|
|
56
|
-
};
|
|
57
|
-
var perform = function(exec){
|
|
58
|
-
try {
|
|
59
|
-
exec();
|
|
60
|
-
} catch(e){
|
|
61
|
-
return {error: e};
|
|
62
|
-
}
|
|
63
|
-
};
|
|
64
|
-
var notify = function(promise, isReject){
|
|
65
|
-
if(promise._n)return;
|
|
43
|
+
var notify = function (promise, isReject) {
|
|
44
|
+
if (promise._n) return;
|
|
66
45
|
promise._n = true;
|
|
67
46
|
var chain = promise._c;
|
|
68
|
-
microtask(function(){
|
|
69
|
-
var value = promise._v
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
var run = function(reaction){
|
|
73
|
-
var handler = ok ? reaction.ok : reaction.fail
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
47
|
+
microtask(function () {
|
|
48
|
+
var value = promise._v;
|
|
49
|
+
var ok = promise._s == 1;
|
|
50
|
+
var i = 0;
|
|
51
|
+
var run = function (reaction) {
|
|
52
|
+
var handler = ok ? reaction.ok : reaction.fail;
|
|
53
|
+
var resolve = reaction.resolve;
|
|
54
|
+
var reject = reaction.reject;
|
|
55
|
+
var domain = reaction.domain;
|
|
56
|
+
var result, then;
|
|
78
57
|
try {
|
|
79
|
-
if(handler){
|
|
80
|
-
if(!ok){
|
|
81
|
-
if(promise._h == 2)onHandleUnhandled(promise);
|
|
58
|
+
if (handler) {
|
|
59
|
+
if (!ok) {
|
|
60
|
+
if (promise._h == 2) onHandleUnhandled(promise);
|
|
82
61
|
promise._h = 1;
|
|
83
62
|
}
|
|
84
|
-
if(handler === true)result = value;
|
|
63
|
+
if (handler === true) result = value;
|
|
85
64
|
else {
|
|
86
|
-
if(domain)domain.enter();
|
|
65
|
+
if (domain) domain.enter();
|
|
87
66
|
result = handler(value);
|
|
88
|
-
if(domain)domain.exit();
|
|
67
|
+
if (domain) domain.exit();
|
|
89
68
|
}
|
|
90
|
-
if(result === reaction.promise){
|
|
69
|
+
if (result === reaction.promise) {
|
|
91
70
|
reject(TypeError('Promise-chain cycle'));
|
|
92
|
-
} else if(then = isThenable(result)){
|
|
71
|
+
} else if (then = isThenable(result)) {
|
|
93
72
|
then.call(result, resolve, reject);
|
|
94
73
|
} else resolve(result);
|
|
95
74
|
} else reject(value);
|
|
96
|
-
} catch(e){
|
|
75
|
+
} catch (e) {
|
|
97
76
|
reject(e);
|
|
98
77
|
}
|
|
99
78
|
};
|
|
100
|
-
while(chain.length > i)run(chain[i++]); // variable length - can't use forEach
|
|
79
|
+
while (chain.length > i) run(chain[i++]); // variable length - can't use forEach
|
|
101
80
|
promise._c = [];
|
|
102
81
|
promise._n = false;
|
|
103
|
-
if(isReject && !promise._h)onUnhandled(promise);
|
|
82
|
+
if (isReject && !promise._h) onUnhandled(promise);
|
|
104
83
|
});
|
|
105
84
|
};
|
|
106
|
-
var onUnhandled = function(promise){
|
|
107
|
-
task.call(global, function(){
|
|
108
|
-
var value = promise._v
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
85
|
+
var onUnhandled = function (promise) {
|
|
86
|
+
task.call(global, function () {
|
|
87
|
+
var value = promise._v;
|
|
88
|
+
var unhandled = isUnhandled(promise);
|
|
89
|
+
var result, handler, console;
|
|
90
|
+
if (unhandled) {
|
|
91
|
+
result = perform(function () {
|
|
92
|
+
if (isNode) {
|
|
113
93
|
process.emit('unhandledRejection', value, promise);
|
|
114
|
-
} else if(handler = global.onunhandledrejection){
|
|
115
|
-
handler({promise: promise, reason: value});
|
|
116
|
-
} else if((console = global.console) && console.error){
|
|
94
|
+
} else if (handler = global.onunhandledrejection) {
|
|
95
|
+
handler({ promise: promise, reason: value });
|
|
96
|
+
} else if ((console = global.console) && console.error) {
|
|
117
97
|
console.error('Unhandled promise rejection', value);
|
|
118
98
|
}
|
|
119
99
|
});
|
|
120
100
|
// Browsers should not trigger `rejectionHandled` event if it was handled here, NodeJS - should
|
|
121
101
|
promise._h = isNode || isUnhandled(promise) ? 2 : 1;
|
|
122
102
|
} promise._a = undefined;
|
|
123
|
-
if(
|
|
103
|
+
if (unhandled && result.e) throw result.v;
|
|
124
104
|
});
|
|
125
105
|
};
|
|
126
|
-
var isUnhandled = function(promise){
|
|
127
|
-
|
|
128
|
-
var chain = promise._a || promise._c
|
|
129
|
-
, i = 0
|
|
130
|
-
, reaction;
|
|
131
|
-
while(chain.length > i){
|
|
132
|
-
reaction = chain[i++];
|
|
133
|
-
if(reaction.fail || !isUnhandled(reaction.promise))return false;
|
|
134
|
-
} return true;
|
|
106
|
+
var isUnhandled = function (promise) {
|
|
107
|
+
return promise._h !== 1 && (promise._a || promise._c).length === 0;
|
|
135
108
|
};
|
|
136
|
-
var onHandleUnhandled = function(promise){
|
|
137
|
-
task.call(global, function(){
|
|
109
|
+
var onHandleUnhandled = function (promise) {
|
|
110
|
+
task.call(global, function () {
|
|
138
111
|
var handler;
|
|
139
|
-
if(isNode){
|
|
112
|
+
if (isNode) {
|
|
140
113
|
process.emit('rejectionHandled', promise);
|
|
141
|
-
} else if(handler = global.onrejectionhandled){
|
|
142
|
-
handler({promise: promise, reason: promise._v});
|
|
114
|
+
} else if (handler = global.onrejectionhandled) {
|
|
115
|
+
handler({ promise: promise, reason: promise._v });
|
|
143
116
|
}
|
|
144
117
|
});
|
|
145
118
|
};
|
|
146
|
-
var $reject = function(value){
|
|
119
|
+
var $reject = function (value) {
|
|
147
120
|
var promise = this;
|
|
148
|
-
if(promise._d)return;
|
|
121
|
+
if (promise._d) return;
|
|
149
122
|
promise._d = true;
|
|
150
123
|
promise = promise._w || promise; // unwrap
|
|
151
124
|
promise._v = value;
|
|
152
125
|
promise._s = 2;
|
|
153
|
-
if(!promise._a)promise._a = promise._c.slice();
|
|
126
|
+
if (!promise._a) promise._a = promise._c.slice();
|
|
154
127
|
notify(promise, true);
|
|
155
128
|
};
|
|
156
|
-
var $resolve = function(value){
|
|
157
|
-
var promise = this
|
|
158
|
-
|
|
159
|
-
if(promise._d)return;
|
|
129
|
+
var $resolve = function (value) {
|
|
130
|
+
var promise = this;
|
|
131
|
+
var then;
|
|
132
|
+
if (promise._d) return;
|
|
160
133
|
promise._d = true;
|
|
161
134
|
promise = promise._w || promise; // unwrap
|
|
162
135
|
try {
|
|
163
|
-
if(promise === value)throw TypeError("Promise can't be resolved itself");
|
|
164
|
-
if(then = isThenable(value)){
|
|
165
|
-
microtask(function(){
|
|
166
|
-
var wrapper = {_w: promise, _d: false}; // wrap
|
|
136
|
+
if (promise === value) throw TypeError("Promise can't be resolved itself");
|
|
137
|
+
if (then = isThenable(value)) {
|
|
138
|
+
microtask(function () {
|
|
139
|
+
var wrapper = { _w: promise, _d: false }; // wrap
|
|
167
140
|
try {
|
|
168
141
|
then.call(value, ctx($resolve, wrapper, 1), ctx($reject, wrapper, 1));
|
|
169
|
-
} catch(e){
|
|
142
|
+
} catch (e) {
|
|
170
143
|
$reject.call(wrapper, e);
|
|
171
144
|
}
|
|
172
145
|
});
|
|
@@ -175,25 +148,26 @@ var $resolve = function(value){
|
|
|
175
148
|
promise._s = 1;
|
|
176
149
|
notify(promise, false);
|
|
177
150
|
}
|
|
178
|
-
} catch(e){
|
|
179
|
-
$reject.call({_w: promise, _d: false}, e); // wrap
|
|
151
|
+
} catch (e) {
|
|
152
|
+
$reject.call({ _w: promise, _d: false }, e); // wrap
|
|
180
153
|
}
|
|
181
154
|
};
|
|
182
155
|
|
|
183
156
|
// constructor polyfill
|
|
184
|
-
if(!USE_NATIVE){
|
|
157
|
+
if (!USE_NATIVE) {
|
|
185
158
|
// 25.4.3.1 Promise(executor)
|
|
186
|
-
$Promise = function Promise(executor){
|
|
159
|
+
$Promise = function Promise(executor) {
|
|
187
160
|
anInstance(this, $Promise, PROMISE, '_h');
|
|
188
161
|
aFunction(executor);
|
|
189
162
|
Internal.call(this);
|
|
190
163
|
try {
|
|
191
164
|
executor(ctx($resolve, this, 1), ctx($reject, this, 1));
|
|
192
|
-
} catch(err){
|
|
165
|
+
} catch (err) {
|
|
193
166
|
$reject.call(this, err);
|
|
194
167
|
}
|
|
195
168
|
};
|
|
196
|
-
|
|
169
|
+
// eslint-disable-next-line no-unused-vars
|
|
170
|
+
Internal = function Promise(executor) {
|
|
197
171
|
this._c = []; // <- awaiting reactions
|
|
198
172
|
this._a = undefined; // <- checked in isUnhandled reactions
|
|
199
173
|
this._s = 0; // <- state
|
|
@@ -204,30 +178,35 @@ if(!USE_NATIVE){
|
|
|
204
178
|
};
|
|
205
179
|
Internal.prototype = require('./_redefine-all')($Promise.prototype, {
|
|
206
180
|
// 25.4.5.3 Promise.prototype.then(onFulfilled, onRejected)
|
|
207
|
-
then: function then(onFulfilled, onRejected){
|
|
208
|
-
var reaction
|
|
209
|
-
reaction.ok
|
|
210
|
-
reaction.fail
|
|
181
|
+
then: function then(onFulfilled, onRejected) {
|
|
182
|
+
var reaction = newPromiseCapability(speciesConstructor(this, $Promise));
|
|
183
|
+
reaction.ok = typeof onFulfilled == 'function' ? onFulfilled : true;
|
|
184
|
+
reaction.fail = typeof onRejected == 'function' && onRejected;
|
|
211
185
|
reaction.domain = isNode ? process.domain : undefined;
|
|
212
186
|
this._c.push(reaction);
|
|
213
|
-
if(this._a)this._a.push(reaction);
|
|
214
|
-
if(this._s)notify(this, false);
|
|
187
|
+
if (this._a) this._a.push(reaction);
|
|
188
|
+
if (this._s) notify(this, false);
|
|
215
189
|
return reaction.promise;
|
|
216
190
|
},
|
|
217
191
|
// 25.4.5.1 Promise.prototype.catch(onRejected)
|
|
218
|
-
'catch': function(onRejected){
|
|
192
|
+
'catch': function (onRejected) {
|
|
219
193
|
return this.then(undefined, onRejected);
|
|
220
194
|
}
|
|
221
195
|
});
|
|
222
|
-
|
|
223
|
-
var promise
|
|
196
|
+
OwnPromiseCapability = function () {
|
|
197
|
+
var promise = new Internal();
|
|
224
198
|
this.promise = promise;
|
|
225
199
|
this.resolve = ctx($resolve, promise, 1);
|
|
226
|
-
this.reject
|
|
200
|
+
this.reject = ctx($reject, promise, 1);
|
|
201
|
+
};
|
|
202
|
+
newPromiseCapabilityModule.f = newPromiseCapability = function (C) {
|
|
203
|
+
return C === $Promise || C === Wrapper
|
|
204
|
+
? new OwnPromiseCapability(C)
|
|
205
|
+
: newGenericPromiseCapability(C);
|
|
227
206
|
};
|
|
228
207
|
}
|
|
229
208
|
|
|
230
|
-
$export($export.G + $export.W + $export.F * !USE_NATIVE, {Promise: $Promise});
|
|
209
|
+
$export($export.G + $export.W + $export.F * !USE_NATIVE, { Promise: $Promise });
|
|
231
210
|
require('./_set-to-string-tag')($Promise, PROMISE);
|
|
232
211
|
require('./_set-species')(PROMISE);
|
|
233
212
|
Wrapper = require('./_core')[PROMISE];
|
|
@@ -235,65 +214,60 @@ Wrapper = require('./_core')[PROMISE];
|
|
|
235
214
|
// statics
|
|
236
215
|
$export($export.S + $export.F * !USE_NATIVE, PROMISE, {
|
|
237
216
|
// 25.4.4.5 Promise.reject(r)
|
|
238
|
-
reject: function reject(r){
|
|
239
|
-
var capability = newPromiseCapability(this)
|
|
240
|
-
|
|
217
|
+
reject: function reject(r) {
|
|
218
|
+
var capability = newPromiseCapability(this);
|
|
219
|
+
var $$reject = capability.reject;
|
|
241
220
|
$$reject(r);
|
|
242
221
|
return capability.promise;
|
|
243
222
|
}
|
|
244
223
|
});
|
|
245
224
|
$export($export.S + $export.F * (LIBRARY || !USE_NATIVE), PROMISE, {
|
|
246
225
|
// 25.4.4.6 Promise.resolve(x)
|
|
247
|
-
resolve: function resolve(x){
|
|
248
|
-
|
|
249
|
-
if(x instanceof $Promise && sameConstructor(x.constructor, this))return x;
|
|
250
|
-
var capability = newPromiseCapability(this)
|
|
251
|
-
, $$resolve = capability.resolve;
|
|
252
|
-
$$resolve(x);
|
|
253
|
-
return capability.promise;
|
|
226
|
+
resolve: function resolve(x) {
|
|
227
|
+
return promiseResolve(LIBRARY && this === Wrapper ? $Promise : this, x);
|
|
254
228
|
}
|
|
255
229
|
});
|
|
256
|
-
$export($export.S + $export.F * !(USE_NATIVE && require('./_iter-detect')(function(iter){
|
|
230
|
+
$export($export.S + $export.F * !(USE_NATIVE && require('./_iter-detect')(function (iter) {
|
|
257
231
|
$Promise.all(iter)['catch'](empty);
|
|
258
232
|
})), PROMISE, {
|
|
259
233
|
// 25.4.4.1 Promise.all(iterable)
|
|
260
|
-
all: function all(iterable){
|
|
261
|
-
var C
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
var
|
|
266
|
-
var values
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
forOf(iterable, false, function(promise){
|
|
270
|
-
var $index
|
|
271
|
-
|
|
234
|
+
all: function all(iterable) {
|
|
235
|
+
var C = this;
|
|
236
|
+
var capability = newPromiseCapability(C);
|
|
237
|
+
var resolve = capability.resolve;
|
|
238
|
+
var reject = capability.reject;
|
|
239
|
+
var result = perform(function () {
|
|
240
|
+
var values = [];
|
|
241
|
+
var index = 0;
|
|
242
|
+
var remaining = 1;
|
|
243
|
+
forOf(iterable, false, function (promise) {
|
|
244
|
+
var $index = index++;
|
|
245
|
+
var alreadyCalled = false;
|
|
272
246
|
values.push(undefined);
|
|
273
247
|
remaining++;
|
|
274
|
-
C.resolve(promise).then(function(value){
|
|
275
|
-
if(alreadyCalled)return;
|
|
276
|
-
alreadyCalled
|
|
248
|
+
C.resolve(promise).then(function (value) {
|
|
249
|
+
if (alreadyCalled) return;
|
|
250
|
+
alreadyCalled = true;
|
|
277
251
|
values[$index] = value;
|
|
278
252
|
--remaining || resolve(values);
|
|
279
253
|
}, reject);
|
|
280
254
|
});
|
|
281
255
|
--remaining || resolve(values);
|
|
282
256
|
});
|
|
283
|
-
if(
|
|
257
|
+
if (result.e) reject(result.v);
|
|
284
258
|
return capability.promise;
|
|
285
259
|
},
|
|
286
260
|
// 25.4.4.4 Promise.race(iterable)
|
|
287
|
-
race: function race(iterable){
|
|
288
|
-
var C
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
var
|
|
292
|
-
forOf(iterable, false, function(promise){
|
|
261
|
+
race: function race(iterable) {
|
|
262
|
+
var C = this;
|
|
263
|
+
var capability = newPromiseCapability(C);
|
|
264
|
+
var reject = capability.reject;
|
|
265
|
+
var result = perform(function () {
|
|
266
|
+
forOf(iterable, false, function (promise) {
|
|
293
267
|
C.resolve(promise).then(capability.resolve, reject);
|
|
294
268
|
});
|
|
295
269
|
});
|
|
296
|
-
if(
|
|
270
|
+
if (result.e) reject(result.v);
|
|
297
271
|
return capability.promise;
|
|
298
272
|
}
|
|
299
|
-
});
|
|
273
|
+
});
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
// 26.1.1 Reflect.apply(target, thisArgument, argumentsList)
|
|
2
|
-
var $export
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
var $export = require('./_export');
|
|
3
|
+
var aFunction = require('./_a-function');
|
|
4
|
+
var anObject = require('./_an-object');
|
|
5
|
+
var rApply = (require('./_global').Reflect || {}).apply;
|
|
6
|
+
var fApply = Function.apply;
|
|
7
7
|
// MS Edge argumentsList argument is optional
|
|
8
|
-
$export($export.S + $export.F * !require('./_fails')(function(){
|
|
9
|
-
rApply(function(){});
|
|
8
|
+
$export($export.S + $export.F * !require('./_fails')(function () {
|
|
9
|
+
rApply(function () { /* empty */ });
|
|
10
10
|
}), 'Reflect', {
|
|
11
|
-
apply: function apply(target, thisArgument, argumentsList){
|
|
12
|
-
var T = aFunction(target)
|
|
13
|
-
|
|
11
|
+
apply: function apply(target, thisArgument, argumentsList) {
|
|
12
|
+
var T = aFunction(target);
|
|
13
|
+
var L = anObject(argumentsList);
|
|
14
14
|
return rApply ? rApply(T, thisArgument, L) : fApply.call(T, thisArgument, L);
|
|
15
15
|
}
|
|
16
|
-
});
|
|
16
|
+
});
|
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
// 26.1.2 Reflect.construct(target, argumentsList [, newTarget])
|
|
2
|
-
var $export
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
2
|
+
var $export = require('./_export');
|
|
3
|
+
var create = require('./_object-create');
|
|
4
|
+
var aFunction = require('./_a-function');
|
|
5
|
+
var anObject = require('./_an-object');
|
|
6
|
+
var isObject = require('./_is-object');
|
|
7
|
+
var fails = require('./_fails');
|
|
8
|
+
var bind = require('./_bind');
|
|
9
|
+
var rConstruct = (require('./_global').Reflect || {}).construct;
|
|
10
10
|
|
|
11
11
|
// MS Edge supports only 2 arguments and argumentsList argument is optional
|
|
12
12
|
// FF Nightly sets third argument as `new.target`, but does not create `this` from it
|
|
13
|
-
var NEW_TARGET_BUG = fails(function(){
|
|
14
|
-
function F(){}
|
|
15
|
-
return !(rConstruct(function(){}, [], F) instanceof F);
|
|
13
|
+
var NEW_TARGET_BUG = fails(function () {
|
|
14
|
+
function F() { /* empty */ }
|
|
15
|
+
return !(rConstruct(function () { /* empty */ }, [], F) instanceof F);
|
|
16
16
|
});
|
|
17
|
-
var ARGS_BUG = !fails(function(){
|
|
18
|
-
rConstruct(function(){});
|
|
17
|
+
var ARGS_BUG = !fails(function () {
|
|
18
|
+
rConstruct(function () { /* empty */ });
|
|
19
19
|
});
|
|
20
20
|
|
|
21
21
|
$export($export.S + $export.F * (NEW_TARGET_BUG || ARGS_BUG), 'Reflect', {
|
|
22
|
-
construct: function construct(Target, args
|
|
22
|
+
construct: function construct(Target, args /* , newTarget */) {
|
|
23
23
|
aFunction(Target);
|
|
24
24
|
anObject(args);
|
|
25
25
|
var newTarget = arguments.length < 3 ? Target : aFunction(arguments[2]);
|
|
26
|
-
if(ARGS_BUG && !NEW_TARGET_BUG)return rConstruct(Target, args, newTarget);
|
|
27
|
-
if(Target == newTarget){
|
|
26
|
+
if (ARGS_BUG && !NEW_TARGET_BUG) return rConstruct(Target, args, newTarget);
|
|
27
|
+
if (Target == newTarget) {
|
|
28
28
|
// w/o altered newTarget, optimization for 0-4 arguments
|
|
29
|
-
switch(args.length){
|
|
30
|
-
case 0: return new Target;
|
|
29
|
+
switch (args.length) {
|
|
30
|
+
case 0: return new Target();
|
|
31
31
|
case 1: return new Target(args[0]);
|
|
32
32
|
case 2: return new Target(args[0], args[1]);
|
|
33
33
|
case 3: return new Target(args[0], args[1], args[2]);
|
|
@@ -36,12 +36,12 @@ $export($export.S + $export.F * (NEW_TARGET_BUG || ARGS_BUG), 'Reflect', {
|
|
|
36
36
|
// w/o altered newTarget, lot of arguments case
|
|
37
37
|
var $args = [null];
|
|
38
38
|
$args.push.apply($args, args);
|
|
39
|
-
return new (bind.apply(Target, $args));
|
|
39
|
+
return new (bind.apply(Target, $args))();
|
|
40
40
|
}
|
|
41
41
|
// with altered newTarget, not support built-in constructors
|
|
42
|
-
var proto
|
|
43
|
-
|
|
44
|
-
|
|
42
|
+
var proto = newTarget.prototype;
|
|
43
|
+
var instance = create(isObject(proto) ? proto : Object.prototype);
|
|
44
|
+
var result = Function.apply.call(Target, instance, args);
|
|
45
45
|
return isObject(result) ? result : instance;
|
|
46
46
|
}
|
|
47
|
-
});
|
|
47
|
+
});
|
|
@@ -1,22 +1,23 @@
|
|
|
1
1
|
// 26.1.3 Reflect.defineProperty(target, propertyKey, attributes)
|
|
2
|
-
var dP
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
var dP = require('./_object-dp');
|
|
3
|
+
var $export = require('./_export');
|
|
4
|
+
var anObject = require('./_an-object');
|
|
5
|
+
var toPrimitive = require('./_to-primitive');
|
|
6
6
|
|
|
7
7
|
// MS Edge has broken Reflect.defineProperty - throwing instead of returning false
|
|
8
|
-
$export($export.S + $export.F * require('./_fails')(function(){
|
|
9
|
-
|
|
8
|
+
$export($export.S + $export.F * require('./_fails')(function () {
|
|
9
|
+
// eslint-disable-next-line no-undef
|
|
10
|
+
Reflect.defineProperty(dP.f({}, 1, { value: 1 }), 1, { value: 2 });
|
|
10
11
|
}), 'Reflect', {
|
|
11
|
-
defineProperty: function defineProperty(target, propertyKey, attributes){
|
|
12
|
+
defineProperty: function defineProperty(target, propertyKey, attributes) {
|
|
12
13
|
anObject(target);
|
|
13
14
|
propertyKey = toPrimitive(propertyKey, true);
|
|
14
15
|
anObject(attributes);
|
|
15
16
|
try {
|
|
16
17
|
dP.f(target, propertyKey, attributes);
|
|
17
18
|
return true;
|
|
18
|
-
} catch(e){
|
|
19
|
+
} catch (e) {
|
|
19
20
|
return false;
|
|
20
21
|
}
|
|
21
22
|
}
|
|
22
|
-
});
|
|
23
|
+
});
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
// 26.1.4 Reflect.deleteProperty(target, propertyKey)
|
|
2
|
-
var $export
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
var $export = require('./_export');
|
|
3
|
+
var gOPD = require('./_object-gopd').f;
|
|
4
|
+
var anObject = require('./_an-object');
|
|
5
5
|
|
|
6
6
|
$export($export.S, 'Reflect', {
|
|
7
|
-
deleteProperty: function deleteProperty(target, propertyKey){
|
|
7
|
+
deleteProperty: function deleteProperty(target, propertyKey) {
|
|
8
8
|
var desc = gOPD(anObject(target), propertyKey);
|
|
9
9
|
return desc && !desc.configurable ? false : delete target[propertyKey];
|
|
10
10
|
}
|
|
11
|
-
});
|
|
11
|
+
});
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
// 26.1.5 Reflect.enumerate(target)
|
|
3
|
-
var $export
|
|
4
|
-
|
|
5
|
-
var Enumerate = function(iterated){
|
|
3
|
+
var $export = require('./_export');
|
|
4
|
+
var anObject = require('./_an-object');
|
|
5
|
+
var Enumerate = function (iterated) {
|
|
6
6
|
this._t = anObject(iterated); // target
|
|
7
7
|
this._i = 0; // next index
|
|
8
|
-
var keys = this._k = []
|
|
9
|
-
|
|
10
|
-
for(key in iterated)keys.push(key);
|
|
8
|
+
var keys = this._k = []; // keys
|
|
9
|
+
var key;
|
|
10
|
+
for (key in iterated) keys.push(key);
|
|
11
11
|
};
|
|
12
|
-
require('./_iter-create')(Enumerate, 'Object', function(){
|
|
13
|
-
var that = this
|
|
14
|
-
|
|
15
|
-
|
|
12
|
+
require('./_iter-create')(Enumerate, 'Object', function () {
|
|
13
|
+
var that = this;
|
|
14
|
+
var keys = that._k;
|
|
15
|
+
var key;
|
|
16
16
|
do {
|
|
17
|
-
if(that._i >= keys.length)return {value: undefined, done: true};
|
|
18
|
-
} while(!((key = keys[that._i++]) in that._t));
|
|
19
|
-
return {value: key, done: false};
|
|
17
|
+
if (that._i >= keys.length) return { value: undefined, done: true };
|
|
18
|
+
} while (!((key = keys[that._i++]) in that._t));
|
|
19
|
+
return { value: key, done: false };
|
|
20
20
|
});
|
|
21
21
|
|
|
22
22
|
$export($export.S, 'Reflect', {
|
|
23
|
-
enumerate: function enumerate(target){
|
|
23
|
+
enumerate: function enumerate(target) {
|
|
24
24
|
return new Enumerate(target);
|
|
25
25
|
}
|
|
26
|
-
});
|
|
26
|
+
});
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// 26.1.7 Reflect.getOwnPropertyDescriptor(target, propertyKey)
|
|
2
|
-
var gOPD
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
var gOPD = require('./_object-gopd');
|
|
3
|
+
var $export = require('./_export');
|
|
4
|
+
var anObject = require('./_an-object');
|
|
5
5
|
|
|
6
6
|
$export($export.S, 'Reflect', {
|
|
7
|
-
getOwnPropertyDescriptor: function getOwnPropertyDescriptor(target, propertyKey){
|
|
7
|
+
getOwnPropertyDescriptor: function getOwnPropertyDescriptor(target, propertyKey) {
|
|
8
8
|
return gOPD.f(anObject(target), propertyKey);
|
|
9
9
|
}
|
|
10
|
-
});
|
|
10
|
+
});
|