core-js 3.21.1 → 3.22.4

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 (1353) hide show
  1. package/README.md +1 -1
  2. package/actual/array/index.js +4 -0
  3. package/actual/array/to-reversed.js +4 -0
  4. package/actual/array/to-sorted.js +5 -0
  5. package/actual/array/to-spliced.js +4 -0
  6. package/actual/array/virtual/index.js +4 -0
  7. package/actual/array/virtual/to-reversed.js +4 -0
  8. package/actual/array/virtual/to-sorted.js +5 -0
  9. package/actual/array/virtual/to-spliced.js +4 -0
  10. package/actual/array/virtual/with.js +4 -0
  11. package/actual/array/with.js +4 -0
  12. package/actual/instance/to-reversed.js +9 -0
  13. package/actual/instance/to-sorted.js +9 -0
  14. package/actual/instance/to-spliced.js +9 -0
  15. package/actual/instance/with.js +9 -0
  16. package/actual/typed-array/index.js +4 -0
  17. package/actual/typed-array/methods.js +4 -0
  18. package/actual/typed-array/to-reversed.js +1 -0
  19. package/actual/typed-array/to-sorted.js +2 -0
  20. package/actual/typed-array/to-spliced.js +1 -0
  21. package/actual/typed-array/with.js +1 -0
  22. package/es/json/index.js +1 -1
  23. package/es/json/stringify.js +1 -1
  24. package/es/object/lookup-getter.js +1 -1
  25. package/es/regexp/flags.js +2 -3
  26. package/features/aggregate-error.js +1 -6
  27. package/features/array/at.js +1 -6
  28. package/features/array/concat.js +1 -3
  29. package/features/array/copy-within.js +1 -3
  30. package/features/array/entries.js +1 -3
  31. package/features/array/every.js +1 -3
  32. package/features/array/fill.js +1 -3
  33. package/features/array/filter-out.js +1 -5
  34. package/features/array/filter-reject.js +1 -4
  35. package/features/array/filter.js +1 -3
  36. package/features/array/find-index.js +1 -3
  37. package/features/array/find-last-index.js +1 -3
  38. package/features/array/find-last.js +1 -3
  39. package/features/array/find.js +1 -3
  40. package/features/array/flat-map.js +1 -3
  41. package/features/array/flat.js +1 -3
  42. package/features/array/for-each.js +1 -3
  43. package/features/array/from-async.js +1 -8
  44. package/features/array/from.js +1 -3
  45. package/features/array/group-by-to-map.js +1 -3
  46. package/features/array/group-by.js +1 -3
  47. package/features/array/includes.js +1 -3
  48. package/features/array/index-of.js +1 -3
  49. package/features/array/index.js +1 -18
  50. package/features/array/is-array.js +1 -3
  51. package/features/array/is-template-object.js +1 -4
  52. package/features/array/iterator.js +1 -3
  53. package/features/array/join.js +1 -3
  54. package/features/array/keys.js +1 -3
  55. package/features/array/last-index-of.js +1 -3
  56. package/features/array/last-index.js +1 -1
  57. package/features/array/last-item.js +1 -1
  58. package/features/array/map.js +1 -3
  59. package/features/array/of.js +1 -3
  60. package/features/array/reduce-right.js +1 -3
  61. package/features/array/reduce.js +1 -3
  62. package/features/array/reverse.js +1 -3
  63. package/features/array/slice.js +1 -3
  64. package/features/array/some.js +1 -3
  65. package/features/array/sort.js +1 -3
  66. package/features/array/splice.js +1 -3
  67. package/features/array/to-reversed.js +1 -4
  68. package/features/array/to-sorted.js +1 -5
  69. package/features/array/to-spliced.js +1 -4
  70. package/features/array/unique-by.js +1 -5
  71. package/features/array/values.js +1 -3
  72. package/features/array/virtual/at.js +1 -6
  73. package/features/array/virtual/concat.js +1 -3
  74. package/features/array/virtual/copy-within.js +1 -3
  75. package/features/array/virtual/entries.js +1 -3
  76. package/features/array/virtual/every.js +1 -3
  77. package/features/array/virtual/fill.js +1 -3
  78. package/features/array/virtual/filter-out.js +1 -5
  79. package/features/array/virtual/filter-reject.js +1 -4
  80. package/features/array/virtual/filter.js +1 -3
  81. package/features/array/virtual/find-index.js +1 -3
  82. package/features/array/virtual/find-last-index.js +1 -3
  83. package/features/array/virtual/find-last.js +1 -3
  84. package/features/array/virtual/find.js +1 -3
  85. package/features/array/virtual/flat-map.js +1 -3
  86. package/features/array/virtual/flat.js +1 -3
  87. package/features/array/virtual/for-each.js +1 -3
  88. package/features/array/virtual/group-by-to-map.js +1 -3
  89. package/features/array/virtual/group-by.js +1 -3
  90. package/features/array/virtual/includes.js +1 -3
  91. package/features/array/virtual/index-of.js +1 -3
  92. package/features/array/virtual/index.js +1 -13
  93. package/features/array/virtual/iterator.js +1 -3
  94. package/features/array/virtual/join.js +1 -3
  95. package/features/array/virtual/keys.js +1 -3
  96. package/features/array/virtual/last-index-of.js +1 -3
  97. package/features/array/virtual/map.js +1 -3
  98. package/features/array/virtual/reduce-right.js +1 -3
  99. package/features/array/virtual/reduce.js +1 -3
  100. package/features/array/virtual/reverse.js +1 -3
  101. package/features/array/virtual/slice.js +1 -3
  102. package/features/array/virtual/some.js +1 -3
  103. package/features/array/virtual/sort.js +1 -3
  104. package/features/array/virtual/splice.js +1 -3
  105. package/features/array/virtual/to-reversed.js +1 -4
  106. package/features/array/virtual/to-sorted.js +1 -5
  107. package/features/array/virtual/to-spliced.js +1 -4
  108. package/features/array/virtual/unique-by.js +1 -5
  109. package/features/array/virtual/values.js +1 -3
  110. package/features/array/virtual/with.js +1 -4
  111. package/features/array/with.js +1 -4
  112. package/features/array-buffer/constructor.js +1 -3
  113. package/features/array-buffer/index.js +1 -3
  114. package/features/array-buffer/is-view.js +1 -3
  115. package/features/array-buffer/slice.js +1 -3
  116. package/features/async-iterator/as-indexed-pairs.js +1 -8
  117. package/features/async-iterator/drop.js +1 -8
  118. package/features/async-iterator/every.js +1 -8
  119. package/features/async-iterator/filter.js +1 -8
  120. package/features/async-iterator/find.js +1 -8
  121. package/features/async-iterator/flat-map.js +1 -8
  122. package/features/async-iterator/for-each.js +1 -8
  123. package/features/async-iterator/from.js +1 -11
  124. package/features/async-iterator/index.js +1 -23
  125. package/features/async-iterator/map.js +1 -8
  126. package/features/async-iterator/reduce.js +1 -8
  127. package/features/async-iterator/some.js +1 -8
  128. package/features/async-iterator/take.js +1 -8
  129. package/features/async-iterator/to-array.js +1 -8
  130. package/features/atob.js +1 -3
  131. package/features/bigint/index.js +1 -5
  132. package/features/bigint/range.js +1 -5
  133. package/features/btoa.js +1 -3
  134. package/features/clear-immediate.js +1 -3
  135. package/features/composite-key.js +1 -4
  136. package/features/composite-symbol.js +1 -5
  137. package/features/data-view/index.js +1 -3
  138. package/features/date/get-year.js +1 -3
  139. package/features/date/index.js +1 -3
  140. package/features/date/now.js +1 -3
  141. package/features/date/set-year.js +1 -3
  142. package/features/date/to-gmt-string.js +1 -3
  143. package/features/date/to-iso-string.js +1 -3
  144. package/features/date/to-json.js +1 -3
  145. package/features/date/to-primitive.js +1 -3
  146. package/features/date/to-string.js +1 -3
  147. package/features/dom-collections/for-each.js +1 -3
  148. package/features/dom-collections/index.js +1 -3
  149. package/features/dom-collections/iterator.js +1 -3
  150. package/features/dom-exception/constructor.js +1 -3
  151. package/features/dom-exception/index.js +1 -3
  152. package/features/dom-exception/to-string-tag.js +1 -3
  153. package/features/error/constructor.js +1 -3
  154. package/features/error/index.js +1 -3
  155. package/features/error/to-string.js +1 -3
  156. package/features/escape.js +1 -3
  157. package/features/function/bind.js +1 -3
  158. package/features/function/has-instance.js +1 -3
  159. package/features/function/index.js +1 -6
  160. package/features/function/is-callable.js +1 -4
  161. package/features/function/is-constructor.js +1 -4
  162. package/features/function/name.js +1 -3
  163. package/features/function/un-this.js +1 -4
  164. package/features/function/virtual/bind.js +1 -3
  165. package/features/function/virtual/index.js +1 -4
  166. package/features/function/virtual/un-this.js +1 -4
  167. package/features/get-iterator-method.js +1 -3
  168. package/features/get-iterator.js +1 -3
  169. package/features/global-this.js +1 -6
  170. package/features/index.js +1 -398
  171. package/features/instance/at.js +1 -14
  172. package/features/instance/bind.js +1 -3
  173. package/features/instance/code-point-at.js +1 -3
  174. package/features/instance/code-points.js +1 -10
  175. package/features/instance/concat.js +1 -3
  176. package/features/instance/copy-within.js +1 -3
  177. package/features/instance/ends-with.js +1 -3
  178. package/features/instance/entries.js +1 -3
  179. package/features/instance/every.js +1 -3
  180. package/features/instance/fill.js +1 -3
  181. package/features/instance/filter-out.js +1 -10
  182. package/features/instance/filter-reject.js +1 -9
  183. package/features/instance/filter.js +1 -3
  184. package/features/instance/find-index.js +1 -3
  185. package/features/instance/find-last-index.js +1 -3
  186. package/features/instance/find-last.js +1 -3
  187. package/features/instance/find.js +1 -3
  188. package/features/instance/flags.js +1 -3
  189. package/features/instance/flat-map.js +1 -3
  190. package/features/instance/flat.js +1 -3
  191. package/features/instance/for-each.js +1 -3
  192. package/features/instance/group-by-to-map.js +1 -3
  193. package/features/instance/group-by.js +1 -3
  194. package/features/instance/includes.js +1 -3
  195. package/features/instance/index-of.js +1 -3
  196. package/features/instance/keys.js +1 -3
  197. package/features/instance/last-index-of.js +1 -3
  198. package/features/instance/map.js +1 -3
  199. package/features/instance/match-all.js +1 -6
  200. package/features/instance/pad-end.js +1 -3
  201. package/features/instance/pad-start.js +1 -3
  202. package/features/instance/reduce-right.js +1 -3
  203. package/features/instance/reduce.js +1 -3
  204. package/features/instance/repeat.js +1 -3
  205. package/features/instance/replace-all.js +1 -3
  206. package/features/instance/reverse.js +1 -3
  207. package/features/instance/slice.js +1 -3
  208. package/features/instance/some.js +1 -3
  209. package/features/instance/sort.js +1 -3
  210. package/features/instance/splice.js +1 -3
  211. package/features/instance/starts-with.js +1 -3
  212. package/features/instance/to-reversed.js +1 -9
  213. package/features/instance/to-sorted.js +1 -9
  214. package/features/instance/to-spliced.js +1 -9
  215. package/features/instance/trim-end.js +1 -3
  216. package/features/instance/trim-left.js +1 -3
  217. package/features/instance/trim-right.js +1 -3
  218. package/features/instance/trim-start.js +1 -3
  219. package/features/instance/trim.js +1 -3
  220. package/features/instance/un-this.js +1 -9
  221. package/features/instance/unique-by.js +1 -9
  222. package/features/instance/values.js +1 -3
  223. package/features/instance/with.js +1 -9
  224. package/features/is-iterable.js +1 -3
  225. package/features/iterator/as-indexed-pairs.js +1 -8
  226. package/features/iterator/drop.js +1 -7
  227. package/features/iterator/every.js +1 -7
  228. package/features/iterator/filter.js +1 -7
  229. package/features/iterator/find.js +1 -7
  230. package/features/iterator/flat-map.js +1 -7
  231. package/features/iterator/for-each.js +1 -7
  232. package/features/iterator/from.js +1 -10
  233. package/features/iterator/index.js +1 -24
  234. package/features/iterator/map.js +1 -7
  235. package/features/iterator/reduce.js +1 -7
  236. package/features/iterator/some.js +1 -7
  237. package/features/iterator/take.js +1 -7
  238. package/features/iterator/to-array.js +1 -7
  239. package/features/iterator/to-async.js +1 -8
  240. package/features/json/index.js +1 -3
  241. package/features/json/stringify.js +1 -3
  242. package/features/json/to-string-tag.js +1 -3
  243. package/features/map/delete-all.js +1 -5
  244. package/features/map/emplace.js +1 -5
  245. package/features/map/every.js +1 -5
  246. package/features/map/filter.js +1 -5
  247. package/features/map/find-key.js +1 -5
  248. package/features/map/find.js +1 -5
  249. package/features/map/from.js +1 -16
  250. package/features/map/group-by.js +1 -13
  251. package/features/map/includes.js +1 -5
  252. package/features/map/index.js +1 -25
  253. package/features/map/key-by.js +1 -13
  254. package/features/map/key-of.js +1 -5
  255. package/features/map/map-keys.js +1 -5
  256. package/features/map/map-values.js +1 -5
  257. package/features/map/merge.js +1 -5
  258. package/features/map/of.js +1 -14
  259. package/features/map/reduce.js +1 -5
  260. package/features/map/some.js +1 -5
  261. package/features/map/update-or-insert.js +1 -6
  262. package/features/map/update.js +1 -5
  263. package/features/map/upsert.js +1 -5
  264. package/features/math/acosh.js +1 -3
  265. package/features/math/asinh.js +1 -3
  266. package/features/math/atanh.js +1 -3
  267. package/features/math/cbrt.js +1 -3
  268. package/features/math/clamp.js +1 -4
  269. package/features/math/clz32.js +1 -3
  270. package/features/math/cosh.js +1 -3
  271. package/features/math/deg-per-rad.js +1 -3
  272. package/features/math/degrees.js +1 -4
  273. package/features/math/expm1.js +1 -3
  274. package/features/math/fround.js +1 -3
  275. package/features/math/fscale.js +1 -4
  276. package/features/math/hypot.js +1 -3
  277. package/features/math/iaddh.js +1 -4
  278. package/features/math/imul.js +1 -3
  279. package/features/math/imulh.js +1 -4
  280. package/features/math/index.js +1 -17
  281. package/features/math/isubh.js +1 -4
  282. package/features/math/log10.js +1 -3
  283. package/features/math/log1p.js +1 -3
  284. package/features/math/log2.js +1 -3
  285. package/features/math/rad-per-deg.js +1 -3
  286. package/features/math/radians.js +1 -4
  287. package/features/math/scale.js +1 -4
  288. package/features/math/seeded-prng.js +1 -4
  289. package/features/math/sign.js +1 -3
  290. package/features/math/signbit.js +1 -4
  291. package/features/math/sinh.js +1 -3
  292. package/features/math/tanh.js +1 -3
  293. package/features/math/to-string-tag.js +1 -3
  294. package/features/math/trunc.js +1 -3
  295. package/features/math/umulh.js +1 -4
  296. package/features/number/constructor.js +1 -3
  297. package/features/number/epsilon.js +1 -3
  298. package/features/number/from-string.js +1 -4
  299. package/features/number/index.js +1 -7
  300. package/features/number/is-finite.js +1 -3
  301. package/features/number/is-integer.js +1 -3
  302. package/features/number/is-nan.js +1 -3
  303. package/features/number/is-safe-integer.js +1 -3
  304. package/features/number/max-safe-integer.js +1 -3
  305. package/features/number/min-safe-integer.js +1 -3
  306. package/features/number/parse-float.js +1 -3
  307. package/features/number/parse-int.js +1 -3
  308. package/features/number/range.js +1 -5
  309. package/features/number/to-exponential.js +1 -3
  310. package/features/number/to-fixed.js +1 -3
  311. package/features/number/to-precision.js +1 -3
  312. package/features/number/virtual/index.js +1 -3
  313. package/features/number/virtual/to-exponential.js +1 -3
  314. package/features/number/virtual/to-fixed.js +1 -3
  315. package/features/number/virtual/to-precision.js +1 -3
  316. package/features/object/assign.js +1 -3
  317. package/features/object/create.js +1 -3
  318. package/features/object/define-getter.js +1 -3
  319. package/features/object/define-properties.js +1 -3
  320. package/features/object/define-property.js +1 -3
  321. package/features/object/define-setter.js +1 -3
  322. package/features/object/entries.js +1 -3
  323. package/features/object/freeze.js +1 -3
  324. package/features/object/from-entries.js +1 -3
  325. package/features/object/get-own-property-descriptor.js +1 -3
  326. package/features/object/get-own-property-descriptors.js +1 -3
  327. package/features/object/get-own-property-names.js +1 -3
  328. package/features/object/get-own-property-symbols.js +1 -3
  329. package/features/object/get-prototype-of.js +1 -3
  330. package/features/object/has-own.js +1 -6
  331. package/features/object/index.js +1 -8
  332. package/features/object/is-extensible.js +1 -3
  333. package/features/object/is-frozen.js +1 -3
  334. package/features/object/is-sealed.js +1 -3
  335. package/features/object/is.js +1 -3
  336. package/features/object/iterate-entries.js +1 -4
  337. package/features/object/iterate-keys.js +1 -4
  338. package/features/object/iterate-values.js +1 -4
  339. package/features/object/keys.js +1 -3
  340. package/features/object/lookup-getter.js +1 -3
  341. package/features/object/lookup-setter.js +1 -3
  342. package/features/object/prevent-extensions.js +1 -3
  343. package/features/object/seal.js +1 -3
  344. package/features/object/set-prototype-of.js +1 -3
  345. package/features/object/to-string.js +1 -3
  346. package/features/object/values.js +1 -3
  347. package/features/observable/index.js +1 -8
  348. package/features/parse-float.js +1 -3
  349. package/features/parse-int.js +1 -3
  350. package/features/promise/all-settled.js +1 -6
  351. package/features/promise/any.js +1 -7
  352. package/features/promise/finally.js +1 -3
  353. package/features/promise/index.js +1 -8
  354. package/features/promise/try.js +1 -13
  355. package/features/queue-microtask.js +1 -3
  356. package/features/reflect/apply.js +1 -3
  357. package/features/reflect/construct.js +1 -3
  358. package/features/reflect/define-metadata.js +1 -4
  359. package/features/reflect/define-property.js +1 -3
  360. package/features/reflect/delete-metadata.js +1 -4
  361. package/features/reflect/delete-property.js +1 -3
  362. package/features/reflect/get-metadata-keys.js +1 -4
  363. package/features/reflect/get-metadata.js +1 -4
  364. package/features/reflect/get-own-metadata-keys.js +1 -4
  365. package/features/reflect/get-own-metadata.js +1 -4
  366. package/features/reflect/get-own-property-descriptor.js +1 -3
  367. package/features/reflect/get-prototype-of.js +1 -3
  368. package/features/reflect/get.js +1 -3
  369. package/features/reflect/has-metadata.js +1 -4
  370. package/features/reflect/has-own-metadata.js +1 -4
  371. package/features/reflect/has.js +1 -3
  372. package/features/reflect/index.js +1 -12
  373. package/features/reflect/is-extensible.js +1 -3
  374. package/features/reflect/metadata.js +1 -4
  375. package/features/reflect/own-keys.js +1 -3
  376. package/features/reflect/prevent-extensions.js +1 -3
  377. package/features/reflect/set-prototype-of.js +1 -3
  378. package/features/reflect/set.js +1 -3
  379. package/features/reflect/to-string-tag.js +1 -3
  380. package/features/regexp/constructor.js +1 -3
  381. package/features/regexp/dot-all.js +1 -3
  382. package/features/regexp/flags.js +1 -3
  383. package/features/regexp/index.js +1 -3
  384. package/features/regexp/match.js +1 -3
  385. package/features/regexp/replace.js +1 -3
  386. package/features/regexp/search.js +1 -3
  387. package/features/regexp/split.js +1 -3
  388. package/features/regexp/sticky.js +1 -3
  389. package/features/regexp/test.js +1 -3
  390. package/features/regexp/to-string.js +1 -3
  391. package/features/set/add-all.js +1 -5
  392. package/features/set/delete-all.js +1 -5
  393. package/features/set/difference.js +1 -8
  394. package/features/set/every.js +1 -5
  395. package/features/set/filter.js +1 -5
  396. package/features/set/find.js +1 -5
  397. package/features/set/from.js +1 -16
  398. package/features/set/index.js +1 -21
  399. package/features/set/intersection.js +1 -8
  400. package/features/set/is-disjoint-from.js +1 -8
  401. package/features/set/is-subset-of.js +1 -8
  402. package/features/set/is-superset-of.js +1 -8
  403. package/features/set/join.js +1 -5
  404. package/features/set/map.js +1 -5
  405. package/features/set/of.js +1 -14
  406. package/features/set/reduce.js +1 -5
  407. package/features/set/some.js +1 -5
  408. package/features/set/symmetric-difference.js +1 -8
  409. package/features/set/union.js +1 -8
  410. package/features/set-immediate.js +1 -3
  411. package/features/set-interval.js +1 -3
  412. package/features/set-timeout.js +1 -3
  413. package/features/string/anchor.js +1 -3
  414. package/features/string/at.js +1 -5
  415. package/features/string/big.js +1 -3
  416. package/features/string/blink.js +1 -3
  417. package/features/string/bold.js +1 -3
  418. package/features/string/code-point-at.js +1 -3
  419. package/features/string/code-points.js +1 -4
  420. package/features/string/cooked.js +1 -4
  421. package/features/string/ends-with.js +1 -3
  422. package/features/string/fixed.js +1 -3
  423. package/features/string/fontcolor.js +1 -3
  424. package/features/string/fontsize.js +1 -3
  425. package/features/string/from-code-point.js +1 -3
  426. package/features/string/includes.js +1 -3
  427. package/features/string/index.js +1 -10
  428. package/features/string/italics.js +1 -3
  429. package/features/string/iterator.js +1 -3
  430. package/features/string/link.js +1 -3
  431. package/features/string/match-all.js +1 -6
  432. package/features/string/match.js +1 -3
  433. package/features/string/pad-end.js +1 -3
  434. package/features/string/pad-start.js +1 -3
  435. package/features/string/raw.js +1 -3
  436. package/features/string/repeat.js +1 -3
  437. package/features/string/replace-all.js +1 -6
  438. package/features/string/replace.js +1 -3
  439. package/features/string/search.js +1 -3
  440. package/features/string/small.js +1 -3
  441. package/features/string/split.js +1 -3
  442. package/features/string/starts-with.js +1 -3
  443. package/features/string/strike.js +1 -3
  444. package/features/string/sub.js +1 -3
  445. package/features/string/substr.js +1 -3
  446. package/features/string/sup.js +1 -3
  447. package/features/string/trim-end.js +1 -3
  448. package/features/string/trim-left.js +1 -3
  449. package/features/string/trim-right.js +1 -3
  450. package/features/string/trim-start.js +1 -3
  451. package/features/string/trim.js +1 -3
  452. package/features/string/virtual/anchor.js +1 -3
  453. package/features/string/virtual/at.js +1 -6
  454. package/features/string/virtual/big.js +1 -3
  455. package/features/string/virtual/blink.js +1 -3
  456. package/features/string/virtual/bold.js +1 -3
  457. package/features/string/virtual/code-point-at.js +1 -3
  458. package/features/string/virtual/code-points.js +1 -4
  459. package/features/string/virtual/ends-with.js +1 -3
  460. package/features/string/virtual/fixed.js +1 -3
  461. package/features/string/virtual/fontcolor.js +1 -3
  462. package/features/string/virtual/fontsize.js +1 -3
  463. package/features/string/virtual/includes.js +1 -3
  464. package/features/string/virtual/index.js +1 -9
  465. package/features/string/virtual/italics.js +1 -3
  466. package/features/string/virtual/iterator.js +1 -3
  467. package/features/string/virtual/link.js +1 -3
  468. package/features/string/virtual/match-all.js +1 -6
  469. package/features/string/virtual/pad-end.js +1 -3
  470. package/features/string/virtual/pad-start.js +1 -3
  471. package/features/string/virtual/repeat.js +1 -3
  472. package/features/string/virtual/replace-all.js +1 -6
  473. package/features/string/virtual/small.js +1 -3
  474. package/features/string/virtual/starts-with.js +1 -3
  475. package/features/string/virtual/strike.js +1 -3
  476. package/features/string/virtual/sub.js +1 -3
  477. package/features/string/virtual/substr.js +1 -3
  478. package/features/string/virtual/sup.js +1 -3
  479. package/features/string/virtual/trim-end.js +1 -3
  480. package/features/string/virtual/trim-left.js +1 -3
  481. package/features/string/virtual/trim-right.js +1 -3
  482. package/features/string/virtual/trim-start.js +1 -3
  483. package/features/string/virtual/trim.js +1 -3
  484. package/features/structured-clone.js +1 -3
  485. package/features/symbol/async-dispose.js +1 -4
  486. package/features/symbol/async-iterator.js +1 -3
  487. package/features/symbol/description.js +1 -1
  488. package/features/symbol/dispose.js +1 -4
  489. package/features/symbol/for.js +1 -3
  490. package/features/symbol/has-instance.js +1 -3
  491. package/features/symbol/index.js +1 -12
  492. package/features/symbol/is-concat-spreadable.js +1 -3
  493. package/features/symbol/iterator.js +1 -3
  494. package/features/symbol/key-for.js +1 -3
  495. package/features/symbol/match-all.js +1 -3
  496. package/features/symbol/match.js +1 -3
  497. package/features/symbol/matcher.js +1 -4
  498. package/features/symbol/metadata.js +1 -4
  499. package/features/symbol/observable.js +1 -4
  500. package/features/symbol/pattern-match.js +1 -5
  501. package/features/symbol/replace-all.js +1 -5
  502. package/features/symbol/replace.js +1 -3
  503. package/features/symbol/search.js +1 -3
  504. package/features/symbol/species.js +1 -3
  505. package/features/symbol/split.js +1 -3
  506. package/features/symbol/to-primitive.js +1 -3
  507. package/features/symbol/to-string-tag.js +1 -3
  508. package/features/symbol/unscopables.js +1 -3
  509. package/features/typed-array/at.js +1 -6
  510. package/features/typed-array/copy-within.js +1 -3
  511. package/features/typed-array/entries.js +1 -3
  512. package/features/typed-array/every.js +1 -3
  513. package/features/typed-array/fill.js +1 -3
  514. package/features/typed-array/filter-out.js +1 -2
  515. package/features/typed-array/filter-reject.js +1 -1
  516. package/features/typed-array/filter.js +1 -3
  517. package/features/typed-array/find-index.js +1 -3
  518. package/features/typed-array/find-last-index.js +1 -3
  519. package/features/typed-array/find-last.js +1 -3
  520. package/features/typed-array/find.js +1 -3
  521. package/features/typed-array/float32-array.js +1 -4
  522. package/features/typed-array/float64-array.js +1 -4
  523. package/features/typed-array/for-each.js +1 -3
  524. package/features/typed-array/from-async.js +1 -1
  525. package/features/typed-array/from.js +1 -3
  526. package/features/typed-array/group-by.js +1 -1
  527. package/features/typed-array/includes.js +1 -3
  528. package/features/typed-array/index-of.js +1 -3
  529. package/features/typed-array/index.js +1 -17
  530. package/features/typed-array/int16-array.js +1 -4
  531. package/features/typed-array/int32-array.js +1 -4
  532. package/features/typed-array/int8-array.js +1 -4
  533. package/features/typed-array/iterator.js +1 -3
  534. package/features/typed-array/join.js +1 -3
  535. package/features/typed-array/keys.js +1 -3
  536. package/features/typed-array/last-index-of.js +1 -3
  537. package/features/typed-array/map.js +1 -3
  538. package/features/typed-array/methods.js +1 -17
  539. package/features/typed-array/of.js +1 -3
  540. package/features/typed-array/reduce-right.js +1 -3
  541. package/features/typed-array/reduce.js +1 -3
  542. package/features/typed-array/reverse.js +1 -3
  543. package/features/typed-array/set.js +1 -3
  544. package/features/typed-array/slice.js +1 -3
  545. package/features/typed-array/some.js +1 -3
  546. package/features/typed-array/sort.js +1 -3
  547. package/features/typed-array/subarray.js +1 -3
  548. package/features/typed-array/to-locale-string.js +1 -3
  549. package/features/typed-array/to-reversed.js +1 -1
  550. package/features/typed-array/to-sorted.js +1 -2
  551. package/features/typed-array/to-spliced.js +1 -1
  552. package/features/typed-array/to-string.js +1 -3
  553. package/features/typed-array/uint16-array.js +1 -4
  554. package/features/typed-array/uint32-array.js +1 -4
  555. package/features/typed-array/uint8-array.js +1 -4
  556. package/features/typed-array/uint8-clamped-array.js +1 -4
  557. package/features/typed-array/unique-by.js +1 -2
  558. package/features/typed-array/values.js +1 -3
  559. package/features/typed-array/with.js +1 -1
  560. package/features/unescape.js +1 -3
  561. package/features/url/index.js +1 -3
  562. package/features/url/to-json.js +1 -3
  563. package/features/url-search-params/index.js +1 -3
  564. package/features/weak-map/delete-all.js +1 -5
  565. package/features/weak-map/emplace.js +1 -5
  566. package/features/weak-map/from.js +1 -16
  567. package/features/weak-map/index.js +1 -10
  568. package/features/weak-map/of.js +1 -14
  569. package/features/weak-map/upsert.js +1 -5
  570. package/features/weak-set/add-all.js +1 -5
  571. package/features/weak-set/delete-all.js +1 -5
  572. package/features/weak-set/from.js +1 -16
  573. package/features/weak-set/index.js +1 -8
  574. package/features/weak-set/of.js +1 -14
  575. package/{features → full}/README.md +0 -0
  576. package/full/aggregate-error.js +6 -0
  577. package/full/array/at.js +6 -0
  578. package/full/array/concat.js +3 -0
  579. package/full/array/copy-within.js +3 -0
  580. package/full/array/entries.js +3 -0
  581. package/full/array/every.js +3 -0
  582. package/full/array/fill.js +3 -0
  583. package/full/array/filter-out.js +5 -0
  584. package/full/array/filter-reject.js +4 -0
  585. package/full/array/filter.js +3 -0
  586. package/full/array/find-index.js +3 -0
  587. package/full/array/find-last-index.js +3 -0
  588. package/full/array/find-last.js +3 -0
  589. package/full/array/find.js +3 -0
  590. package/full/array/flat-map.js +3 -0
  591. package/full/array/flat.js +3 -0
  592. package/full/array/for-each.js +3 -0
  593. package/full/array/from-async.js +8 -0
  594. package/full/array/from.js +3 -0
  595. package/full/array/group-by-to-map.js +3 -0
  596. package/full/array/group-by.js +3 -0
  597. package/full/array/includes.js +3 -0
  598. package/full/array/index-of.js +3 -0
  599. package/full/array/index.js +14 -0
  600. package/full/array/is-array.js +3 -0
  601. package/full/array/is-template-object.js +4 -0
  602. package/full/array/iterator.js +3 -0
  603. package/full/array/join.js +3 -0
  604. package/full/array/keys.js +3 -0
  605. package/full/array/last-index-of.js +3 -0
  606. package/full/array/last-index.js +1 -0
  607. package/full/array/last-item.js +1 -0
  608. package/full/array/map.js +3 -0
  609. package/full/array/of.js +3 -0
  610. package/full/array/reduce-right.js +3 -0
  611. package/full/array/reduce.js +3 -0
  612. package/full/array/reverse.js +3 -0
  613. package/full/array/slice.js +3 -0
  614. package/full/array/some.js +3 -0
  615. package/full/array/sort.js +3 -0
  616. package/full/array/splice.js +3 -0
  617. package/full/array/to-reversed.js +4 -0
  618. package/full/array/to-sorted.js +5 -0
  619. package/full/array/to-spliced.js +4 -0
  620. package/full/array/unique-by.js +5 -0
  621. package/full/array/values.js +3 -0
  622. package/full/array/virtual/at.js +6 -0
  623. package/full/array/virtual/concat.js +3 -0
  624. package/full/array/virtual/copy-within.js +3 -0
  625. package/full/array/virtual/entries.js +3 -0
  626. package/full/array/virtual/every.js +3 -0
  627. package/full/array/virtual/fill.js +3 -0
  628. package/full/array/virtual/filter-out.js +5 -0
  629. package/full/array/virtual/filter-reject.js +4 -0
  630. package/full/array/virtual/filter.js +3 -0
  631. package/full/array/virtual/find-index.js +3 -0
  632. package/full/array/virtual/find-last-index.js +3 -0
  633. package/full/array/virtual/find-last.js +3 -0
  634. package/full/array/virtual/find.js +3 -0
  635. package/full/array/virtual/flat-map.js +3 -0
  636. package/full/array/virtual/flat.js +3 -0
  637. package/full/array/virtual/for-each.js +3 -0
  638. package/full/array/virtual/group-by-to-map.js +3 -0
  639. package/full/array/virtual/group-by.js +3 -0
  640. package/full/array/virtual/includes.js +3 -0
  641. package/full/array/virtual/index-of.js +3 -0
  642. package/full/array/virtual/index.js +9 -0
  643. package/full/array/virtual/iterator.js +3 -0
  644. package/full/array/virtual/join.js +3 -0
  645. package/full/array/virtual/keys.js +3 -0
  646. package/full/array/virtual/last-index-of.js +3 -0
  647. package/full/array/virtual/map.js +3 -0
  648. package/full/array/virtual/reduce-right.js +3 -0
  649. package/full/array/virtual/reduce.js +3 -0
  650. package/full/array/virtual/reverse.js +3 -0
  651. package/full/array/virtual/slice.js +3 -0
  652. package/full/array/virtual/some.js +3 -0
  653. package/full/array/virtual/sort.js +3 -0
  654. package/full/array/virtual/splice.js +3 -0
  655. package/full/array/virtual/to-reversed.js +3 -0
  656. package/full/array/virtual/to-sorted.js +3 -0
  657. package/full/array/virtual/to-spliced.js +3 -0
  658. package/full/array/virtual/unique-by.js +5 -0
  659. package/full/array/virtual/values.js +3 -0
  660. package/full/array/virtual/with.js +3 -0
  661. package/full/array/with.js +4 -0
  662. package/full/array-buffer/constructor.js +3 -0
  663. package/full/array-buffer/index.js +3 -0
  664. package/full/array-buffer/is-view.js +3 -0
  665. package/full/array-buffer/slice.js +3 -0
  666. package/full/async-iterator/as-indexed-pairs.js +8 -0
  667. package/full/async-iterator/drop.js +8 -0
  668. package/full/async-iterator/every.js +8 -0
  669. package/full/async-iterator/filter.js +8 -0
  670. package/full/async-iterator/find.js +8 -0
  671. package/full/async-iterator/flat-map.js +8 -0
  672. package/full/async-iterator/for-each.js +8 -0
  673. package/full/async-iterator/from.js +11 -0
  674. package/full/async-iterator/index.js +23 -0
  675. package/full/async-iterator/map.js +8 -0
  676. package/full/async-iterator/reduce.js +8 -0
  677. package/full/async-iterator/some.js +8 -0
  678. package/full/async-iterator/take.js +8 -0
  679. package/full/async-iterator/to-array.js +8 -0
  680. package/full/atob.js +3 -0
  681. package/full/bigint/index.js +5 -0
  682. package/full/bigint/range.js +5 -0
  683. package/full/btoa.js +3 -0
  684. package/full/clear-immediate.js +3 -0
  685. package/full/composite-key.js +4 -0
  686. package/full/composite-symbol.js +5 -0
  687. package/full/data-view/index.js +3 -0
  688. package/full/date/get-year.js +3 -0
  689. package/full/date/index.js +3 -0
  690. package/full/date/now.js +3 -0
  691. package/full/date/set-year.js +3 -0
  692. package/full/date/to-gmt-string.js +3 -0
  693. package/full/date/to-iso-string.js +3 -0
  694. package/full/date/to-json.js +3 -0
  695. package/full/date/to-primitive.js +3 -0
  696. package/full/date/to-string.js +3 -0
  697. package/full/dom-collections/for-each.js +3 -0
  698. package/full/dom-collections/index.js +3 -0
  699. package/full/dom-collections/iterator.js +3 -0
  700. package/full/dom-exception/constructor.js +3 -0
  701. package/full/dom-exception/index.js +3 -0
  702. package/full/dom-exception/to-string-tag.js +3 -0
  703. package/full/error/constructor.js +3 -0
  704. package/full/error/index.js +3 -0
  705. package/full/error/to-string.js +3 -0
  706. package/full/escape.js +3 -0
  707. package/full/function/bind.js +3 -0
  708. package/full/function/has-instance.js +3 -0
  709. package/full/function/index.js +6 -0
  710. package/full/function/is-callable.js +4 -0
  711. package/full/function/is-constructor.js +4 -0
  712. package/full/function/name.js +3 -0
  713. package/full/function/un-this.js +4 -0
  714. package/full/function/virtual/bind.js +3 -0
  715. package/full/function/virtual/index.js +4 -0
  716. package/full/function/virtual/un-this.js +4 -0
  717. package/full/get-iterator-method.js +3 -0
  718. package/full/get-iterator.js +3 -0
  719. package/full/global-this.js +6 -0
  720. package/full/index.js +398 -0
  721. package/full/instance/at.js +14 -0
  722. package/full/instance/bind.js +3 -0
  723. package/full/instance/code-point-at.js +3 -0
  724. package/full/instance/code-points.js +10 -0
  725. package/full/instance/concat.js +3 -0
  726. package/full/instance/copy-within.js +3 -0
  727. package/full/instance/ends-with.js +3 -0
  728. package/full/instance/entries.js +3 -0
  729. package/full/instance/every.js +3 -0
  730. package/full/instance/fill.js +3 -0
  731. package/full/instance/filter-out.js +10 -0
  732. package/full/instance/filter-reject.js +9 -0
  733. package/full/instance/filter.js +3 -0
  734. package/full/instance/find-index.js +3 -0
  735. package/full/instance/find-last-index.js +3 -0
  736. package/full/instance/find-last.js +3 -0
  737. package/full/instance/find.js +3 -0
  738. package/full/instance/flags.js +3 -0
  739. package/full/instance/flat-map.js +3 -0
  740. package/full/instance/flat.js +3 -0
  741. package/full/instance/for-each.js +3 -0
  742. package/full/instance/group-by-to-map.js +3 -0
  743. package/full/instance/group-by.js +3 -0
  744. package/full/instance/includes.js +3 -0
  745. package/full/instance/index-of.js +3 -0
  746. package/full/instance/keys.js +3 -0
  747. package/full/instance/last-index-of.js +3 -0
  748. package/full/instance/map.js +3 -0
  749. package/full/instance/match-all.js +6 -0
  750. package/full/instance/pad-end.js +3 -0
  751. package/full/instance/pad-start.js +3 -0
  752. package/full/instance/reduce-right.js +3 -0
  753. package/full/instance/reduce.js +3 -0
  754. package/full/instance/repeat.js +3 -0
  755. package/full/instance/replace-all.js +3 -0
  756. package/full/instance/reverse.js +3 -0
  757. package/full/instance/slice.js +3 -0
  758. package/full/instance/some.js +3 -0
  759. package/full/instance/sort.js +3 -0
  760. package/full/instance/splice.js +3 -0
  761. package/full/instance/starts-with.js +3 -0
  762. package/full/instance/to-reversed.js +3 -0
  763. package/full/instance/to-sorted.js +3 -0
  764. package/full/instance/to-spliced.js +3 -0
  765. package/full/instance/trim-end.js +3 -0
  766. package/full/instance/trim-left.js +3 -0
  767. package/full/instance/trim-right.js +3 -0
  768. package/full/instance/trim-start.js +3 -0
  769. package/full/instance/trim.js +3 -0
  770. package/full/instance/un-this.js +9 -0
  771. package/full/instance/unique-by.js +9 -0
  772. package/full/instance/values.js +3 -0
  773. package/full/instance/with.js +3 -0
  774. package/full/is-iterable.js +3 -0
  775. package/full/iterator/as-indexed-pairs.js +8 -0
  776. package/full/iterator/drop.js +7 -0
  777. package/full/iterator/every.js +7 -0
  778. package/full/iterator/filter.js +7 -0
  779. package/full/iterator/find.js +7 -0
  780. package/full/iterator/flat-map.js +7 -0
  781. package/full/iterator/for-each.js +7 -0
  782. package/full/iterator/from.js +10 -0
  783. package/full/iterator/index.js +24 -0
  784. package/full/iterator/map.js +7 -0
  785. package/full/iterator/reduce.js +7 -0
  786. package/full/iterator/some.js +7 -0
  787. package/full/iterator/take.js +7 -0
  788. package/full/iterator/to-array.js +7 -0
  789. package/full/iterator/to-async.js +8 -0
  790. package/full/json/index.js +3 -0
  791. package/full/json/stringify.js +3 -0
  792. package/full/json/to-string-tag.js +3 -0
  793. package/full/map/delete-all.js +5 -0
  794. package/full/map/emplace.js +5 -0
  795. package/full/map/every.js +5 -0
  796. package/full/map/filter.js +5 -0
  797. package/full/map/find-key.js +5 -0
  798. package/full/map/find.js +5 -0
  799. package/full/map/from.js +16 -0
  800. package/full/map/group-by.js +13 -0
  801. package/full/map/includes.js +5 -0
  802. package/full/map/index.js +25 -0
  803. package/full/map/key-by.js +13 -0
  804. package/full/map/key-of.js +5 -0
  805. package/full/map/map-keys.js +5 -0
  806. package/full/map/map-values.js +5 -0
  807. package/full/map/merge.js +5 -0
  808. package/full/map/of.js +14 -0
  809. package/full/map/reduce.js +5 -0
  810. package/full/map/some.js +5 -0
  811. package/full/map/update-or-insert.js +6 -0
  812. package/full/map/update.js +5 -0
  813. package/full/map/upsert.js +5 -0
  814. package/full/math/acosh.js +3 -0
  815. package/full/math/asinh.js +3 -0
  816. package/full/math/atanh.js +3 -0
  817. package/full/math/cbrt.js +3 -0
  818. package/full/math/clamp.js +4 -0
  819. package/full/math/clz32.js +3 -0
  820. package/full/math/cosh.js +3 -0
  821. package/full/math/deg-per-rad.js +3 -0
  822. package/full/math/degrees.js +4 -0
  823. package/full/math/expm1.js +3 -0
  824. package/full/math/fround.js +3 -0
  825. package/full/math/fscale.js +4 -0
  826. package/full/math/hypot.js +3 -0
  827. package/full/math/iaddh.js +4 -0
  828. package/full/math/imul.js +3 -0
  829. package/full/math/imulh.js +4 -0
  830. package/full/math/index.js +17 -0
  831. package/full/math/isubh.js +4 -0
  832. package/full/math/log10.js +3 -0
  833. package/full/math/log1p.js +3 -0
  834. package/full/math/log2.js +3 -0
  835. package/full/math/rad-per-deg.js +3 -0
  836. package/full/math/radians.js +4 -0
  837. package/full/math/scale.js +4 -0
  838. package/full/math/seeded-prng.js +4 -0
  839. package/full/math/sign.js +3 -0
  840. package/full/math/signbit.js +4 -0
  841. package/full/math/sinh.js +3 -0
  842. package/full/math/tanh.js +3 -0
  843. package/full/math/to-string-tag.js +3 -0
  844. package/full/math/trunc.js +3 -0
  845. package/full/math/umulh.js +4 -0
  846. package/full/number/constructor.js +3 -0
  847. package/full/number/epsilon.js +3 -0
  848. package/full/number/from-string.js +4 -0
  849. package/full/number/index.js +7 -0
  850. package/full/number/is-finite.js +3 -0
  851. package/full/number/is-integer.js +3 -0
  852. package/full/number/is-nan.js +3 -0
  853. package/full/number/is-safe-integer.js +3 -0
  854. package/full/number/max-safe-integer.js +3 -0
  855. package/full/number/min-safe-integer.js +3 -0
  856. package/full/number/parse-float.js +3 -0
  857. package/full/number/parse-int.js +3 -0
  858. package/full/number/range.js +5 -0
  859. package/full/number/to-exponential.js +3 -0
  860. package/full/number/to-fixed.js +3 -0
  861. package/full/number/to-precision.js +3 -0
  862. package/full/number/virtual/index.js +3 -0
  863. package/full/number/virtual/to-exponential.js +3 -0
  864. package/full/number/virtual/to-fixed.js +3 -0
  865. package/full/number/virtual/to-precision.js +3 -0
  866. package/full/object/assign.js +3 -0
  867. package/full/object/create.js +3 -0
  868. package/full/object/define-getter.js +3 -0
  869. package/full/object/define-properties.js +3 -0
  870. package/full/object/define-property.js +3 -0
  871. package/full/object/define-setter.js +3 -0
  872. package/full/object/entries.js +3 -0
  873. package/full/object/freeze.js +3 -0
  874. package/full/object/from-entries.js +3 -0
  875. package/full/object/get-own-property-descriptor.js +3 -0
  876. package/full/object/get-own-property-descriptors.js +3 -0
  877. package/full/object/get-own-property-names.js +3 -0
  878. package/full/object/get-own-property-symbols.js +3 -0
  879. package/full/object/get-prototype-of.js +3 -0
  880. package/full/object/has-own.js +6 -0
  881. package/full/object/index.js +8 -0
  882. package/full/object/is-extensible.js +3 -0
  883. package/full/object/is-frozen.js +3 -0
  884. package/full/object/is-sealed.js +3 -0
  885. package/full/object/is.js +3 -0
  886. package/full/object/iterate-entries.js +4 -0
  887. package/full/object/iterate-keys.js +4 -0
  888. package/full/object/iterate-values.js +4 -0
  889. package/full/object/keys.js +3 -0
  890. package/full/object/lookup-getter.js +3 -0
  891. package/full/object/lookup-setter.js +3 -0
  892. package/full/object/prevent-extensions.js +3 -0
  893. package/full/object/seal.js +3 -0
  894. package/full/object/set-prototype-of.js +3 -0
  895. package/full/object/to-string.js +3 -0
  896. package/full/object/values.js +3 -0
  897. package/full/observable/index.js +8 -0
  898. package/full/parse-float.js +3 -0
  899. package/full/parse-int.js +3 -0
  900. package/full/promise/all-settled.js +6 -0
  901. package/full/promise/any.js +7 -0
  902. package/full/promise/finally.js +3 -0
  903. package/full/promise/index.js +8 -0
  904. package/full/promise/try.js +13 -0
  905. package/full/queue-microtask.js +3 -0
  906. package/full/reflect/apply.js +3 -0
  907. package/full/reflect/construct.js +3 -0
  908. package/full/reflect/define-metadata.js +4 -0
  909. package/full/reflect/define-property.js +3 -0
  910. package/full/reflect/delete-metadata.js +4 -0
  911. package/full/reflect/delete-property.js +3 -0
  912. package/full/reflect/get-metadata-keys.js +4 -0
  913. package/full/reflect/get-metadata.js +4 -0
  914. package/full/reflect/get-own-metadata-keys.js +4 -0
  915. package/full/reflect/get-own-metadata.js +4 -0
  916. package/full/reflect/get-own-property-descriptor.js +3 -0
  917. package/full/reflect/get-prototype-of.js +3 -0
  918. package/full/reflect/get.js +3 -0
  919. package/full/reflect/has-metadata.js +4 -0
  920. package/full/reflect/has-own-metadata.js +4 -0
  921. package/full/reflect/has.js +3 -0
  922. package/full/reflect/index.js +12 -0
  923. package/full/reflect/is-extensible.js +3 -0
  924. package/full/reflect/metadata.js +4 -0
  925. package/full/reflect/own-keys.js +3 -0
  926. package/full/reflect/prevent-extensions.js +3 -0
  927. package/full/reflect/set-prototype-of.js +3 -0
  928. package/full/reflect/set.js +3 -0
  929. package/full/reflect/to-string-tag.js +3 -0
  930. package/full/regexp/constructor.js +3 -0
  931. package/full/regexp/dot-all.js +3 -0
  932. package/full/regexp/flags.js +3 -0
  933. package/full/regexp/index.js +3 -0
  934. package/full/regexp/match.js +3 -0
  935. package/full/regexp/replace.js +3 -0
  936. package/full/regexp/search.js +3 -0
  937. package/full/regexp/split.js +3 -0
  938. package/full/regexp/sticky.js +3 -0
  939. package/full/regexp/test.js +3 -0
  940. package/full/regexp/to-string.js +3 -0
  941. package/full/set/add-all.js +5 -0
  942. package/full/set/delete-all.js +5 -0
  943. package/full/set/difference.js +8 -0
  944. package/full/set/every.js +5 -0
  945. package/full/set/filter.js +5 -0
  946. package/full/set/find.js +5 -0
  947. package/full/set/from.js +16 -0
  948. package/full/set/index.js +21 -0
  949. package/full/set/intersection.js +8 -0
  950. package/full/set/is-disjoint-from.js +8 -0
  951. package/full/set/is-subset-of.js +8 -0
  952. package/full/set/is-superset-of.js +8 -0
  953. package/full/set/join.js +5 -0
  954. package/full/set/map.js +5 -0
  955. package/full/set/of.js +14 -0
  956. package/full/set/reduce.js +5 -0
  957. package/full/set/some.js +5 -0
  958. package/full/set/symmetric-difference.js +8 -0
  959. package/full/set/union.js +8 -0
  960. package/full/set-immediate.js +3 -0
  961. package/full/set-interval.js +3 -0
  962. package/full/set-timeout.js +3 -0
  963. package/full/string/anchor.js +3 -0
  964. package/full/string/at.js +5 -0
  965. package/full/string/big.js +3 -0
  966. package/full/string/blink.js +3 -0
  967. package/full/string/bold.js +3 -0
  968. package/full/string/code-point-at.js +3 -0
  969. package/full/string/code-points.js +4 -0
  970. package/full/string/cooked.js +4 -0
  971. package/full/string/ends-with.js +3 -0
  972. package/full/string/fixed.js +3 -0
  973. package/full/string/fontcolor.js +3 -0
  974. package/full/string/fontsize.js +3 -0
  975. package/full/string/from-code-point.js +3 -0
  976. package/full/string/includes.js +3 -0
  977. package/full/string/index.js +10 -0
  978. package/full/string/italics.js +3 -0
  979. package/full/string/iterator.js +3 -0
  980. package/full/string/link.js +3 -0
  981. package/full/string/match-all.js +6 -0
  982. package/full/string/match.js +3 -0
  983. package/full/string/pad-end.js +3 -0
  984. package/full/string/pad-start.js +3 -0
  985. package/full/string/raw.js +3 -0
  986. package/full/string/repeat.js +3 -0
  987. package/full/string/replace-all.js +6 -0
  988. package/full/string/replace.js +3 -0
  989. package/full/string/search.js +3 -0
  990. package/full/string/small.js +3 -0
  991. package/full/string/split.js +3 -0
  992. package/full/string/starts-with.js +3 -0
  993. package/full/string/strike.js +3 -0
  994. package/full/string/sub.js +3 -0
  995. package/full/string/substr.js +3 -0
  996. package/full/string/sup.js +3 -0
  997. package/full/string/trim-end.js +3 -0
  998. package/full/string/trim-left.js +3 -0
  999. package/full/string/trim-right.js +3 -0
  1000. package/full/string/trim-start.js +3 -0
  1001. package/full/string/trim.js +3 -0
  1002. package/full/string/virtual/anchor.js +3 -0
  1003. package/full/string/virtual/at.js +6 -0
  1004. package/full/string/virtual/big.js +3 -0
  1005. package/full/string/virtual/blink.js +3 -0
  1006. package/full/string/virtual/bold.js +3 -0
  1007. package/full/string/virtual/code-point-at.js +3 -0
  1008. package/full/string/virtual/code-points.js +4 -0
  1009. package/full/string/virtual/ends-with.js +3 -0
  1010. package/full/string/virtual/fixed.js +3 -0
  1011. package/full/string/virtual/fontcolor.js +3 -0
  1012. package/full/string/virtual/fontsize.js +3 -0
  1013. package/full/string/virtual/includes.js +3 -0
  1014. package/full/string/virtual/index.js +9 -0
  1015. package/full/string/virtual/italics.js +3 -0
  1016. package/full/string/virtual/iterator.js +3 -0
  1017. package/full/string/virtual/link.js +3 -0
  1018. package/full/string/virtual/match-all.js +6 -0
  1019. package/full/string/virtual/pad-end.js +3 -0
  1020. package/full/string/virtual/pad-start.js +3 -0
  1021. package/full/string/virtual/repeat.js +3 -0
  1022. package/full/string/virtual/replace-all.js +6 -0
  1023. package/full/string/virtual/small.js +3 -0
  1024. package/full/string/virtual/starts-with.js +3 -0
  1025. package/full/string/virtual/strike.js +3 -0
  1026. package/full/string/virtual/sub.js +3 -0
  1027. package/full/string/virtual/substr.js +3 -0
  1028. package/full/string/virtual/sup.js +3 -0
  1029. package/full/string/virtual/trim-end.js +3 -0
  1030. package/full/string/virtual/trim-left.js +3 -0
  1031. package/full/string/virtual/trim-right.js +3 -0
  1032. package/full/string/virtual/trim-start.js +3 -0
  1033. package/full/string/virtual/trim.js +3 -0
  1034. package/full/structured-clone.js +3 -0
  1035. package/full/symbol/async-dispose.js +4 -0
  1036. package/full/symbol/async-iterator.js +3 -0
  1037. package/full/symbol/description.js +1 -0
  1038. package/full/symbol/dispose.js +4 -0
  1039. package/full/symbol/for.js +3 -0
  1040. package/full/symbol/has-instance.js +3 -0
  1041. package/full/symbol/index.js +12 -0
  1042. package/full/symbol/is-concat-spreadable.js +3 -0
  1043. package/full/symbol/iterator.js +3 -0
  1044. package/full/symbol/key-for.js +3 -0
  1045. package/full/symbol/match-all.js +3 -0
  1046. package/full/symbol/match.js +3 -0
  1047. package/full/symbol/matcher.js +4 -0
  1048. package/full/symbol/metadata.js +4 -0
  1049. package/full/symbol/observable.js +4 -0
  1050. package/full/symbol/pattern-match.js +5 -0
  1051. package/full/symbol/replace-all.js +5 -0
  1052. package/full/symbol/replace.js +3 -0
  1053. package/full/symbol/search.js +3 -0
  1054. package/full/symbol/species.js +3 -0
  1055. package/full/symbol/split.js +3 -0
  1056. package/full/symbol/to-primitive.js +3 -0
  1057. package/full/symbol/to-string-tag.js +3 -0
  1058. package/full/symbol/unscopables.js +3 -0
  1059. package/full/typed-array/at.js +6 -0
  1060. package/full/typed-array/copy-within.js +3 -0
  1061. package/full/typed-array/entries.js +3 -0
  1062. package/full/typed-array/every.js +3 -0
  1063. package/full/typed-array/fill.js +3 -0
  1064. package/full/typed-array/filter-out.js +2 -0
  1065. package/full/typed-array/filter-reject.js +1 -0
  1066. package/full/typed-array/filter.js +3 -0
  1067. package/full/typed-array/find-index.js +3 -0
  1068. package/full/typed-array/find-last-index.js +3 -0
  1069. package/full/typed-array/find-last.js +3 -0
  1070. package/full/typed-array/find.js +3 -0
  1071. package/full/typed-array/float32-array.js +4 -0
  1072. package/full/typed-array/float64-array.js +4 -0
  1073. package/full/typed-array/for-each.js +3 -0
  1074. package/full/typed-array/from-async.js +1 -0
  1075. package/full/typed-array/from.js +3 -0
  1076. package/full/typed-array/group-by.js +1 -0
  1077. package/full/typed-array/includes.js +3 -0
  1078. package/full/typed-array/index-of.js +3 -0
  1079. package/full/typed-array/index.js +13 -0
  1080. package/full/typed-array/int16-array.js +4 -0
  1081. package/full/typed-array/int32-array.js +4 -0
  1082. package/full/typed-array/int8-array.js +4 -0
  1083. package/full/typed-array/iterator.js +3 -0
  1084. package/full/typed-array/join.js +3 -0
  1085. package/full/typed-array/keys.js +3 -0
  1086. package/full/typed-array/last-index-of.js +3 -0
  1087. package/full/typed-array/map.js +3 -0
  1088. package/full/typed-array/methods.js +13 -0
  1089. package/full/typed-array/of.js +3 -0
  1090. package/full/typed-array/reduce-right.js +3 -0
  1091. package/full/typed-array/reduce.js +3 -0
  1092. package/full/typed-array/reverse.js +3 -0
  1093. package/full/typed-array/set.js +3 -0
  1094. package/full/typed-array/slice.js +3 -0
  1095. package/full/typed-array/some.js +3 -0
  1096. package/full/typed-array/sort.js +3 -0
  1097. package/full/typed-array/subarray.js +3 -0
  1098. package/full/typed-array/to-locale-string.js +3 -0
  1099. package/full/typed-array/to-reversed.js +3 -0
  1100. package/full/typed-array/to-sorted.js +3 -0
  1101. package/full/typed-array/to-spliced.js +3 -0
  1102. package/full/typed-array/to-string.js +3 -0
  1103. package/full/typed-array/uint16-array.js +4 -0
  1104. package/full/typed-array/uint32-array.js +4 -0
  1105. package/full/typed-array/uint8-array.js +4 -0
  1106. package/full/typed-array/uint8-clamped-array.js +4 -0
  1107. package/full/typed-array/unique-by.js +2 -0
  1108. package/full/typed-array/values.js +3 -0
  1109. package/full/typed-array/with.js +3 -0
  1110. package/full/unescape.js +3 -0
  1111. package/full/url/index.js +3 -0
  1112. package/full/url/to-json.js +3 -0
  1113. package/full/url-search-params/index.js +3 -0
  1114. package/full/weak-map/delete-all.js +5 -0
  1115. package/full/weak-map/emplace.js +5 -0
  1116. package/full/weak-map/from.js +16 -0
  1117. package/full/weak-map/index.js +10 -0
  1118. package/full/weak-map/of.js +14 -0
  1119. package/full/weak-map/upsert.js +5 -0
  1120. package/full/weak-set/add-all.js +5 -0
  1121. package/full/weak-set/delete-all.js +5 -0
  1122. package/full/weak-set/from.js +16 -0
  1123. package/full/weak-set/index.js +8 -0
  1124. package/full/weak-set/of.js +14 -0
  1125. package/internals/array-buffer-native.js +1 -1
  1126. package/internals/array-buffer-non-extensible.js +1 -1
  1127. package/internals/array-buffer-view-core.js +4 -4
  1128. package/internals/array-buffer.js +3 -3
  1129. package/internals/array-copy-within.js +1 -1
  1130. package/internals/array-for-each.js +1 -1
  1131. package/internals/array-last-index-of.js +1 -1
  1132. package/internals/array-to-spliced.js +3 -0
  1133. package/internals/async-from-sync-iterator.js +2 -2
  1134. package/internals/async-iterator-create-proxy.js +2 -2
  1135. package/internals/async-iterator-prototype.js +2 -2
  1136. package/internals/check-correctness-of-iteration.js +1 -1
  1137. package/internals/clear-error-stack.js +3 -2
  1138. package/internals/collection-strong.js +3 -3
  1139. package/internals/collection-weak.js +3 -3
  1140. package/internals/collection.js +2 -2
  1141. package/internals/correct-prototype-getter.js +1 -1
  1142. package/internals/define-built-in-accessor.js +8 -0
  1143. package/internals/define-built-in.js +25 -0
  1144. package/internals/define-built-ins.js +6 -0
  1145. package/internals/define-iterator.js +4 -4
  1146. package/internals/descriptors.js +1 -1
  1147. package/internals/engine-is-browser.js +1 -1
  1148. package/internals/error-stack-installable.js +1 -1
  1149. package/internals/error-to-string.js +1 -1
  1150. package/internals/export.js +2 -3
  1151. package/internals/fix-regexp-well-known-symbol-logic.js +3 -3
  1152. package/internals/freezing.js +1 -1
  1153. package/internals/function-apply.js +1 -1
  1154. package/internals/function-bind-native.js +1 -0
  1155. package/internals/function-name.js +1 -1
  1156. package/internals/get-map-iterator.js +1 -1
  1157. package/internals/get-set-iterator.js +1 -1
  1158. package/internals/global.js +1 -1
  1159. package/internals/has-own-property.js +1 -0
  1160. package/internals/ie8-dom-define.js +1 -1
  1161. package/internals/is-array.js +1 -1
  1162. package/internals/is-integral-number.js +1 -1
  1163. package/internals/iterator-create-proxy.js +2 -2
  1164. package/internals/iterators-core.js +3 -3
  1165. package/internals/make-built-in.js +40 -0
  1166. package/internals/math-expm1.js +1 -1
  1167. package/internals/math-fround.js +1 -1
  1168. package/internals/math-log10.js +1 -1
  1169. package/internals/math-log1p.js +1 -1
  1170. package/internals/math-sign.js +1 -1
  1171. package/internals/microtask.js +1 -1
  1172. package/internals/native-symbol-registry.js +4 -0
  1173. package/internals/native-symbol.js +2 -2
  1174. package/internals/number-is-finite.js +1 -1
  1175. package/internals/object-assign.js +3 -3
  1176. package/internals/object-create.js +1 -0
  1177. package/internals/object-define-properties.js +1 -1
  1178. package/internals/object-define-property.js +2 -2
  1179. package/internals/object-get-own-property-descriptor.js +1 -1
  1180. package/internals/object-get-own-property-names-external.js +1 -1
  1181. package/internals/object-get-own-property-names.js +1 -1
  1182. package/internals/object-get-own-property-symbols.js +1 -1
  1183. package/internals/object-is-extensible.js +1 -1
  1184. package/internals/object-keys.js +1 -1
  1185. package/internals/object-property-is-enumerable.js +1 -1
  1186. package/internals/object-prototype-accessors-forced.js +1 -1
  1187. package/internals/object-set-prototype-of.js +2 -2
  1188. package/internals/observable-forced.js +13 -0
  1189. package/internals/promise-constructor-detection.js +46 -0
  1190. package/internals/{native-promise-constructor.js → promise-native-constructor.js} +0 -0
  1191. package/internals/promise-statics-incorrect-iteration.js +7 -0
  1192. package/internals/proxy-accessor.js +9 -0
  1193. package/internals/regexp-flags.js +1 -0
  1194. package/internals/regexp-get-flags.js +12 -0
  1195. package/internals/same-value.js +1 -1
  1196. package/internals/schedulers-fix.js +31 -0
  1197. package/internals/set-global.js +1 -1
  1198. package/internals/shared.js +2 -2
  1199. package/internals/string-trim-end.js +11 -0
  1200. package/internals/string-trim-start.js +11 -0
  1201. package/internals/symbol-define-to-primitive.js +20 -0
  1202. package/internals/use-symbol-as-uid.js +1 -1
  1203. package/internals/v8-prototype-define-bug.js +1 -1
  1204. package/internals/wrap-error-constructor-with-cause.js +6 -0
  1205. package/modules/es.aggregate-error.cause.js +1 -1
  1206. package/modules/es.aggregate-error.constructor.js +54 -0
  1207. package/modules/es.aggregate-error.js +2 -54
  1208. package/modules/es.array.concat.js +1 -1
  1209. package/modules/es.array.for-each.js +1 -1
  1210. package/modules/es.array.from.js +1 -1
  1211. package/modules/es.array.includes.js +7 -1
  1212. package/modules/es.array.index-of.js +1 -1
  1213. package/modules/es.array.last-index-of.js +1 -1
  1214. package/modules/es.data-view.constructor.js +9 -0
  1215. package/modules/es.data-view.js +2 -9
  1216. package/modules/es.date.now.js +1 -0
  1217. package/modules/es.date.to-json.js +1 -1
  1218. package/modules/es.date.to-primitive.js +2 -2
  1219. package/modules/es.date.to-string.js +3 -2
  1220. package/modules/es.error.cause.js +2 -2
  1221. package/modules/es.error.to-string.js +2 -2
  1222. package/modules/es.function.bind.js +1 -0
  1223. package/modules/es.function.has-instance.js +3 -2
  1224. package/modules/es.json.stringify.js +40 -13
  1225. package/modules/es.map.constructor.js +9 -0
  1226. package/modules/es.map.js +2 -9
  1227. package/modules/es.math.acosh.js +1 -1
  1228. package/modules/es.math.asinh.js +1 -1
  1229. package/modules/es.math.atanh.js +1 -1
  1230. package/modules/es.math.cosh.js +1 -1
  1231. package/modules/es.math.expm1.js +1 -1
  1232. package/modules/es.math.hypot.js +2 -2
  1233. package/modules/es.math.imul.js +1 -1
  1234. package/modules/es.math.sinh.js +1 -1
  1235. package/modules/es.number.constructor.js +2 -2
  1236. package/modules/es.number.parse-float.js +1 -1
  1237. package/modules/es.number.parse-int.js +1 -1
  1238. package/modules/es.object.assign.js +2 -2
  1239. package/modules/es.object.create.js +1 -0
  1240. package/modules/es.object.define-properties.js +1 -1
  1241. package/modules/es.object.define-property.js +1 -1
  1242. package/modules/es.object.freeze.js +1 -1
  1243. package/modules/es.object.get-own-property-names.js +1 -1
  1244. package/modules/es.object.get-own-property-symbols.js +18 -0
  1245. package/modules/es.object.is-extensible.js +1 -1
  1246. package/modules/es.object.is-frozen.js +1 -1
  1247. package/modules/es.object.is-sealed.js +1 -1
  1248. package/modules/es.object.prevent-extensions.js +1 -1
  1249. package/modules/es.object.seal.js +1 -1
  1250. package/modules/es.object.to-string.js +2 -2
  1251. package/modules/es.promise.all.js +39 -0
  1252. package/modules/es.promise.any.js +1 -1
  1253. package/modules/es.promise.catch.js +26 -0
  1254. package/modules/es.promise.constructor.js +288 -0
  1255. package/modules/es.promise.finally.js +9 -7
  1256. package/modules/es.promise.js +7 -402
  1257. package/modules/es.promise.race.js +26 -0
  1258. package/modules/es.promise.reject.js +15 -0
  1259. package/modules/es.promise.resolve.js +18 -0
  1260. package/modules/es.reflect.apply.js +1 -1
  1261. package/modules/es.reflect.define-property.js +1 -1
  1262. package/modules/es.reflect.set.js +1 -1
  1263. package/modules/es.regexp.constructor.js +6 -15
  1264. package/modules/es.regexp.dot-all.js +3 -3
  1265. package/modules/es.regexp.flags.js +3 -3
  1266. package/modules/es.regexp.sticky.js +3 -3
  1267. package/modules/es.regexp.to-string.js +6 -10
  1268. package/modules/es.set.constructor.js +9 -0
  1269. package/modules/es.set.js +2 -9
  1270. package/modules/es.string.at-alternative.js +1 -0
  1271. package/modules/es.string.ends-with.js +1 -1
  1272. package/modules/es.string.from-code-point.js +2 -2
  1273. package/modules/es.string.match-all.js +8 -17
  1274. package/modules/es.string.replace-all.js +2 -7
  1275. package/modules/es.string.starts-with.js +1 -1
  1276. package/modules/es.string.substr.js +1 -1
  1277. package/modules/es.string.trim-end.js +7 -15
  1278. package/modules/es.string.trim-left.js +9 -0
  1279. package/modules/es.string.trim-right.js +9 -0
  1280. package/modules/es.string.trim-start.js +7 -15
  1281. package/modules/es.symbol.constructor.js +252 -0
  1282. package/modules/es.symbol.for.js +22 -0
  1283. package/modules/es.symbol.js +6 -325
  1284. package/modules/es.symbol.key-for.js +17 -0
  1285. package/modules/es.symbol.to-primitive.js +5 -0
  1286. package/modules/es.symbol.to-string-tag.js +6 -0
  1287. package/modules/es.typed-array.set.js +1 -1
  1288. package/modules/es.typed-array.slice.js +1 -1
  1289. package/modules/es.typed-array.sort.js +0 -1
  1290. package/modules/es.weak-map.constructor.js +68 -0
  1291. package/modules/es.weak-map.js +2 -68
  1292. package/modules/es.weak-set.constructor.js +9 -0
  1293. package/modules/es.weak-set.js +2 -9
  1294. package/modules/esnext.array.is-template-object.js +2 -3
  1295. package/modules/esnext.array.last-index.js +3 -2
  1296. package/modules/esnext.array.last-item.js +3 -2
  1297. package/modules/esnext.array.to-reversed.js +1 -1
  1298. package/modules/esnext.array.to-sorted.js +1 -1
  1299. package/modules/esnext.array.to-spliced.js +1 -1
  1300. package/modules/esnext.array.with.js +1 -1
  1301. package/modules/esnext.bigint.range.js +1 -1
  1302. package/modules/esnext.function.is-callable.js +1 -1
  1303. package/modules/esnext.map.merge.js +1 -1
  1304. package/modules/esnext.object.iterate-entries.js +1 -0
  1305. package/modules/esnext.object.iterate-keys.js +1 -0
  1306. package/modules/esnext.object.iterate-values.js +1 -0
  1307. package/modules/esnext.observable.constructor.js +187 -0
  1308. package/modules/esnext.observable.from.js +36 -0
  1309. package/modules/esnext.observable.js +4 -233
  1310. package/modules/esnext.observable.of.js +25 -0
  1311. package/modules/esnext.promise.try.js +1 -0
  1312. package/modules/esnext.reflect.define-metadata.js +1 -0
  1313. package/modules/esnext.reflect.get-metadata-keys.js +1 -0
  1314. package/modules/esnext.reflect.get-metadata.js +1 -0
  1315. package/modules/esnext.reflect.get-own-metadata-keys.js +1 -0
  1316. package/modules/esnext.reflect.get-own-metadata.js +1 -0
  1317. package/modules/esnext.reflect.has-metadata.js +1 -0
  1318. package/modules/esnext.reflect.has-own-metadata.js +1 -0
  1319. package/modules/esnext.string.at.js +1 -0
  1320. package/modules/esnext.typed-array.to-reversed.js +1 -1
  1321. package/modules/esnext.typed-array.to-sorted.js +1 -1
  1322. package/modules/esnext.typed-array.to-spliced.js +1 -1
  1323. package/modules/esnext.typed-array.with.js +1 -1
  1324. package/modules/web.atob.js +10 -4
  1325. package/modules/web.btoa.js +8 -2
  1326. package/modules/web.clear-immediate.js +9 -0
  1327. package/modules/web.dom-exception.constructor.js +10 -10
  1328. package/modules/web.immediate.js +3 -15
  1329. package/modules/web.set-immediate.js +9 -0
  1330. package/modules/web.set-interval.js +9 -0
  1331. package/modules/web.set-timeout.js +9 -0
  1332. package/modules/web.structured-clone.js +3 -4
  1333. package/modules/web.timers.js +3 -32
  1334. package/modules/web.url-search-params.constructor.js +392 -0
  1335. package/modules/web.url-search-params.js +2 -383
  1336. package/modules/web.url.constructor.js +1042 -0
  1337. package/modules/web.url.js +2 -1044
  1338. package/package.json +2 -2
  1339. package/postinstall.js +0 -1
  1340. package/proposals/array-filtering-stage-1.js +3 -0
  1341. package/proposals/array-from-async-stage-2.js +2 -0
  1342. package/proposals/array-grouping-stage-3.js +3 -0
  1343. package/proposals/decorators.js +2 -0
  1344. package/proposals/map-upsert-stage-2.js +3 -0
  1345. package/proposals/string-replace-all-stage-4.js +2 -0
  1346. package/proposals/string-replace-all.js +1 -0
  1347. package/stage/0.js +2 -0
  1348. package/stage/1.js +5 -1
  1349. package/stage/2.js +4 -3
  1350. package/stage/3.js +2 -1
  1351. package/stage/4.js +1 -1
  1352. package/internals/redefine-all.js +0 -6
  1353. package/internals/redefine.js +0 -46
@@ -1,325 +1,6 @@
1
- 'use strict';
2
- var $ = require('../internals/export');
3
- var global = require('../internals/global');
4
- var getBuiltIn = require('../internals/get-built-in');
5
- var apply = require('../internals/function-apply');
6
- var call = require('../internals/function-call');
7
- var uncurryThis = require('../internals/function-uncurry-this');
8
- var IS_PURE = require('../internals/is-pure');
9
- var DESCRIPTORS = require('../internals/descriptors');
10
- var NATIVE_SYMBOL = require('../internals/native-symbol');
11
- var fails = require('../internals/fails');
12
- var hasOwn = require('../internals/has-own-property');
13
- var isArray = require('../internals/is-array');
14
- var isCallable = require('../internals/is-callable');
15
- var isObject = require('../internals/is-object');
16
- var isPrototypeOf = require('../internals/object-is-prototype-of');
17
- var isSymbol = require('../internals/is-symbol');
18
- var anObject = require('../internals/an-object');
19
- var toObject = require('../internals/to-object');
20
- var toIndexedObject = require('../internals/to-indexed-object');
21
- var toPropertyKey = require('../internals/to-property-key');
22
- var $toString = require('../internals/to-string');
23
- var createPropertyDescriptor = require('../internals/create-property-descriptor');
24
- var nativeObjectCreate = require('../internals/object-create');
25
- var objectKeys = require('../internals/object-keys');
26
- var getOwnPropertyNamesModule = require('../internals/object-get-own-property-names');
27
- var getOwnPropertyNamesExternal = require('../internals/object-get-own-property-names-external');
28
- var getOwnPropertySymbolsModule = require('../internals/object-get-own-property-symbols');
29
- var getOwnPropertyDescriptorModule = require('../internals/object-get-own-property-descriptor');
30
- var definePropertyModule = require('../internals/object-define-property');
31
- var definePropertiesModule = require('../internals/object-define-properties');
32
- var propertyIsEnumerableModule = require('../internals/object-property-is-enumerable');
33
- var arraySlice = require('../internals/array-slice');
34
- var redefine = require('../internals/redefine');
35
- var shared = require('../internals/shared');
36
- var sharedKey = require('../internals/shared-key');
37
- var hiddenKeys = require('../internals/hidden-keys');
38
- var uid = require('../internals/uid');
39
- var wellKnownSymbol = require('../internals/well-known-symbol');
40
- var wrappedWellKnownSymbolModule = require('../internals/well-known-symbol-wrapped');
41
- var defineWellKnownSymbol = require('../internals/define-well-known-symbol');
42
- var setToStringTag = require('../internals/set-to-string-tag');
43
- var InternalStateModule = require('../internals/internal-state');
44
- var $forEach = require('../internals/array-iteration').forEach;
45
-
46
- var HIDDEN = sharedKey('hidden');
47
- var SYMBOL = 'Symbol';
48
- var PROTOTYPE = 'prototype';
49
- var TO_PRIMITIVE = wellKnownSymbol('toPrimitive');
50
-
51
- var setInternalState = InternalStateModule.set;
52
- var getInternalState = InternalStateModule.getterFor(SYMBOL);
53
-
54
- var ObjectPrototype = Object[PROTOTYPE];
55
- var $Symbol = global.Symbol;
56
- var SymbolPrototype = $Symbol && $Symbol[PROTOTYPE];
57
- var TypeError = global.TypeError;
58
- var QObject = global.QObject;
59
- var $stringify = getBuiltIn('JSON', 'stringify');
60
- var nativeGetOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
61
- var nativeDefineProperty = definePropertyModule.f;
62
- var nativeGetOwnPropertyNames = getOwnPropertyNamesExternal.f;
63
- var nativePropertyIsEnumerable = propertyIsEnumerableModule.f;
64
- var push = uncurryThis([].push);
65
-
66
- var AllSymbols = shared('symbols');
67
- var ObjectPrototypeSymbols = shared('op-symbols');
68
- var StringToSymbolRegistry = shared('string-to-symbol-registry');
69
- var SymbolToStringRegistry = shared('symbol-to-string-registry');
70
- var WellKnownSymbolsStore = shared('wks');
71
-
72
- // Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/173
73
- var USE_SETTER = !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findChild;
74
-
75
- // fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687
76
- var setSymbolDescriptor = DESCRIPTORS && fails(function () {
77
- return nativeObjectCreate(nativeDefineProperty({}, 'a', {
78
- get: function () { return nativeDefineProperty(this, 'a', { value: 7 }).a; }
79
- })).a != 7;
80
- }) ? function (O, P, Attributes) {
81
- var ObjectPrototypeDescriptor = nativeGetOwnPropertyDescriptor(ObjectPrototype, P);
82
- if (ObjectPrototypeDescriptor) delete ObjectPrototype[P];
83
- nativeDefineProperty(O, P, Attributes);
84
- if (ObjectPrototypeDescriptor && O !== ObjectPrototype) {
85
- nativeDefineProperty(ObjectPrototype, P, ObjectPrototypeDescriptor);
86
- }
87
- } : nativeDefineProperty;
88
-
89
- var wrap = function (tag, description) {
90
- var symbol = AllSymbols[tag] = nativeObjectCreate(SymbolPrototype);
91
- setInternalState(symbol, {
92
- type: SYMBOL,
93
- tag: tag,
94
- description: description
95
- });
96
- if (!DESCRIPTORS) symbol.description = description;
97
- return symbol;
98
- };
99
-
100
- var $defineProperty = function defineProperty(O, P, Attributes) {
101
- if (O === ObjectPrototype) $defineProperty(ObjectPrototypeSymbols, P, Attributes);
102
- anObject(O);
103
- var key = toPropertyKey(P);
104
- anObject(Attributes);
105
- if (hasOwn(AllSymbols, key)) {
106
- if (!Attributes.enumerable) {
107
- if (!hasOwn(O, HIDDEN)) nativeDefineProperty(O, HIDDEN, createPropertyDescriptor(1, {}));
108
- O[HIDDEN][key] = true;
109
- } else {
110
- if (hasOwn(O, HIDDEN) && O[HIDDEN][key]) O[HIDDEN][key] = false;
111
- Attributes = nativeObjectCreate(Attributes, { enumerable: createPropertyDescriptor(0, false) });
112
- } return setSymbolDescriptor(O, key, Attributes);
113
- } return nativeDefineProperty(O, key, Attributes);
114
- };
115
-
116
- var $defineProperties = function defineProperties(O, Properties) {
117
- anObject(O);
118
- var properties = toIndexedObject(Properties);
119
- var keys = objectKeys(properties).concat($getOwnPropertySymbols(properties));
120
- $forEach(keys, function (key) {
121
- if (!DESCRIPTORS || call($propertyIsEnumerable, properties, key)) $defineProperty(O, key, properties[key]);
122
- });
123
- return O;
124
- };
125
-
126
- var $create = function create(O, Properties) {
127
- return Properties === undefined ? nativeObjectCreate(O) : $defineProperties(nativeObjectCreate(O), Properties);
128
- };
129
-
130
- var $propertyIsEnumerable = function propertyIsEnumerable(V) {
131
- var P = toPropertyKey(V);
132
- var enumerable = call(nativePropertyIsEnumerable, this, P);
133
- if (this === ObjectPrototype && hasOwn(AllSymbols, P) && !hasOwn(ObjectPrototypeSymbols, P)) return false;
134
- return enumerable || !hasOwn(this, P) || !hasOwn(AllSymbols, P) || hasOwn(this, HIDDEN) && this[HIDDEN][P]
135
- ? enumerable : true;
136
- };
137
-
138
- var $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(O, P) {
139
- var it = toIndexedObject(O);
140
- var key = toPropertyKey(P);
141
- if (it === ObjectPrototype && hasOwn(AllSymbols, key) && !hasOwn(ObjectPrototypeSymbols, key)) return;
142
- var descriptor = nativeGetOwnPropertyDescriptor(it, key);
143
- if (descriptor && hasOwn(AllSymbols, key) && !(hasOwn(it, HIDDEN) && it[HIDDEN][key])) {
144
- descriptor.enumerable = true;
145
- }
146
- return descriptor;
147
- };
148
-
149
- var $getOwnPropertyNames = function getOwnPropertyNames(O) {
150
- var names = nativeGetOwnPropertyNames(toIndexedObject(O));
151
- var result = [];
152
- $forEach(names, function (key) {
153
- if (!hasOwn(AllSymbols, key) && !hasOwn(hiddenKeys, key)) push(result, key);
154
- });
155
- return result;
156
- };
157
-
158
- var $getOwnPropertySymbols = function getOwnPropertySymbols(O) {
159
- var IS_OBJECT_PROTOTYPE = O === ObjectPrototype;
160
- var names = nativeGetOwnPropertyNames(IS_OBJECT_PROTOTYPE ? ObjectPrototypeSymbols : toIndexedObject(O));
161
- var result = [];
162
- $forEach(names, function (key) {
163
- if (hasOwn(AllSymbols, key) && (!IS_OBJECT_PROTOTYPE || hasOwn(ObjectPrototype, key))) {
164
- push(result, AllSymbols[key]);
165
- }
166
- });
167
- return result;
168
- };
169
-
170
- // `Symbol` constructor
171
- // https://tc39.es/ecma262/#sec-symbol-constructor
172
- if (!NATIVE_SYMBOL) {
173
- $Symbol = function Symbol() {
174
- if (isPrototypeOf(SymbolPrototype, this)) throw TypeError('Symbol is not a constructor');
175
- var description = !arguments.length || arguments[0] === undefined ? undefined : $toString(arguments[0]);
176
- var tag = uid(description);
177
- var setter = function (value) {
178
- if (this === ObjectPrototype) call(setter, ObjectPrototypeSymbols, value);
179
- if (hasOwn(this, HIDDEN) && hasOwn(this[HIDDEN], tag)) this[HIDDEN][tag] = false;
180
- setSymbolDescriptor(this, tag, createPropertyDescriptor(1, value));
181
- };
182
- if (DESCRIPTORS && USE_SETTER) setSymbolDescriptor(ObjectPrototype, tag, { configurable: true, set: setter });
183
- return wrap(tag, description);
184
- };
185
-
186
- SymbolPrototype = $Symbol[PROTOTYPE];
187
-
188
- redefine(SymbolPrototype, 'toString', function toString() {
189
- return getInternalState(this).tag;
190
- });
191
-
192
- redefine($Symbol, 'withoutSetter', function (description) {
193
- return wrap(uid(description), description);
194
- });
195
-
196
- propertyIsEnumerableModule.f = $propertyIsEnumerable;
197
- definePropertyModule.f = $defineProperty;
198
- definePropertiesModule.f = $defineProperties;
199
- getOwnPropertyDescriptorModule.f = $getOwnPropertyDescriptor;
200
- getOwnPropertyNamesModule.f = getOwnPropertyNamesExternal.f = $getOwnPropertyNames;
201
- getOwnPropertySymbolsModule.f = $getOwnPropertySymbols;
202
-
203
- wrappedWellKnownSymbolModule.f = function (name) {
204
- return wrap(wellKnownSymbol(name), name);
205
- };
206
-
207
- if (DESCRIPTORS) {
208
- // https://github.com/tc39/proposal-Symbol-description
209
- nativeDefineProperty(SymbolPrototype, 'description', {
210
- configurable: true,
211
- get: function description() {
212
- return getInternalState(this).description;
213
- }
214
- });
215
- if (!IS_PURE) {
216
- redefine(ObjectPrototype, 'propertyIsEnumerable', $propertyIsEnumerable, { unsafe: true });
217
- }
218
- }
219
- }
220
-
221
- $({ global: true, wrap: true, forced: !NATIVE_SYMBOL, sham: !NATIVE_SYMBOL }, {
222
- Symbol: $Symbol
223
- });
224
-
225
- $forEach(objectKeys(WellKnownSymbolsStore), function (name) {
226
- defineWellKnownSymbol(name);
227
- });
228
-
229
- $({ target: SYMBOL, stat: true, forced: !NATIVE_SYMBOL }, {
230
- // `Symbol.for` method
231
- // https://tc39.es/ecma262/#sec-symbol.for
232
- 'for': function (key) {
233
- var string = $toString(key);
234
- if (hasOwn(StringToSymbolRegistry, string)) return StringToSymbolRegistry[string];
235
- var symbol = $Symbol(string);
236
- StringToSymbolRegistry[string] = symbol;
237
- SymbolToStringRegistry[symbol] = string;
238
- return symbol;
239
- },
240
- // `Symbol.keyFor` method
241
- // https://tc39.es/ecma262/#sec-symbol.keyfor
242
- keyFor: function keyFor(sym) {
243
- if (!isSymbol(sym)) throw TypeError(sym + ' is not a symbol');
244
- if (hasOwn(SymbolToStringRegistry, sym)) return SymbolToStringRegistry[sym];
245
- },
246
- useSetter: function () { USE_SETTER = true; },
247
- useSimple: function () { USE_SETTER = false; }
248
- });
249
-
250
- $({ target: 'Object', stat: true, forced: !NATIVE_SYMBOL, sham: !DESCRIPTORS }, {
251
- // `Object.create` method
252
- // https://tc39.es/ecma262/#sec-object.create
253
- create: $create,
254
- // `Object.defineProperty` method
255
- // https://tc39.es/ecma262/#sec-object.defineproperty
256
- defineProperty: $defineProperty,
257
- // `Object.defineProperties` method
258
- // https://tc39.es/ecma262/#sec-object.defineproperties
259
- defineProperties: $defineProperties,
260
- // `Object.getOwnPropertyDescriptor` method
261
- // https://tc39.es/ecma262/#sec-object.getownpropertydescriptors
262
- getOwnPropertyDescriptor: $getOwnPropertyDescriptor
263
- });
264
-
265
- $({ target: 'Object', stat: true, forced: !NATIVE_SYMBOL }, {
266
- // `Object.getOwnPropertyNames` method
267
- // https://tc39.es/ecma262/#sec-object.getownpropertynames
268
- getOwnPropertyNames: $getOwnPropertyNames,
269
- // `Object.getOwnPropertySymbols` method
270
- // https://tc39.es/ecma262/#sec-object.getownpropertysymbols
271
- getOwnPropertySymbols: $getOwnPropertySymbols
272
- });
273
-
274
- // Chrome 38 and 39 `Object.getOwnPropertySymbols` fails on primitives
275
- // https://bugs.chromium.org/p/v8/issues/detail?id=3443
276
- $({ target: 'Object', stat: true, forced: fails(function () { getOwnPropertySymbolsModule.f(1); }) }, {
277
- getOwnPropertySymbols: function getOwnPropertySymbols(it) {
278
- return getOwnPropertySymbolsModule.f(toObject(it));
279
- }
280
- });
281
-
282
- // `JSON.stringify` method behavior with symbols
283
- // https://tc39.es/ecma262/#sec-json.stringify
284
- if ($stringify) {
285
- var FORCED_JSON_STRINGIFY = !NATIVE_SYMBOL || fails(function () {
286
- var symbol = $Symbol();
287
- // MS Edge converts symbol values to JSON as {}
288
- return $stringify([symbol]) != '[null]'
289
- // WebKit converts symbol values to JSON as null
290
- || $stringify({ a: symbol }) != '{}'
291
- // V8 throws on boxed symbols
292
- || $stringify(Object(symbol)) != '{}';
293
- });
294
-
295
- $({ target: 'JSON', stat: true, forced: FORCED_JSON_STRINGIFY }, {
296
- // eslint-disable-next-line no-unused-vars -- required for `.length`
297
- stringify: function stringify(it, replacer, space) {
298
- var args = arraySlice(arguments);
299
- var $replacer = replacer;
300
- if (!isObject(replacer) && it === undefined || isSymbol(it)) return; // IE8 returns string on undefined
301
- if (!isArray(replacer)) replacer = function (key, value) {
302
- if (isCallable($replacer)) value = call($replacer, this, key, value);
303
- if (!isSymbol(value)) return value;
304
- };
305
- args[1] = replacer;
306
- return apply($stringify, null, args);
307
- }
308
- });
309
- }
310
-
311
- // `Symbol.prototype[@@toPrimitive]` method
312
- // https://tc39.es/ecma262/#sec-symbol.prototype-@@toprimitive
313
- if (!SymbolPrototype[TO_PRIMITIVE]) {
314
- var valueOf = SymbolPrototype.valueOf;
315
- // eslint-disable-next-line no-unused-vars -- required for .length
316
- redefine(SymbolPrototype, TO_PRIMITIVE, function (hint) {
317
- // TODO: improve hint logic
318
- return call(valueOf, this);
319
- });
320
- }
321
- // `Symbol.prototype[@@toStringTag]` property
322
- // https://tc39.es/ecma262/#sec-symbol.prototype-@@tostringtag
323
- setToStringTag($Symbol, SYMBOL);
324
-
325
- hiddenKeys[HIDDEN] = true;
1
+ // TODO: Remove this module from `core-js@4` since it's split to modules listed below
2
+ require('../modules/es.symbol.constructor');
3
+ require('../modules/es.symbol.for');
4
+ require('../modules/es.symbol.key-for');
5
+ require('../modules/es.json.stringify');
6
+ require('../modules/es.object.get-own-property-symbols');
@@ -0,0 +1,17 @@
1
+ var $ = require('../internals/export');
2
+ var hasOwn = require('../internals/has-own-property');
3
+ var isSymbol = require('../internals/is-symbol');
4
+ var tryToString = require('../internals/try-to-string');
5
+ var shared = require('../internals/shared');
6
+ var NATIVE_SYMBOL_REGISTRY = require('../internals/native-symbol-registry');
7
+
8
+ var SymbolToStringRegistry = shared('symbol-to-string-registry');
9
+
10
+ // `Symbol.keyFor` method
11
+ // https://tc39.es/ecma262/#sec-symbol.keyfor
12
+ $({ target: 'Symbol', stat: true, forced: !NATIVE_SYMBOL_REGISTRY }, {
13
+ keyFor: function keyFor(sym) {
14
+ if (!isSymbol(sym)) throw TypeError(tryToString(sym) + ' is not a symbol');
15
+ if (hasOwn(SymbolToStringRegistry, sym)) return SymbolToStringRegistry[sym];
16
+ }
17
+ });
@@ -1,5 +1,10 @@
1
1
  var defineWellKnownSymbol = require('../internals/define-well-known-symbol');
2
+ var defineSymbolToPrimitive = require('../internals/symbol-define-to-primitive');
2
3
 
3
4
  // `Symbol.toPrimitive` well-known symbol
4
5
  // https://tc39.es/ecma262/#sec-symbol.toprimitive
5
6
  defineWellKnownSymbol('toPrimitive');
7
+
8
+ // `Symbol.prototype[@@toPrimitive]` method
9
+ // https://tc39.es/ecma262/#sec-symbol.prototype-@@toprimitive
10
+ defineSymbolToPrimitive();
@@ -1,5 +1,11 @@
1
+ var getBuiltIn = require('../internals/get-built-in');
1
2
  var defineWellKnownSymbol = require('../internals/define-well-known-symbol');
3
+ var setToStringTag = require('../internals/set-to-string-tag');
2
4
 
3
5
  // `Symbol.toStringTag` well-known symbol
4
6
  // https://tc39.es/ecma262/#sec-symbol.tostringtag
5
7
  defineWellKnownSymbol('toStringTag');
8
+
9
+ // `Symbol.prototype[@@toStringTag]` property
10
+ // https://tc39.es/ecma262/#sec-symbol.prototype-@@tostringtag
11
+ setToStringTag(getBuiltIn('Symbol'), 'Symbol');
@@ -15,7 +15,7 @@ var aTypedArray = ArrayBufferViewCore.aTypedArray;
15
15
  var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
16
16
 
17
17
  var WORKS_WITH_OBJECTS_AND_GEERIC_ON_TYPED_ARRAYS = !fails(function () {
18
- // eslint-disable-next-line es/no-typed-arrays -- required for testing
18
+ // eslint-disable-next-line es-x/no-typed-arrays -- required for testing
19
19
  var array = new Uint8ClampedArray(2);
20
20
  call($set, array, { length: 1, 0: 3 }, 1);
21
21
  return array[1] !== 3;
@@ -8,7 +8,7 @@ var aTypedArray = ArrayBufferViewCore.aTypedArray;
8
8
  var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
9
9
 
10
10
  var FORCED = fails(function () {
11
- // eslint-disable-next-line es/no-typed-arrays -- required for testing
11
+ // eslint-disable-next-line es-x/no-typed-arrays -- required for testing
12
12
  new Int8Array(1).slice();
13
13
  });
14
14
 
@@ -10,7 +10,6 @@ var IE_OR_EDGE = require('../internals/engine-is-ie-or-edge');
10
10
  var V8 = require('../internals/engine-v8-version');
11
11
  var WEBKIT = require('../internals/engine-webkit-version');
12
12
 
13
- var Array = global.Array;
14
13
  var aTypedArray = ArrayBufferViewCore.aTypedArray;
15
14
  var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
16
15
  var Uint16Array = global.Uint16Array;
@@ -0,0 +1,68 @@
1
+ 'use strict';
2
+ var global = require('../internals/global');
3
+ var uncurryThis = require('../internals/function-uncurry-this');
4
+ var defineBuiltIns = require('../internals/define-built-ins');
5
+ var InternalMetadataModule = require('../internals/internal-metadata');
6
+ var collection = require('../internals/collection');
7
+ var collectionWeak = require('../internals/collection-weak');
8
+ var isObject = require('../internals/is-object');
9
+ var isExtensible = require('../internals/object-is-extensible');
10
+ var enforceInternalState = require('../internals/internal-state').enforce;
11
+ var NATIVE_WEAK_MAP = require('../internals/native-weak-map');
12
+
13
+ var IS_IE11 = !global.ActiveXObject && 'ActiveXObject' in global;
14
+ var InternalWeakMap;
15
+
16
+ var wrapper = function (init) {
17
+ return function WeakMap() {
18
+ return init(this, arguments.length ? arguments[0] : undefined);
19
+ };
20
+ };
21
+
22
+ // `WeakMap` constructor
23
+ // https://tc39.es/ecma262/#sec-weakmap-constructor
24
+ var $WeakMap = collection('WeakMap', wrapper, collectionWeak);
25
+
26
+ // IE11 WeakMap frozen keys fix
27
+ // We can't use feature detection because it crash some old IE builds
28
+ // https://github.com/zloirock/core-js/issues/485
29
+ if (NATIVE_WEAK_MAP && IS_IE11) {
30
+ InternalWeakMap = collectionWeak.getConstructor(wrapper, 'WeakMap', true);
31
+ InternalMetadataModule.enable();
32
+ var WeakMapPrototype = $WeakMap.prototype;
33
+ var nativeDelete = uncurryThis(WeakMapPrototype['delete']);
34
+ var nativeHas = uncurryThis(WeakMapPrototype.has);
35
+ var nativeGet = uncurryThis(WeakMapPrototype.get);
36
+ var nativeSet = uncurryThis(WeakMapPrototype.set);
37
+ defineBuiltIns(WeakMapPrototype, {
38
+ 'delete': function (key) {
39
+ if (isObject(key) && !isExtensible(key)) {
40
+ var state = enforceInternalState(this);
41
+ if (!state.frozen) state.frozen = new InternalWeakMap();
42
+ return nativeDelete(this, key) || state.frozen['delete'](key);
43
+ } return nativeDelete(this, key);
44
+ },
45
+ has: function has(key) {
46
+ if (isObject(key) && !isExtensible(key)) {
47
+ var state = enforceInternalState(this);
48
+ if (!state.frozen) state.frozen = new InternalWeakMap();
49
+ return nativeHas(this, key) || state.frozen.has(key);
50
+ } return nativeHas(this, key);
51
+ },
52
+ get: function get(key) {
53
+ if (isObject(key) && !isExtensible(key)) {
54
+ var state = enforceInternalState(this);
55
+ if (!state.frozen) state.frozen = new InternalWeakMap();
56
+ return nativeHas(this, key) ? nativeGet(this, key) : state.frozen.get(key);
57
+ } return nativeGet(this, key);
58
+ },
59
+ set: function set(key, value) {
60
+ if (isObject(key) && !isExtensible(key)) {
61
+ var state = enforceInternalState(this);
62
+ if (!state.frozen) state.frozen = new InternalWeakMap();
63
+ nativeHas(this, key) ? nativeSet(this, key, value) : state.frozen.set(key, value);
64
+ } else nativeSet(this, key, value);
65
+ return this;
66
+ }
67
+ });
68
+ }
@@ -1,68 +1,2 @@
1
- 'use strict';
2
- var global = require('../internals/global');
3
- var uncurryThis = require('../internals/function-uncurry-this');
4
- var redefineAll = require('../internals/redefine-all');
5
- var InternalMetadataModule = require('../internals/internal-metadata');
6
- var collection = require('../internals/collection');
7
- var collectionWeak = require('../internals/collection-weak');
8
- var isObject = require('../internals/is-object');
9
- var isExtensible = require('../internals/object-is-extensible');
10
- var enforceInternalState = require('../internals/internal-state').enforce;
11
- var NATIVE_WEAK_MAP = require('../internals/native-weak-map');
12
-
13
- var IS_IE11 = !global.ActiveXObject && 'ActiveXObject' in global;
14
- var InternalWeakMap;
15
-
16
- var wrapper = function (init) {
17
- return function WeakMap() {
18
- return init(this, arguments.length ? arguments[0] : undefined);
19
- };
20
- };
21
-
22
- // `WeakMap` constructor
23
- // https://tc39.es/ecma262/#sec-weakmap-constructor
24
- var $WeakMap = collection('WeakMap', wrapper, collectionWeak);
25
-
26
- // IE11 WeakMap frozen keys fix
27
- // We can't use feature detection because it crash some old IE builds
28
- // https://github.com/zloirock/core-js/issues/485
29
- if (NATIVE_WEAK_MAP && IS_IE11) {
30
- InternalWeakMap = collectionWeak.getConstructor(wrapper, 'WeakMap', true);
31
- InternalMetadataModule.enable();
32
- var WeakMapPrototype = $WeakMap.prototype;
33
- var nativeDelete = uncurryThis(WeakMapPrototype['delete']);
34
- var nativeHas = uncurryThis(WeakMapPrototype.has);
35
- var nativeGet = uncurryThis(WeakMapPrototype.get);
36
- var nativeSet = uncurryThis(WeakMapPrototype.set);
37
- redefineAll(WeakMapPrototype, {
38
- 'delete': function (key) {
39
- if (isObject(key) && !isExtensible(key)) {
40
- var state = enforceInternalState(this);
41
- if (!state.frozen) state.frozen = new InternalWeakMap();
42
- return nativeDelete(this, key) || state.frozen['delete'](key);
43
- } return nativeDelete(this, key);
44
- },
45
- has: function has(key) {
46
- if (isObject(key) && !isExtensible(key)) {
47
- var state = enforceInternalState(this);
48
- if (!state.frozen) state.frozen = new InternalWeakMap();
49
- return nativeHas(this, key) || state.frozen.has(key);
50
- } return nativeHas(this, key);
51
- },
52
- get: function get(key) {
53
- if (isObject(key) && !isExtensible(key)) {
54
- var state = enforceInternalState(this);
55
- if (!state.frozen) state.frozen = new InternalWeakMap();
56
- return nativeHas(this, key) ? nativeGet(this, key) : state.frozen.get(key);
57
- } return nativeGet(this, key);
58
- },
59
- set: function set(key, value) {
60
- if (isObject(key) && !isExtensible(key)) {
61
- var state = enforceInternalState(this);
62
- if (!state.frozen) state.frozen = new InternalWeakMap();
63
- nativeHas(this, key) ? nativeSet(this, key, value) : state.frozen.set(key, value);
64
- } else nativeSet(this, key, value);
65
- return this;
66
- }
67
- });
68
- }
1
+ // TODO: Remove this module from `core-js@4` since it's replaced to module below
2
+ require('../modules/es.weak-map.constructor');
@@ -0,0 +1,9 @@
1
+ 'use strict';
2
+ var collection = require('../internals/collection');
3
+ var collectionWeak = require('../internals/collection-weak');
4
+
5
+ // `WeakSet` constructor
6
+ // https://tc39.es/ecma262/#sec-weakset-constructor
7
+ collection('WeakSet', function (init) {
8
+ return function WeakSet() { return init(this, arguments.length ? arguments[0] : undefined); };
9
+ }, collectionWeak);
@@ -1,9 +1,2 @@
1
- 'use strict';
2
- var collection = require('../internals/collection');
3
- var collectionWeak = require('../internals/collection-weak');
4
-
5
- // `WeakSet` constructor
6
- // https://tc39.es/ecma262/#sec-weakset-constructor
7
- collection('WeakSet', function (init) {
8
- return function WeakSet() { return init(this, arguments.length ? arguments[0] : undefined); };
9
- }, collectionWeak);
1
+ // TODO: Remove this module from `core-js@4` since it's replaced to module below
2
+ require('../modules/es.weak-set.constructor');
@@ -1,7 +1,7 @@
1
1
  var $ = require('../internals/export');
2
2
  var isArray = require('../internals/is-array');
3
3
 
4
- // eslint-disable-next-line es/no-object-isfrozen -- safe
4
+ // eslint-disable-next-line es-x/no-object-isfrozen -- safe
5
5
  var isFrozen = Object.isFrozen;
6
6
 
7
7
  var isFrozenStringArray = function (array, allowUndefined) {
@@ -23,7 +23,6 @@ $({ target: 'Array', stat: true, sham: true, forced: true }, {
23
23
  isTemplateObject: function isTemplateObject(value) {
24
24
  if (!isFrozenStringArray(value, true)) return false;
25
25
  var raw = value.raw;
26
- if (raw.length !== value.length || !isFrozenStringArray(raw, false)) return false;
27
- return true;
26
+ return raw.length === value.length && isFrozenStringArray(raw, false);
28
27
  }
29
28
  });
@@ -1,14 +1,15 @@
1
1
  'use strict';
2
+ // TODO: Remove from `core-js@4`
2
3
  var DESCRIPTORS = require('../internals/descriptors');
3
4
  var addToUnscopables = require('../internals/add-to-unscopables');
4
5
  var toObject = require('../internals/to-object');
5
6
  var lengthOfArrayLike = require('../internals/length-of-array-like');
6
- var defineProperty = require('../internals/object-define-property').f;
7
+ var defineBuiltInAccessor = require('../internals/define-built-in-accessor');
7
8
 
8
9
  // `Array.prototype.lastIndex` getter
9
10
  // https://github.com/keithamus/proposal-array-last
10
11
  if (DESCRIPTORS) {
11
- defineProperty(Array.prototype, 'lastIndex', {
12
+ defineBuiltInAccessor(Array.prototype, 'lastIndex', {
12
13
  configurable: true,
13
14
  get: function lastIndex() {
14
15
  var O = toObject(this);
@@ -1,14 +1,15 @@
1
1
  'use strict';
2
+ // TODO: Remove from `core-js@4`
2
3
  var DESCRIPTORS = require('../internals/descriptors');
3
4
  var addToUnscopables = require('../internals/add-to-unscopables');
4
5
  var toObject = require('../internals/to-object');
5
6
  var lengthOfArrayLike = require('../internals/length-of-array-like');
6
- var defineProperty = require('../internals/object-define-property').f;
7
+ var defineBuiltInAccessor = require('../internals/define-built-in-accessor');
7
8
 
8
9
  // `Array.prototype.lastIndex` accessor
9
10
  // https://github.com/keithamus/proposal-array-last
10
11
  if (DESCRIPTORS) {
11
- defineProperty(Array.prototype, 'lastItem', {
12
+ defineBuiltInAccessor(Array.prototype, 'lastItem', {
12
13
  configurable: true,
13
14
  get: function lastItem() {
14
15
  var O = toObject(this);
@@ -9,7 +9,7 @@ var Array = global.Array;
9
9
 
10
10
  // `Array.prototype.toReversed` method
11
11
  // https://tc39.es/proposal-change-array-by-copy/#sec-array.prototype.toReversed
12
- $({ target: 'Array', proto: true, forced: true }, {
12
+ $({ target: 'Array', proto: true }, {
13
13
  toReversed: function toReversed() {
14
14
  return arrayToReversed(toIndexedObject(this), Array);
15
15
  }
@@ -13,7 +13,7 @@ var sort = uncurryThis(getVirtual('Array').sort);
13
13
 
14
14
  // `Array.prototype.toSorted` method
15
15
  // https://tc39.es/proposal-change-array-by-copy/#sec-array.prototype.toSorted
16
- $({ target: 'Array', proto: true, forced: true }, {
16
+ $({ target: 'Array', proto: true }, {
17
17
  toSorted: function toSorted(compareFn) {
18
18
  if (compareFn !== undefined) aCallable(compareFn);
19
19
  var O = toIndexedObject(this);
@@ -10,7 +10,7 @@ var Array = global.Array;
10
10
 
11
11
  // `Array.prototype.toSpliced` method
12
12
  // https://tc39.es/proposal-change-array-by-copy/#sec-array.prototype.toSpliced
13
- $({ target: 'Array', proto: true, forced: true }, {
13
+ $({ target: 'Array', proto: true, arity: 2 }, {
14
14
  // eslint-disable-next-line no-unused-vars -- required for .length
15
15
  toSpliced: function toSpliced(start, deleteCount /* , ...items */) {
16
16
  return arrayToSpliced(toIndexedObject(this), Array, arraySlice(arguments));
@@ -8,7 +8,7 @@ var Array = global.Array;
8
8
 
9
9
  // `Array.prototype.with` method
10
10
  // https://tc39.es/proposal-change-array-by-copy/#sec-array.prototype.with
11
- $({ target: 'Array', proto: true, forced: true }, {
11
+ $({ target: 'Array', proto: true }, {
12
12
  'with': function (index, value) {
13
13
  return arrayWith(toIndexedObject(this), Array, index, value);
14
14
  }