core-js 3.4.1 → 3.4.5

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 (700) hide show
  1. package/es/index.js +3 -1
  2. package/es/json/index.js +1 -0
  3. package/features/array/concat.js +3 -1
  4. package/features/array/copy-within.js +3 -1
  5. package/features/array/entries.js +3 -1
  6. package/features/array/every.js +3 -1
  7. package/features/array/fill.js +3 -1
  8. package/features/array/filter.js +3 -1
  9. package/features/array/find-index.js +3 -1
  10. package/features/array/find.js +3 -1
  11. package/features/array/flat-map.js +3 -1
  12. package/features/array/flat.js +3 -1
  13. package/features/array/for-each.js +3 -1
  14. package/features/array/from.js +3 -1
  15. package/features/array/includes.js +3 -1
  16. package/features/array/index-of.js +3 -1
  17. package/features/array/index.js +3 -2
  18. package/features/array/is-array.js +3 -1
  19. package/features/array/iterator.js +3 -1
  20. package/features/array/join.js +3 -1
  21. package/features/array/keys.js +3 -1
  22. package/features/array/last-index-of.js +3 -1
  23. package/features/array/map.js +3 -1
  24. package/features/array/of.js +3 -1
  25. package/features/array/reduce-right.js +3 -1
  26. package/features/array/reduce.js +3 -1
  27. package/features/array/reverse.js +3 -1
  28. package/features/array/slice.js +3 -1
  29. package/features/array/some.js +3 -1
  30. package/features/array/sort.js +3 -1
  31. package/features/array/splice.js +3 -1
  32. package/features/array/values.js +3 -1
  33. package/features/array/virtual/concat.js +3 -1
  34. package/features/array/virtual/copy-within.js +3 -1
  35. package/features/array/virtual/entries.js +3 -1
  36. package/features/array/virtual/every.js +3 -1
  37. package/features/array/virtual/fill.js +3 -1
  38. package/features/array/virtual/filter.js +3 -1
  39. package/features/array/virtual/find-index.js +3 -1
  40. package/features/array/virtual/find.js +3 -1
  41. package/features/array/virtual/flat-map.js +3 -1
  42. package/features/array/virtual/flat.js +3 -1
  43. package/features/array/virtual/for-each.js +3 -1
  44. package/features/array/virtual/includes.js +3 -1
  45. package/features/array/virtual/index-of.js +3 -1
  46. package/features/array/virtual/index.js +3 -1
  47. package/features/array/virtual/iterator.js +3 -1
  48. package/features/array/virtual/join.js +3 -1
  49. package/features/array/virtual/keys.js +3 -1
  50. package/features/array/virtual/last-index-of.js +3 -1
  51. package/features/array/virtual/map.js +3 -1
  52. package/features/array/virtual/reduce-right.js +3 -1
  53. package/features/array/virtual/reduce.js +3 -1
  54. package/features/array/virtual/reverse.js +3 -1
  55. package/features/array/virtual/slice.js +3 -1
  56. package/features/array/virtual/some.js +3 -1
  57. package/features/array/virtual/sort.js +3 -1
  58. package/features/array/virtual/splice.js +3 -1
  59. package/features/array/virtual/values.js +3 -1
  60. package/features/array-buffer/constructor.js +3 -1
  61. package/features/array-buffer/index.js +3 -1
  62. package/features/array-buffer/is-view.js +3 -1
  63. package/features/array-buffer/slice.js +3 -1
  64. package/features/clear-immediate.js +3 -1
  65. package/features/data-view/index.js +3 -1
  66. package/features/date/index.js +3 -1
  67. package/features/date/now.js +3 -1
  68. package/features/date/to-iso-string.js +3 -1
  69. package/features/date/to-json.js +3 -1
  70. package/features/date/to-primitive.js +3 -1
  71. package/features/date/to-string.js +3 -1
  72. package/features/dom-collections/for-each.js +3 -1
  73. package/features/dom-collections/index.js +3 -1
  74. package/features/dom-collections/iterator.js +3 -1
  75. package/features/function/bind.js +3 -1
  76. package/features/function/has-instance.js +3 -1
  77. package/features/function/index.js +3 -1
  78. package/features/function/name.js +3 -1
  79. package/features/function/virtual/bind.js +3 -1
  80. package/features/function/virtual/index.js +3 -1
  81. package/features/get-iterator-method.js +2 -1
  82. package/features/get-iterator.js +2 -1
  83. package/features/global-this.js +3 -1
  84. package/features/index.js +3 -1
  85. package/features/instance/bind.js +3 -1
  86. package/features/instance/code-point-at.js +3 -1
  87. package/features/instance/concat.js +3 -1
  88. package/features/instance/copy-within.js +3 -1
  89. package/features/instance/ends-with.js +3 -1
  90. package/features/instance/entries.js +3 -1
  91. package/features/instance/every.js +3 -1
  92. package/features/instance/fill.js +3 -1
  93. package/features/instance/filter.js +3 -1
  94. package/features/instance/find-index.js +3 -1
  95. package/features/instance/find.js +3 -1
  96. package/features/instance/flags.js +3 -1
  97. package/features/instance/flat-map.js +3 -1
  98. package/features/instance/flat.js +3 -1
  99. package/features/instance/for-each.js +3 -1
  100. package/features/instance/includes.js +3 -1
  101. package/features/instance/index-of.js +3 -1
  102. package/features/instance/keys.js +3 -1
  103. package/features/instance/last-index-of.js +3 -1
  104. package/features/instance/map.js +3 -1
  105. package/features/instance/match-all.js +3 -1
  106. package/features/instance/pad-end.js +3 -1
  107. package/features/instance/pad-start.js +3 -1
  108. package/features/instance/reduce-right.js +3 -1
  109. package/features/instance/reduce.js +3 -1
  110. package/features/instance/repeat.js +3 -1
  111. package/features/instance/reverse.js +3 -1
  112. package/features/instance/slice.js +3 -1
  113. package/features/instance/some.js +3 -1
  114. package/features/instance/sort.js +3 -1
  115. package/features/instance/splice.js +3 -1
  116. package/features/instance/starts-with.js +3 -1
  117. package/features/instance/trim-end.js +3 -1
  118. package/features/instance/trim-left.js +3 -1
  119. package/features/instance/trim-right.js +3 -1
  120. package/features/instance/trim-start.js +3 -1
  121. package/features/instance/trim.js +3 -1
  122. package/features/instance/values.js +3 -1
  123. package/features/is-iterable.js +2 -1
  124. package/features/json/index.js +3 -1
  125. package/features/json/stringify.js +3 -1
  126. package/features/json/to-string-tag.js +3 -1
  127. package/features/map/index.js +3 -2
  128. package/features/math/acosh.js +3 -1
  129. package/features/math/asinh.js +3 -1
  130. package/features/math/atanh.js +3 -1
  131. package/features/math/cbrt.js +3 -1
  132. package/features/math/clz32.js +3 -1
  133. package/features/math/cosh.js +3 -1
  134. package/features/math/expm1.js +3 -1
  135. package/features/math/fround.js +3 -1
  136. package/features/math/hypot.js +3 -1
  137. package/features/math/imul.js +3 -1
  138. package/features/math/index.js +3 -2
  139. package/features/math/log10.js +3 -1
  140. package/features/math/log1p.js +3 -1
  141. package/features/math/log2.js +3 -1
  142. package/features/math/sign.js +3 -1
  143. package/features/math/sinh.js +3 -1
  144. package/features/math/tanh.js +3 -1
  145. package/features/math/to-string-tag.js +3 -1
  146. package/features/math/trunc.js +3 -1
  147. package/features/number/constructor.js +3 -1
  148. package/features/number/epsilon.js +3 -1
  149. package/features/number/index.js +3 -1
  150. package/features/number/is-finite.js +3 -1
  151. package/features/number/is-integer.js +3 -1
  152. package/features/number/is-nan.js +3 -1
  153. package/features/number/is-safe-integer.js +3 -1
  154. package/features/number/max-safe-integer.js +3 -1
  155. package/features/number/min-safe-integer.js +3 -1
  156. package/features/number/parse-float.js +3 -1
  157. package/features/number/parse-int.js +3 -1
  158. package/features/number/to-fixed.js +3 -1
  159. package/features/number/to-precision.js +3 -1
  160. package/features/number/virtual/index.js +3 -1
  161. package/features/number/virtual/to-fixed.js +3 -1
  162. package/features/number/virtual/to-precision.js +3 -1
  163. package/features/object/assign.js +3 -1
  164. package/features/object/create.js +3 -1
  165. package/features/object/define-getter.js +3 -1
  166. package/features/object/define-properties.js +3 -1
  167. package/features/object/define-property.js +3 -1
  168. package/features/object/define-setter.js +3 -1
  169. package/features/object/entries.js +3 -1
  170. package/features/object/freeze.js +3 -1
  171. package/features/object/from-entries.js +3 -1
  172. package/features/object/get-own-property-descriptor.js +3 -1
  173. package/features/object/get-own-property-descriptors.js +3 -1
  174. package/features/object/get-own-property-names.js +3 -1
  175. package/features/object/get-own-property-symbols.js +3 -1
  176. package/features/object/get-prototype-of.js +3 -1
  177. package/features/object/index.js +3 -1
  178. package/features/object/is-extensible.js +3 -1
  179. package/features/object/is-frozen.js +3 -1
  180. package/features/object/is-sealed.js +3 -1
  181. package/features/object/is.js +3 -1
  182. package/features/object/keys.js +3 -1
  183. package/features/object/lookup-getter.js +3 -1
  184. package/features/object/lookup-setter.js +3 -1
  185. package/features/object/prevent-extensions.js +3 -1
  186. package/features/object/seal.js +3 -1
  187. package/features/object/set-prototype-of.js +3 -1
  188. package/features/object/to-string.js +3 -1
  189. package/features/object/values.js +3 -1
  190. package/features/parse-float.js +3 -1
  191. package/features/parse-int.js +3 -1
  192. package/features/promise/all-settled.js +3 -1
  193. package/features/promise/finally.js +3 -1
  194. package/features/promise/index.js +3 -2
  195. package/features/queue-microtask.js +3 -1
  196. package/features/reflect/apply.js +3 -1
  197. package/features/reflect/construct.js +3 -1
  198. package/features/reflect/define-property.js +3 -1
  199. package/features/reflect/delete-property.js +3 -1
  200. package/features/reflect/get-own-property-descriptor.js +3 -1
  201. package/features/reflect/get-prototype-of.js +3 -1
  202. package/features/reflect/get.js +3 -1
  203. package/features/reflect/has.js +3 -1
  204. package/features/reflect/index.js +3 -2
  205. package/features/reflect/is-extensible.js +3 -1
  206. package/features/reflect/own-keys.js +3 -1
  207. package/features/reflect/prevent-extensions.js +3 -1
  208. package/features/reflect/set-prototype-of.js +3 -1
  209. package/features/reflect/set.js +3 -1
  210. package/features/regexp/constructor.js +3 -1
  211. package/features/regexp/flags.js +3 -1
  212. package/features/regexp/index.js +3 -1
  213. package/features/regexp/match.js +3 -1
  214. package/features/regexp/replace.js +3 -1
  215. package/features/regexp/search.js +3 -1
  216. package/features/regexp/split.js +3 -1
  217. package/features/regexp/to-string.js +3 -1
  218. package/features/set/index.js +3 -2
  219. package/features/set-immediate.js +3 -1
  220. package/features/set-interval.js +3 -1
  221. package/features/set-timeout.js +3 -1
  222. package/features/string/anchor.js +3 -1
  223. package/features/string/big.js +3 -1
  224. package/features/string/blink.js +3 -1
  225. package/features/string/bold.js +3 -1
  226. package/features/string/code-point-at.js +3 -1
  227. package/features/string/ends-with.js +3 -1
  228. package/features/string/fixed.js +3 -1
  229. package/features/string/fontcolor.js +3 -1
  230. package/features/string/fontsize.js +3 -1
  231. package/features/string/from-code-point.js +3 -1
  232. package/features/string/includes.js +3 -1
  233. package/features/string/index.js +4 -2
  234. package/features/string/italics.js +3 -1
  235. package/features/string/iterator.js +3 -1
  236. package/features/string/link.js +3 -1
  237. package/features/string/match-all.js +3 -1
  238. package/features/string/match.js +3 -1
  239. package/features/string/pad-end.js +3 -1
  240. package/features/string/pad-start.js +3 -1
  241. package/features/string/raw.js +3 -1
  242. package/features/string/repeat.js +3 -1
  243. package/features/string/replace.js +3 -1
  244. package/features/string/search.js +3 -1
  245. package/features/string/small.js +3 -1
  246. package/features/string/split.js +3 -1
  247. package/features/string/starts-with.js +3 -1
  248. package/features/string/strike.js +3 -1
  249. package/features/string/sub.js +3 -1
  250. package/features/string/sup.js +3 -1
  251. package/features/string/trim-end.js +3 -1
  252. package/features/string/trim-left.js +3 -1
  253. package/features/string/trim-right.js +3 -1
  254. package/features/string/trim-start.js +3 -1
  255. package/features/string/trim.js +3 -1
  256. package/features/string/virtual/anchor.js +3 -1
  257. package/features/string/virtual/big.js +3 -1
  258. package/features/string/virtual/blink.js +3 -1
  259. package/features/string/virtual/bold.js +3 -1
  260. package/features/string/virtual/code-point-at.js +3 -1
  261. package/features/string/virtual/ends-with.js +3 -1
  262. package/features/string/virtual/fixed.js +3 -1
  263. package/features/string/virtual/fontcolor.js +3 -1
  264. package/features/string/virtual/fontsize.js +3 -1
  265. package/features/string/virtual/includes.js +3 -1
  266. package/features/string/virtual/index.js +4 -2
  267. package/features/string/virtual/italics.js +3 -1
  268. package/features/string/virtual/iterator.js +3 -1
  269. package/features/string/virtual/link.js +3 -1
  270. package/features/string/virtual/match-all.js +3 -1
  271. package/features/string/virtual/pad-end.js +3 -1
  272. package/features/string/virtual/pad-start.js +3 -1
  273. package/features/string/virtual/repeat.js +3 -1
  274. package/features/string/virtual/small.js +3 -1
  275. package/features/string/virtual/starts-with.js +3 -1
  276. package/features/string/virtual/strike.js +3 -1
  277. package/features/string/virtual/sub.js +3 -1
  278. package/features/string/virtual/sup.js +3 -1
  279. package/features/string/virtual/trim-end.js +3 -1
  280. package/features/string/virtual/trim-left.js +3 -1
  281. package/features/string/virtual/trim-right.js +3 -1
  282. package/features/string/virtual/trim-start.js +3 -1
  283. package/features/string/virtual/trim.js +3 -1
  284. package/features/symbol/async-iterator.js +3 -1
  285. package/features/symbol/for.js +3 -1
  286. package/features/symbol/has-instance.js +3 -1
  287. package/features/symbol/index.js +3 -2
  288. package/features/symbol/is-concat-spreadable.js +3 -1
  289. package/features/symbol/iterator.js +3 -1
  290. package/features/symbol/key-for.js +3 -1
  291. package/features/symbol/match-all.js +3 -1
  292. package/features/symbol/match.js +3 -1
  293. package/features/symbol/replace.js +3 -1
  294. package/features/symbol/search.js +3 -1
  295. package/features/symbol/species.js +3 -1
  296. package/features/symbol/split.js +3 -1
  297. package/features/symbol/to-primitive.js +3 -1
  298. package/features/symbol/to-string-tag.js +3 -1
  299. package/features/symbol/unscopables.js +3 -1
  300. package/features/typed-array/float32-array.js +3 -1
  301. package/features/typed-array/float64-array.js +3 -1
  302. package/features/typed-array/index.js +3 -1
  303. package/features/typed-array/int16-array.js +3 -1
  304. package/features/typed-array/int32-array.js +3 -1
  305. package/features/typed-array/int8-array.js +3 -1
  306. package/features/typed-array/uint16-array.js +3 -1
  307. package/features/typed-array/uint32-array.js +3 -1
  308. package/features/typed-array/uint8-array.js +3 -1
  309. package/features/typed-array/uint8-clamped-array.js +3 -1
  310. package/features/url/index.js +3 -1
  311. package/features/url/to-json.js +3 -1
  312. package/features/url-search-params/index.js +3 -1
  313. package/features/weak-map/index.js +3 -2
  314. package/features/weak-set/index.js +3 -2
  315. package/index.js +2 -1
  316. package/internals/array-buffer-view-core.js +4 -4
  317. package/internals/array-buffer.js +9 -91
  318. package/internals/classof.js +2 -1
  319. package/internals/collection.js +4 -2
  320. package/internals/ieee754.js +88 -0
  321. package/internals/inspect-source.js +7 -0
  322. package/internals/native-weak-map.js +2 -2
  323. package/internals/object-assign.js +12 -1
  324. package/internals/object-to-string.js +3 -8
  325. package/internals/path.js +3 -1
  326. package/internals/redefine.js +3 -8
  327. package/internals/shared.js +1 -1
  328. package/internals/to-absolute-index.js +1 -1
  329. package/internals/to-string-tag-support.js +8 -0
  330. package/internals/typed-array-constructor.js +2 -1
  331. package/internals/use-symbol-as-uid.js +7 -0
  332. package/internals/well-known-symbol.js +8 -3
  333. package/internals/wrapped-well-known-symbol.js +3 -1
  334. package/modules/es.array.filter.js +8 -1
  335. package/modules/es.array.map.js +8 -1
  336. package/modules/es.map.js +3 -3
  337. package/modules/es.object.to-string.js +3 -4
  338. package/modules/es.promise.finally.js +7 -1
  339. package/modules/es.promise.js +9 -8
  340. package/modules/es.reflect.set.js +10 -1
  341. package/modules/es.set.js +2 -2
  342. package/modules/es.string.ends-with.js +10 -1
  343. package/modules/es.string.match-all.js +1 -1
  344. package/modules/es.string.starts-with.js +10 -1
  345. package/modules/es.symbol.js +3 -0
  346. package/modules/es.typed-array.copy-within.js +2 -1
  347. package/modules/es.typed-array.every.js +2 -1
  348. package/modules/es.typed-array.fill.js +2 -1
  349. package/modules/es.typed-array.filter.js +2 -1
  350. package/modules/es.typed-array.find-index.js +2 -1
  351. package/modules/es.typed-array.find.js +2 -1
  352. package/modules/es.typed-array.float32-array.js +2 -2
  353. package/modules/es.typed-array.float64-array.js +2 -2
  354. package/modules/es.typed-array.for-each.js +2 -1
  355. package/modules/es.typed-array.from.js +2 -2
  356. package/modules/es.typed-array.includes.js +2 -1
  357. package/modules/es.typed-array.index-of.js +2 -1
  358. package/modules/es.typed-array.int16-array.js +2 -2
  359. package/modules/es.typed-array.int32-array.js +2 -2
  360. package/modules/es.typed-array.int8-array.js +2 -2
  361. package/modules/es.typed-array.iterator.js +5 -5
  362. package/modules/es.typed-array.join.js +2 -1
  363. package/modules/es.typed-array.last-index-of.js +2 -1
  364. package/modules/es.typed-array.map.js +2 -1
  365. package/modules/es.typed-array.of.js +2 -1
  366. package/modules/es.typed-array.reduce-right.js +2 -1
  367. package/modules/es.typed-array.reduce.js +2 -1
  368. package/modules/es.typed-array.reverse.js +2 -1
  369. package/modules/es.typed-array.set.js +2 -1
  370. package/modules/es.typed-array.slice.js +2 -1
  371. package/modules/es.typed-array.some.js +2 -1
  372. package/modules/es.typed-array.sort.js +2 -1
  373. package/modules/es.typed-array.subarray.js +2 -1
  374. package/modules/es.typed-array.to-locale-string.js +2 -1
  375. package/modules/es.typed-array.to-string.js +6 -4
  376. package/modules/es.typed-array.uint16-array.js +2 -2
  377. package/modules/es.typed-array.uint32-array.js +2 -2
  378. package/modules/es.typed-array.uint8-array.js +2 -2
  379. package/modules/es.typed-array.uint8-clamped-array.js +2 -2
  380. package/modules/es.weak-map.js +3 -3
  381. package/modules/es.weak-set.js +3 -3
  382. package/modules/esnext.iterator.constructor.js +7 -2
  383. package/modules/web.immediate.js +2 -1
  384. package/package.json +2 -2
  385. package/proposals/global-this.js +2 -1
  386. package/proposals/iterator-helpers.js +8 -0
  387. package/stable/array/concat.js +3 -1
  388. package/stable/array/copy-within.js +3 -1
  389. package/stable/array/entries.js +3 -1
  390. package/stable/array/every.js +3 -1
  391. package/stable/array/fill.js +3 -1
  392. package/stable/array/filter.js +3 -1
  393. package/stable/array/find-index.js +3 -1
  394. package/stable/array/find.js +3 -1
  395. package/stable/array/flat-map.js +3 -1
  396. package/stable/array/flat.js +3 -1
  397. package/stable/array/for-each.js +3 -1
  398. package/stable/array/from.js +3 -1
  399. package/stable/array/includes.js +3 -1
  400. package/stable/array/index-of.js +3 -1
  401. package/stable/array/index.js +3 -1
  402. package/stable/array/is-array.js +3 -1
  403. package/stable/array/iterator.js +3 -1
  404. package/stable/array/join.js +3 -1
  405. package/stable/array/keys.js +3 -1
  406. package/stable/array/last-index-of.js +3 -1
  407. package/stable/array/map.js +3 -1
  408. package/stable/array/of.js +3 -1
  409. package/stable/array/reduce-right.js +3 -1
  410. package/stable/array/reduce.js +3 -1
  411. package/stable/array/reverse.js +3 -1
  412. package/stable/array/slice.js +3 -1
  413. package/stable/array/some.js +3 -1
  414. package/stable/array/sort.js +3 -1
  415. package/stable/array/splice.js +3 -1
  416. package/stable/array/values.js +3 -1
  417. package/stable/array/virtual/concat.js +3 -1
  418. package/stable/array/virtual/copy-within.js +3 -1
  419. package/stable/array/virtual/entries.js +3 -1
  420. package/stable/array/virtual/every.js +3 -1
  421. package/stable/array/virtual/fill.js +3 -1
  422. package/stable/array/virtual/filter.js +3 -1
  423. package/stable/array/virtual/find-index.js +3 -1
  424. package/stable/array/virtual/find.js +3 -1
  425. package/stable/array/virtual/flat-map.js +3 -1
  426. package/stable/array/virtual/flat.js +3 -1
  427. package/stable/array/virtual/for-each.js +3 -1
  428. package/stable/array/virtual/includes.js +3 -1
  429. package/stable/array/virtual/index-of.js +3 -1
  430. package/stable/array/virtual/index.js +3 -1
  431. package/stable/array/virtual/iterator.js +3 -1
  432. package/stable/array/virtual/join.js +3 -1
  433. package/stable/array/virtual/keys.js +3 -1
  434. package/stable/array/virtual/last-index-of.js +3 -1
  435. package/stable/array/virtual/map.js +3 -1
  436. package/stable/array/virtual/reduce-right.js +3 -1
  437. package/stable/array/virtual/reduce.js +3 -1
  438. package/stable/array/virtual/reverse.js +3 -1
  439. package/stable/array/virtual/slice.js +3 -1
  440. package/stable/array/virtual/some.js +3 -1
  441. package/stable/array/virtual/sort.js +3 -1
  442. package/stable/array/virtual/splice.js +3 -1
  443. package/stable/array/virtual/values.js +3 -1
  444. package/stable/array-buffer/constructor.js +3 -1
  445. package/stable/array-buffer/index.js +3 -1
  446. package/stable/array-buffer/is-view.js +3 -1
  447. package/stable/array-buffer/slice.js +3 -1
  448. package/stable/clear-immediate.js +2 -1
  449. package/stable/data-view/index.js +3 -1
  450. package/stable/date/index.js +3 -1
  451. package/stable/date/now.js +3 -1
  452. package/stable/date/to-iso-string.js +3 -1
  453. package/stable/date/to-json.js +3 -1
  454. package/stable/date/to-primitive.js +3 -1
  455. package/stable/date/to-string.js +3 -1
  456. package/stable/dom-collections/for-each.js +3 -1
  457. package/stable/function/bind.js +3 -1
  458. package/stable/function/has-instance.js +3 -1
  459. package/stable/function/index.js +3 -1
  460. package/stable/function/name.js +3 -1
  461. package/stable/function/virtual/bind.js +3 -1
  462. package/stable/function/virtual/index.js +3 -1
  463. package/stable/global-this.js +3 -1
  464. package/stable/index.js +2 -1
  465. package/stable/instance/bind.js +3 -1
  466. package/stable/instance/code-point-at.js +3 -1
  467. package/stable/instance/concat.js +3 -1
  468. package/stable/instance/copy-within.js +3 -1
  469. package/stable/instance/ends-with.js +3 -1
  470. package/stable/instance/every.js +3 -1
  471. package/stable/instance/fill.js +3 -1
  472. package/stable/instance/filter.js +3 -1
  473. package/stable/instance/find-index.js +3 -1
  474. package/stable/instance/find.js +3 -1
  475. package/stable/instance/flags.js +3 -1
  476. package/stable/instance/flat-map.js +3 -1
  477. package/stable/instance/flat.js +3 -1
  478. package/stable/instance/includes.js +3 -1
  479. package/stable/instance/index-of.js +3 -1
  480. package/stable/instance/last-index-of.js +3 -1
  481. package/stable/instance/map.js +3 -1
  482. package/stable/instance/match-all.js +3 -1
  483. package/stable/instance/pad-end.js +3 -1
  484. package/stable/instance/pad-start.js +3 -1
  485. package/stable/instance/reduce-right.js +3 -1
  486. package/stable/instance/reduce.js +3 -1
  487. package/stable/instance/repeat.js +3 -1
  488. package/stable/instance/reverse.js +3 -1
  489. package/stable/instance/slice.js +3 -1
  490. package/stable/instance/some.js +3 -1
  491. package/stable/instance/sort.js +3 -1
  492. package/stable/instance/splice.js +3 -1
  493. package/stable/instance/starts-with.js +3 -1
  494. package/stable/instance/trim-end.js +3 -1
  495. package/stable/instance/trim-left.js +3 -1
  496. package/stable/instance/trim-right.js +3 -1
  497. package/stable/instance/trim-start.js +3 -1
  498. package/stable/instance/trim.js +3 -1
  499. package/stable/json/index.js +3 -1
  500. package/stable/json/stringify.js +3 -1
  501. package/stable/json/to-string-tag.js +3 -1
  502. package/stable/map/index.js +3 -1
  503. package/stable/math/acosh.js +3 -1
  504. package/stable/math/asinh.js +3 -1
  505. package/stable/math/atanh.js +3 -1
  506. package/stable/math/cbrt.js +3 -1
  507. package/stable/math/clz32.js +3 -1
  508. package/stable/math/cosh.js +3 -1
  509. package/stable/math/expm1.js +3 -1
  510. package/stable/math/fround.js +3 -1
  511. package/stable/math/hypot.js +3 -1
  512. package/stable/math/imul.js +3 -1
  513. package/stable/math/index.js +3 -1
  514. package/stable/math/log10.js +3 -1
  515. package/stable/math/log1p.js +3 -1
  516. package/stable/math/log2.js +3 -1
  517. package/stable/math/sign.js +3 -1
  518. package/stable/math/sinh.js +3 -1
  519. package/stable/math/tanh.js +3 -1
  520. package/stable/math/to-string-tag.js +3 -1
  521. package/stable/math/trunc.js +3 -1
  522. package/stable/number/constructor.js +3 -1
  523. package/stable/number/epsilon.js +3 -1
  524. package/stable/number/index.js +3 -1
  525. package/stable/number/is-finite.js +3 -1
  526. package/stable/number/is-integer.js +3 -1
  527. package/stable/number/is-nan.js +3 -1
  528. package/stable/number/is-safe-integer.js +3 -1
  529. package/stable/number/max-safe-integer.js +3 -1
  530. package/stable/number/min-safe-integer.js +3 -1
  531. package/stable/number/parse-float.js +3 -1
  532. package/stable/number/parse-int.js +3 -1
  533. package/stable/number/to-fixed.js +3 -1
  534. package/stable/number/to-precision.js +3 -1
  535. package/stable/number/virtual/index.js +3 -1
  536. package/stable/number/virtual/to-fixed.js +3 -1
  537. package/stable/number/virtual/to-precision.js +3 -1
  538. package/stable/object/assign.js +3 -1
  539. package/stable/object/create.js +3 -1
  540. package/stable/object/define-getter.js +3 -1
  541. package/stable/object/define-properties.js +3 -1
  542. package/stable/object/define-property.js +3 -1
  543. package/stable/object/define-setter.js +3 -1
  544. package/stable/object/entries.js +3 -1
  545. package/stable/object/freeze.js +3 -1
  546. package/stable/object/from-entries.js +3 -1
  547. package/stable/object/get-own-property-descriptor.js +3 -1
  548. package/stable/object/get-own-property-descriptors.js +3 -1
  549. package/stable/object/get-own-property-names.js +3 -1
  550. package/stable/object/get-own-property-symbols.js +3 -1
  551. package/stable/object/get-prototype-of.js +3 -1
  552. package/stable/object/index.js +3 -1
  553. package/stable/object/is-extensible.js +3 -1
  554. package/stable/object/is-frozen.js +3 -1
  555. package/stable/object/is-sealed.js +3 -1
  556. package/stable/object/is.js +3 -1
  557. package/stable/object/keys.js +3 -1
  558. package/stable/object/lookup-getter.js +3 -1
  559. package/stable/object/lookup-setter.js +3 -1
  560. package/stable/object/prevent-extensions.js +3 -1
  561. package/stable/object/seal.js +3 -1
  562. package/stable/object/set-prototype-of.js +3 -1
  563. package/stable/object/to-string.js +3 -1
  564. package/stable/object/values.js +3 -1
  565. package/stable/parse-float.js +3 -1
  566. package/stable/parse-int.js +3 -1
  567. package/stable/promise/all-settled.js +3 -1
  568. package/stable/promise/finally.js +3 -1
  569. package/stable/promise/index.js +3 -1
  570. package/stable/queue-microtask.js +3 -1
  571. package/stable/reflect/apply.js +3 -1
  572. package/stable/reflect/construct.js +3 -1
  573. package/stable/reflect/define-property.js +3 -1
  574. package/stable/reflect/delete-property.js +3 -1
  575. package/stable/reflect/get-own-property-descriptor.js +3 -1
  576. package/stable/reflect/get-prototype-of.js +3 -1
  577. package/stable/reflect/get.js +3 -1
  578. package/stable/reflect/has.js +3 -1
  579. package/stable/reflect/index.js +3 -1
  580. package/stable/reflect/is-extensible.js +3 -1
  581. package/stable/reflect/own-keys.js +3 -1
  582. package/stable/reflect/prevent-extensions.js +3 -1
  583. package/stable/reflect/set-prototype-of.js +3 -1
  584. package/stable/reflect/set.js +3 -1
  585. package/stable/regexp/constructor.js +3 -1
  586. package/stable/regexp/flags.js +3 -1
  587. package/stable/regexp/index.js +3 -1
  588. package/stable/regexp/match.js +3 -1
  589. package/stable/regexp/replace.js +3 -1
  590. package/stable/regexp/search.js +3 -1
  591. package/stable/regexp/split.js +3 -1
  592. package/stable/regexp/to-string.js +3 -1
  593. package/stable/set/index.js +3 -1
  594. package/stable/set-immediate.js +2 -1
  595. package/stable/set-interval.js +2 -1
  596. package/stable/set-timeout.js +2 -1
  597. package/stable/string/anchor.js +3 -1
  598. package/stable/string/big.js +3 -1
  599. package/stable/string/blink.js +3 -1
  600. package/stable/string/bold.js +3 -1
  601. package/stable/string/code-point-at.js +3 -1
  602. package/stable/string/ends-with.js +3 -1
  603. package/stable/string/fixed.js +3 -1
  604. package/stable/string/fontcolor.js +3 -1
  605. package/stable/string/fontsize.js +3 -1
  606. package/stable/string/from-code-point.js +3 -1
  607. package/stable/string/includes.js +3 -1
  608. package/stable/string/index.js +3 -1
  609. package/stable/string/italics.js +3 -1
  610. package/stable/string/iterator.js +3 -1
  611. package/stable/string/link.js +3 -1
  612. package/stable/string/match-all.js +3 -1
  613. package/stable/string/match.js +3 -1
  614. package/stable/string/pad-end.js +3 -1
  615. package/stable/string/pad-start.js +3 -1
  616. package/stable/string/raw.js +3 -1
  617. package/stable/string/repeat.js +3 -1
  618. package/stable/string/replace.js +3 -1
  619. package/stable/string/search.js +3 -1
  620. package/stable/string/small.js +3 -1
  621. package/stable/string/split.js +3 -1
  622. package/stable/string/starts-with.js +3 -1
  623. package/stable/string/strike.js +3 -1
  624. package/stable/string/sub.js +3 -1
  625. package/stable/string/sup.js +3 -1
  626. package/stable/string/trim-end.js +3 -1
  627. package/stable/string/trim-left.js +3 -1
  628. package/stable/string/trim-right.js +3 -1
  629. package/stable/string/trim-start.js +3 -1
  630. package/stable/string/trim.js +3 -1
  631. package/stable/string/virtual/anchor.js +3 -1
  632. package/stable/string/virtual/big.js +3 -1
  633. package/stable/string/virtual/blink.js +3 -1
  634. package/stable/string/virtual/bold.js +3 -1
  635. package/stable/string/virtual/code-point-at.js +3 -1
  636. package/stable/string/virtual/ends-with.js +3 -1
  637. package/stable/string/virtual/fixed.js +3 -1
  638. package/stable/string/virtual/fontcolor.js +3 -1
  639. package/stable/string/virtual/fontsize.js +3 -1
  640. package/stable/string/virtual/includes.js +3 -1
  641. package/stable/string/virtual/index.js +3 -1
  642. package/stable/string/virtual/italics.js +3 -1
  643. package/stable/string/virtual/iterator.js +3 -1
  644. package/stable/string/virtual/link.js +3 -1
  645. package/stable/string/virtual/match-all.js +3 -1
  646. package/stable/string/virtual/pad-end.js +3 -1
  647. package/stable/string/virtual/pad-start.js +3 -1
  648. package/stable/string/virtual/repeat.js +3 -1
  649. package/stable/string/virtual/small.js +3 -1
  650. package/stable/string/virtual/starts-with.js +3 -1
  651. package/stable/string/virtual/strike.js +3 -1
  652. package/stable/string/virtual/sub.js +3 -1
  653. package/stable/string/virtual/sup.js +3 -1
  654. package/stable/string/virtual/trim-end.js +3 -1
  655. package/stable/string/virtual/trim-left.js +3 -1
  656. package/stable/string/virtual/trim-right.js +3 -1
  657. package/stable/string/virtual/trim-start.js +3 -1
  658. package/stable/string/virtual/trim.js +3 -1
  659. package/stable/symbol/async-iterator.js +3 -1
  660. package/stable/symbol/for.js +3 -1
  661. package/stable/symbol/has-instance.js +3 -1
  662. package/stable/symbol/index.js +3 -1
  663. package/stable/symbol/is-concat-spreadable.js +3 -1
  664. package/stable/symbol/iterator.js +3 -1
  665. package/stable/symbol/key-for.js +3 -1
  666. package/stable/symbol/match-all.js +3 -1
  667. package/stable/symbol/match.js +3 -1
  668. package/stable/symbol/replace.js +3 -1
  669. package/stable/symbol/search.js +3 -1
  670. package/stable/symbol/species.js +3 -1
  671. package/stable/symbol/split.js +3 -1
  672. package/stable/symbol/to-primitive.js +3 -1
  673. package/stable/symbol/to-string-tag.js +3 -1
  674. package/stable/symbol/unscopables.js +3 -1
  675. package/stable/typed-array/float32-array.js +3 -1
  676. package/stable/typed-array/float64-array.js +3 -1
  677. package/stable/typed-array/index.js +3 -1
  678. package/stable/typed-array/int16-array.js +3 -1
  679. package/stable/typed-array/int32-array.js +3 -1
  680. package/stable/typed-array/int8-array.js +3 -1
  681. package/stable/typed-array/uint16-array.js +3 -1
  682. package/stable/typed-array/uint32-array.js +3 -1
  683. package/stable/typed-array/uint8-array.js +3 -1
  684. package/stable/typed-array/uint8-clamped-array.js +3 -1
  685. package/stable/url/index.js +3 -1
  686. package/stable/url-search-params/index.js +3 -1
  687. package/stable/weak-map/index.js +3 -1
  688. package/stable/weak-set/index.js +3 -1
  689. package/stage/0.js +2 -1
  690. package/stage/1.js +2 -1
  691. package/stage/2.js +2 -1
  692. package/stage/3.js +2 -1
  693. package/stage/4.js +2 -1
  694. package/stage/index.js +3 -1
  695. package/stage/pre.js +2 -1
  696. package/web/dom-collections.js +2 -1
  697. package/web/immediate.js +2 -1
  698. package/web/index.js +2 -1
  699. package/web/timers.js +2 -1
  700. package/internals/function-to-string.js +0 -3
@@ -1,18 +1,13 @@
1
1
  var global = require('../internals/global');
2
- var shared = require('../internals/shared');
3
2
  var createNonEnumerableProperty = require('../internals/create-non-enumerable-property');
4
3
  var has = require('../internals/has');
5
4
  var setGlobal = require('../internals/set-global');
6
- var nativeFunctionToString = require('../internals/function-to-string');
5
+ var inspectSource = require('../internals/inspect-source');
7
6
  var InternalStateModule = require('../internals/internal-state');
8
7
 
9
8
  var getInternalState = InternalStateModule.get;
10
9
  var enforceInternalState = InternalStateModule.enforce;
11
- var TEMPLATE = String(nativeFunctionToString).split('toString');
12
-
13
- shared('inspectSource', function (it) {
14
- return nativeFunctionToString.call(it);
15
- });
10
+ var TEMPLATE = String(String).split('String');
16
11
 
17
12
  (module.exports = function (O, key, value, options) {
18
13
  var unsafe = options ? !!options.unsafe : false;
@@ -35,5 +30,5 @@ shared('inspectSource', function (it) {
35
30
  else createNonEnumerableProperty(O, key, value);
36
31
  // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
37
32
  })(Function.prototype, 'toString', function toString() {
38
- return typeof this == 'function' && getInternalState(this).source || nativeFunctionToString.call(this);
33
+ return typeof this == 'function' && getInternalState(this).source || inspectSource(this);
39
34
  });
@@ -4,7 +4,7 @@ var store = require('../internals/shared-store');
4
4
  (module.exports = function (key, value) {
5
5
  return store[key] || (store[key] = value !== undefined ? value : {});
6
6
  })('versions', []).push({
7
- version: '3.4.1',
7
+ version: '3.4.5',
8
8
  mode: IS_PURE ? 'pure' : 'global',
9
9
  copyright: '© 2019 Denis Pushkarev (zloirock.ru)'
10
10
  });
@@ -5,7 +5,7 @@ var min = Math.min;
5
5
 
6
6
  // Helper for a popular repeating case of the spec:
7
7
  // Let integer be ? ToInteger(index).
8
- // If integer < 0, let result be max((length + integer), 0); else let result be min(length, length).
8
+ // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
9
9
  module.exports = function (index, length) {
10
10
  var integer = toInteger(index);
11
11
  return integer < 0 ? max(integer + length, 0) : min(integer, length);
@@ -0,0 +1,8 @@
1
+ var wellKnownSymbol = require('../internals/well-known-symbol');
2
+
3
+ var TO_STRING_TAG = wellKnownSymbol('toStringTag');
4
+ var test = {};
5
+
6
+ test[TO_STRING_TAG] = 'z';
7
+
8
+ module.exports = String(test) === '[object z]';
@@ -106,7 +106,8 @@ if (DESCRIPTORS) {
106
106
  defineProperty: wrappedDefineProperty
107
107
  });
108
108
 
109
- module.exports = function (TYPE, BYTES, wrapper, CLAMPED) {
109
+ module.exports = function (TYPE, wrapper, CLAMPED) {
110
+ var BYTES = TYPE.match(/\d+$/)[0] / 8;
110
111
  var CONSTRUCTOR_NAME = TYPE + (CLAMPED ? 'Clamped' : '') + 'Array';
111
112
  var GETTER = 'get' + TYPE;
112
113
  var SETTER = 'set' + TYPE;
@@ -0,0 +1,7 @@
1
+ var NATIVE_SYMBOL = require('../internals/native-symbol');
2
+
3
+ module.exports = NATIVE_SYMBOL
4
+ // eslint-disable-next-line no-undef
5
+ && !Symbol.sham
6
+ // eslint-disable-next-line no-undef
7
+ && typeof Symbol() == 'symbol';
@@ -1,12 +1,17 @@
1
1
  var global = require('../internals/global');
2
2
  var shared = require('../internals/shared');
3
+ var has = require('../internals/has');
3
4
  var uid = require('../internals/uid');
4
5
  var NATIVE_SYMBOL = require('../internals/native-symbol');
6
+ var USE_SYMBOL_AS_UID = require('../internals/use-symbol-as-uid');
5
7
 
8
+ var WellKnownSymbolsStore = shared('wks');
6
9
  var Symbol = global.Symbol;
7
- var store = shared('wks');
10
+ var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol : uid;
8
11
 
9
12
  module.exports = function (name) {
10
- return store[name] || (store[name] = NATIVE_SYMBOL && Symbol[name]
11
- || (NATIVE_SYMBOL ? Symbol : uid)('Symbol.' + name));
13
+ if (!has(WellKnownSymbolsStore, name)) {
14
+ if (NATIVE_SYMBOL && has(Symbol, name)) WellKnownSymbolsStore[name] = Symbol[name];
15
+ else WellKnownSymbolsStore[name] = createWellKnownSymbol('Symbol.' + name);
16
+ } return WellKnownSymbolsStore[name];
12
17
  };
@@ -1 +1,3 @@
1
- exports.f = require('../internals/well-known-symbol');
1
+ var wellKnownSymbol = require('../internals/well-known-symbol');
2
+
3
+ exports.f = wellKnownSymbol;
@@ -1,12 +1,19 @@
1
1
  'use strict';
2
2
  var $ = require('../internals/export');
3
3
  var $filter = require('../internals/array-iteration').filter;
4
+ var fails = require('../internals/fails');
4
5
  var arrayMethodHasSpeciesSupport = require('../internals/array-method-has-species-support');
5
6
 
7
+ var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('filter');
8
+ // Edge 14- issue
9
+ var USES_TO_LENGTH = HAS_SPECIES_SUPPORT && !fails(function () {
10
+ [].filter.call({ length: -1, 0: 1 }, function (it) { throw it; });
11
+ });
12
+
6
13
  // `Array.prototype.filter` method
7
14
  // https://tc39.github.io/ecma262/#sec-array.prototype.filter
8
15
  // with adding support of @@species
9
- $({ target: 'Array', proto: true, forced: !arrayMethodHasSpeciesSupport('filter') }, {
16
+ $({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT || !USES_TO_LENGTH }, {
10
17
  filter: function filter(callbackfn /* , thisArg */) {
11
18
  return $filter(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
12
19
  }
@@ -1,12 +1,19 @@
1
1
  'use strict';
2
2
  var $ = require('../internals/export');
3
3
  var $map = require('../internals/array-iteration').map;
4
+ var fails = require('../internals/fails');
4
5
  var arrayMethodHasSpeciesSupport = require('../internals/array-method-has-species-support');
5
6
 
7
+ var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('map');
8
+ // FF49- issue
9
+ var USES_TO_LENGTH = HAS_SPECIES_SUPPORT && !fails(function () {
10
+ [].map.call({ length: -1, 0: 1 }, function (it) { throw it; });
11
+ });
12
+
6
13
  // `Array.prototype.map` method
7
14
  // https://tc39.github.io/ecma262/#sec-array.prototype.map
8
15
  // with adding support of @@species
9
- $({ target: 'Array', proto: true, forced: !arrayMethodHasSpeciesSupport('map') }, {
16
+ $({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT || !USES_TO_LENGTH }, {
10
17
  map: function map(callbackfn /* , thisArg */) {
11
18
  return $map(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
12
19
  }
package/modules/es.map.js CHANGED
@@ -4,6 +4,6 @@ var collectionStrong = require('../internals/collection-strong');
4
4
 
5
5
  // `Map` constructor
6
6
  // https://tc39.github.io/ecma262/#sec-map-objects
7
- module.exports = collection('Map', function (get) {
8
- return function Map() { return get(this, arguments.length ? arguments[0] : undefined); };
9
- }, collectionStrong, true);
7
+ module.exports = collection('Map', function (init) {
8
+ return function Map() { return init(this, arguments.length ? arguments[0] : undefined); };
9
+ }, collectionStrong);
@@ -1,10 +1,9 @@
1
+ var TO_STRING_TAG_SUPPORT = require('../internals/to-string-tag-support');
1
2
  var redefine = require('../internals/redefine');
2
3
  var toString = require('../internals/object-to-string');
3
4
 
4
- var ObjectPrototype = Object.prototype;
5
-
6
5
  // `Object.prototype.toString` method
7
6
  // https://tc39.github.io/ecma262/#sec-object.prototype.tostring
8
- if (toString !== ObjectPrototype.toString) {
9
- redefine(ObjectPrototype, 'toString', toString, { unsafe: true });
7
+ if (!TO_STRING_TAG_SUPPORT) {
8
+ redefine(Object.prototype, 'toString', toString, { unsafe: true });
10
9
  }
@@ -2,14 +2,20 @@
2
2
  var $ = require('../internals/export');
3
3
  var IS_PURE = require('../internals/is-pure');
4
4
  var NativePromise = require('../internals/native-promise-constructor');
5
+ var fails = require('../internals/fails');
5
6
  var getBuiltIn = require('../internals/get-built-in');
6
7
  var speciesConstructor = require('../internals/species-constructor');
7
8
  var promiseResolve = require('../internals/promise-resolve');
8
9
  var redefine = require('../internals/redefine');
9
10
 
11
+ // Safari bug https://bugs.webkit.org/show_bug.cgi?id=200829
12
+ var NON_GENERIC = !!NativePromise && fails(function () {
13
+ NativePromise.prototype['finally'].call({ then: function () { /* empty */ } }, function () { /* empty */ });
14
+ });
15
+
10
16
  // `Promise.prototype.finally` method
11
17
  // https://tc39.github.io/ecma262/#sec-promise.prototype.finally
12
- $({ target: 'Promise', proto: true, real: true }, {
18
+ $({ target: 'Promise', proto: true, real: true, forced: NON_GENERIC }, {
13
19
  'finally': function (onFinally) {
14
20
  var C = speciesConstructor(this, getBuiltIn('Promise'));
15
21
  var isFunction = typeof onFinally == 'function';
@@ -6,13 +6,13 @@ var getBuiltIn = require('../internals/get-built-in');
6
6
  var NativePromise = require('../internals/native-promise-constructor');
7
7
  var redefine = require('../internals/redefine');
8
8
  var redefineAll = require('../internals/redefine-all');
9
- var shared = require('../internals/shared');
10
9
  var setToStringTag = require('../internals/set-to-string-tag');
11
10
  var setSpecies = require('../internals/set-species');
12
11
  var isObject = require('../internals/is-object');
13
12
  var aFunction = require('../internals/a-function');
14
13
  var anInstance = require('../internals/an-instance');
15
14
  var classof = require('../internals/classof-raw');
15
+ var inspectSource = require('../internals/inspect-source');
16
16
  var iterate = require('../internals/iterate');
17
17
  var checkCorrectnessOfIteration = require('../internals/check-correctness-of-iteration');
18
18
  var speciesConstructor = require('../internals/species-constructor');
@@ -36,7 +36,6 @@ var PromiseConstructor = NativePromise;
36
36
  var TypeError = global.TypeError;
37
37
  var document = global.document;
38
38
  var process = global.process;
39
- var inspectSource = shared('inspectSource');
40
39
  var $fetch = getBuiltIn('fetch');
41
40
  var newPromiseCapability = newPromiseCapabilityModule.f;
42
41
  var newGenericPromiseCapability = newPromiseCapability;
@@ -53,12 +52,14 @@ var Internal, OwnPromiseCapability, PromiseWrapper, nativeThen;
53
52
 
54
53
  var FORCED = isForced(PROMISE, function () {
55
54
  var GLOBAL_CORE_JS_PROMISE = inspectSource(PromiseConstructor) !== String(PromiseConstructor);
56
- // V8 6.6 (Node 10 and Chrome 66) have a bug with resolving custom thenables
57
- // https://bugs.chromium.org/p/chromium/issues/detail?id=830565
58
- // We can't detect it synchronously, so just check versions
59
- if (V8_VERSION === 66) return true;
60
- // Unhandled rejections tracking support, NodeJS Promise without it fails @@species test
61
- if (!GLOBAL_CORE_JS_PROMISE && !IS_NODE && typeof PromiseRejectionEvent != 'function') return true;
55
+ if (!GLOBAL_CORE_JS_PROMISE) {
56
+ // V8 6.6 (Node 10 and Chrome 66) have a bug with resolving custom thenables
57
+ // https://bugs.chromium.org/p/chromium/issues/detail?id=830565
58
+ // We can't detect it synchronously, so just check versions
59
+ if (V8_VERSION === 66) return true;
60
+ // Unhandled rejections tracking support, NodeJS Promise without it fails @@species test
61
+ if (!IS_NODE && typeof PromiseRejectionEvent != 'function') return true;
62
+ }
62
63
  // We need Promise#finally in the pure version for preventing prototype pollution
63
64
  if (IS_PURE && !PromiseConstructor.prototype['finally']) return true;
64
65
  // We can't use @@species feature detection in V8 since it causes
@@ -2,6 +2,7 @@ var $ = require('../internals/export');
2
2
  var anObject = require('../internals/an-object');
3
3
  var isObject = require('../internals/is-object');
4
4
  var has = require('../internals/has');
5
+ var fails = require('../internals/fails');
5
6
  var definePropertyModule = require('../internals/object-define-property');
6
7
  var getOwnPropertyDescriptorModule = require('../internals/object-get-own-property-descriptor');
7
8
  var getPrototypeOf = require('../internals/object-get-prototype-of');
@@ -31,6 +32,14 @@ function set(target, propertyKey, V /* , receiver */) {
31
32
  return ownDescriptor.set === undefined ? false : (ownDescriptor.set.call(receiver, V), true);
32
33
  }
33
34
 
34
- $({ target: 'Reflect', stat: true }, {
35
+ // MS Edge 17-18 Reflect.set allows setting the property to object
36
+ // with non-writable property on the prototype
37
+ var MS_EDGE_BUG = fails(function () {
38
+ var object = definePropertyModule.f({}, 'a', { configurable: true });
39
+ // eslint-disable-next-line no-undef
40
+ return Reflect.set(getPrototypeOf(object), 'a', 1, object) !== false;
41
+ });
42
+
43
+ $({ target: 'Reflect', stat: true, forced: MS_EDGE_BUG }, {
35
44
  set: set
36
45
  });
package/modules/es.set.js CHANGED
@@ -4,6 +4,6 @@ var collectionStrong = require('../internals/collection-strong');
4
4
 
5
5
  // `Set` constructor
6
6
  // https://tc39.github.io/ecma262/#sec-set-objects
7
- module.exports = collection('Set', function (get) {
8
- return function Set() { return get(this, arguments.length ? arguments[0] : undefined); };
7
+ module.exports = collection('Set', function (init) {
8
+ return function Set() { return init(this, arguments.length ? arguments[0] : undefined); };
9
9
  }, collectionStrong);
@@ -1,16 +1,25 @@
1
1
  'use strict';
2
2
  var $ = require('../internals/export');
3
+ var getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f;
3
4
  var toLength = require('../internals/to-length');
4
5
  var notARegExp = require('../internals/not-a-regexp');
5
6
  var requireObjectCoercible = require('../internals/require-object-coercible');
6
7
  var correctIsRegExpLogic = require('../internals/correct-is-regexp-logic');
8
+ var IS_PURE = require('../internals/is-pure');
7
9
 
8
10
  var nativeEndsWith = ''.endsWith;
9
11
  var min = Math.min;
10
12
 
13
+ var CORRECT_IS_REGEXP_LOGIC = correctIsRegExpLogic('endsWith');
14
+ // https://github.com/zloirock/core-js/pull/702
15
+ var MDN_POLYFILL_BUG = !IS_PURE && !CORRECT_IS_REGEXP_LOGIC && !!function () {
16
+ var descriptor = getOwnPropertyDescriptor(String.prototype, 'endsWith');
17
+ return descriptor && !descriptor.writable;
18
+ }();
19
+
11
20
  // `String.prototype.endsWith` method
12
21
  // https://tc39.github.io/ecma262/#sec-string.prototype.endswith
13
- $({ target: 'String', proto: true, forced: !correctIsRegExpLogic('endsWith') }, {
22
+ $({ target: 'String', proto: true, forced: !MDN_POLYFILL_BUG && !CORRECT_IS_REGEXP_LOGIC }, {
14
23
  endsWith: function endsWith(searchString /* , endPosition = @length */) {
15
24
  var that = String(requireObjectCoercible(this));
16
25
  notARegExp(searchString);
@@ -5,7 +5,7 @@ var requireObjectCoercible = require('../internals/require-object-coercible');
5
5
  var toLength = require('../internals/to-length');
6
6
  var aFunction = require('../internals/a-function');
7
7
  var anObject = require('../internals/an-object');
8
- var classof = require('../internals/classof');
8
+ var classof = require('../internals/classof-raw');
9
9
  var isRegExp = require('../internals/is-regexp');
10
10
  var getRegExpFlags = require('../internals/regexp-flags');
11
11
  var createNonEnumerableProperty = require('../internals/create-non-enumerable-property');
@@ -1,16 +1,25 @@
1
1
  'use strict';
2
2
  var $ = require('../internals/export');
3
+ var getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f;
3
4
  var toLength = require('../internals/to-length');
4
5
  var notARegExp = require('../internals/not-a-regexp');
5
6
  var requireObjectCoercible = require('../internals/require-object-coercible');
6
7
  var correctIsRegExpLogic = require('../internals/correct-is-regexp-logic');
8
+ var IS_PURE = require('../internals/is-pure');
7
9
 
8
10
  var nativeStartsWith = ''.startsWith;
9
11
  var min = Math.min;
10
12
 
13
+ var CORRECT_IS_REGEXP_LOGIC = correctIsRegExpLogic('startsWith');
14
+ // https://github.com/zloirock/core-js/pull/702
15
+ var MDN_POLYFILL_BUG = !IS_PURE && !CORRECT_IS_REGEXP_LOGIC && !!function () {
16
+ var descriptor = getOwnPropertyDescriptor(String.prototype, 'startsWith');
17
+ return descriptor && !descriptor.writable;
18
+ }();
19
+
11
20
  // `String.prototype.startsWith` method
12
21
  // https://tc39.github.io/ecma262/#sec-string.prototype.startswith
13
- $({ target: 'String', proto: true, forced: !correctIsRegExpLogic('startsWith') }, {
22
+ $({ target: 'String', proto: true, forced: !MDN_POLYFILL_BUG && !CORRECT_IS_REGEXP_LOGIC }, {
14
23
  startsWith: function startsWith(searchString /* , position = 0 */) {
15
24
  var that = String(requireObjectCoercible(this));
16
25
  notARegExp(searchString);
@@ -5,6 +5,7 @@ var getBuiltIn = require('../internals/get-built-in');
5
5
  var IS_PURE = require('../internals/is-pure');
6
6
  var DESCRIPTORS = require('../internals/descriptors');
7
7
  var NATIVE_SYMBOL = require('../internals/native-symbol');
8
+ var USE_SYMBOL_AS_UID = require('../internals/use-symbol-as-uid');
8
9
  var fails = require('../internals/fails');
9
10
  var has = require('../internals/has');
10
11
  var isArray = require('../internals/is-array');
@@ -195,7 +196,9 @@ if (!NATIVE_SYMBOL) {
195
196
  redefine(ObjectPrototype, 'propertyIsEnumerable', $propertyIsEnumerable, { unsafe: true });
196
197
  }
197
198
  }
199
+ }
198
200
 
201
+ if (!USE_SYMBOL_AS_UID) {
199
202
  wrappedWellKnownSymbolModule.f = function (name) {
200
203
  return wrap(wellKnownSymbol(name), name);
201
204
  };
@@ -3,9 +3,10 @@ var ArrayBufferViewCore = require('../internals/array-buffer-view-core');
3
3
  var $copyWithin = require('../internals/array-copy-within');
4
4
 
5
5
  var aTypedArray = ArrayBufferViewCore.aTypedArray;
6
+ var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
6
7
 
7
8
  // `%TypedArray%.prototype.copyWithin` method
8
9
  // https://tc39.github.io/ecma262/#sec-%typedarray%.prototype.copywithin
9
- ArrayBufferViewCore.exportProto('copyWithin', function copyWithin(target, start /* , end */) {
10
+ exportTypedArrayMethod('copyWithin', function copyWithin(target, start /* , end */) {
10
11
  return $copyWithin.call(aTypedArray(this), target, start, arguments.length > 2 ? arguments[2] : undefined);
11
12
  });
@@ -3,9 +3,10 @@ var ArrayBufferViewCore = require('../internals/array-buffer-view-core');
3
3
  var $every = require('../internals/array-iteration').every;
4
4
 
5
5
  var aTypedArray = ArrayBufferViewCore.aTypedArray;
6
+ var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
6
7
 
7
8
  // `%TypedArray%.prototype.every` method
8
9
  // https://tc39.github.io/ecma262/#sec-%typedarray%.prototype.every
9
- ArrayBufferViewCore.exportProto('every', function every(callbackfn /* , thisArg */) {
10
+ exportTypedArrayMethod('every', function every(callbackfn /* , thisArg */) {
10
11
  return $every(aTypedArray(this), callbackfn, arguments.length > 1 ? arguments[1] : undefined);
11
12
  });
@@ -3,10 +3,11 @@ var ArrayBufferViewCore = require('../internals/array-buffer-view-core');
3
3
  var $fill = require('../internals/array-fill');
4
4
 
5
5
  var aTypedArray = ArrayBufferViewCore.aTypedArray;
6
+ var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
6
7
 
7
8
  // `%TypedArray%.prototype.fill` method
8
9
  // https://tc39.github.io/ecma262/#sec-%typedarray%.prototype.fill
9
10
  // eslint-disable-next-line no-unused-vars
10
- ArrayBufferViewCore.exportProto('fill', function fill(value /* , start, end */) {
11
+ exportTypedArrayMethod('fill', function fill(value /* , start, end */) {
11
12
  return $fill.apply(aTypedArray(this), arguments);
12
13
  });
@@ -5,10 +5,11 @@ var speciesConstructor = require('../internals/species-constructor');
5
5
 
6
6
  var aTypedArray = ArrayBufferViewCore.aTypedArray;
7
7
  var aTypedArrayConstructor = ArrayBufferViewCore.aTypedArrayConstructor;
8
+ var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
8
9
 
9
10
  // `%TypedArray%.prototype.filter` method
10
11
  // https://tc39.github.io/ecma262/#sec-%typedarray%.prototype.filter
11
- ArrayBufferViewCore.exportProto('filter', function filter(callbackfn /* , thisArg */) {
12
+ exportTypedArrayMethod('filter', function filter(callbackfn /* , thisArg */) {
12
13
  var list = $filter(aTypedArray(this), callbackfn, arguments.length > 1 ? arguments[1] : undefined);
13
14
  var C = speciesConstructor(this, this.constructor);
14
15
  var index = 0;
@@ -3,9 +3,10 @@ var ArrayBufferViewCore = require('../internals/array-buffer-view-core');
3
3
  var $findIndex = require('../internals/array-iteration').findIndex;
4
4
 
5
5
  var aTypedArray = ArrayBufferViewCore.aTypedArray;
6
+ var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
6
7
 
7
8
  // `%TypedArray%.prototype.findIndex` method
8
9
  // https://tc39.github.io/ecma262/#sec-%typedarray%.prototype.findindex
9
- ArrayBufferViewCore.exportProto('findIndex', function findIndex(predicate /* , thisArg */) {
10
+ exportTypedArrayMethod('findIndex', function findIndex(predicate /* , thisArg */) {
10
11
  return $findIndex(aTypedArray(this), predicate, arguments.length > 1 ? arguments[1] : undefined);
11
12
  });
@@ -3,9 +3,10 @@ var ArrayBufferViewCore = require('../internals/array-buffer-view-core');
3
3
  var $find = require('../internals/array-iteration').find;
4
4
 
5
5
  var aTypedArray = ArrayBufferViewCore.aTypedArray;
6
+ var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
6
7
 
7
8
  // `%TypedArray%.prototype.find` method
8
9
  // https://tc39.github.io/ecma262/#sec-%typedarray%.prototype.find
9
- ArrayBufferViewCore.exportProto('find', function find(predicate /* , thisArg */) {
10
+ exportTypedArrayMethod('find', function find(predicate /* , thisArg */) {
10
11
  return $find(aTypedArray(this), predicate, arguments.length > 1 ? arguments[1] : undefined);
11
12
  });
@@ -1,8 +1,8 @@
1
- var typedArrayConstructor = require('../internals/typed-array-constructor');
1
+ var createTypedArrayConstructor = require('../internals/typed-array-constructor');
2
2
 
3
3
  // `Float32Array` constructor
4
4
  // https://tc39.github.io/ecma262/#sec-typedarray-objects
5
- typedArrayConstructor('Float32', 4, function (init) {
5
+ createTypedArrayConstructor('Float32', function (init) {
6
6
  return function Float32Array(data, byteOffset, length) {
7
7
  return init(this, data, byteOffset, length);
8
8
  };
@@ -1,8 +1,8 @@
1
- var typedArrayConstructor = require('../internals/typed-array-constructor');
1
+ var createTypedArrayConstructor = require('../internals/typed-array-constructor');
2
2
 
3
3
  // `Float64Array` constructor
4
4
  // https://tc39.github.io/ecma262/#sec-typedarray-objects
5
- typedArrayConstructor('Float64', 8, function (init) {
5
+ createTypedArrayConstructor('Float64', function (init) {
6
6
  return function Float64Array(data, byteOffset, length) {
7
7
  return init(this, data, byteOffset, length);
8
8
  };
@@ -3,9 +3,10 @@ var ArrayBufferViewCore = require('../internals/array-buffer-view-core');
3
3
  var $forEach = require('../internals/array-iteration').forEach;
4
4
 
5
5
  var aTypedArray = ArrayBufferViewCore.aTypedArray;
6
+ var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
6
7
 
7
8
  // `%TypedArray%.prototype.forEach` method
8
9
  // https://tc39.github.io/ecma262/#sec-%typedarray%.prototype.foreach
9
- ArrayBufferViewCore.exportProto('forEach', function forEach(callbackfn /* , thisArg */) {
10
+ exportTypedArrayMethod('forEach', function forEach(callbackfn /* , thisArg */) {
10
11
  $forEach(aTypedArray(this), callbackfn, arguments.length > 1 ? arguments[1] : undefined);
11
12
  });
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
  var TYPED_ARRAYS_CONSTRUCTORS_REQUIRES_WRAPPERS = require('../internals/typed-arrays-constructors-requires-wrappers');
3
- var ArrayBufferViewCore = require('../internals/array-buffer-view-core');
3
+ var exportTypedArrayStaticMethod = require('../internals/array-buffer-view-core').exportTypedArrayStaticMethod;
4
4
  var typedArrayFrom = require('../internals/typed-array-from');
5
5
 
6
6
  // `%TypedArray%.from` method
7
7
  // https://tc39.github.io/ecma262/#sec-%typedarray%.from
8
- ArrayBufferViewCore.exportStatic('from', typedArrayFrom, TYPED_ARRAYS_CONSTRUCTORS_REQUIRES_WRAPPERS);
8
+ exportTypedArrayStaticMethod('from', typedArrayFrom, TYPED_ARRAYS_CONSTRUCTORS_REQUIRES_WRAPPERS);
@@ -3,9 +3,10 @@ var ArrayBufferViewCore = require('../internals/array-buffer-view-core');
3
3
  var $includes = require('../internals/array-includes').includes;
4
4
 
5
5
  var aTypedArray = ArrayBufferViewCore.aTypedArray;
6
+ var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
6
7
 
7
8
  // `%TypedArray%.prototype.includes` method
8
9
  // https://tc39.github.io/ecma262/#sec-%typedarray%.prototype.includes
9
- ArrayBufferViewCore.exportProto('includes', function includes(searchElement /* , fromIndex */) {
10
+ exportTypedArrayMethod('includes', function includes(searchElement /* , fromIndex */) {
10
11
  return $includes(aTypedArray(this), searchElement, arguments.length > 1 ? arguments[1] : undefined);
11
12
  });
@@ -3,9 +3,10 @@ var ArrayBufferViewCore = require('../internals/array-buffer-view-core');
3
3
  var $indexOf = require('../internals/array-includes').indexOf;
4
4
 
5
5
  var aTypedArray = ArrayBufferViewCore.aTypedArray;
6
+ var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
6
7
 
7
8
  // `%TypedArray%.prototype.indexOf` method
8
9
  // https://tc39.github.io/ecma262/#sec-%typedarray%.prototype.indexof
9
- ArrayBufferViewCore.exportProto('indexOf', function indexOf(searchElement /* , fromIndex */) {
10
+ exportTypedArrayMethod('indexOf', function indexOf(searchElement /* , fromIndex */) {
10
11
  return $indexOf(aTypedArray(this), searchElement, arguments.length > 1 ? arguments[1] : undefined);
11
12
  });
@@ -1,8 +1,8 @@
1
- var typedArrayConstructor = require('../internals/typed-array-constructor');
1
+ var createTypedArrayConstructor = require('../internals/typed-array-constructor');
2
2
 
3
3
  // `Int16Array` constructor
4
4
  // https://tc39.github.io/ecma262/#sec-typedarray-objects
5
- typedArrayConstructor('Int16', 2, function (init) {
5
+ createTypedArrayConstructor('Int16', function (init) {
6
6
  return function Int16Array(data, byteOffset, length) {
7
7
  return init(this, data, byteOffset, length);
8
8
  };
@@ -1,8 +1,8 @@
1
- var typedArrayConstructor = require('../internals/typed-array-constructor');
1
+ var createTypedArrayConstructor = require('../internals/typed-array-constructor');
2
2
 
3
3
  // `Int32Array` constructor
4
4
  // https://tc39.github.io/ecma262/#sec-typedarray-objects
5
- typedArrayConstructor('Int32', 4, function (init) {
5
+ createTypedArrayConstructor('Int32', function (init) {
6
6
  return function Int32Array(data, byteOffset, length) {
7
7
  return init(this, data, byteOffset, length);
8
8
  };
@@ -1,8 +1,8 @@
1
- var typedArrayConstructor = require('../internals/typed-array-constructor');
1
+ var createTypedArrayConstructor = require('../internals/typed-array-constructor');
2
2
 
3
3
  // `Int8Array` constructor
4
4
  // https://tc39.github.io/ecma262/#sec-typedarray-objects
5
- typedArrayConstructor('Int8', 1, function (init) {
5
+ createTypedArrayConstructor('Int8', function (init) {
6
6
  return function Int8Array(data, byteOffset, length) {
7
7
  return init(this, data, byteOffset, length);
8
8
  };
@@ -10,7 +10,7 @@ var arrayValues = ArrayIterators.values;
10
10
  var arrayKeys = ArrayIterators.keys;
11
11
  var arrayEntries = ArrayIterators.entries;
12
12
  var aTypedArray = ArrayBufferViewCore.aTypedArray;
13
- var exportProto = ArrayBufferViewCore.exportProto;
13
+ var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
14
14
  var nativeTypedArrayIterator = Uint8Array && Uint8Array.prototype[ITERATOR];
15
15
 
16
16
  var CORRECT_ITER_NAME = !!nativeTypedArrayIterator
@@ -22,17 +22,17 @@ var typedArrayValues = function values() {
22
22
 
23
23
  // `%TypedArray%.prototype.entries` method
24
24
  // https://tc39.github.io/ecma262/#sec-%typedarray%.prototype.entries
25
- exportProto('entries', function entries() {
25
+ exportTypedArrayMethod('entries', function entries() {
26
26
  return arrayEntries.call(aTypedArray(this));
27
27
  });
28
28
  // `%TypedArray%.prototype.keys` method
29
29
  // https://tc39.github.io/ecma262/#sec-%typedarray%.prototype.keys
30
- exportProto('keys', function keys() {
30
+ exportTypedArrayMethod('keys', function keys() {
31
31
  return arrayKeys.call(aTypedArray(this));
32
32
  });
33
33
  // `%TypedArray%.prototype.values` method
34
34
  // https://tc39.github.io/ecma262/#sec-%typedarray%.prototype.values
35
- exportProto('values', typedArrayValues, !CORRECT_ITER_NAME);
35
+ exportTypedArrayMethod('values', typedArrayValues, !CORRECT_ITER_NAME);
36
36
  // `%TypedArray%.prototype[@@iterator]` method
37
37
  // https://tc39.github.io/ecma262/#sec-%typedarray%.prototype-@@iterator
38
- exportProto(ITERATOR, typedArrayValues, !CORRECT_ITER_NAME);
38
+ exportTypedArrayMethod(ITERATOR, typedArrayValues, !CORRECT_ITER_NAME);
@@ -2,11 +2,12 @@
2
2
  var ArrayBufferViewCore = require('../internals/array-buffer-view-core');
3
3
 
4
4
  var aTypedArray = ArrayBufferViewCore.aTypedArray;
5
+ var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
5
6
  var $join = [].join;
6
7
 
7
8
  // `%TypedArray%.prototype.join` method
8
9
  // https://tc39.github.io/ecma262/#sec-%typedarray%.prototype.join
9
10
  // eslint-disable-next-line no-unused-vars
10
- ArrayBufferViewCore.exportProto('join', function join(separator) {
11
+ exportTypedArrayMethod('join', function join(separator) {
11
12
  return $join.apply(aTypedArray(this), arguments);
12
13
  });
@@ -3,10 +3,11 @@ var ArrayBufferViewCore = require('../internals/array-buffer-view-core');
3
3
  var $lastIndexOf = require('../internals/array-last-index-of');
4
4
 
5
5
  var aTypedArray = ArrayBufferViewCore.aTypedArray;
6
+ var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
6
7
 
7
8
  // `%TypedArray%.prototype.lastIndexOf` method
8
9
  // https://tc39.github.io/ecma262/#sec-%typedarray%.prototype.lastindexof
9
10
  // eslint-disable-next-line no-unused-vars
10
- ArrayBufferViewCore.exportProto('lastIndexOf', function lastIndexOf(searchElement /* , fromIndex */) {
11
+ exportTypedArrayMethod('lastIndexOf', function lastIndexOf(searchElement /* , fromIndex */) {
11
12
  return $lastIndexOf.apply(aTypedArray(this), arguments);
12
13
  });