core-js 3.0.0-beta.9 → 3.0.0

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.
Files changed (526) hide show
  1. package/README.md +18 -0
  2. package/es/array/flat-map.js +4 -0
  3. package/es/array/flat.js +4 -0
  4. package/es/array/index.js +21 -17
  5. package/es/array/virtual/flat-map.js +4 -0
  6. package/es/array/virtual/flat.js +4 -0
  7. package/es/array/virtual/index.js +7 -2
  8. package/es/index.js +7 -0
  9. package/es/instance/bind.js +7 -0
  10. package/es/instance/code-point-at.js +8 -0
  11. package/es/instance/concat.js +7 -0
  12. package/es/instance/copy-within.js +7 -0
  13. package/es/instance/ends-with.js +8 -0
  14. package/es/instance/entries.js +7 -0
  15. package/es/instance/every.js +7 -0
  16. package/es/instance/fill.js +7 -0
  17. package/es/instance/filter.js +7 -0
  18. package/es/instance/find-index.js +7 -0
  19. package/es/instance/find.js +7 -0
  20. package/es/instance/flags.js +6 -0
  21. package/es/instance/flat-map.js +7 -0
  22. package/es/instance/flat.js +7 -0
  23. package/es/instance/for-each.js +7 -0
  24. package/es/instance/includes.js +12 -0
  25. package/es/instance/index-of.js +7 -0
  26. package/es/instance/keys.js +7 -0
  27. package/es/instance/last-index-of.js +7 -0
  28. package/es/instance/map.js +7 -0
  29. package/es/instance/pad-end.js +8 -0
  30. package/es/instance/pad-start.js +8 -0
  31. package/es/instance/reduce-right.js +7 -0
  32. package/es/instance/reduce.js +7 -0
  33. package/es/instance/repeat.js +8 -0
  34. package/es/instance/reverse.js +7 -0
  35. package/es/instance/slice.js +7 -0
  36. package/es/instance/some.js +7 -0
  37. package/es/instance/sort.js +7 -0
  38. package/es/instance/splice.js +7 -0
  39. package/es/instance/starts-with.js +8 -0
  40. package/es/instance/trim-end.js +8 -0
  41. package/es/instance/trim-left.js +8 -0
  42. package/es/instance/trim-right.js +8 -0
  43. package/es/instance/trim-start.js +8 -0
  44. package/es/instance/trim.js +8 -0
  45. package/es/instance/values.js +7 -0
  46. package/es/object/from-entries.js +4 -0
  47. package/es/object/index.js +1 -0
  48. package/es/string/index.js +2 -0
  49. package/es/string/trim-end.js +3 -0
  50. package/es/string/trim-left.js +3 -0
  51. package/es/string/trim-right.js +3 -0
  52. package/es/string/trim-start.js +3 -0
  53. package/es/string/virtual/index.js +2 -0
  54. package/es/string/virtual/trim-end.js +3 -0
  55. package/es/string/virtual/trim-left.js +3 -0
  56. package/es/string/virtual/trim-right.js +3 -0
  57. package/es/string/virtual/trim-start.js +3 -0
  58. package/features/aggregate-error.js +5 -0
  59. package/features/array/flat-map.js +1 -4
  60. package/features/array/flat.js +1 -4
  61. package/features/array/index.js +0 -4
  62. package/features/array/virtual/flat-map.js +1 -4
  63. package/features/array/virtual/flat.js +1 -4
  64. package/features/array/virtual/index.js +0 -5
  65. package/features/clear-immediate.js +1 -3
  66. package/features/index.js +1 -0
  67. package/features/instance/at.js +8 -0
  68. package/features/instance/bind.js +1 -0
  69. package/features/instance/code-point-at.js +1 -0
  70. package/features/instance/code-points.js +8 -0
  71. package/features/instance/concat.js +1 -0
  72. package/features/instance/copy-within.js +1 -0
  73. package/features/instance/ends-with.js +1 -0
  74. package/features/instance/entries.js +1 -0
  75. package/features/instance/every.js +1 -0
  76. package/features/instance/fill.js +1 -0
  77. package/features/instance/filter.js +1 -0
  78. package/features/instance/find-index.js +1 -0
  79. package/features/instance/find.js +1 -0
  80. package/features/instance/flags.js +1 -0
  81. package/features/instance/flat-map.js +1 -0
  82. package/features/instance/flat.js +1 -0
  83. package/features/instance/for-each.js +1 -0
  84. package/features/instance/includes.js +1 -0
  85. package/features/instance/index-of.js +1 -0
  86. package/features/instance/keys.js +1 -0
  87. package/features/instance/last-index-of.js +1 -0
  88. package/features/instance/map.js +1 -0
  89. package/features/instance/match-all.js +8 -0
  90. package/features/instance/pad-end.js +1 -0
  91. package/features/instance/pad-start.js +1 -0
  92. package/features/instance/reduce-right.js +1 -0
  93. package/features/instance/reduce.js +1 -0
  94. package/features/instance/repeat.js +1 -0
  95. package/features/instance/replace-all.js +8 -0
  96. package/features/instance/reverse.js +1 -0
  97. package/features/instance/slice.js +1 -0
  98. package/features/instance/some.js +1 -0
  99. package/features/instance/sort.js +1 -0
  100. package/features/instance/splice.js +1 -0
  101. package/features/instance/starts-with.js +1 -0
  102. package/features/instance/trim-end.js +1 -0
  103. package/features/instance/trim-left.js +1 -0
  104. package/features/instance/trim-right.js +1 -0
  105. package/features/instance/trim-start.js +1 -0
  106. package/features/instance/trim.js +1 -0
  107. package/features/instance/values.js +1 -0
  108. package/features/map/index.js +1 -0
  109. package/features/map/update.js +4 -0
  110. package/features/object/from-entries.js +1 -4
  111. package/features/object/index.js +0 -2
  112. package/features/promise/any.js +10 -0
  113. package/features/promise/index.js +2 -0
  114. package/features/queue-microtask.js +1 -3
  115. package/features/reflect/delete-property.js +1 -3
  116. package/features/set-immediate.js +1 -3
  117. package/features/set-interval.js +1 -3
  118. package/features/set-timeout.js +1 -3
  119. package/features/string/index.js +0 -2
  120. package/features/string/trim-end.js +1 -3
  121. package/features/string/trim-left.js +1 -3
  122. package/features/string/trim-right.js +1 -3
  123. package/features/string/trim-start.js +1 -3
  124. package/features/string/virtual/index.js +0 -2
  125. package/features/string/virtual/trim-end.js +1 -3
  126. package/features/string/virtual/trim-left.js +1 -3
  127. package/features/string/virtual/trim-right.js +1 -3
  128. package/features/string/virtual/trim-start.js +1 -3
  129. package/internals/array-buffer.js +1 -1
  130. package/internals/export.js +18 -13
  131. package/internals/global.js +2 -2
  132. package/internals/internal-state.js +3 -4
  133. package/internals/microtask.js +7 -4
  134. package/internals/native-weak-map.js +4 -0
  135. package/internals/redefine.js +4 -2
  136. package/internals/shared.js +1 -1
  137. package/modules/{esnext.array.flat-map.js → es.array.flat-map.js} +0 -0
  138. package/modules/{esnext.array.flat.js → es.array.flat.js} +0 -0
  139. package/modules/{esnext.array.unscopables.flat-map.js → es.array.unscopables.flat-map.js} +0 -0
  140. package/modules/{esnext.array.unscopables.flat.js → es.array.unscopables.flat.js} +0 -0
  141. package/modules/{esnext.object.from-entries.js → es.object.from-entries.js} +0 -0
  142. package/modules/es.object.get-own-property-names.js +1 -1
  143. package/modules/es.promise.js +9 -0
  144. package/modules/es.string.split.js +2 -2
  145. package/modules/{esnext.string.trim-end.js → es.string.trim-end.js} +0 -0
  146. package/modules/{esnext.string.trim-start.js → es.string.trim-start.js} +0 -0
  147. package/modules/es.weak-map.js +8 -6
  148. package/modules/esnext.aggregate-error.js +27 -0
  149. package/modules/esnext.map.delete-all.js +1 -1
  150. package/modules/esnext.map.every.js +1 -1
  151. package/modules/esnext.map.filter.js +1 -1
  152. package/modules/esnext.map.find-key.js +1 -1
  153. package/modules/esnext.map.find.js +1 -1
  154. package/modules/esnext.map.group-by.js +8 -3
  155. package/modules/esnext.map.includes.js +1 -1
  156. package/modules/esnext.map.key-by.js +5 -2
  157. package/modules/esnext.map.key-of.js +1 -1
  158. package/modules/esnext.map.map-keys.js +1 -1
  159. package/modules/esnext.map.map-values.js +1 -1
  160. package/modules/esnext.map.merge.js +1 -1
  161. package/modules/esnext.map.reduce.js +1 -1
  162. package/modules/esnext.map.some.js +1 -1
  163. package/modules/esnext.map.update.js +19 -0
  164. package/modules/esnext.promise.any.js +42 -0
  165. package/modules/esnext.set.add-all.js +1 -1
  166. package/modules/esnext.set.delete-all.js +1 -1
  167. package/modules/esnext.set.every.js +1 -1
  168. package/modules/esnext.set.filter.js +1 -1
  169. package/modules/esnext.set.find.js +1 -1
  170. package/modules/esnext.set.join.js +1 -1
  171. package/modules/esnext.set.map.js +1 -1
  172. package/modules/esnext.set.reduce.js +1 -1
  173. package/modules/esnext.set.some.js +1 -1
  174. package/modules/esnext.string.match-all.js +2 -2
  175. package/modules/esnext.string.replace-all.js +13 -4
  176. package/modules/esnext.weak-map.delete-all.js +1 -1
  177. package/modules/esnext.weak-set.add-all.js +1 -1
  178. package/modules/esnext.weak-set.delete-all.js +1 -1
  179. package/modules/web.immediate.js +2 -1
  180. package/modules/web.queue-microtask.js +1 -1
  181. package/modules/web.url.js +1 -1
  182. package/package.json +1 -1
  183. package/proposals/collection-methods.js +1 -0
  184. package/proposals/{richer-keys.js → keys-composition.js} +0 -0
  185. package/proposals/promise-any.js +2 -0
  186. package/stable/README.md +1 -0
  187. package/stable/array/concat.js +1 -0
  188. package/stable/array/copy-within.js +1 -0
  189. package/stable/array/entries.js +1 -0
  190. package/stable/array/every.js +1 -0
  191. package/stable/array/fill.js +1 -0
  192. package/stable/array/filter.js +1 -0
  193. package/stable/array/find-index.js +1 -0
  194. package/stable/array/find.js +1 -0
  195. package/stable/array/flat-map.js +1 -0
  196. package/stable/array/flat.js +1 -0
  197. package/stable/array/for-each.js +1 -0
  198. package/stable/array/from.js +1 -0
  199. package/stable/array/includes.js +1 -0
  200. package/stable/array/index-of.js +1 -0
  201. package/stable/array/index.js +1 -0
  202. package/stable/array/is-array.js +1 -0
  203. package/stable/array/iterator.js +1 -0
  204. package/stable/array/join.js +1 -0
  205. package/stable/array/keys.js +1 -0
  206. package/stable/array/last-index-of.js +1 -0
  207. package/stable/array/map.js +1 -0
  208. package/stable/array/of.js +1 -0
  209. package/stable/array/reduce-right.js +1 -0
  210. package/stable/array/reduce.js +1 -0
  211. package/stable/array/reverse.js +1 -0
  212. package/stable/array/slice.js +1 -0
  213. package/stable/array/some.js +1 -0
  214. package/stable/array/sort.js +1 -0
  215. package/stable/array/splice.js +1 -0
  216. package/stable/array/values.js +1 -0
  217. package/stable/array/virtual/concat.js +1 -0
  218. package/stable/array/virtual/copy-within.js +1 -0
  219. package/stable/array/virtual/entries.js +1 -0
  220. package/stable/array/virtual/every.js +1 -0
  221. package/stable/array/virtual/fill.js +1 -0
  222. package/stable/array/virtual/filter.js +1 -0
  223. package/stable/array/virtual/find-index.js +1 -0
  224. package/stable/array/virtual/find.js +1 -0
  225. package/stable/array/virtual/flat-map.js +1 -0
  226. package/stable/array/virtual/flat.js +1 -0
  227. package/stable/array/virtual/for-each.js +1 -0
  228. package/stable/array/virtual/includes.js +1 -0
  229. package/stable/array/virtual/index-of.js +1 -0
  230. package/stable/array/virtual/index.js +1 -0
  231. package/stable/array/virtual/iterator.js +1 -0
  232. package/stable/array/virtual/join.js +1 -0
  233. package/stable/array/virtual/keys.js +1 -0
  234. package/stable/array/virtual/last-index-of.js +1 -0
  235. package/stable/array/virtual/map.js +1 -0
  236. package/stable/array/virtual/reduce-right.js +1 -0
  237. package/stable/array/virtual/reduce.js +1 -0
  238. package/stable/array/virtual/reverse.js +1 -0
  239. package/stable/array/virtual/slice.js +1 -0
  240. package/stable/array/virtual/some.js +1 -0
  241. package/stable/array/virtual/sort.js +1 -0
  242. package/stable/array/virtual/splice.js +1 -0
  243. package/stable/array/virtual/values.js +1 -0
  244. package/stable/array-buffer/constructor.js +1 -0
  245. package/stable/array-buffer/index.js +1 -0
  246. package/stable/array-buffer/is-view.js +1 -0
  247. package/stable/array-buffer/slice.js +1 -0
  248. package/stable/clear-immediate.js +3 -0
  249. package/stable/data-view/index.js +1 -0
  250. package/stable/date/index.js +1 -0
  251. package/stable/date/now.js +1 -0
  252. package/stable/date/to-iso-string.js +1 -0
  253. package/stable/date/to-json.js +1 -0
  254. package/stable/date/to-primitive.js +1 -0
  255. package/stable/date/to-string.js +1 -0
  256. package/stable/dom-collections/for-each.js +3 -0
  257. package/stable/dom-collections/index.js +11 -0
  258. package/stable/dom-collections/iterator.js +3 -0
  259. package/stable/function/bind.js +1 -0
  260. package/stable/function/has-instance.js +1 -0
  261. package/stable/function/index.js +1 -0
  262. package/stable/function/name.js +1 -0
  263. package/stable/function/virtual/bind.js +1 -0
  264. package/stable/function/virtual/index.js +1 -0
  265. package/stable/global-this.js +3 -0
  266. package/stable/index.js +4 -0
  267. package/stable/instance/bind.js +1 -0
  268. package/stable/instance/code-point-at.js +1 -0
  269. package/stable/instance/concat.js +1 -0
  270. package/stable/instance/copy-within.js +1 -0
  271. package/stable/instance/ends-with.js +1 -0
  272. package/stable/instance/entries.js +16 -0
  273. package/stable/instance/every.js +1 -0
  274. package/stable/instance/fill.js +1 -0
  275. package/stable/instance/filter.js +1 -0
  276. package/stable/instance/find-index.js +1 -0
  277. package/stable/instance/find.js +1 -0
  278. package/stable/instance/flags.js +1 -0
  279. package/stable/instance/flat-map.js +1 -0
  280. package/stable/instance/flat.js +1 -0
  281. package/stable/instance/for-each.js +16 -0
  282. package/stable/instance/includes.js +1 -0
  283. package/stable/instance/index-of.js +1 -0
  284. package/stable/instance/keys.js +16 -0
  285. package/stable/instance/last-index-of.js +1 -0
  286. package/stable/instance/map.js +1 -0
  287. package/stable/instance/pad-end.js +1 -0
  288. package/stable/instance/pad-start.js +1 -0
  289. package/stable/instance/reduce-right.js +1 -0
  290. package/stable/instance/reduce.js +1 -0
  291. package/stable/instance/repeat.js +1 -0
  292. package/stable/instance/reverse.js +1 -0
  293. package/stable/instance/slice.js +1 -0
  294. package/stable/instance/some.js +1 -0
  295. package/stable/instance/sort.js +1 -0
  296. package/stable/instance/splice.js +1 -0
  297. package/stable/instance/starts-with.js +1 -0
  298. package/stable/instance/trim-end.js +1 -0
  299. package/stable/instance/trim-left.js +1 -0
  300. package/stable/instance/trim-right.js +1 -0
  301. package/stable/instance/trim-start.js +1 -0
  302. package/stable/instance/trim.js +1 -0
  303. package/stable/instance/values.js +16 -0
  304. package/stable/json/index.js +1 -0
  305. package/stable/json/stringify.js +1 -0
  306. package/stable/json/to-string-tag.js +1 -0
  307. package/stable/map/index.js +1 -0
  308. package/stable/math/acosh.js +1 -0
  309. package/stable/math/asinh.js +1 -0
  310. package/stable/math/atanh.js +1 -0
  311. package/stable/math/cbrt.js +1 -0
  312. package/stable/math/clz32.js +1 -0
  313. package/stable/math/cosh.js +1 -0
  314. package/stable/math/expm1.js +1 -0
  315. package/stable/math/fround.js +1 -0
  316. package/stable/math/hypot.js +1 -0
  317. package/stable/math/imul.js +1 -0
  318. package/stable/math/index.js +1 -0
  319. package/stable/math/log10.js +1 -0
  320. package/stable/math/log1p.js +1 -0
  321. package/stable/math/log2.js +1 -0
  322. package/stable/math/sign.js +1 -0
  323. package/stable/math/sinh.js +1 -0
  324. package/stable/math/tanh.js +1 -0
  325. package/stable/math/to-string-tag.js +1 -0
  326. package/stable/math/trunc.js +1 -0
  327. package/stable/number/constructor.js +1 -0
  328. package/stable/number/epsilon.js +1 -0
  329. package/stable/number/index.js +1 -0
  330. package/stable/number/is-finite.js +1 -0
  331. package/stable/number/is-integer.js +1 -0
  332. package/stable/number/is-nan.js +1 -0
  333. package/stable/number/is-safe-integer.js +1 -0
  334. package/stable/number/max-safe-integer.js +1 -0
  335. package/stable/number/min-safe-integer.js +1 -0
  336. package/stable/number/parse-float.js +1 -0
  337. package/stable/number/parse-int.js +1 -0
  338. package/stable/number/to-fixed.js +1 -0
  339. package/stable/number/to-precision.js +1 -0
  340. package/stable/number/virtual/index.js +1 -0
  341. package/stable/number/virtual/to-fixed.js +1 -0
  342. package/stable/number/virtual/to-precision.js +1 -0
  343. package/stable/object/assign.js +1 -0
  344. package/stable/object/create.js +1 -0
  345. package/stable/object/define-getter.js +1 -0
  346. package/stable/object/define-properties.js +1 -0
  347. package/stable/object/define-property.js +1 -0
  348. package/stable/object/define-setter.js +1 -0
  349. package/stable/object/entries.js +1 -0
  350. package/stable/object/freeze.js +1 -0
  351. package/stable/object/from-entries.js +1 -0
  352. package/stable/object/get-own-property-descriptor.js +1 -0
  353. package/stable/object/get-own-property-descriptors.js +1 -0
  354. package/stable/object/get-own-property-names.js +1 -0
  355. package/stable/object/get-own-property-symbols.js +1 -0
  356. package/stable/object/get-prototype-of.js +1 -0
  357. package/stable/object/index.js +1 -0
  358. package/stable/object/is-extensible.js +1 -0
  359. package/stable/object/is-frozen.js +1 -0
  360. package/stable/object/is-sealed.js +1 -0
  361. package/stable/object/is.js +1 -0
  362. package/stable/object/keys.js +1 -0
  363. package/stable/object/lookup-getter.js +1 -0
  364. package/stable/object/lookup-setter.js +1 -0
  365. package/stable/object/prevent-extensions.js +1 -0
  366. package/stable/object/seal.js +1 -0
  367. package/stable/object/set-prototype-of.js +1 -0
  368. package/stable/object/to-string.js +1 -0
  369. package/stable/object/values.js +1 -0
  370. package/stable/parse-float.js +1 -0
  371. package/stable/parse-int.js +1 -0
  372. package/stable/promise/finally.js +1 -0
  373. package/stable/promise/index.js +1 -0
  374. package/stable/queue-microtask.js +1 -0
  375. package/stable/reflect/apply.js +1 -0
  376. package/stable/reflect/construct.js +1 -0
  377. package/stable/reflect/define-property.js +1 -0
  378. package/stable/reflect/delete-property.js +1 -0
  379. package/stable/reflect/get-own-property-descriptor.js +1 -0
  380. package/stable/reflect/get-prototype-of.js +1 -0
  381. package/stable/reflect/get.js +1 -0
  382. package/stable/reflect/has.js +1 -0
  383. package/stable/reflect/index.js +1 -0
  384. package/stable/reflect/is-extensible.js +1 -0
  385. package/stable/reflect/own-keys.js +1 -0
  386. package/stable/reflect/prevent-extensions.js +1 -0
  387. package/stable/reflect/set-prototype-of.js +1 -0
  388. package/stable/reflect/set.js +1 -0
  389. package/stable/regexp/constructor.js +1 -0
  390. package/stable/regexp/flags.js +1 -0
  391. package/stable/regexp/index.js +1 -0
  392. package/stable/regexp/match.js +1 -0
  393. package/stable/regexp/replace.js +1 -0
  394. package/stable/regexp/search.js +1 -0
  395. package/stable/regexp/split.js +1 -0
  396. package/stable/regexp/to-string.js +1 -0
  397. package/stable/set/index.js +1 -0
  398. package/stable/set-immediate.js +3 -0
  399. package/stable/set-interval.js +3 -0
  400. package/stable/set-timeout.js +3 -0
  401. package/stable/string/anchor.js +1 -0
  402. package/stable/string/big.js +1 -0
  403. package/stable/string/blink.js +1 -0
  404. package/stable/string/bold.js +1 -0
  405. package/stable/string/code-point-at.js +1 -0
  406. package/stable/string/ends-with.js +1 -0
  407. package/stable/string/fixed.js +1 -0
  408. package/stable/string/fontcolor.js +1 -0
  409. package/stable/string/fontsize.js +1 -0
  410. package/stable/string/from-code-point.js +1 -0
  411. package/stable/string/includes.js +1 -0
  412. package/stable/string/index.js +1 -0
  413. package/stable/string/italics.js +1 -0
  414. package/stable/string/iterator.js +1 -0
  415. package/stable/string/link.js +1 -0
  416. package/stable/string/match.js +1 -0
  417. package/stable/string/pad-end.js +1 -0
  418. package/stable/string/pad-start.js +1 -0
  419. package/stable/string/raw.js +1 -0
  420. package/stable/string/repeat.js +1 -0
  421. package/stable/string/replace.js +1 -0
  422. package/stable/string/search.js +1 -0
  423. package/stable/string/small.js +1 -0
  424. package/stable/string/split.js +1 -0
  425. package/stable/string/starts-with.js +1 -0
  426. package/stable/string/strike.js +1 -0
  427. package/stable/string/sub.js +1 -0
  428. package/stable/string/sup.js +1 -0
  429. package/stable/string/trim-end.js +1 -0
  430. package/stable/string/trim-left.js +1 -0
  431. package/stable/string/trim-right.js +1 -0
  432. package/stable/string/trim-start.js +1 -0
  433. package/stable/string/trim.js +1 -0
  434. package/stable/string/virtual/anchor.js +1 -0
  435. package/stable/string/virtual/big.js +1 -0
  436. package/stable/string/virtual/blink.js +1 -0
  437. package/stable/string/virtual/bold.js +1 -0
  438. package/stable/string/virtual/code-point-at.js +1 -0
  439. package/stable/string/virtual/ends-with.js +1 -0
  440. package/stable/string/virtual/fixed.js +1 -0
  441. package/stable/string/virtual/fontcolor.js +1 -0
  442. package/stable/string/virtual/fontsize.js +1 -0
  443. package/stable/string/virtual/includes.js +1 -0
  444. package/stable/string/virtual/index.js +1 -0
  445. package/stable/string/virtual/italics.js +1 -0
  446. package/stable/string/virtual/iterator.js +1 -0
  447. package/stable/string/virtual/link.js +1 -0
  448. package/stable/string/virtual/pad-end.js +1 -0
  449. package/stable/string/virtual/pad-start.js +1 -0
  450. package/stable/string/virtual/repeat.js +1 -0
  451. package/stable/string/virtual/small.js +1 -0
  452. package/stable/string/virtual/starts-with.js +1 -0
  453. package/stable/string/virtual/strike.js +1 -0
  454. package/stable/string/virtual/sub.js +1 -0
  455. package/stable/string/virtual/sup.js +1 -0
  456. package/stable/string/virtual/trim-end.js +1 -0
  457. package/stable/string/virtual/trim-left.js +1 -0
  458. package/stable/string/virtual/trim-right.js +1 -0
  459. package/stable/string/virtual/trim-start.js +1 -0
  460. package/stable/string/virtual/trim.js +1 -0
  461. package/stable/symbol/async-iterator.js +1 -0
  462. package/stable/symbol/description.js +1 -0
  463. package/stable/symbol/for.js +1 -0
  464. package/stable/symbol/has-instance.js +1 -0
  465. package/stable/symbol/index.js +1 -0
  466. package/stable/symbol/is-concat-spreadable.js +1 -0
  467. package/stable/symbol/iterator.js +1 -0
  468. package/stable/symbol/key-for.js +1 -0
  469. package/stable/symbol/match.js +1 -0
  470. package/stable/symbol/replace.js +1 -0
  471. package/stable/symbol/search.js +1 -0
  472. package/stable/symbol/species.js +1 -0
  473. package/stable/symbol/split.js +1 -0
  474. package/stable/symbol/to-primitive.js +1 -0
  475. package/stable/symbol/to-string-tag.js +1 -0
  476. package/stable/symbol/unscopables.js +1 -0
  477. package/stable/typed-array/copy-within.js +1 -0
  478. package/stable/typed-array/entries.js +1 -0
  479. package/stable/typed-array/every.js +1 -0
  480. package/stable/typed-array/fill.js +1 -0
  481. package/stable/typed-array/filter.js +1 -0
  482. package/stable/typed-array/find-index.js +1 -0
  483. package/stable/typed-array/find.js +1 -0
  484. package/stable/typed-array/float32-array.js +1 -0
  485. package/stable/typed-array/float64-array.js +1 -0
  486. package/stable/typed-array/for-each.js +1 -0
  487. package/stable/typed-array/from.js +1 -0
  488. package/stable/typed-array/includes.js +1 -0
  489. package/stable/typed-array/index-of.js +1 -0
  490. package/stable/typed-array/index.js +1 -0
  491. package/stable/typed-array/int16-array.js +1 -0
  492. package/stable/typed-array/int32-array.js +1 -0
  493. package/stable/typed-array/int8-array.js +1 -0
  494. package/stable/typed-array/iterator.js +1 -0
  495. package/stable/typed-array/join.js +1 -0
  496. package/stable/typed-array/keys.js +1 -0
  497. package/stable/typed-array/last-index-of.js +1 -0
  498. package/stable/typed-array/map.js +1 -0
  499. package/stable/typed-array/of.js +1 -0
  500. package/stable/typed-array/reduce-right.js +1 -0
  501. package/stable/typed-array/reduce.js +1 -0
  502. package/stable/typed-array/reverse.js +1 -0
  503. package/stable/typed-array/set.js +1 -0
  504. package/stable/typed-array/slice.js +1 -0
  505. package/stable/typed-array/some.js +1 -0
  506. package/stable/typed-array/sort.js +1 -0
  507. package/stable/typed-array/subarray.js +1 -0
  508. package/stable/typed-array/to-locale-string.js +1 -0
  509. package/stable/typed-array/to-string.js +1 -0
  510. package/stable/typed-array/uint16-array.js +1 -0
  511. package/stable/typed-array/uint32-array.js +1 -0
  512. package/stable/typed-array/uint8-array.js +1 -0
  513. package/stable/typed-array/uint8-clamped-array.js +1 -0
  514. package/stable/typed-array/values.js +1 -0
  515. package/stable/url/index.js +1 -0
  516. package/stable/url/to-json.js +1 -0
  517. package/stable/url-search-params/index.js +1 -0
  518. package/stable/weak-map/index.js +1 -0
  519. package/stable/weak-set/index.js +1 -0
  520. package/stage/0.js +1 -0
  521. package/stage/1.js +1 -2
  522. package/stage/2.js +1 -0
  523. package/stage/3.js +0 -3
  524. package/proposals/array-flat-and-flat-map.js +0 -4
  525. package/proposals/object-from-entries.js +0 -2
  526. package/proposals/string-trim-start-end.js +0 -2
@@ -1,8 +1,4 @@
1
1
  module.exports = require('../../es/array');
2
2
 
3
- require('../../modules/esnext.array.flat');
4
- require('../../modules/esnext.array.flat-map');
5
3
  require('../../modules/esnext.array.last-item');
6
4
  require('../../modules/esnext.array.last-index');
7
- require('../../modules/esnext.array.unscopables.flat');
8
- require('../../modules/esnext.array.unscopables.flat-map');
@@ -1,4 +1 @@
1
- require('../../../modules/esnext.array.flat-map');
2
- require('../../../modules/esnext.array.unscopables.flat-map');
3
-
4
- module.exports = require('../../../internals/entry-virtual')('Array').flatMap;
1
+ module.exports = require('../../../es/array/virtual/flat-map');
@@ -1,4 +1 @@
1
- require('../../../modules/esnext.array.flat');
2
- require('../../../modules/esnext.array.unscopables.flat');
3
-
4
- module.exports = require('../../../internals/entry-virtual')('Array').flat;
1
+ module.exports = require('../../../es/array/virtual/flat');
@@ -1,6 +1 @@
1
1
  module.exports = require('../../../es/array/virtual');
2
-
3
- require('../../../modules/esnext.array.flat');
4
- require('../../../modules/esnext.array.flat-map');
5
- require('../../../modules/esnext.array.unscopables.flat');
6
- require('../../../modules/esnext.array.unscopables.flat-map');
@@ -1,3 +1 @@
1
- require('../modules/web.immediate');
2
-
3
- module.exports = require('../internals/path').clearImmediate;
1
+ module.exports = require('../stable/clear-immediate');
@@ -0,0 +1 @@
1
+ module.exports = require('../');
@@ -0,0 +1,8 @@
1
+ var at = require('../string/virtual/at');
2
+ var StringPrototype = String.prototype;
3
+
4
+ module.exports = function (it) {
5
+ var own = it.at;
6
+ return typeof it === 'string' || it === StringPrototype
7
+ || (it instanceof String && own === StringPrototype.at) ? at : own;
8
+ };
@@ -0,0 +1 @@
1
+ module.exports = require('../../es/instance/bind');
@@ -0,0 +1 @@
1
+ module.exports = require('../../es/instance/code-point-at');
@@ -0,0 +1,8 @@
1
+ var codePoints = require('../string/virtual/code-points');
2
+ var StringPrototype = String.prototype;
3
+
4
+ module.exports = function (it) {
5
+ var own = it.codePoints;
6
+ return typeof it === 'string' || it === StringPrototype
7
+ || (it instanceof String && own === StringPrototype.codePoints) ? codePoints : own;
8
+ };
@@ -0,0 +1 @@
1
+ module.exports = require('../../es/instance/concat');
@@ -0,0 +1 @@
1
+ module.exports = require('../../es/instance/copy-within');
@@ -0,0 +1 @@
1
+ module.exports = require('../../es/instance/ends-with');
@@ -0,0 +1 @@
1
+ module.exports = require('../../stable/instance/entries');
@@ -0,0 +1 @@
1
+ module.exports = require('../../es/instance/every');
@@ -0,0 +1 @@
1
+ module.exports = require('../../es/instance/fill');
@@ -0,0 +1 @@
1
+ module.exports = require('../../es/instance/filter');
@@ -0,0 +1 @@
1
+ module.exports = require('../../es/instance/find-index');
@@ -0,0 +1 @@
1
+ module.exports = require('../../es/instance/find');
@@ -0,0 +1 @@
1
+ module.exports = require('../../es/instance/flags');
@@ -0,0 +1 @@
1
+ module.exports = require('../../es/instance/flat-map');
@@ -0,0 +1 @@
1
+ module.exports = require('../../es/instance/flat');
@@ -0,0 +1 @@
1
+ module.exports = require('../../stable/instance/for-each');
@@ -0,0 +1 @@
1
+ module.exports = require('../../es/instance/includes');
@@ -0,0 +1 @@
1
+ module.exports = require('../../es/instance/index-of');
@@ -0,0 +1 @@
1
+ module.exports = require('../../stable/instance/keys');
@@ -0,0 +1 @@
1
+ module.exports = require('../../es/instance/last-index-of');
@@ -0,0 +1 @@
1
+ module.exports = require('../../es/instance/map');
@@ -0,0 +1,8 @@
1
+ var matchAll = require('../string/virtual/match-all');
2
+ var StringPrototype = String.prototype;
3
+
4
+ module.exports = function (it) {
5
+ var own = it.matchAll;
6
+ return typeof it === 'string' || it === StringPrototype
7
+ || (it instanceof String && own === StringPrototype.matchAll) ? matchAll : own;
8
+ };
@@ -0,0 +1 @@
1
+ module.exports = require('../../es/instance/pad-end');
@@ -0,0 +1 @@
1
+ module.exports = require('../../es/instance/pad-start');
@@ -0,0 +1 @@
1
+ module.exports = require('../../es/instance/reduce-right');
@@ -0,0 +1 @@
1
+ module.exports = require('../../es/instance/reduce');
@@ -0,0 +1 @@
1
+ module.exports = require('../../es/instance/repeat');
@@ -0,0 +1,8 @@
1
+ var replaceAll = require('../string/virtual/replace-all');
2
+ var StringPrototype = String.prototype;
3
+
4
+ module.exports = function (it) {
5
+ var own = it.replaceAll;
6
+ return typeof it === 'string' || it === StringPrototype
7
+ || (it instanceof String && own === StringPrototype.replaceAll) ? replaceAll : own;
8
+ };
@@ -0,0 +1 @@
1
+ module.exports = require('../../es/instance/reverse');
@@ -0,0 +1 @@
1
+ module.exports = require('../../es/instance/slice');
@@ -0,0 +1 @@
1
+ module.exports = require('../../es/instance/some');
@@ -0,0 +1 @@
1
+ module.exports = require('../../es/instance/sort');
@@ -0,0 +1 @@
1
+ module.exports = require('../../es/instance/splice');
@@ -0,0 +1 @@
1
+ module.exports = require('../../es/instance/starts-with');
@@ -0,0 +1 @@
1
+ module.exports = require('../../es/instance/trim-end');
@@ -0,0 +1 @@
1
+ module.exports = require('../../es/instance/trim-left');
@@ -0,0 +1 @@
1
+ module.exports = require('../../es/instance/trim-right');
@@ -0,0 +1 @@
1
+ module.exports = require('../../es/instance/trim-start');
@@ -0,0 +1 @@
1
+ module.exports = require('../../es/instance/trim');
@@ -0,0 +1 @@
1
+ module.exports = require('../../stable/instance/values');
@@ -16,3 +16,4 @@ require('../../modules/esnext.map.map-values');
16
16
  require('../../modules/esnext.map.merge');
17
17
  require('../../modules/esnext.map.reduce');
18
18
  require('../../modules/esnext.map.some');
19
+ require('../../modules/esnext.map.update');
@@ -0,0 +1,4 @@
1
+ require('../../modules/es.map');
2
+ require('../../modules/esnext.map.update');
3
+
4
+ module.exports = require('../../internals/entry-unbind')('Map', 'update');
@@ -1,4 +1 @@
1
- require('../../modules/es.array.iterator');
2
- require('../../modules/esnext.object.from-entries');
3
-
4
- module.exports = require('../../internals/path').Object.fromEntries;
1
+ module.exports = require('../../es/object/from-entries');
@@ -1,3 +1 @@
1
1
  module.exports = module.exports = require('../../es/object');
2
-
3
- require('../../modules/esnext.object.from-entries');
@@ -0,0 +1,10 @@
1
+ 'use strict';
2
+ require('../../modules/es.promise');
3
+ require('../../modules/esnext.aggregate-error');
4
+ require('../../modules/esnext.promise.any');
5
+ var Promise = require('../../internals/path').Promise;
6
+ var $any = Promise.any;
7
+
8
+ module.exports = function any(iterable) {
9
+ return $any.call(typeof this === 'function' ? this : Promise, iterable);
10
+ };
@@ -1,4 +1,6 @@
1
1
  module.exports = require('../../es/promise');
2
2
 
3
+ require('../../modules/esnext.aggregate-error');
3
4
  require('../../modules/esnext.promise.all-settled');
4
5
  require('../../modules/esnext.promise.try');
6
+ require('../../modules/esnext.promise.any');
@@ -1,3 +1 @@
1
- require('../modules/web.queue-microtask');
2
-
3
- module.exports = require('../internals/path').queueMicrotask;
1
+ module.exports = require('../stable/queue-microtask');
@@ -1,3 +1 @@
1
- require('../../modules/es.reflect.delete-property');
2
-
3
- module.exports = require('../../internals/path').Reflect.deleteProperty;
1
+ module.exports = require('../../es/reflect/delete-property');
@@ -1,3 +1 @@
1
- require('../modules/web.immediate');
2
-
3
- module.exports = require('../internals/path').setImmediate;
1
+ module.exports = require('../stable/set-immediate');
@@ -1,3 +1 @@
1
- require('../modules/web.timers');
2
-
3
- module.exports = require('../internals/path').setInterval;
1
+ module.exports = require('../stable/set-interval');
@@ -1,3 +1 @@
1
- require('../modules/web.timers');
2
-
3
- module.exports = require('../internals/path').setTimeout;
1
+ module.exports = require('../stable/set-timeout');
@@ -3,5 +3,3 @@ module.exports = require('../../es/string');
3
3
  require('../../modules/esnext.string.at');
4
4
  require('../../modules/esnext.string.match-all');
5
5
  require('../../modules/esnext.string.replace-all');
6
- require('../../modules/esnext.string.trim-start');
7
- require('../../modules/esnext.string.trim-end');
@@ -1,3 +1 @@
1
- require('../../modules/esnext.string.trim-end');
2
-
3
- module.exports = require('../../internals/entry-unbind')('String', 'trimRight');
1
+ module.exports = require('../../es/string/trim-end');
@@ -1,3 +1 @@
1
- require('../../modules/esnext.string.trim-start');
2
-
3
- module.exports = require('../../internals/entry-unbind')('String', 'trimLeft');
1
+ module.exports = require('../../es/string/trim-left');
@@ -1,3 +1 @@
1
- require('../../modules/esnext.string.trim-end');
2
-
3
- module.exports = require('../../internals/entry-unbind')('String', 'trimRight');
1
+ module.exports = require('../../es/string/trim-right');
@@ -1,3 +1 @@
1
- require('../../modules/esnext.string.trim-start');
2
-
3
- module.exports = require('../../internals/entry-unbind')('String', 'trimLeft');
1
+ module.exports = require('../../es/string/trim-start');
@@ -3,5 +3,3 @@ module.exports = require('../../../es/string/virtual');
3
3
  require('../../../modules/esnext.string.at');
4
4
  require('../../../modules/esnext.string.match-all');
5
5
  require('../../../modules/esnext.string.replace-all');
6
- require('../../../modules/esnext.string.trim-start');
7
- require('../../../modules/esnext.string.trim-end');
@@ -1,3 +1 @@
1
- require('../../../modules/esnext.string.trim-end');
2
-
3
- module.exports = require('../../../internals/entry-virtual')('String').trimRight;
1
+ module.exports = require('../../../es/string/virtual/trim-end');
@@ -1,3 +1 @@
1
- require('../../../modules/esnext.string.trim-start');
2
-
3
- module.exports = require('../../../internals/entry-virtual')('String').trimLeft;
1
+ module.exports = require('../../../es/string/virtual/trim-left');
@@ -1,3 +1 @@
1
- require('../../../modules/esnext.string.trim-end');
2
-
3
- module.exports = require('../../../internals/entry-virtual')('String').trimRight;
1
+ module.exports = require('../../../es/string/virtual/trim-right');
@@ -1,3 +1 @@
1
- require('../../../modules/esnext.string.trim-start');
2
-
3
- module.exports = require('../../../internals/entry-virtual')('String').trimLeft;
1
+ module.exports = require('../../../es/string/virtual/trim-start');
@@ -283,7 +283,7 @@ if (!NATIVE_ARRAY_BUFFER) {
283
283
  setUint8: function setUint8(byteOffset, value) {
284
284
  nativeSetInt8.call(this, byteOffset, value << 24 >> 24);
285
285
  }
286
- }, true);
286
+ }, { unsafe: true });
287
287
  }
288
288
 
289
289
  setToStringTag($ArrayBuffer, ARRAY_BUFFER);
@@ -1,4 +1,5 @@
1
1
  var global = require('../internals/global');
2
+ var getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f;
2
3
  var hide = require('../internals/hide');
3
4
  var redefine = require('../internals/redefine');
4
5
  var setGlobal = require('../internals/set-global');
@@ -6,23 +7,24 @@ var copyConstructorProperties = require('../internals/copy-constructor-propertie
6
7
  var isForced = require('../internals/is-forced');
7
8
 
8
9
  /*
9
- options.target - name of the target object
10
- options.global - target is the global object
11
- options.stat - export as static methods of target
12
- options.proto - export as prototype methods of target
13
- options.real - real prototype method for the `pure` version
14
- options.forced - export even if the native feature is available
15
- options.bind - bind methods to the target, required for the `pure` version
16
- options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
17
- options.unsafe - use the simple assignment of property instead of delete + defineProperty
18
- options.sham - add a flag to not completely full polyfills
19
- options.enumerable - export as enumerable property
10
+ options.target - name of the target object
11
+ options.global - target is the global object
12
+ options.stat - export as static methods of target
13
+ options.proto - export as prototype methods of target
14
+ options.real - real prototype method for the `pure` version
15
+ options.forced - export even if the native feature is available
16
+ options.bind - bind methods to the target, required for the `pure` version
17
+ options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
18
+ options.unsafe - use the simple assignment of property instead of delete + defineProperty
19
+ options.sham - add a flag to not completely full polyfills
20
+ options.enumerable - export as enumerable property
21
+ options.noTargetGet - prevent calling a getter on target
20
22
  */
21
23
  module.exports = function (options, source) {
22
24
  var TARGET = options.target;
23
25
  var GLOBAL = options.global;
24
26
  var STATIC = options.stat;
25
- var FORCED, target, key, targetProperty, sourceProperty;
27
+ var FORCED, target, key, targetProperty, sourceProperty, descriptor;
26
28
  if (GLOBAL) {
27
29
  target = global;
28
30
  } else if (STATIC) {
@@ -31,8 +33,11 @@ module.exports = function (options, source) {
31
33
  target = (global[TARGET] || {}).prototype;
32
34
  }
33
35
  if (target) for (key in source) {
34
- targetProperty = target[key];
35
36
  sourceProperty = source[key];
37
+ if (options.noTargetGet) {
38
+ descriptor = getOwnPropertyDescriptor(target, key);
39
+ targetProperty = descriptor && descriptor.value;
40
+ } else targetProperty = target[key];
36
41
  FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
37
42
  // contained in target
38
43
  if (!FORCED && targetProperty !== undefined) {
@@ -1,5 +1,5 @@
1
1
  // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
2
- module.exports = typeof window != 'undefined' && window.Math == Math ? window
3
- : typeof self != 'undefined' && self.Math == Math ? self
2
+ module.exports = typeof window == 'object' && window && window.Math == Math ? window
3
+ : typeof self == 'object' && self && self.Math == Math ? self
4
4
  // eslint-disable-next-line no-new-func
5
5
  : Function('return this')();
@@ -1,11 +1,10 @@
1
- var global = require('../internals/global');
2
- var nativeFunctionToString = require('../internals/function-to-string');
1
+ var NATIVE_WEAK_MAP = require('../internals/native-weak-map');
3
2
  var isObject = require('../internals/is-object');
4
3
  var hide = require('../internals/hide');
5
4
  var objectHas = require('../internals/has');
6
5
  var sharedKey = require('../internals/shared-key');
7
6
  var hiddenKeys = require('../internals/hidden-keys');
8
- var WeakMap = global.WeakMap;
7
+ var WeakMap = require('../internals/global').WeakMap;
9
8
  var set, get, has;
10
9
 
11
10
  var enforce = function (it) {
@@ -21,7 +20,7 @@ var getterFor = function (TYPE) {
21
20
  };
22
21
  };
23
22
 
24
- if (typeof WeakMap == 'function' && /native code/.test(nativeFunctionToString.call(WeakMap))) {
23
+ if (NATIVE_WEAK_MAP) {
25
24
  var store = new WeakMap();
26
25
  var wmget = store.get;
27
26
  var wmhas = store.has;
@@ -1,12 +1,15 @@
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 queueMicrotask = global.queueMicrotask;
9
- var isNode = classof(process) == 'process';
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
14
  var flush, head, last, notify, toggle, node, promise;
12
15
 
@@ -14,7 +17,7 @@ var flush, head, last, notify, toggle, node, promise;
14
17
  if (!queueMicrotask) {
15
18
  flush = function () {
16
19
  var parent, fn;
17
- if (isNode && (parent = process.domain)) parent.exit();
20
+ if (IS_NODE && (parent = process.domain)) parent.exit();
18
21
  while (head) {
19
22
  fn = head.fn;
20
23
  head = head.next;
@@ -30,7 +33,7 @@ if (!queueMicrotask) {
30
33
  };
31
34
 
32
35
  // Node.js
33
- if (isNode) {
36
+ if (IS_NODE) {
34
37
  notify = function () {
35
38
  process.nextTick(flush);
36
39
  };
@@ -0,0 +1,4 @@
1
+ var nativeFunctionToString = require('../internals/function-to-string');
2
+ var WeakMap = require('../internals/global').WeakMap;
3
+
4
+ module.exports = typeof WeakMap === 'function' && /native code/.test(nativeFunctionToString.call(WeakMap));
@@ -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
- setGlobal(key, value);
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;
@@ -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.0-beta.9',
9
+ version: '3.0.0',
10
10
  mode: require('../internals/is-pure') ? 'pure' : 'global',
11
11
  copyright: '© 2019 Denis Pushkarev (zloirock.ru)'
12
12
  });
@@ -1,5 +1,5 @@
1
1
  var nativeGetOwnPropertyNames = require('../internals/object-get-own-property-names-external').f;
2
- var FAILS_ON_PRIMITIVES = require('../internals/fails')(function () { nativeGetOwnPropertyNames(1); });
2
+ var FAILS_ON_PRIMITIVES = require('../internals/fails')(function () { Object.getOwnPropertyNames(1); });
3
3
 
4
4
  // `Object.getOwnPropertyNames` method
5
5
  // https://tc39.github.io/ecma262/#sec-object.getownpropertynames
@@ -27,6 +27,7 @@ var PromiseConstructor = global[PROMISE];
27
27
  var TypeError = global.TypeError;
28
28
  var document = global.document;
29
29
  var process = global.process;
30
+ var $fetch = global.fetch;
30
31
  var versions = process && process.versions;
31
32
  var v8 = versions && versions.v8 || '';
32
33
  var newPromiseCapability = newPromiseCapabilityModule.f;
@@ -263,6 +264,14 @@ if (FORCED) {
263
264
  ? new OwnPromiseCapability(C)
264
265
  : newGenericPromiseCapability(C);
265
266
  };
267
+
268
+ // wrap fetch result
269
+ if (!IS_PURE && typeof $fetch == 'function') $export({ global: true, enumerable: true, forced: true }, {
270
+ // eslint-disable-next-line no-unused-vars
271
+ fetch: function fetch(input) {
272
+ return promiseResolve(PromiseConstructor, $fetch.apply(global, arguments));
273
+ }
274
+ });
266
275
  }
267
276
 
268
277
  $export({ global: true, wrap: true, forced: FORCED }, { Promise: PromiseConstructor });
@@ -13,8 +13,8 @@ var arrayPush = [].push;
13
13
  var min = Math.min;
14
14
  var MAX_UINT32 = 0xffffffff;
15
15
 
16
- // eslint-disable-next-line no-new
17
- var SUPPORTS_Y = !fails(function () { new RegExp('x', 'y'); });
16
+ // babel-minify transpiles RegExp('x', 'y') -> /x/y and it causes SyntaxError
17
+ var SUPPORTS_Y = !fails(function () { return !RegExp(MAX_UINT32, 'y'); });
18
18
 
19
19
  // @@split logic
20
20
  require('../internals/fix-regexp-well-known-symbol-logic')(