core-js 3.0.0-beta.7 → 3.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (721) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +18 -0
  3. package/es/array/flat-map.js +4 -0
  4. package/es/array/flat.js +4 -0
  5. package/es/array/index.js +21 -17
  6. package/es/array/virtual/flat-map.js +4 -0
  7. package/es/array/virtual/flat.js +4 -0
  8. package/es/array/virtual/index.js +7 -2
  9. package/es/index.js +7 -0
  10. package/es/instance/bind.js +7 -0
  11. package/es/instance/code-point-at.js +8 -0
  12. package/es/instance/concat.js +7 -0
  13. package/es/instance/copy-within.js +7 -0
  14. package/es/instance/ends-with.js +8 -0
  15. package/es/instance/entries.js +7 -0
  16. package/es/instance/every.js +7 -0
  17. package/es/instance/fill.js +7 -0
  18. package/es/instance/filter.js +7 -0
  19. package/es/instance/find-index.js +7 -0
  20. package/es/instance/find.js +7 -0
  21. package/es/instance/flags.js +6 -0
  22. package/es/instance/flat-map.js +7 -0
  23. package/es/instance/flat.js +7 -0
  24. package/es/instance/for-each.js +7 -0
  25. package/es/instance/includes.js +12 -0
  26. package/es/instance/index-of.js +7 -0
  27. package/es/instance/keys.js +7 -0
  28. package/es/instance/last-index-of.js +7 -0
  29. package/es/instance/map.js +7 -0
  30. package/es/instance/pad-end.js +8 -0
  31. package/es/instance/pad-start.js +8 -0
  32. package/es/instance/reduce-right.js +7 -0
  33. package/es/instance/reduce.js +7 -0
  34. package/es/instance/repeat.js +8 -0
  35. package/es/instance/reverse.js +7 -0
  36. package/es/instance/slice.js +7 -0
  37. package/es/instance/some.js +7 -0
  38. package/es/instance/sort.js +7 -0
  39. package/es/instance/splice.js +7 -0
  40. package/es/instance/starts-with.js +8 -0
  41. package/es/instance/trim-end.js +8 -0
  42. package/es/instance/trim-left.js +8 -0
  43. package/es/instance/trim-right.js +8 -0
  44. package/es/instance/trim-start.js +8 -0
  45. package/es/instance/trim.js +8 -0
  46. package/es/instance/values.js +7 -0
  47. package/es/number/max-safe-integer.js +1 -1
  48. package/es/number/min-safe-integer.js +1 -1
  49. package/es/object/from-entries.js +4 -0
  50. package/es/object/index.js +1 -0
  51. package/es/string/index.js +2 -0
  52. package/es/string/trim-end.js +3 -0
  53. package/es/string/trim-left.js +3 -0
  54. package/es/string/trim-right.js +3 -0
  55. package/es/string/trim-start.js +3 -0
  56. package/es/string/virtual/index.js +2 -0
  57. package/es/string/virtual/trim-end.js +3 -0
  58. package/es/string/virtual/trim-left.js +3 -0
  59. package/es/string/virtual/trim-right.js +3 -0
  60. package/es/string/virtual/trim-start.js +3 -0
  61. package/features/aggregate-error.js +5 -0
  62. package/features/array/flat-map.js +1 -3
  63. package/features/array/flat.js +1 -3
  64. package/features/array/index.js +0 -2
  65. package/features/array/virtual/flat-map.js +1 -3
  66. package/features/array/virtual/flat.js +1 -3
  67. package/features/array/virtual/index.js +0 -3
  68. package/features/clear-immediate.js +1 -3
  69. package/features/index.js +1 -0
  70. package/features/instance/at.js +8 -0
  71. package/features/instance/bind.js +1 -0
  72. package/features/instance/code-point-at.js +1 -0
  73. package/features/instance/code-points.js +8 -0
  74. package/features/instance/concat.js +1 -0
  75. package/features/instance/copy-within.js +1 -0
  76. package/features/instance/ends-with.js +1 -0
  77. package/features/instance/entries.js +1 -0
  78. package/features/instance/every.js +1 -0
  79. package/features/instance/fill.js +1 -0
  80. package/features/instance/filter.js +1 -0
  81. package/features/instance/find-index.js +1 -0
  82. package/features/instance/find.js +1 -0
  83. package/features/instance/flags.js +1 -0
  84. package/features/instance/flat-map.js +1 -0
  85. package/features/instance/flat.js +1 -0
  86. package/features/instance/for-each.js +1 -0
  87. package/features/instance/includes.js +1 -0
  88. package/features/instance/index-of.js +1 -0
  89. package/features/instance/keys.js +1 -0
  90. package/features/instance/last-index-of.js +1 -0
  91. package/features/instance/map.js +1 -0
  92. package/features/instance/match-all.js +8 -0
  93. package/features/instance/pad-end.js +1 -0
  94. package/features/instance/pad-start.js +1 -0
  95. package/features/instance/reduce-right.js +1 -0
  96. package/features/instance/reduce.js +1 -0
  97. package/features/instance/repeat.js +1 -0
  98. package/features/instance/replace-all.js +8 -0
  99. package/features/instance/reverse.js +1 -0
  100. package/features/instance/slice.js +1 -0
  101. package/features/instance/some.js +1 -0
  102. package/features/instance/sort.js +1 -0
  103. package/features/instance/splice.js +1 -0
  104. package/features/instance/starts-with.js +1 -0
  105. package/features/instance/trim-end.js +1 -0
  106. package/features/instance/trim-left.js +1 -0
  107. package/features/instance/trim-right.js +1 -0
  108. package/features/instance/trim-start.js +1 -0
  109. package/features/instance/trim.js +1 -0
  110. package/features/instance/values.js +1 -0
  111. package/features/map/index.js +1 -0
  112. package/features/map/update.js +4 -0
  113. package/features/object/from-entries.js +1 -4
  114. package/features/object/index.js +1 -3
  115. package/features/promise/any.js +10 -0
  116. package/features/promise/index.js +2 -0
  117. package/features/queue-microtask.js +1 -3
  118. package/features/reflect/delete-property.js +1 -3
  119. package/features/set/index.js +1 -1
  120. package/features/set/{is-disjoint-with.js → is-disjoint-from.js} +2 -2
  121. package/features/set-immediate.js +1 -3
  122. package/features/set-interval.js +1 -3
  123. package/features/set-timeout.js +1 -3
  124. package/features/string/index.js +0 -2
  125. package/features/string/trim-end.js +1 -3
  126. package/features/string/trim-left.js +1 -3
  127. package/features/string/trim-right.js +1 -3
  128. package/features/string/trim-start.js +1 -3
  129. package/features/string/virtual/index.js +0 -2
  130. package/features/string/virtual/trim-end.js +1 -3
  131. package/features/string/virtual/trim-left.js +1 -3
  132. package/features/string/virtual/trim-right.js +1 -3
  133. package/features/string/virtual/trim-start.js +1 -3
  134. package/internals/a-function.js +3 -2
  135. package/internals/add-to-unscopables.js +3 -1
  136. package/internals/advance-string-index.js +2 -2
  137. package/internals/an-instance.js +1 -1
  138. package/internals/an-object.js +3 -2
  139. package/internals/array-buffer-view-core.js +13 -7
  140. package/internals/array-buffer.js +7 -7
  141. package/internals/array-for-each.js +5 -3
  142. package/internals/array-from.js +5 -2
  143. package/internals/array-last-index-of.js +2 -1
  144. package/internals/{check-array-species-create.js → array-method-has-species-support.js} +2 -2
  145. package/internals/array-reduce.js +2 -2
  146. package/internals/call-with-safe-iteration-closing.js +2 -2
  147. package/internals/check-correctness-of-iteration.js +2 -2
  148. package/internals/classof.js +1 -1
  149. package/internals/collection-delete-all.js +3 -3
  150. package/internals/collection-from.js +25 -0
  151. package/internals/collection-of.js +8 -0
  152. package/internals/collection-strong.js +9 -9
  153. package/internals/collection-weak.js +4 -4
  154. package/internals/collection.js +9 -9
  155. package/internals/create-html.js +11 -0
  156. package/internals/date-to-primitive.js +3 -2
  157. package/internals/export.js +18 -13
  158. package/internals/fails.js +1 -1
  159. package/internals/fix-regexp-well-known-symbol-logic.js +17 -22
  160. package/internals/flatten-into-array.js +1 -1
  161. package/internals/{object-forced-pam.js → forced-object-prototype-accessors-methods.js} +4 -4
  162. package/internals/forced-string-html-method.js +10 -0
  163. package/internals/forced-string-trim-method.js +11 -0
  164. package/internals/function-bind.js +5 -5
  165. package/internals/get-built-in.js +11 -0
  166. package/internals/get-iterator.js +3 -2
  167. package/internals/get-map-iterator.js +2 -2
  168. package/internals/get-set-iterator.js +2 -2
  169. package/internals/global.js +2 -2
  170. package/internals/internal-state.js +4 -5
  171. package/internals/iterate.js +1 -1
  172. package/internals/math-scale.js +2 -5
  173. package/internals/microtask.js +13 -10
  174. package/internals/native-symbol.js +1 -1
  175. package/internals/native-weak-map.js +4 -0
  176. package/internals/object-assign.js +5 -5
  177. package/internals/object-create.js +4 -2
  178. package/internals/object-define-property.js +2 -2
  179. package/internals/object-get-own-property-descriptor.js +1 -1
  180. package/internals/object-get-own-property-names-external.js +1 -1
  181. package/internals/object-set-prototype-of.js +3 -3
  182. package/internals/object-to-array.js +12 -12
  183. package/internals/parse-float.js +1 -1
  184. package/internals/parse-int.js +1 -1
  185. package/internals/perform.js +3 -3
  186. package/internals/punycode-to-ascii.js +5 -5
  187. package/internals/redefine.js +4 -2
  188. package/internals/reflect-metadata.js +10 -10
  189. package/internals/regexp-exec-abstract.js +2 -2
  190. package/internals/regexp-exec.js +3 -5
  191. package/internals/require-object-coercible.js +1 -1
  192. package/internals/set-global.js +1 -1
  193. package/internals/set-species.js +5 -4
  194. package/internals/shared.js +2 -2
  195. package/internals/sloppy-array-method.js +10 -0
  196. package/internals/string-at.js +13 -15
  197. package/internals/string-pad.js +3 -2
  198. package/internals/string-repeat.js +1 -1
  199. package/internals/string-trim.js +6 -20
  200. package/internals/this-number-value.js +3 -1
  201. package/internals/to-index.js +1 -1
  202. package/internals/to-length.js +1 -1
  203. package/internals/to-offset.js +1 -1
  204. package/internals/typed-array-constructor.js +10 -10
  205. package/internals/typed-array-from.js +12 -6
  206. package/internals/typed-arrays-constructors-requires-wrappers.js +6 -5
  207. package/internals/validate-set-prototype-of-arguments.js +3 -1
  208. package/internals/validate-string-method-arguments.js +3 -2
  209. package/internals/webkit-string-pad-bug.js +5 -0
  210. package/internals/well-known-symbol.js +3 -2
  211. package/internals/whitespaces.js +1 -1
  212. package/modules/es.array-buffer.is-view.js +4 -3
  213. package/modules/es.array.concat.js +11 -8
  214. package/modules/es.array.every.js +1 -1
  215. package/modules/es.array.filter.js +1 -3
  216. package/modules/{esnext.array.flat-map.js → es.array.flat-map.js} +0 -2
  217. package/modules/{esnext.array.flat.js → es.array.flat.js} +0 -2
  218. package/modules/es.array.index-of.js +1 -1
  219. package/modules/es.array.join.js +1 -1
  220. package/modules/es.array.map.js +1 -3
  221. package/modules/es.array.reduce-right.js +1 -1
  222. package/modules/es.array.reduce.js +1 -1
  223. package/modules/es.array.slice.js +4 -4
  224. package/modules/es.array.some.js +1 -1
  225. package/modules/es.array.sort.js +7 -7
  226. package/modules/es.array.splice.js +9 -5
  227. package/modules/es.array.unscopables.flat-map.js +3 -0
  228. package/modules/es.array.unscopables.flat.js +3 -0
  229. package/modules/es.date.to-json.js +6 -4
  230. package/modules/es.function.name.js +12 -9
  231. package/modules/es.math.acosh.js +7 -6
  232. package/modules/es.math.asinh.js +3 -3
  233. package/modules/es.math.imul.js +6 -4
  234. package/modules/es.math.sinh.js +5 -3
  235. package/modules/es.number.constructor.js +7 -5
  236. package/modules/es.number.is-safe-integer.js +1 -1
  237. package/modules/es.number.max-safe-integer.js +1 -1
  238. package/modules/es.number.min-safe-integer.js +1 -1
  239. package/modules/es.number.to-fixed.js +1 -1
  240. package/modules/es.object.define-getter.js +2 -1
  241. package/modules/es.object.define-setter.js +2 -1
  242. package/modules/es.object.entries.js +2 -2
  243. package/modules/es.object.freeze.js +6 -4
  244. package/modules/{esnext.object.from-entries.js → es.object.from-entries.js} +0 -0
  245. package/modules/es.object.get-own-property-descriptor.js +7 -5
  246. package/modules/es.object.get-own-property-names.js +5 -2
  247. package/modules/es.object.get-prototype-of.js +8 -4
  248. package/modules/es.object.is-extensible.js +5 -3
  249. package/modules/es.object.is-frozen.js +5 -3
  250. package/modules/es.object.is-sealed.js +5 -3
  251. package/modules/es.object.keys.js +4 -3
  252. package/modules/es.object.lookup-getter.js +5 -4
  253. package/modules/es.object.lookup-setter.js +5 -4
  254. package/modules/es.object.prevent-extensions.js +6 -4
  255. package/modules/es.object.seal.js +6 -4
  256. package/modules/es.object.to-string.js +3 -2
  257. package/modules/es.object.values.js +2 -2
  258. package/modules/es.promise.finally.js +15 -14
  259. package/modules/es.promise.js +26 -15
  260. package/modules/es.reflect.apply.js +5 -3
  261. package/modules/es.reflect.define-property.js +1 -1
  262. package/modules/es.reflect.get.js +3 -3
  263. package/modules/es.reflect.prevent-extensions.js +4 -3
  264. package/modules/es.reflect.set-prototype-of.js +1 -1
  265. package/modules/es.regexp.constructor.js +9 -5
  266. package/modules/es.regexp.exec.js +1 -5
  267. package/modules/es.string.anchor.js +6 -3
  268. package/modules/es.string.big.js +6 -3
  269. package/modules/es.string.blink.js +6 -3
  270. package/modules/es.string.bold.js +6 -3
  271. package/modules/es.string.code-point-at.js +1 -1
  272. package/modules/es.string.fixed.js +6 -3
  273. package/modules/es.string.fontcolor.js +6 -3
  274. package/modules/es.string.fontsize.js +6 -3
  275. package/modules/es.string.from-code-point.js +2 -2
  276. package/modules/es.string.italics.js +6 -3
  277. package/modules/es.string.iterator.js +2 -2
  278. package/modules/es.string.link.js +6 -3
  279. package/modules/es.string.match.js +3 -2
  280. package/modules/es.string.pad-end.js +1 -4
  281. package/modules/es.string.pad-start.js +1 -4
  282. package/modules/es.string.replace.js +6 -5
  283. package/modules/es.string.search.js +3 -2
  284. package/modules/es.string.small.js +6 -3
  285. package/modules/es.string.split.js +27 -24
  286. package/modules/es.string.strike.js +6 -3
  287. package/modules/es.string.sub.js +6 -3
  288. package/modules/es.string.sup.js +6 -3
  289. package/modules/es.string.trim-end.js +14 -0
  290. package/modules/es.string.trim-start.js +14 -0
  291. package/modules/es.string.trim.js +7 -4
  292. package/modules/es.symbol.js +11 -11
  293. package/modules/es.typed-array.fill.js +2 -1
  294. package/modules/es.typed-array.join.js +2 -1
  295. package/modules/es.typed-array.set.js +1 -1
  296. package/modules/es.weak-map.js +8 -6
  297. package/modules/esnext.aggregate-error.js +27 -0
  298. package/modules/esnext.array.last-index.js +2 -0
  299. package/modules/esnext.array.last-item.js +2 -0
  300. package/modules/esnext.composite-key.js +3 -3
  301. package/modules/esnext.composite-symbol.js +4 -9
  302. package/modules/esnext.map.delete-all.js +1 -1
  303. package/modules/esnext.map.every.js +1 -1
  304. package/modules/esnext.map.filter.js +3 -3
  305. package/modules/esnext.map.find-key.js +1 -1
  306. package/modules/esnext.map.find.js +1 -1
  307. package/modules/esnext.map.from.js +3 -1
  308. package/modules/esnext.map.group-by.js +8 -3
  309. package/modules/esnext.map.includes.js +1 -1
  310. package/modules/esnext.map.key-by.js +5 -2
  311. package/modules/esnext.map.key-of.js +1 -1
  312. package/modules/esnext.map.map-keys.js +3 -3
  313. package/modules/esnext.map.map-values.js +3 -3
  314. package/modules/esnext.map.merge.js +9 -9
  315. package/modules/esnext.map.of.js +3 -1
  316. package/modules/esnext.map.reduce.js +2 -2
  317. package/modules/esnext.map.some.js +1 -1
  318. package/modules/esnext.map.update.js +19 -0
  319. package/modules/esnext.math.imulh.js +1 -1
  320. package/modules/esnext.math.umulh.js +1 -1
  321. package/modules/esnext.number.from-string.js +8 -8
  322. package/modules/esnext.observable.js +12 -12
  323. package/modules/esnext.promise.all-settled.js +3 -3
  324. package/modules/esnext.promise.any.js +42 -0
  325. package/modules/esnext.promise.try.js +8 -6
  326. package/modules/esnext.reflect.define-metadata.js +7 -4
  327. package/modules/esnext.reflect.delete-metadata.js +13 -11
  328. package/modules/esnext.reflect.get-metadata-keys.js +7 -4
  329. package/modules/esnext.reflect.get-metadata.js +7 -4
  330. package/modules/esnext.reflect.get-own-metadata-keys.js +7 -4
  331. package/modules/esnext.reflect.get-own-metadata.js +7 -5
  332. package/modules/esnext.reflect.has-metadata.js +7 -4
  333. package/modules/esnext.reflect.has-own-metadata.js +7 -5
  334. package/modules/esnext.reflect.metadata.js +8 -11
  335. package/modules/esnext.set.add-all.js +1 -1
  336. package/modules/esnext.set.delete-all.js +1 -1
  337. package/modules/esnext.set.difference.js +2 -3
  338. package/modules/esnext.set.every.js +1 -1
  339. package/modules/esnext.set.filter.js +3 -3
  340. package/modules/esnext.set.find.js +1 -1
  341. package/modules/esnext.set.from.js +3 -1
  342. package/modules/esnext.set.intersection.js +2 -3
  343. package/modules/{esnext.set.is-disjoint-with.js → esnext.set.is-disjoint-from.js} +3 -3
  344. package/modules/esnext.set.is-subset-of.js +10 -7
  345. package/modules/esnext.set.join.js +1 -1
  346. package/modules/esnext.set.map.js +3 -3
  347. package/modules/esnext.set.of.js +3 -1
  348. package/modules/esnext.set.reduce.js +2 -2
  349. package/modules/esnext.set.some.js +1 -1
  350. package/modules/esnext.set.symmetric-difference.js +2 -3
  351. package/modules/esnext.set.union.js +2 -3
  352. package/modules/esnext.string.at.js +2 -2
  353. package/modules/esnext.string.code-points.js +3 -5
  354. package/modules/esnext.string.match-all.js +3 -3
  355. package/modules/esnext.string.replace-all.js +15 -5
  356. package/modules/esnext.weak-map.delete-all.js +1 -1
  357. package/modules/esnext.weak-map.from.js +3 -1
  358. package/modules/esnext.weak-map.of.js +3 -1
  359. package/modules/esnext.weak-set.add-all.js +1 -1
  360. package/modules/esnext.weak-set.delete-all.js +1 -1
  361. package/modules/esnext.weak-set.from.js +3 -1
  362. package/modules/esnext.weak-set.of.js +3 -1
  363. package/modules/web.dom-collections.for-each.js +1 -1
  364. package/modules/web.dom-collections.iterator.js +2 -2
  365. package/modules/web.immediate.js +2 -1
  366. package/modules/web.queue-microtask.js +1 -1
  367. package/modules/web.url-search-params.js +21 -3
  368. package/modules/web.url.js +30 -34
  369. package/package.json +6 -1
  370. package/proposals/collection-methods.js +1 -0
  371. package/proposals/{richer-keys.js → keys-composition.js} +0 -0
  372. package/proposals/promise-any.js +2 -0
  373. package/proposals/set-methods.js +1 -1
  374. package/stable/README.md +1 -0
  375. package/stable/array/concat.js +1 -0
  376. package/stable/array/copy-within.js +1 -0
  377. package/stable/array/entries.js +1 -0
  378. package/stable/array/every.js +1 -0
  379. package/stable/array/fill.js +1 -0
  380. package/stable/array/filter.js +1 -0
  381. package/stable/array/find-index.js +1 -0
  382. package/stable/array/find.js +1 -0
  383. package/stable/array/flat-map.js +1 -0
  384. package/stable/array/flat.js +1 -0
  385. package/stable/array/for-each.js +1 -0
  386. package/stable/array/from.js +1 -0
  387. package/stable/array/includes.js +1 -0
  388. package/stable/array/index-of.js +1 -0
  389. package/stable/array/index.js +1 -0
  390. package/stable/array/is-array.js +1 -0
  391. package/stable/array/iterator.js +1 -0
  392. package/stable/array/join.js +1 -0
  393. package/stable/array/keys.js +1 -0
  394. package/stable/array/last-index-of.js +1 -0
  395. package/stable/array/map.js +1 -0
  396. package/stable/array/of.js +1 -0
  397. package/stable/array/reduce-right.js +1 -0
  398. package/stable/array/reduce.js +1 -0
  399. package/stable/array/reverse.js +1 -0
  400. package/stable/array/slice.js +1 -0
  401. package/stable/array/some.js +1 -0
  402. package/stable/array/sort.js +1 -0
  403. package/stable/array/splice.js +1 -0
  404. package/stable/array/values.js +1 -0
  405. package/stable/array/virtual/concat.js +1 -0
  406. package/stable/array/virtual/copy-within.js +1 -0
  407. package/stable/array/virtual/entries.js +1 -0
  408. package/stable/array/virtual/every.js +1 -0
  409. package/stable/array/virtual/fill.js +1 -0
  410. package/stable/array/virtual/filter.js +1 -0
  411. package/stable/array/virtual/find-index.js +1 -0
  412. package/stable/array/virtual/find.js +1 -0
  413. package/stable/array/virtual/flat-map.js +1 -0
  414. package/stable/array/virtual/flat.js +1 -0
  415. package/stable/array/virtual/for-each.js +1 -0
  416. package/stable/array/virtual/includes.js +1 -0
  417. package/stable/array/virtual/index-of.js +1 -0
  418. package/stable/array/virtual/index.js +1 -0
  419. package/stable/array/virtual/iterator.js +1 -0
  420. package/stable/array/virtual/join.js +1 -0
  421. package/stable/array/virtual/keys.js +1 -0
  422. package/stable/array/virtual/last-index-of.js +1 -0
  423. package/stable/array/virtual/map.js +1 -0
  424. package/stable/array/virtual/reduce-right.js +1 -0
  425. package/stable/array/virtual/reduce.js +1 -0
  426. package/stable/array/virtual/reverse.js +1 -0
  427. package/stable/array/virtual/slice.js +1 -0
  428. package/stable/array/virtual/some.js +1 -0
  429. package/stable/array/virtual/sort.js +1 -0
  430. package/stable/array/virtual/splice.js +1 -0
  431. package/stable/array/virtual/values.js +1 -0
  432. package/stable/array-buffer/constructor.js +1 -0
  433. package/stable/array-buffer/index.js +1 -0
  434. package/stable/array-buffer/is-view.js +1 -0
  435. package/stable/array-buffer/slice.js +1 -0
  436. package/stable/clear-immediate.js +3 -0
  437. package/stable/data-view/index.js +1 -0
  438. package/stable/date/index.js +1 -0
  439. package/stable/date/now.js +1 -0
  440. package/stable/date/to-iso-string.js +1 -0
  441. package/stable/date/to-json.js +1 -0
  442. package/stable/date/to-primitive.js +1 -0
  443. package/stable/date/to-string.js +1 -0
  444. package/stable/dom-collections/for-each.js +3 -0
  445. package/stable/dom-collections/index.js +11 -0
  446. package/stable/dom-collections/iterator.js +3 -0
  447. package/stable/function/bind.js +1 -0
  448. package/stable/function/has-instance.js +1 -0
  449. package/stable/function/index.js +1 -0
  450. package/stable/function/name.js +1 -0
  451. package/stable/function/virtual/bind.js +1 -0
  452. package/stable/function/virtual/index.js +1 -0
  453. package/stable/global-this.js +3 -0
  454. package/stable/index.js +4 -0
  455. package/stable/instance/bind.js +1 -0
  456. package/stable/instance/code-point-at.js +1 -0
  457. package/stable/instance/concat.js +1 -0
  458. package/stable/instance/copy-within.js +1 -0
  459. package/stable/instance/ends-with.js +1 -0
  460. package/stable/instance/entries.js +16 -0
  461. package/stable/instance/every.js +1 -0
  462. package/stable/instance/fill.js +1 -0
  463. package/stable/instance/filter.js +1 -0
  464. package/stable/instance/find-index.js +1 -0
  465. package/stable/instance/find.js +1 -0
  466. package/stable/instance/flags.js +1 -0
  467. package/stable/instance/flat-map.js +1 -0
  468. package/stable/instance/flat.js +1 -0
  469. package/stable/instance/for-each.js +16 -0
  470. package/stable/instance/includes.js +1 -0
  471. package/stable/instance/index-of.js +1 -0
  472. package/stable/instance/keys.js +16 -0
  473. package/stable/instance/last-index-of.js +1 -0
  474. package/stable/instance/map.js +1 -0
  475. package/stable/instance/pad-end.js +1 -0
  476. package/stable/instance/pad-start.js +1 -0
  477. package/stable/instance/reduce-right.js +1 -0
  478. package/stable/instance/reduce.js +1 -0
  479. package/stable/instance/repeat.js +1 -0
  480. package/stable/instance/reverse.js +1 -0
  481. package/stable/instance/slice.js +1 -0
  482. package/stable/instance/some.js +1 -0
  483. package/stable/instance/sort.js +1 -0
  484. package/stable/instance/splice.js +1 -0
  485. package/stable/instance/starts-with.js +1 -0
  486. package/stable/instance/trim-end.js +1 -0
  487. package/stable/instance/trim-left.js +1 -0
  488. package/stable/instance/trim-right.js +1 -0
  489. package/stable/instance/trim-start.js +1 -0
  490. package/stable/instance/trim.js +1 -0
  491. package/stable/instance/values.js +16 -0
  492. package/stable/json/index.js +1 -0
  493. package/stable/json/stringify.js +1 -0
  494. package/stable/json/to-string-tag.js +1 -0
  495. package/stable/map/index.js +1 -0
  496. package/stable/math/acosh.js +1 -0
  497. package/stable/math/asinh.js +1 -0
  498. package/stable/math/atanh.js +1 -0
  499. package/stable/math/cbrt.js +1 -0
  500. package/stable/math/clz32.js +1 -0
  501. package/stable/math/cosh.js +1 -0
  502. package/stable/math/expm1.js +1 -0
  503. package/stable/math/fround.js +1 -0
  504. package/stable/math/hypot.js +1 -0
  505. package/stable/math/imul.js +1 -0
  506. package/stable/math/index.js +1 -0
  507. package/stable/math/log10.js +1 -0
  508. package/stable/math/log1p.js +1 -0
  509. package/stable/math/log2.js +1 -0
  510. package/stable/math/sign.js +1 -0
  511. package/stable/math/sinh.js +1 -0
  512. package/stable/math/tanh.js +1 -0
  513. package/stable/math/to-string-tag.js +1 -0
  514. package/stable/math/trunc.js +1 -0
  515. package/stable/number/constructor.js +1 -0
  516. package/stable/number/epsilon.js +1 -0
  517. package/stable/number/index.js +1 -0
  518. package/stable/number/is-finite.js +1 -0
  519. package/stable/number/is-integer.js +1 -0
  520. package/stable/number/is-nan.js +1 -0
  521. package/stable/number/is-safe-integer.js +1 -0
  522. package/stable/number/max-safe-integer.js +1 -0
  523. package/stable/number/min-safe-integer.js +1 -0
  524. package/stable/number/parse-float.js +1 -0
  525. package/stable/number/parse-int.js +1 -0
  526. package/stable/number/to-fixed.js +1 -0
  527. package/stable/number/to-precision.js +1 -0
  528. package/stable/number/virtual/index.js +1 -0
  529. package/stable/number/virtual/to-fixed.js +1 -0
  530. package/stable/number/virtual/to-precision.js +1 -0
  531. package/stable/object/assign.js +1 -0
  532. package/stable/object/create.js +1 -0
  533. package/stable/object/define-getter.js +1 -0
  534. package/stable/object/define-properties.js +1 -0
  535. package/stable/object/define-property.js +1 -0
  536. package/stable/object/define-setter.js +1 -0
  537. package/stable/object/entries.js +1 -0
  538. package/stable/object/freeze.js +1 -0
  539. package/stable/object/from-entries.js +1 -0
  540. package/stable/object/get-own-property-descriptor.js +1 -0
  541. package/stable/object/get-own-property-descriptors.js +1 -0
  542. package/stable/object/get-own-property-names.js +1 -0
  543. package/stable/object/get-own-property-symbols.js +1 -0
  544. package/stable/object/get-prototype-of.js +1 -0
  545. package/stable/object/index.js +1 -0
  546. package/stable/object/is-extensible.js +1 -0
  547. package/stable/object/is-frozen.js +1 -0
  548. package/stable/object/is-sealed.js +1 -0
  549. package/stable/object/is.js +1 -0
  550. package/stable/object/keys.js +1 -0
  551. package/stable/object/lookup-getter.js +1 -0
  552. package/stable/object/lookup-setter.js +1 -0
  553. package/stable/object/prevent-extensions.js +1 -0
  554. package/stable/object/seal.js +1 -0
  555. package/stable/object/set-prototype-of.js +1 -0
  556. package/stable/object/to-string.js +1 -0
  557. package/stable/object/values.js +1 -0
  558. package/stable/parse-float.js +1 -0
  559. package/stable/parse-int.js +1 -0
  560. package/stable/promise/finally.js +1 -0
  561. package/stable/promise/index.js +1 -0
  562. package/stable/queue-microtask.js +1 -0
  563. package/stable/reflect/apply.js +1 -0
  564. package/stable/reflect/construct.js +1 -0
  565. package/stable/reflect/define-property.js +1 -0
  566. package/stable/reflect/delete-property.js +1 -0
  567. package/stable/reflect/get-own-property-descriptor.js +1 -0
  568. package/stable/reflect/get-prototype-of.js +1 -0
  569. package/stable/reflect/get.js +1 -0
  570. package/stable/reflect/has.js +1 -0
  571. package/stable/reflect/index.js +1 -0
  572. package/stable/reflect/is-extensible.js +1 -0
  573. package/stable/reflect/own-keys.js +1 -0
  574. package/stable/reflect/prevent-extensions.js +1 -0
  575. package/stable/reflect/set-prototype-of.js +1 -0
  576. package/stable/reflect/set.js +1 -0
  577. package/stable/regexp/constructor.js +1 -0
  578. package/stable/regexp/flags.js +1 -0
  579. package/stable/regexp/index.js +1 -0
  580. package/stable/regexp/match.js +1 -0
  581. package/stable/regexp/replace.js +1 -0
  582. package/stable/regexp/search.js +1 -0
  583. package/stable/regexp/split.js +1 -0
  584. package/stable/regexp/to-string.js +1 -0
  585. package/stable/set/index.js +1 -0
  586. package/stable/set-immediate.js +3 -0
  587. package/stable/set-interval.js +3 -0
  588. package/stable/set-timeout.js +3 -0
  589. package/stable/string/anchor.js +1 -0
  590. package/stable/string/big.js +1 -0
  591. package/stable/string/blink.js +1 -0
  592. package/stable/string/bold.js +1 -0
  593. package/stable/string/code-point-at.js +1 -0
  594. package/stable/string/ends-with.js +1 -0
  595. package/stable/string/fixed.js +1 -0
  596. package/stable/string/fontcolor.js +1 -0
  597. package/stable/string/fontsize.js +1 -0
  598. package/stable/string/from-code-point.js +1 -0
  599. package/stable/string/includes.js +1 -0
  600. package/stable/string/index.js +1 -0
  601. package/stable/string/italics.js +1 -0
  602. package/stable/string/iterator.js +1 -0
  603. package/stable/string/link.js +1 -0
  604. package/stable/string/match.js +1 -0
  605. package/stable/string/pad-end.js +1 -0
  606. package/stable/string/pad-start.js +1 -0
  607. package/stable/string/raw.js +1 -0
  608. package/stable/string/repeat.js +1 -0
  609. package/stable/string/replace.js +1 -0
  610. package/stable/string/search.js +1 -0
  611. package/stable/string/small.js +1 -0
  612. package/stable/string/split.js +1 -0
  613. package/stable/string/starts-with.js +1 -0
  614. package/stable/string/strike.js +1 -0
  615. package/stable/string/sub.js +1 -0
  616. package/stable/string/sup.js +1 -0
  617. package/stable/string/trim-end.js +1 -0
  618. package/stable/string/trim-left.js +1 -0
  619. package/stable/string/trim-right.js +1 -0
  620. package/stable/string/trim-start.js +1 -0
  621. package/stable/string/trim.js +1 -0
  622. package/stable/string/virtual/anchor.js +1 -0
  623. package/stable/string/virtual/big.js +1 -0
  624. package/stable/string/virtual/blink.js +1 -0
  625. package/stable/string/virtual/bold.js +1 -0
  626. package/stable/string/virtual/code-point-at.js +1 -0
  627. package/stable/string/virtual/ends-with.js +1 -0
  628. package/stable/string/virtual/fixed.js +1 -0
  629. package/stable/string/virtual/fontcolor.js +1 -0
  630. package/stable/string/virtual/fontsize.js +1 -0
  631. package/stable/string/virtual/includes.js +1 -0
  632. package/stable/string/virtual/index.js +1 -0
  633. package/stable/string/virtual/italics.js +1 -0
  634. package/stable/string/virtual/iterator.js +1 -0
  635. package/stable/string/virtual/link.js +1 -0
  636. package/stable/string/virtual/pad-end.js +1 -0
  637. package/stable/string/virtual/pad-start.js +1 -0
  638. package/stable/string/virtual/repeat.js +1 -0
  639. package/stable/string/virtual/small.js +1 -0
  640. package/stable/string/virtual/starts-with.js +1 -0
  641. package/stable/string/virtual/strike.js +1 -0
  642. package/stable/string/virtual/sub.js +1 -0
  643. package/stable/string/virtual/sup.js +1 -0
  644. package/stable/string/virtual/trim-end.js +1 -0
  645. package/stable/string/virtual/trim-left.js +1 -0
  646. package/stable/string/virtual/trim-right.js +1 -0
  647. package/stable/string/virtual/trim-start.js +1 -0
  648. package/stable/string/virtual/trim.js +1 -0
  649. package/stable/symbol/async-iterator.js +1 -0
  650. package/stable/symbol/description.js +1 -0
  651. package/stable/symbol/for.js +1 -0
  652. package/stable/symbol/has-instance.js +1 -0
  653. package/stable/symbol/index.js +1 -0
  654. package/stable/symbol/is-concat-spreadable.js +1 -0
  655. package/stable/symbol/iterator.js +1 -0
  656. package/stable/symbol/key-for.js +1 -0
  657. package/stable/symbol/match.js +1 -0
  658. package/stable/symbol/replace.js +1 -0
  659. package/stable/symbol/search.js +1 -0
  660. package/stable/symbol/species.js +1 -0
  661. package/stable/symbol/split.js +1 -0
  662. package/stable/symbol/to-primitive.js +1 -0
  663. package/stable/symbol/to-string-tag.js +1 -0
  664. package/stable/symbol/unscopables.js +1 -0
  665. package/stable/typed-array/copy-within.js +1 -0
  666. package/stable/typed-array/entries.js +1 -0
  667. package/stable/typed-array/every.js +1 -0
  668. package/stable/typed-array/fill.js +1 -0
  669. package/stable/typed-array/filter.js +1 -0
  670. package/stable/typed-array/find-index.js +1 -0
  671. package/stable/typed-array/find.js +1 -0
  672. package/stable/typed-array/float32-array.js +1 -0
  673. package/stable/typed-array/float64-array.js +1 -0
  674. package/stable/typed-array/for-each.js +1 -0
  675. package/stable/typed-array/from.js +1 -0
  676. package/stable/typed-array/includes.js +1 -0
  677. package/stable/typed-array/index-of.js +1 -0
  678. package/stable/typed-array/index.js +1 -0
  679. package/stable/typed-array/int16-array.js +1 -0
  680. package/stable/typed-array/int32-array.js +1 -0
  681. package/stable/typed-array/int8-array.js +1 -0
  682. package/stable/typed-array/iterator.js +1 -0
  683. package/stable/typed-array/join.js +1 -0
  684. package/stable/typed-array/keys.js +1 -0
  685. package/stable/typed-array/last-index-of.js +1 -0
  686. package/stable/typed-array/map.js +1 -0
  687. package/stable/typed-array/of.js +1 -0
  688. package/stable/typed-array/reduce-right.js +1 -0
  689. package/stable/typed-array/reduce.js +1 -0
  690. package/stable/typed-array/reverse.js +1 -0
  691. package/stable/typed-array/set.js +1 -0
  692. package/stable/typed-array/slice.js +1 -0
  693. package/stable/typed-array/some.js +1 -0
  694. package/stable/typed-array/sort.js +1 -0
  695. package/stable/typed-array/subarray.js +1 -0
  696. package/stable/typed-array/to-locale-string.js +1 -0
  697. package/stable/typed-array/to-string.js +1 -0
  698. package/stable/typed-array/uint16-array.js +1 -0
  699. package/stable/typed-array/uint32-array.js +1 -0
  700. package/stable/typed-array/uint8-array.js +1 -0
  701. package/stable/typed-array/uint8-clamped-array.js +1 -0
  702. package/stable/typed-array/values.js +1 -0
  703. package/stable/url/index.js +1 -0
  704. package/stable/url/to-json.js +1 -0
  705. package/stable/url-search-params/index.js +1 -0
  706. package/stable/weak-map/index.js +1 -0
  707. package/stable/weak-set/index.js +1 -0
  708. package/stage/0.js +1 -0
  709. package/stage/1.js +1 -2
  710. package/stage/2.js +1 -0
  711. package/stage/3.js +0 -3
  712. package/internals/object-statics-accept-primitives.js +0 -11
  713. package/internals/set-collection-from.js +0 -28
  714. package/internals/set-collection-of.js +0 -12
  715. package/internals/strict-method.js +0 -9
  716. package/internals/string-html.js +0 -21
  717. package/modules/esnext.string.trim-left.js +0 -8
  718. package/modules/esnext.string.trim-right.js +0 -8
  719. package/proposals/array-flat-and-flat-map.js +0 -2
  720. package/proposals/object-from-entries.js +0 -2
  721. package/proposals/string-trim-start-end.js +0 -2
@@ -1,5 +1,5 @@
1
1
  'use strict';
2
- var internalCodePointAt = require('../internals/string-at')(false);
2
+ var internalCodePointAt = require('../internals/string-at');
3
3
 
4
4
  // `String.prototype.codePointAt` method
5
5
  // https://tc39.github.io/ecma262/#sec-string.prototype.codepointat
@@ -1,8 +1,11 @@
1
1
  'use strict';
2
+ var createHTML = require('../internals/create-html');
3
+ var FORCED = require('../internals/forced-string-html-method')('fixed');
4
+
2
5
  // `String.prototype.fixed` method
3
6
  // https://tc39.github.io/ecma262/#sec-string.prototype.fixed
4
- require('../internals/string-html')('fixed', function (createHTML) {
5
- return function fixed() {
7
+ require('../internals/export')({ target: 'String', proto: true, forced: FORCED }, {
8
+ fixed: function fixed() {
6
9
  return createHTML(this, 'tt', '', '');
7
- };
10
+ }
8
11
  });
@@ -1,8 +1,11 @@
1
1
  'use strict';
2
+ var createHTML = require('../internals/create-html');
3
+ var FORCED = require('../internals/forced-string-html-method')('fontcolor');
4
+
2
5
  // `String.prototype.fontcolor` method
3
6
  // https://tc39.github.io/ecma262/#sec-string.prototype.fontcolor
4
- require('../internals/string-html')('fontcolor', function (createHTML) {
5
- return function fontcolor(color) {
7
+ require('../internals/export')({ target: 'String', proto: true, forced: FORCED }, {
8
+ fontcolor: function fontcolor(color) {
6
9
  return createHTML(this, 'font', 'color', color);
7
- };
10
+ }
8
11
  });
@@ -1,8 +1,11 @@
1
1
  'use strict';
2
+ var createHTML = require('../internals/create-html');
3
+ var FORCED = require('../internals/forced-string-html-method')('fontsize');
4
+
2
5
  // `String.prototype.fontsize` method
3
6
  // https://tc39.github.io/ecma262/#sec-string.prototype.fontsize
4
- require('../internals/string-html')('fontsize', function (createHTML) {
5
- return function fontsize(size) {
7
+ require('../internals/export')({ target: 'String', proto: true, forced: FORCED }, {
8
+ fontsize: function fontsize(size) {
6
9
  return createHTML(this, 'font', 'size', size);
7
- };
10
+ }
8
11
  });
@@ -15,10 +15,10 @@ require('../internals/export')({ target: 'String', stat: true, forced: INCORRECT
15
15
  var code;
16
16
  while (length > i) {
17
17
  code = +arguments[i++];
18
- if (toAbsoluteIndex(code, 0x10ffff) !== code) throw RangeError(code + ' is not a valid code point');
18
+ if (toAbsoluteIndex(code, 0x10FFFF) !== code) throw RangeError(code + ' is not a valid code point');
19
19
  elements.push(code < 0x10000
20
20
  ? fromCharCode(code)
21
- : fromCharCode(((code -= 0x10000) >> 10) + 0xd800, code % 0x400 + 0xdc00)
21
+ : fromCharCode(((code -= 0x10000) >> 10) + 0xD800, code % 0x400 + 0xDC00)
22
22
  );
23
23
  } return elements.join('');
24
24
  }
@@ -1,8 +1,11 @@
1
1
  'use strict';
2
+ var createHTML = require('../internals/create-html');
3
+ var FORCED = require('../internals/forced-string-html-method')('italics');
4
+
2
5
  // `String.prototype.italics` method
3
6
  // https://tc39.github.io/ecma262/#sec-string.prototype.italics
4
- require('../internals/string-html')('italics', function (createHTML) {
5
- return function italics() {
7
+ require('../internals/export')({ target: 'String', proto: true, forced: FORCED }, {
8
+ italics: function italics() {
6
9
  return createHTML(this, 'i', '', '');
7
- };
10
+ }
8
11
  });
@@ -1,5 +1,5 @@
1
1
  'use strict';
2
- var at = require('../internals/string-at')(true);
2
+ var codePointAt = require('../internals/string-at');
3
3
  var InternalStateModule = require('../internals/internal-state');
4
4
  var defineIterator = require('../internals/define-iterator');
5
5
  var STRING_ITERATOR = 'String Iterator';
@@ -22,7 +22,7 @@ defineIterator(String, 'String', function (iterated) {
22
22
  var index = state.index;
23
23
  var point;
24
24
  if (index >= string.length) return { value: undefined, done: true };
25
- point = at(string, index);
25
+ point = codePointAt(string, index, true);
26
26
  state.index += point.length;
27
27
  return { value: point, done: false };
28
28
  });
@@ -1,8 +1,11 @@
1
1
  'use strict';
2
+ var createHTML = require('../internals/create-html');
3
+ var FORCED = require('../internals/forced-string-html-method')('link');
4
+
2
5
  // `String.prototype.link` method
3
6
  // https://tc39.github.io/ecma262/#sec-string.prototype.link
4
- require('../internals/string-html')('link', function (createHTML) {
5
- return function link(url) {
7
+ require('../internals/export')({ target: 'String', proto: true, forced: FORCED }, {
8
+ link: function link(url) {
6
9
  return createHTML(this, 'a', 'href', url);
7
- };
10
+ }
8
11
  });
@@ -2,6 +2,7 @@
2
2
 
3
3
  var anObject = require('../internals/an-object');
4
4
  var toLength = require('../internals/to-length');
5
+ var requireObjectCoercible = require('../internals/require-object-coercible');
5
6
  var advanceStringIndex = require('../internals/advance-string-index');
6
7
  var regExpExec = require('../internals/regexp-exec-abstract');
7
8
 
@@ -9,12 +10,12 @@ var regExpExec = require('../internals/regexp-exec-abstract');
9
10
  require('../internals/fix-regexp-well-known-symbol-logic')(
10
11
  'match',
11
12
  1,
12
- function (defined, MATCH, nativeMatch, maybeCallNative) {
13
+ function (MATCH, nativeMatch, maybeCallNative) {
13
14
  return [
14
15
  // `String.prototype.match` method
15
16
  // https://tc39.github.io/ecma262/#sec-string.prototype.match
16
17
  function match(regexp) {
17
- var O = defined(this);
18
+ var O = requireObjectCoercible(this);
18
19
  var matcher = regexp == undefined ? undefined : regexp[MATCH];
19
20
  return matcher !== undefined ? matcher.call(regexp, O) : new RegExp(regexp)[MATCH](String(O));
20
21
  },
@@ -1,9 +1,6 @@
1
1
  'use strict';
2
2
  var internalStringPad = require('../internals/string-pad');
3
- var userAgent = require('../internals/user-agent');
4
-
5
- // https://github.com/zloirock/core-js/issues/280
6
- var WEBKIT_BUG = /Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(userAgent);
3
+ var WEBKIT_BUG = require('../internals/webkit-string-pad-bug');
7
4
 
8
5
  // `String.prototype.padEnd` method
9
6
  // https://tc39.github.io/ecma262/#sec-string.prototype.padend
@@ -1,9 +1,6 @@
1
1
  'use strict';
2
2
  var internalStringPad = require('../internals/string-pad');
3
- var userAgent = require('../internals/user-agent');
4
-
5
- // https://github.com/zloirock/core-js/issues/280
6
- var WEBKIT_BUG = /Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(userAgent);
3
+ var WEBKIT_BUG = require('../internals/webkit-string-pad-bug');
7
4
 
8
5
  // `String.prototype.padStart` method
9
6
  // https://tc39.github.io/ecma262/#sec-string.prototype.padstart
@@ -4,6 +4,7 @@ var anObject = require('../internals/an-object');
4
4
  var toObject = require('../internals/to-object');
5
5
  var toLength = require('../internals/to-length');
6
6
  var toInteger = require('../internals/to-integer');
7
+ var requireObjectCoercible = require('../internals/require-object-coercible');
7
8
  var advanceStringIndex = require('../internals/advance-string-index');
8
9
  var regExpExec = require('../internals/regexp-exec-abstract');
9
10
  var max = Math.max;
@@ -20,12 +21,12 @@ var maybeToString = function (it) {
20
21
  require('../internals/fix-regexp-well-known-symbol-logic')(
21
22
  'replace',
22
23
  2,
23
- function (defined, REPLACE, nativeReplace, maybeCallNative) {
24
+ function (REPLACE, nativeReplace, maybeCallNative) {
24
25
  return [
25
26
  // `String.prototype.replace` method
26
27
  // https://tc39.github.io/ecma262/#sec-string.prototype.replace
27
28
  function replace(searchValue, replaceValue) {
28
- var O = defined(this);
29
+ var O = requireObjectCoercible(this);
29
30
  var replacer = searchValue == undefined ? undefined : searchValue[REPLACE];
30
31
  return replacer !== undefined
31
32
  ? replacer.call(searchValue, O, replaceValue)
@@ -112,12 +113,12 @@ require('../internals/fix-regexp-well-known-symbol-logic')(
112
113
  break;
113
114
  default: // \d\d?
114
115
  var n = +ch;
115
- if (n === 0) return ch;
116
+ if (n === 0) return match;
116
117
  if (n > m) {
117
118
  var f = floor(n / 10);
118
- if (f === 0) return ch;
119
+ if (f === 0) return match;
119
120
  if (f <= m) return captures[f - 1] === undefined ? ch.charAt(1) : captures[f - 1] + ch.charAt(1);
120
- return ch;
121
+ return match;
121
122
  }
122
123
  capture = captures[n - 1];
123
124
  }
@@ -1,6 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var anObject = require('../internals/an-object');
4
+ var requireObjectCoercible = require('../internals/require-object-coercible');
4
5
  var sameValue = require('../internals/same-value');
5
6
  var regExpExec = require('../internals/regexp-exec-abstract');
6
7
 
@@ -8,12 +9,12 @@ var regExpExec = require('../internals/regexp-exec-abstract');
8
9
  require('../internals/fix-regexp-well-known-symbol-logic')(
9
10
  'search',
10
11
  1,
11
- function (defined, SEARCH, nativeSearch, maybeCallNative) {
12
+ function (SEARCH, nativeSearch, maybeCallNative) {
12
13
  return [
13
14
  // `String.prototype.search` method
14
15
  // https://tc39.github.io/ecma262/#sec-string.prototype.search
15
16
  function search(regexp) {
16
- var O = defined(this);
17
+ var O = requireObjectCoercible(this);
17
18
  var searcher = regexp == undefined ? undefined : regexp[SEARCH];
18
19
  return searcher !== undefined ? searcher.call(regexp, O) : new RegExp(regexp)[SEARCH](String(O));
19
20
  },
@@ -1,8 +1,11 @@
1
1
  'use strict';
2
+ var createHTML = require('../internals/create-html');
3
+ var FORCED = require('../internals/forced-string-html-method')('small');
4
+
2
5
  // `String.prototype.small` method
3
6
  // https://tc39.github.io/ecma262/#sec-string.prototype.small
4
- require('../internals/string-html')('small', function (createHTML) {
5
- return function small() {
7
+ require('../internals/export')({ target: 'String', proto: true, forced: FORCED }, {
8
+ small: function small() {
6
9
  return createHTML(this, 'small', '', '');
7
- };
10
+ }
8
11
  });
@@ -2,39 +2,43 @@
2
2
 
3
3
  var isRegExp = require('../internals/is-regexp');
4
4
  var anObject = require('../internals/an-object');
5
+ var requireObjectCoercible = require('../internals/require-object-coercible');
5
6
  var speciesConstructor = require('../internals/species-constructor');
6
7
  var advanceStringIndex = require('../internals/advance-string-index');
7
8
  var toLength = require('../internals/to-length');
8
9
  var callRegExpExec = require('../internals/regexp-exec-abstract');
9
10
  var regexpExec = require('../internals/regexp-exec');
11
+ var fails = require('../internals/fails');
10
12
  var arrayPush = [].push;
11
13
  var min = Math.min;
12
- var LENGTH = 'length';
14
+ var MAX_UINT32 = 0xFFFFFFFF;
13
15
 
14
- // eslint-disable-next-line no-empty
15
- var SUPPORTS_Y = !!(function () { try { return new RegExp('x', 'y'); } catch (e) {} })();
16
+ // babel-minify transpiles RegExp('x', 'y') -> /x/y and it causes SyntaxError
17
+ var SUPPORTS_Y = !fails(function () { return !RegExp(MAX_UINT32, 'y'); });
16
18
 
17
19
  // @@split logic
18
20
  require('../internals/fix-regexp-well-known-symbol-logic')(
19
21
  'split',
20
22
  2,
21
- function (defined, SPLIT, nativeSplit, maybeCallNative) {
23
+ function (SPLIT, nativeSplit, maybeCallNative) {
22
24
  var internalSplit;
23
25
  if (
24
26
  'abbc'.split(/(b)*/)[1] == 'c' ||
25
- 'test'.split(/(?:)/, -1)[LENGTH] != 4 ||
26
- 'ab'.split(/(?:ab)*/)[LENGTH] != 2 ||
27
- '.'.split(/(.?)(.?)/)[LENGTH] != 4 ||
28
- '.'.split(/()()/)[LENGTH] > 1 ||
29
- ''.split(/.?/)[LENGTH]
27
+ 'test'.split(/(?:)/, -1).length != 4 ||
28
+ 'ab'.split(/(?:ab)*/).length != 2 ||
29
+ '.'.split(/(.?)(.?)/).length != 4 ||
30
+ '.'.split(/()()/).length > 1 ||
31
+ ''.split(/.?/).length
30
32
  ) {
31
33
  // based on es5-shim implementation, need to rework it
32
34
  internalSplit = function (separator, limit) {
33
- var string = String(this);
34
- if (separator === undefined && limit === 0) return [];
35
+ var string = String(requireObjectCoercible(this));
36
+ var lim = limit === undefined ? MAX_UINT32 : limit >>> 0;
37
+ if (lim === 0) return [];
38
+ if (separator === undefined) return [string];
35
39
  // If `separator` is not a regex, use native split
36
40
  if (!isRegExp(separator)) {
37
- return nativeSplit.call(string, separator, limit !== undefined ? limit >>> 0 : 4294967295);
41
+ return nativeSplit.call(string, separator, lim);
38
42
  }
39
43
  var output = [];
40
44
  var flags = (separator.ignoreCase ? 'i' : '') +
@@ -42,7 +46,6 @@ require('../internals/fix-regexp-well-known-symbol-logic')(
42
46
  (separator.unicode ? 'u' : '') +
43
47
  (separator.sticky ? 'y' : '');
44
48
  var lastLastIndex = 0;
45
- var splitLimit = limit === undefined ? 4294967295 : limit >>> 0;
46
49
  // Make `global` and avoid `lastIndex` issues by working with a copy
47
50
  var separatorCopy = new RegExp(separator.source, flags + 'g');
48
51
  var match, lastIndex, lastLength;
@@ -50,20 +53,20 @@ require('../internals/fix-regexp-well-known-symbol-logic')(
50
53
  lastIndex = separatorCopy.lastIndex;
51
54
  if (lastIndex > lastLastIndex) {
52
55
  output.push(string.slice(lastLastIndex, match.index));
53
- if (match[LENGTH] > 1 && match.index < string[LENGTH]) arrayPush.apply(output, match.slice(1));
54
- lastLength = match[0][LENGTH];
56
+ if (match.length > 1 && match.index < string.length) arrayPush.apply(output, match.slice(1));
57
+ lastLength = match[0].length;
55
58
  lastLastIndex = lastIndex;
56
- if (output[LENGTH] >= splitLimit) break;
59
+ if (output.length >= lim) break;
57
60
  }
58
61
  if (separatorCopy.lastIndex === match.index) separatorCopy.lastIndex++; // Avoid an infinite loop
59
62
  }
60
- if (lastLastIndex === string[LENGTH]) {
63
+ if (lastLastIndex === string.length) {
61
64
  if (lastLength || !separatorCopy.test('')) output.push('');
62
65
  } else output.push(string.slice(lastLastIndex));
63
- return output[LENGTH] > splitLimit ? output.slice(0, splitLimit) : output;
66
+ return output.length > lim ? output.slice(0, lim) : output;
64
67
  };
65
68
  // Chakra, V8
66
- } else if ('0'.split(undefined, 0)[LENGTH]) {
69
+ } else if ('0'.split(undefined, 0).length) {
67
70
  internalSplit = function (separator, limit) {
68
71
  return separator === undefined && limit === 0 ? [] : nativeSplit.call(this, separator, limit);
69
72
  };
@@ -73,7 +76,7 @@ require('../internals/fix-regexp-well-known-symbol-logic')(
73
76
  // `String.prototype.split` method
74
77
  // https://tc39.github.io/ecma262/#sec-string.prototype.split
75
78
  function split(separator, limit) {
76
- var O = defined(this);
79
+ var O = requireObjectCoercible(this);
77
80
  var splitter = separator == undefined ? undefined : separator[SPLIT];
78
81
  return splitter !== undefined
79
82
  ? splitter.call(separator, O, limit)
@@ -94,14 +97,14 @@ require('../internals/fix-regexp-well-known-symbol-logic')(
94
97
 
95
98
  var unicodeMatching = rx.unicode;
96
99
  var flags = (rx.ignoreCase ? 'i' : '') +
97
- (rx.multiline ? 'm' : '') +
98
- (rx.unicode ? 'u' : '') +
99
- (SUPPORTS_Y ? 'y' : 'g');
100
+ (rx.multiline ? 'm' : '') +
101
+ (rx.unicode ? 'u' : '') +
102
+ (SUPPORTS_Y ? 'y' : 'g');
100
103
 
101
104
  // ^(? + rx + ) is needed, in combination with some S slicing, to
102
105
  // simulate the 'y' flag.
103
106
  var splitter = new C(SUPPORTS_Y ? rx : '^(?:' + rx.source + ')', flags);
104
- var lim = limit === undefined ? 0xffffffff : limit >>> 0;
107
+ var lim = limit === undefined ? MAX_UINT32 : limit >>> 0;
105
108
  if (lim === 0) return [];
106
109
  if (S.length === 0) return callRegExpExec(splitter, S) === null ? [S] : [];
107
110
  var p = 0;
@@ -1,8 +1,11 @@
1
1
  'use strict';
2
+ var createHTML = require('../internals/create-html');
3
+ var FORCED = require('../internals/forced-string-html-method')('strike');
4
+
2
5
  // `String.prototype.strike` method
3
6
  // https://tc39.github.io/ecma262/#sec-string.prototype.strike
4
- require('../internals/string-html')('strike', function (createHTML) {
5
- return function strike() {
7
+ require('../internals/export')({ target: 'String', proto: true, forced: FORCED }, {
8
+ strike: function strike() {
6
9
  return createHTML(this, 'strike', '', '');
7
- };
10
+ }
8
11
  });
@@ -1,8 +1,11 @@
1
1
  'use strict';
2
+ var createHTML = require('../internals/create-html');
3
+ var FORCED = require('../internals/forced-string-html-method')('sub');
4
+
2
5
  // `String.prototype.sub` method
3
6
  // https://tc39.github.io/ecma262/#sec-string.prototype.sub
4
- require('../internals/string-html')('sub', function (createHTML) {
5
- return function sub() {
7
+ require('../internals/export')({ target: 'String', proto: true, forced: FORCED }, {
8
+ sub: function sub() {
6
9
  return createHTML(this, 'sub', '', '');
7
- };
10
+ }
8
11
  });
@@ -1,8 +1,11 @@
1
1
  'use strict';
2
+ var createHTML = require('../internals/create-html');
3
+ var FORCED = require('../internals/forced-string-html-method')('sup');
4
+
2
5
  // `String.prototype.sup` method
3
6
  // https://tc39.github.io/ecma262/#sec-string.prototype.sup
4
- require('../internals/string-html')('sup', function (createHTML) {
5
- return function sup() {
7
+ require('../internals/export')({ target: 'String', proto: true, forced: FORCED }, {
8
+ sup: function sup() {
6
9
  return createHTML(this, 'sup', '', '');
7
- };
10
+ }
8
11
  });
@@ -0,0 +1,14 @@
1
+ 'use strict';
2
+ var internalStringTrim = require('../internals/string-trim');
3
+ var FORCED = require('../internals/forced-string-trim-method')('trimEnd');
4
+
5
+ var trimEnd = FORCED ? function trimEnd() {
6
+ return internalStringTrim(this, 2);
7
+ } : ''.trimEnd;
8
+
9
+ // `String.prototype.{ trimEnd, trimRight }` methods
10
+ // https://github.com/tc39/ecmascript-string-left-right-trim
11
+ require('../internals/export')({ target: 'String', proto: true, forced: FORCED }, {
12
+ trimEnd: trimEnd,
13
+ trimRight: trimEnd
14
+ });
@@ -0,0 +1,14 @@
1
+ 'use strict';
2
+ var internalStringTrim = require('../internals/string-trim');
3
+ var FORCED = require('../internals/forced-string-trim-method')('trimStart');
4
+
5
+ var trimStart = FORCED ? function trimStart() {
6
+ return internalStringTrim(this, 1);
7
+ } : ''.trimStart;
8
+
9
+ // `String.prototype.{ trimStart, trimLeft }` methods
10
+ // https://github.com/tc39/ecmascript-string-left-right-trim
11
+ require('../internals/export')({ target: 'String', proto: true, forced: FORCED }, {
12
+ trimStart: trimStart,
13
+ trimLeft: trimStart
14
+ });
@@ -1,8 +1,11 @@
1
1
  'use strict';
2
+ var internalStringTrim = require('../internals/string-trim');
3
+ var FORCED = require('../internals/forced-string-trim-method')('trim');
4
+
2
5
  // `String.prototype.trim` method
3
6
  // https://tc39.github.io/ecma262/#sec-string.prototype.trim
4
- require('../internals/string-trim')('trim', function (internalTrim) {
5
- return function trim() {
6
- return internalTrim(this, 3);
7
- };
7
+ require('../internals/export')({ target: 'String', proto: true, forced: FORCED }, {
8
+ trim: function trim() {
9
+ return internalStringTrim(this, 3);
10
+ }
8
11
  });
@@ -48,7 +48,7 @@ var ObjectPrototypeSymbols = shared('op-symbols');
48
48
  var WellKnownSymbolsStore = shared('wks');
49
49
  var ObjectPrototype = Object[PROTOTYPE];
50
50
  var QObject = global.QObject;
51
- var USE_NATIVE = require('../internals/native-symbol');
51
+ var NATIVE_SYMBOL = require('../internals/native-symbol');
52
52
  // Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/173
53
53
  var USE_SETTER = !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findChild;
54
54
 
@@ -77,10 +77,10 @@ var wrap = function (tag, description) {
77
77
  return symbol;
78
78
  };
79
79
 
80
- var isSymbol = USE_NATIVE && typeof $Symbol.iterator == 'symbol' ? function (it) {
80
+ var isSymbol = NATIVE_SYMBOL && typeof $Symbol.iterator == 'symbol' ? function (it) {
81
81
  return typeof it == 'symbol';
82
82
  } : function (it) {
83
- return it instanceof $Symbol;
83
+ return Object(it) instanceof $Symbol;
84
84
  };
85
85
 
86
86
  var $defineProperty = function defineProperty(it, key, D) {
@@ -151,9 +151,9 @@ var $getOwnPropertySymbols = function getOwnPropertySymbols(it) {
151
151
 
152
152
  // `Symbol` constructor
153
153
  // https://tc39.github.io/ecma262/#sec-symbol-constructor
154
- if (!USE_NATIVE) {
154
+ if (!NATIVE_SYMBOL) {
155
155
  $Symbol = function Symbol() {
156
- if (this instanceof $Symbol) throw TypeError('Symbol is not a constructor!');
156
+ if (this instanceof $Symbol) throw TypeError('Symbol is not a constructor');
157
157
  var description = arguments[0] === undefined ? undefined : String(arguments[0]);
158
158
  var tag = uid(description);
159
159
  var setter = function (value) {
@@ -192,13 +192,13 @@ if (!USE_NATIVE) {
192
192
  };
193
193
  }
194
194
 
195
- $export({ global: true, wrap: true, forced: !USE_NATIVE, sham: !USE_NATIVE }, { Symbol: $Symbol });
195
+ $export({ global: true, wrap: true, forced: !NATIVE_SYMBOL, sham: !NATIVE_SYMBOL }, { Symbol: $Symbol });
196
196
 
197
197
  for (var wellKnownSymbols = objectKeys(WellKnownSymbolsStore), k = 0; wellKnownSymbols.length > k;) {
198
198
  defineWellKnownSymbol(wellKnownSymbols[k++]);
199
199
  }
200
200
 
201
- $export({ target: SYMBOL, stat: true, forced: !USE_NATIVE }, {
201
+ $export({ target: SYMBOL, stat: true, forced: !NATIVE_SYMBOL }, {
202
202
  // `Symbol.for` method
203
203
  // https://tc39.github.io/ecma262/#sec-symbol.for
204
204
  'for': function (key) {
@@ -209,14 +209,14 @@ $export({ target: SYMBOL, stat: true, forced: !USE_NATIVE }, {
209
209
  // `Symbol.keyFor` method
210
210
  // https://tc39.github.io/ecma262/#sec-symbol.keyfor
211
211
  keyFor: function keyFor(sym) {
212
- if (!isSymbol(sym)) throw TypeError(sym + ' is not a symbol!');
212
+ if (!isSymbol(sym)) throw TypeError(sym + ' is not a symbol');
213
213
  for (var key in SymbolRegistry) if (SymbolRegistry[key] === sym) return key;
214
214
  },
215
215
  useSetter: function () { USE_SETTER = true; },
216
216
  useSimple: function () { USE_SETTER = false; }
217
217
  });
218
218
 
219
- $export({ target: 'Object', stat: true, forced: !USE_NATIVE, sham: !DESCRIPTORS }, {
219
+ $export({ target: 'Object', stat: true, forced: !NATIVE_SYMBOL, sham: !DESCRIPTORS }, {
220
220
  // `Object.create` method
221
221
  // https://tc39.github.io/ecma262/#sec-object.create
222
222
  create: $create,
@@ -231,7 +231,7 @@ $export({ target: 'Object', stat: true, forced: !USE_NATIVE, sham: !DESCRIPTORS
231
231
  getOwnPropertyDescriptor: $getOwnPropertyDescriptor
232
232
  });
233
233
 
234
- $export({ target: 'Object', stat: true, forced: !USE_NATIVE }, {
234
+ $export({ target: 'Object', stat: true, forced: !NATIVE_SYMBOL }, {
235
235
  // `Object.getOwnPropertyNames` method
236
236
  // https://tc39.github.io/ecma262/#sec-object.getownpropertynames
237
237
  getOwnPropertyNames: $getOwnPropertyNames,
@@ -242,7 +242,7 @@ $export({ target: 'Object', stat: true, forced: !USE_NATIVE }, {
242
242
 
243
243
  // `JSON.stringify` method behavior with symbols
244
244
  // https://tc39.github.io/ecma262/#sec-json.stringify
245
- JSON && $export({ target: 'JSON', stat: true, forced: !USE_NATIVE || fails(function () {
245
+ JSON && $export({ target: 'JSON', stat: true, forced: !NATIVE_SYMBOL || fails(function () {
246
246
  var symbol = $Symbol();
247
247
  // MS Edge converts symbol values to JSON as {}
248
248
  return nativeJSONStringify([symbol]) != '[null]'
@@ -5,6 +5,7 @@ var aTypedArray = ArrayBufferViewCore.aTypedArray;
5
5
 
6
6
  // `%TypedArray%.prototype.fill` method
7
7
  // https://tc39.github.io/ecma262/#sec-%typedarray%.prototype.fill
8
- ArrayBufferViewCore.exportProto('fill', function fill(value /* , start, end */) { // eslint-disable-line no-unused-vars
8
+ // eslint-disable-next-line no-unused-vars
9
+ ArrayBufferViewCore.exportProto('fill', function fill(value /* , start, end */) {
9
10
  return arrayFill.apply(aTypedArray(this), arguments);
10
11
  });
@@ -5,6 +5,7 @@ var arrayJoin = [].join;
5
5
 
6
6
  // `%TypedArray%.prototype.join` method
7
7
  // https://tc39.github.io/ecma262/#sec-%typedarray%.prototype.join
8
- ArrayBufferViewCore.exportProto('join', function join(separator) { // eslint-disable-line no-unused-vars
8
+ // eslint-disable-next-line no-unused-vars
9
+ ArrayBufferViewCore.exportProto('join', function join(separator) {
9
10
  return arrayJoin.apply(aTypedArray(this), arguments);
10
11
  });
@@ -19,6 +19,6 @@ ArrayBufferViewCore.exportProto('set', function set(arrayLike /* , offset */) {
19
19
  var src = toObject(arrayLike);
20
20
  var len = toLength(src.length);
21
21
  var index = 0;
22
- if (len + offset > length) throw RangeError('Wrong length!');
22
+ if (len + offset > length) throw RangeError('Wrong length');
23
23
  while (index < len) this[offset + index] = src[index++];
24
24
  }, FORCED);
@@ -1,13 +1,13 @@
1
1
  'use strict';
2
+ var global = require('../internals/global');
2
3
  var redefineAll = require('../internals/redefine-all');
3
4
  var InternalMetadataModule = require('../internals/internal-metadata');
4
5
  var weak = require('../internals/collection-weak');
5
6
  var isObject = require('../internals/is-object');
6
- var fails = require('../internals/fails');
7
7
  var enforceIternalState = require('../internals/internal-state').enforce;
8
- var WEAK_MAP = 'WeakMap';
8
+ var NATIVE_WEAK_MAP = require('../internals/native-weak-map');
9
+ var IS_IE11 = !global.ActiveXObject && 'ActiveXObject' in global;
9
10
  var isExtensible = Object.isExtensible;
10
- var test = {};
11
11
  var InternalWeakMap;
12
12
 
13
13
  var wrapper = function (get) {
@@ -18,11 +18,13 @@ var wrapper = function (get) {
18
18
 
19
19
  // `WeakMap` constructor
20
20
  // https://tc39.github.io/ecma262/#sec-weakmap-constructor
21
- var $WeakMap = module.exports = require('../internals/collection')(WEAK_MAP, wrapper, weak, true, true);
21
+ var $WeakMap = module.exports = require('../internals/collection')('WeakMap', wrapper, weak, true, true);
22
22
 
23
23
  // IE11 WeakMap frozen keys fix
24
- if (fails(function () { return new $WeakMap().set((Object.freeze || Object)(test), 7).get(test) != 7; })) {
25
- InternalWeakMap = weak.getConstructor(wrapper, WEAK_MAP, true);
24
+ // We can't use feature detection because it crash some old IE builds
25
+ // https://github.com/zloirock/core-js/issues/485
26
+ if (NATIVE_WEAK_MAP && IS_IE11) {
27
+ InternalWeakMap = weak.getConstructor(wrapper, 'WeakMap', true);
26
28
  InternalMetadataModule.REQUIRED = true;
27
29
  var WeakMapPrototype = $WeakMap.prototype;
28
30
  var nativeDelete = WeakMapPrototype['delete'];
@@ -0,0 +1,27 @@
1
+ var getPrototypeOf = require('../internals/object-get-prototype-of');
2
+ var setPrototypeOf = require('../internals/object-set-prototype-of');
3
+ var create = require('../internals/object-create');
4
+ var iterate = require('../internals/iterate');
5
+ var hide = require('../internals/hide');
6
+
7
+ var $AggregateError = function AggregateError(errors, message) {
8
+ var that = this;
9
+ if (!(that instanceof $AggregateError)) return new $AggregateError(errors, message);
10
+ if (setPrototypeOf) {
11
+ that = setPrototypeOf(new Error(message), getPrototypeOf(that));
12
+ }
13
+ var errorsArray = [];
14
+ iterate(errors, errorsArray.push, errorsArray);
15
+ that.errors = errorsArray;
16
+ if (message !== undefined) hide(that, 'message', String(message));
17
+ return that;
18
+ };
19
+
20
+ $AggregateError.prototype = create(Error.prototype, {
21
+ constructor: { value: $AggregateError, configurable: true, writable: true },
22
+ name: { value: 'AggregateError', configurable: true, writable: true }
23
+ });
24
+
25
+ require('../internals/export')({ global: true }, {
26
+ AggregateError: $AggregateError
27
+ });