core-js 3.4.1 → 3.4.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (700) hide show
  1. package/es/index.js +3 -1
  2. package/es/json/index.js +1 -0
  3. package/features/array/concat.js +3 -1
  4. package/features/array/copy-within.js +3 -1
  5. package/features/array/entries.js +3 -1
  6. package/features/array/every.js +3 -1
  7. package/features/array/fill.js +3 -1
  8. package/features/array/filter.js +3 -1
  9. package/features/array/find-index.js +3 -1
  10. package/features/array/find.js +3 -1
  11. package/features/array/flat-map.js +3 -1
  12. package/features/array/flat.js +3 -1
  13. package/features/array/for-each.js +3 -1
  14. package/features/array/from.js +3 -1
  15. package/features/array/includes.js +3 -1
  16. package/features/array/index-of.js +3 -1
  17. package/features/array/index.js +3 -2
  18. package/features/array/is-array.js +3 -1
  19. package/features/array/iterator.js +3 -1
  20. package/features/array/join.js +3 -1
  21. package/features/array/keys.js +3 -1
  22. package/features/array/last-index-of.js +3 -1
  23. package/features/array/map.js +3 -1
  24. package/features/array/of.js +3 -1
  25. package/features/array/reduce-right.js +3 -1
  26. package/features/array/reduce.js +3 -1
  27. package/features/array/reverse.js +3 -1
  28. package/features/array/slice.js +3 -1
  29. package/features/array/some.js +3 -1
  30. package/features/array/sort.js +3 -1
  31. package/features/array/splice.js +3 -1
  32. package/features/array/values.js +3 -1
  33. package/features/array/virtual/concat.js +3 -1
  34. package/features/array/virtual/copy-within.js +3 -1
  35. package/features/array/virtual/entries.js +3 -1
  36. package/features/array/virtual/every.js +3 -1
  37. package/features/array/virtual/fill.js +3 -1
  38. package/features/array/virtual/filter.js +3 -1
  39. package/features/array/virtual/find-index.js +3 -1
  40. package/features/array/virtual/find.js +3 -1
  41. package/features/array/virtual/flat-map.js +3 -1
  42. package/features/array/virtual/flat.js +3 -1
  43. package/features/array/virtual/for-each.js +3 -1
  44. package/features/array/virtual/includes.js +3 -1
  45. package/features/array/virtual/index-of.js +3 -1
  46. package/features/array/virtual/index.js +3 -1
  47. package/features/array/virtual/iterator.js +3 -1
  48. package/features/array/virtual/join.js +3 -1
  49. package/features/array/virtual/keys.js +3 -1
  50. package/features/array/virtual/last-index-of.js +3 -1
  51. package/features/array/virtual/map.js +3 -1
  52. package/features/array/virtual/reduce-right.js +3 -1
  53. package/features/array/virtual/reduce.js +3 -1
  54. package/features/array/virtual/reverse.js +3 -1
  55. package/features/array/virtual/slice.js +3 -1
  56. package/features/array/virtual/some.js +3 -1
  57. package/features/array/virtual/sort.js +3 -1
  58. package/features/array/virtual/splice.js +3 -1
  59. package/features/array/virtual/values.js +3 -1
  60. package/features/array-buffer/constructor.js +3 -1
  61. package/features/array-buffer/index.js +3 -1
  62. package/features/array-buffer/is-view.js +3 -1
  63. package/features/array-buffer/slice.js +3 -1
  64. package/features/clear-immediate.js +3 -1
  65. package/features/data-view/index.js +3 -1
  66. package/features/date/index.js +3 -1
  67. package/features/date/now.js +3 -1
  68. package/features/date/to-iso-string.js +3 -1
  69. package/features/date/to-json.js +3 -1
  70. package/features/date/to-primitive.js +3 -1
  71. package/features/date/to-string.js +3 -1
  72. package/features/dom-collections/for-each.js +3 -1
  73. package/features/dom-collections/index.js +3 -1
  74. package/features/dom-collections/iterator.js +3 -1
  75. package/features/function/bind.js +3 -1
  76. package/features/function/has-instance.js +3 -1
  77. package/features/function/index.js +3 -1
  78. package/features/function/name.js +3 -1
  79. package/features/function/virtual/bind.js +3 -1
  80. package/features/function/virtual/index.js +3 -1
  81. package/features/get-iterator-method.js +2 -1
  82. package/features/get-iterator.js +2 -1
  83. package/features/global-this.js +3 -1
  84. package/features/index.js +3 -1
  85. package/features/instance/bind.js +3 -1
  86. package/features/instance/code-point-at.js +3 -1
  87. package/features/instance/concat.js +3 -1
  88. package/features/instance/copy-within.js +3 -1
  89. package/features/instance/ends-with.js +3 -1
  90. package/features/instance/entries.js +3 -1
  91. package/features/instance/every.js +3 -1
  92. package/features/instance/fill.js +3 -1
  93. package/features/instance/filter.js +3 -1
  94. package/features/instance/find-index.js +3 -1
  95. package/features/instance/find.js +3 -1
  96. package/features/instance/flags.js +3 -1
  97. package/features/instance/flat-map.js +3 -1
  98. package/features/instance/flat.js +3 -1
  99. package/features/instance/for-each.js +3 -1
  100. package/features/instance/includes.js +3 -1
  101. package/features/instance/index-of.js +3 -1
  102. package/features/instance/keys.js +3 -1
  103. package/features/instance/last-index-of.js +3 -1
  104. package/features/instance/map.js +3 -1
  105. package/features/instance/match-all.js +3 -1
  106. package/features/instance/pad-end.js +3 -1
  107. package/features/instance/pad-start.js +3 -1
  108. package/features/instance/reduce-right.js +3 -1
  109. package/features/instance/reduce.js +3 -1
  110. package/features/instance/repeat.js +3 -1
  111. package/features/instance/reverse.js +3 -1
  112. package/features/instance/slice.js +3 -1
  113. package/features/instance/some.js +3 -1
  114. package/features/instance/sort.js +3 -1
  115. package/features/instance/splice.js +3 -1
  116. package/features/instance/starts-with.js +3 -1
  117. package/features/instance/trim-end.js +3 -1
  118. package/features/instance/trim-left.js +3 -1
  119. package/features/instance/trim-right.js +3 -1
  120. package/features/instance/trim-start.js +3 -1
  121. package/features/instance/trim.js +3 -1
  122. package/features/instance/values.js +3 -1
  123. package/features/is-iterable.js +2 -1
  124. package/features/json/index.js +3 -1
  125. package/features/json/stringify.js +3 -1
  126. package/features/json/to-string-tag.js +3 -1
  127. package/features/map/index.js +3 -2
  128. package/features/math/acosh.js +3 -1
  129. package/features/math/asinh.js +3 -1
  130. package/features/math/atanh.js +3 -1
  131. package/features/math/cbrt.js +3 -1
  132. package/features/math/clz32.js +3 -1
  133. package/features/math/cosh.js +3 -1
  134. package/features/math/expm1.js +3 -1
  135. package/features/math/fround.js +3 -1
  136. package/features/math/hypot.js +3 -1
  137. package/features/math/imul.js +3 -1
  138. package/features/math/index.js +3 -2
  139. package/features/math/log10.js +3 -1
  140. package/features/math/log1p.js +3 -1
  141. package/features/math/log2.js +3 -1
  142. package/features/math/sign.js +3 -1
  143. package/features/math/sinh.js +3 -1
  144. package/features/math/tanh.js +3 -1
  145. package/features/math/to-string-tag.js +3 -1
  146. package/features/math/trunc.js +3 -1
  147. package/features/number/constructor.js +3 -1
  148. package/features/number/epsilon.js +3 -1
  149. package/features/number/index.js +3 -1
  150. package/features/number/is-finite.js +3 -1
  151. package/features/number/is-integer.js +3 -1
  152. package/features/number/is-nan.js +3 -1
  153. package/features/number/is-safe-integer.js +3 -1
  154. package/features/number/max-safe-integer.js +3 -1
  155. package/features/number/min-safe-integer.js +3 -1
  156. package/features/number/parse-float.js +3 -1
  157. package/features/number/parse-int.js +3 -1
  158. package/features/number/to-fixed.js +3 -1
  159. package/features/number/to-precision.js +3 -1
  160. package/features/number/virtual/index.js +3 -1
  161. package/features/number/virtual/to-fixed.js +3 -1
  162. package/features/number/virtual/to-precision.js +3 -1
  163. package/features/object/assign.js +3 -1
  164. package/features/object/create.js +3 -1
  165. package/features/object/define-getter.js +3 -1
  166. package/features/object/define-properties.js +3 -1
  167. package/features/object/define-property.js +3 -1
  168. package/features/object/define-setter.js +3 -1
  169. package/features/object/entries.js +3 -1
  170. package/features/object/freeze.js +3 -1
  171. package/features/object/from-entries.js +3 -1
  172. package/features/object/get-own-property-descriptor.js +3 -1
  173. package/features/object/get-own-property-descriptors.js +3 -1
  174. package/features/object/get-own-property-names.js +3 -1
  175. package/features/object/get-own-property-symbols.js +3 -1
  176. package/features/object/get-prototype-of.js +3 -1
  177. package/features/object/index.js +3 -1
  178. package/features/object/is-extensible.js +3 -1
  179. package/features/object/is-frozen.js +3 -1
  180. package/features/object/is-sealed.js +3 -1
  181. package/features/object/is.js +3 -1
  182. package/features/object/keys.js +3 -1
  183. package/features/object/lookup-getter.js +3 -1
  184. package/features/object/lookup-setter.js +3 -1
  185. package/features/object/prevent-extensions.js +3 -1
  186. package/features/object/seal.js +3 -1
  187. package/features/object/set-prototype-of.js +3 -1
  188. package/features/object/to-string.js +3 -1
  189. package/features/object/values.js +3 -1
  190. package/features/parse-float.js +3 -1
  191. package/features/parse-int.js +3 -1
  192. package/features/promise/all-settled.js +3 -1
  193. package/features/promise/finally.js +3 -1
  194. package/features/promise/index.js +3 -2
  195. package/features/queue-microtask.js +3 -1
  196. package/features/reflect/apply.js +3 -1
  197. package/features/reflect/construct.js +3 -1
  198. package/features/reflect/define-property.js +3 -1
  199. package/features/reflect/delete-property.js +3 -1
  200. package/features/reflect/get-own-property-descriptor.js +3 -1
  201. package/features/reflect/get-prototype-of.js +3 -1
  202. package/features/reflect/get.js +3 -1
  203. package/features/reflect/has.js +3 -1
  204. package/features/reflect/index.js +3 -2
  205. package/features/reflect/is-extensible.js +3 -1
  206. package/features/reflect/own-keys.js +3 -1
  207. package/features/reflect/prevent-extensions.js +3 -1
  208. package/features/reflect/set-prototype-of.js +3 -1
  209. package/features/reflect/set.js +3 -1
  210. package/features/regexp/constructor.js +3 -1
  211. package/features/regexp/flags.js +3 -1
  212. package/features/regexp/index.js +3 -1
  213. package/features/regexp/match.js +3 -1
  214. package/features/regexp/replace.js +3 -1
  215. package/features/regexp/search.js +3 -1
  216. package/features/regexp/split.js +3 -1
  217. package/features/regexp/to-string.js +3 -1
  218. package/features/set/index.js +3 -2
  219. package/features/set-immediate.js +3 -1
  220. package/features/set-interval.js +3 -1
  221. package/features/set-timeout.js +3 -1
  222. package/features/string/anchor.js +3 -1
  223. package/features/string/big.js +3 -1
  224. package/features/string/blink.js +3 -1
  225. package/features/string/bold.js +3 -1
  226. package/features/string/code-point-at.js +3 -1
  227. package/features/string/ends-with.js +3 -1
  228. package/features/string/fixed.js +3 -1
  229. package/features/string/fontcolor.js +3 -1
  230. package/features/string/fontsize.js +3 -1
  231. package/features/string/from-code-point.js +3 -1
  232. package/features/string/includes.js +3 -1
  233. package/features/string/index.js +4 -2
  234. package/features/string/italics.js +3 -1
  235. package/features/string/iterator.js +3 -1
  236. package/features/string/link.js +3 -1
  237. package/features/string/match-all.js +3 -1
  238. package/features/string/match.js +3 -1
  239. package/features/string/pad-end.js +3 -1
  240. package/features/string/pad-start.js +3 -1
  241. package/features/string/raw.js +3 -1
  242. package/features/string/repeat.js +3 -1
  243. package/features/string/replace.js +3 -1
  244. package/features/string/search.js +3 -1
  245. package/features/string/small.js +3 -1
  246. package/features/string/split.js +3 -1
  247. package/features/string/starts-with.js +3 -1
  248. package/features/string/strike.js +3 -1
  249. package/features/string/sub.js +3 -1
  250. package/features/string/sup.js +3 -1
  251. package/features/string/trim-end.js +3 -1
  252. package/features/string/trim-left.js +3 -1
  253. package/features/string/trim-right.js +3 -1
  254. package/features/string/trim-start.js +3 -1
  255. package/features/string/trim.js +3 -1
  256. package/features/string/virtual/anchor.js +3 -1
  257. package/features/string/virtual/big.js +3 -1
  258. package/features/string/virtual/blink.js +3 -1
  259. package/features/string/virtual/bold.js +3 -1
  260. package/features/string/virtual/code-point-at.js +3 -1
  261. package/features/string/virtual/ends-with.js +3 -1
  262. package/features/string/virtual/fixed.js +3 -1
  263. package/features/string/virtual/fontcolor.js +3 -1
  264. package/features/string/virtual/fontsize.js +3 -1
  265. package/features/string/virtual/includes.js +3 -1
  266. package/features/string/virtual/index.js +4 -2
  267. package/features/string/virtual/italics.js +3 -1
  268. package/features/string/virtual/iterator.js +3 -1
  269. package/features/string/virtual/link.js +3 -1
  270. package/features/string/virtual/match-all.js +3 -1
  271. package/features/string/virtual/pad-end.js +3 -1
  272. package/features/string/virtual/pad-start.js +3 -1
  273. package/features/string/virtual/repeat.js +3 -1
  274. package/features/string/virtual/small.js +3 -1
  275. package/features/string/virtual/starts-with.js +3 -1
  276. package/features/string/virtual/strike.js +3 -1
  277. package/features/string/virtual/sub.js +3 -1
  278. package/features/string/virtual/sup.js +3 -1
  279. package/features/string/virtual/trim-end.js +3 -1
  280. package/features/string/virtual/trim-left.js +3 -1
  281. package/features/string/virtual/trim-right.js +3 -1
  282. package/features/string/virtual/trim-start.js +3 -1
  283. package/features/string/virtual/trim.js +3 -1
  284. package/features/symbol/async-iterator.js +3 -1
  285. package/features/symbol/for.js +3 -1
  286. package/features/symbol/has-instance.js +3 -1
  287. package/features/symbol/index.js +3 -2
  288. package/features/symbol/is-concat-spreadable.js +3 -1
  289. package/features/symbol/iterator.js +3 -1
  290. package/features/symbol/key-for.js +3 -1
  291. package/features/symbol/match-all.js +3 -1
  292. package/features/symbol/match.js +3 -1
  293. package/features/symbol/replace.js +3 -1
  294. package/features/symbol/search.js +3 -1
  295. package/features/symbol/species.js +3 -1
  296. package/features/symbol/split.js +3 -1
  297. package/features/symbol/to-primitive.js +3 -1
  298. package/features/symbol/to-string-tag.js +3 -1
  299. package/features/symbol/unscopables.js +3 -1
  300. package/features/typed-array/float32-array.js +3 -1
  301. package/features/typed-array/float64-array.js +3 -1
  302. package/features/typed-array/index.js +3 -1
  303. package/features/typed-array/int16-array.js +3 -1
  304. package/features/typed-array/int32-array.js +3 -1
  305. package/features/typed-array/int8-array.js +3 -1
  306. package/features/typed-array/uint16-array.js +3 -1
  307. package/features/typed-array/uint32-array.js +3 -1
  308. package/features/typed-array/uint8-array.js +3 -1
  309. package/features/typed-array/uint8-clamped-array.js +3 -1
  310. package/features/url/index.js +3 -1
  311. package/features/url/to-json.js +3 -1
  312. package/features/url-search-params/index.js +3 -1
  313. package/features/weak-map/index.js +3 -2
  314. package/features/weak-set/index.js +3 -2
  315. package/index.js +2 -1
  316. package/internals/array-buffer-view-core.js +4 -4
  317. package/internals/array-buffer.js +9 -91
  318. package/internals/classof.js +2 -1
  319. package/internals/collection.js +4 -2
  320. package/internals/ieee754.js +88 -0
  321. package/internals/inspect-source.js +7 -0
  322. package/internals/native-weak-map.js +2 -2
  323. package/internals/object-assign.js +12 -1
  324. package/internals/object-to-string.js +3 -8
  325. package/internals/path.js +3 -1
  326. package/internals/redefine.js +3 -8
  327. package/internals/shared.js +1 -1
  328. package/internals/to-absolute-index.js +1 -1
  329. package/internals/to-string-tag-support.js +8 -0
  330. package/internals/typed-array-constructor.js +2 -1
  331. package/internals/use-symbol-as-uid.js +7 -0
  332. package/internals/well-known-symbol.js +8 -3
  333. package/internals/wrapped-well-known-symbol.js +3 -1
  334. package/modules/es.array.filter.js +8 -1
  335. package/modules/es.array.map.js +8 -1
  336. package/modules/es.map.js +3 -3
  337. package/modules/es.object.to-string.js +3 -4
  338. package/modules/es.promise.finally.js +7 -1
  339. package/modules/es.promise.js +9 -8
  340. package/modules/es.reflect.set.js +10 -1
  341. package/modules/es.set.js +2 -2
  342. package/modules/es.string.ends-with.js +10 -1
  343. package/modules/es.string.match-all.js +1 -1
  344. package/modules/es.string.starts-with.js +10 -1
  345. package/modules/es.symbol.js +3 -0
  346. package/modules/es.typed-array.copy-within.js +2 -1
  347. package/modules/es.typed-array.every.js +2 -1
  348. package/modules/es.typed-array.fill.js +2 -1
  349. package/modules/es.typed-array.filter.js +2 -1
  350. package/modules/es.typed-array.find-index.js +2 -1
  351. package/modules/es.typed-array.find.js +2 -1
  352. package/modules/es.typed-array.float32-array.js +2 -2
  353. package/modules/es.typed-array.float64-array.js +2 -2
  354. package/modules/es.typed-array.for-each.js +2 -1
  355. package/modules/es.typed-array.from.js +2 -2
  356. package/modules/es.typed-array.includes.js +2 -1
  357. package/modules/es.typed-array.index-of.js +2 -1
  358. package/modules/es.typed-array.int16-array.js +2 -2
  359. package/modules/es.typed-array.int32-array.js +2 -2
  360. package/modules/es.typed-array.int8-array.js +2 -2
  361. package/modules/es.typed-array.iterator.js +5 -5
  362. package/modules/es.typed-array.join.js +2 -1
  363. package/modules/es.typed-array.last-index-of.js +2 -1
  364. package/modules/es.typed-array.map.js +2 -1
  365. package/modules/es.typed-array.of.js +2 -1
  366. package/modules/es.typed-array.reduce-right.js +2 -1
  367. package/modules/es.typed-array.reduce.js +2 -1
  368. package/modules/es.typed-array.reverse.js +2 -1
  369. package/modules/es.typed-array.set.js +2 -1
  370. package/modules/es.typed-array.slice.js +2 -1
  371. package/modules/es.typed-array.some.js +2 -1
  372. package/modules/es.typed-array.sort.js +2 -1
  373. package/modules/es.typed-array.subarray.js +2 -1
  374. package/modules/es.typed-array.to-locale-string.js +2 -1
  375. package/modules/es.typed-array.to-string.js +6 -4
  376. package/modules/es.typed-array.uint16-array.js +2 -2
  377. package/modules/es.typed-array.uint32-array.js +2 -2
  378. package/modules/es.typed-array.uint8-array.js +2 -2
  379. package/modules/es.typed-array.uint8-clamped-array.js +2 -2
  380. package/modules/es.weak-map.js +3 -3
  381. package/modules/es.weak-set.js +3 -3
  382. package/modules/esnext.iterator.constructor.js +7 -2
  383. package/modules/web.immediate.js +2 -1
  384. package/package.json +2 -2
  385. package/proposals/global-this.js +2 -1
  386. package/proposals/iterator-helpers.js +8 -0
  387. package/stable/array/concat.js +3 -1
  388. package/stable/array/copy-within.js +3 -1
  389. package/stable/array/entries.js +3 -1
  390. package/stable/array/every.js +3 -1
  391. package/stable/array/fill.js +3 -1
  392. package/stable/array/filter.js +3 -1
  393. package/stable/array/find-index.js +3 -1
  394. package/stable/array/find.js +3 -1
  395. package/stable/array/flat-map.js +3 -1
  396. package/stable/array/flat.js +3 -1
  397. package/stable/array/for-each.js +3 -1
  398. package/stable/array/from.js +3 -1
  399. package/stable/array/includes.js +3 -1
  400. package/stable/array/index-of.js +3 -1
  401. package/stable/array/index.js +3 -1
  402. package/stable/array/is-array.js +3 -1
  403. package/stable/array/iterator.js +3 -1
  404. package/stable/array/join.js +3 -1
  405. package/stable/array/keys.js +3 -1
  406. package/stable/array/last-index-of.js +3 -1
  407. package/stable/array/map.js +3 -1
  408. package/stable/array/of.js +3 -1
  409. package/stable/array/reduce-right.js +3 -1
  410. package/stable/array/reduce.js +3 -1
  411. package/stable/array/reverse.js +3 -1
  412. package/stable/array/slice.js +3 -1
  413. package/stable/array/some.js +3 -1
  414. package/stable/array/sort.js +3 -1
  415. package/stable/array/splice.js +3 -1
  416. package/stable/array/values.js +3 -1
  417. package/stable/array/virtual/concat.js +3 -1
  418. package/stable/array/virtual/copy-within.js +3 -1
  419. package/stable/array/virtual/entries.js +3 -1
  420. package/stable/array/virtual/every.js +3 -1
  421. package/stable/array/virtual/fill.js +3 -1
  422. package/stable/array/virtual/filter.js +3 -1
  423. package/stable/array/virtual/find-index.js +3 -1
  424. package/stable/array/virtual/find.js +3 -1
  425. package/stable/array/virtual/flat-map.js +3 -1
  426. package/stable/array/virtual/flat.js +3 -1
  427. package/stable/array/virtual/for-each.js +3 -1
  428. package/stable/array/virtual/includes.js +3 -1
  429. package/stable/array/virtual/index-of.js +3 -1
  430. package/stable/array/virtual/index.js +3 -1
  431. package/stable/array/virtual/iterator.js +3 -1
  432. package/stable/array/virtual/join.js +3 -1
  433. package/stable/array/virtual/keys.js +3 -1
  434. package/stable/array/virtual/last-index-of.js +3 -1
  435. package/stable/array/virtual/map.js +3 -1
  436. package/stable/array/virtual/reduce-right.js +3 -1
  437. package/stable/array/virtual/reduce.js +3 -1
  438. package/stable/array/virtual/reverse.js +3 -1
  439. package/stable/array/virtual/slice.js +3 -1
  440. package/stable/array/virtual/some.js +3 -1
  441. package/stable/array/virtual/sort.js +3 -1
  442. package/stable/array/virtual/splice.js +3 -1
  443. package/stable/array/virtual/values.js +3 -1
  444. package/stable/array-buffer/constructor.js +3 -1
  445. package/stable/array-buffer/index.js +3 -1
  446. package/stable/array-buffer/is-view.js +3 -1
  447. package/stable/array-buffer/slice.js +3 -1
  448. package/stable/clear-immediate.js +2 -1
  449. package/stable/data-view/index.js +3 -1
  450. package/stable/date/index.js +3 -1
  451. package/stable/date/now.js +3 -1
  452. package/stable/date/to-iso-string.js +3 -1
  453. package/stable/date/to-json.js +3 -1
  454. package/stable/date/to-primitive.js +3 -1
  455. package/stable/date/to-string.js +3 -1
  456. package/stable/dom-collections/for-each.js +3 -1
  457. package/stable/function/bind.js +3 -1
  458. package/stable/function/has-instance.js +3 -1
  459. package/stable/function/index.js +3 -1
  460. package/stable/function/name.js +3 -1
  461. package/stable/function/virtual/bind.js +3 -1
  462. package/stable/function/virtual/index.js +3 -1
  463. package/stable/global-this.js +3 -1
  464. package/stable/index.js +2 -1
  465. package/stable/instance/bind.js +3 -1
  466. package/stable/instance/code-point-at.js +3 -1
  467. package/stable/instance/concat.js +3 -1
  468. package/stable/instance/copy-within.js +3 -1
  469. package/stable/instance/ends-with.js +3 -1
  470. package/stable/instance/every.js +3 -1
  471. package/stable/instance/fill.js +3 -1
  472. package/stable/instance/filter.js +3 -1
  473. package/stable/instance/find-index.js +3 -1
  474. package/stable/instance/find.js +3 -1
  475. package/stable/instance/flags.js +3 -1
  476. package/stable/instance/flat-map.js +3 -1
  477. package/stable/instance/flat.js +3 -1
  478. package/stable/instance/includes.js +3 -1
  479. package/stable/instance/index-of.js +3 -1
  480. package/stable/instance/last-index-of.js +3 -1
  481. package/stable/instance/map.js +3 -1
  482. package/stable/instance/match-all.js +3 -1
  483. package/stable/instance/pad-end.js +3 -1
  484. package/stable/instance/pad-start.js +3 -1
  485. package/stable/instance/reduce-right.js +3 -1
  486. package/stable/instance/reduce.js +3 -1
  487. package/stable/instance/repeat.js +3 -1
  488. package/stable/instance/reverse.js +3 -1
  489. package/stable/instance/slice.js +3 -1
  490. package/stable/instance/some.js +3 -1
  491. package/stable/instance/sort.js +3 -1
  492. package/stable/instance/splice.js +3 -1
  493. package/stable/instance/starts-with.js +3 -1
  494. package/stable/instance/trim-end.js +3 -1
  495. package/stable/instance/trim-left.js +3 -1
  496. package/stable/instance/trim-right.js +3 -1
  497. package/stable/instance/trim-start.js +3 -1
  498. package/stable/instance/trim.js +3 -1
  499. package/stable/json/index.js +3 -1
  500. package/stable/json/stringify.js +3 -1
  501. package/stable/json/to-string-tag.js +3 -1
  502. package/stable/map/index.js +3 -1
  503. package/stable/math/acosh.js +3 -1
  504. package/stable/math/asinh.js +3 -1
  505. package/stable/math/atanh.js +3 -1
  506. package/stable/math/cbrt.js +3 -1
  507. package/stable/math/clz32.js +3 -1
  508. package/stable/math/cosh.js +3 -1
  509. package/stable/math/expm1.js +3 -1
  510. package/stable/math/fround.js +3 -1
  511. package/stable/math/hypot.js +3 -1
  512. package/stable/math/imul.js +3 -1
  513. package/stable/math/index.js +3 -1
  514. package/stable/math/log10.js +3 -1
  515. package/stable/math/log1p.js +3 -1
  516. package/stable/math/log2.js +3 -1
  517. package/stable/math/sign.js +3 -1
  518. package/stable/math/sinh.js +3 -1
  519. package/stable/math/tanh.js +3 -1
  520. package/stable/math/to-string-tag.js +3 -1
  521. package/stable/math/trunc.js +3 -1
  522. package/stable/number/constructor.js +3 -1
  523. package/stable/number/epsilon.js +3 -1
  524. package/stable/number/index.js +3 -1
  525. package/stable/number/is-finite.js +3 -1
  526. package/stable/number/is-integer.js +3 -1
  527. package/stable/number/is-nan.js +3 -1
  528. package/stable/number/is-safe-integer.js +3 -1
  529. package/stable/number/max-safe-integer.js +3 -1
  530. package/stable/number/min-safe-integer.js +3 -1
  531. package/stable/number/parse-float.js +3 -1
  532. package/stable/number/parse-int.js +3 -1
  533. package/stable/number/to-fixed.js +3 -1
  534. package/stable/number/to-precision.js +3 -1
  535. package/stable/number/virtual/index.js +3 -1
  536. package/stable/number/virtual/to-fixed.js +3 -1
  537. package/stable/number/virtual/to-precision.js +3 -1
  538. package/stable/object/assign.js +3 -1
  539. package/stable/object/create.js +3 -1
  540. package/stable/object/define-getter.js +3 -1
  541. package/stable/object/define-properties.js +3 -1
  542. package/stable/object/define-property.js +3 -1
  543. package/stable/object/define-setter.js +3 -1
  544. package/stable/object/entries.js +3 -1
  545. package/stable/object/freeze.js +3 -1
  546. package/stable/object/from-entries.js +3 -1
  547. package/stable/object/get-own-property-descriptor.js +3 -1
  548. package/stable/object/get-own-property-descriptors.js +3 -1
  549. package/stable/object/get-own-property-names.js +3 -1
  550. package/stable/object/get-own-property-symbols.js +3 -1
  551. package/stable/object/get-prototype-of.js +3 -1
  552. package/stable/object/index.js +3 -1
  553. package/stable/object/is-extensible.js +3 -1
  554. package/stable/object/is-frozen.js +3 -1
  555. package/stable/object/is-sealed.js +3 -1
  556. package/stable/object/is.js +3 -1
  557. package/stable/object/keys.js +3 -1
  558. package/stable/object/lookup-getter.js +3 -1
  559. package/stable/object/lookup-setter.js +3 -1
  560. package/stable/object/prevent-extensions.js +3 -1
  561. package/stable/object/seal.js +3 -1
  562. package/stable/object/set-prototype-of.js +3 -1
  563. package/stable/object/to-string.js +3 -1
  564. package/stable/object/values.js +3 -1
  565. package/stable/parse-float.js +3 -1
  566. package/stable/parse-int.js +3 -1
  567. package/stable/promise/all-settled.js +3 -1
  568. package/stable/promise/finally.js +3 -1
  569. package/stable/promise/index.js +3 -1
  570. package/stable/queue-microtask.js +3 -1
  571. package/stable/reflect/apply.js +3 -1
  572. package/stable/reflect/construct.js +3 -1
  573. package/stable/reflect/define-property.js +3 -1
  574. package/stable/reflect/delete-property.js +3 -1
  575. package/stable/reflect/get-own-property-descriptor.js +3 -1
  576. package/stable/reflect/get-prototype-of.js +3 -1
  577. package/stable/reflect/get.js +3 -1
  578. package/stable/reflect/has.js +3 -1
  579. package/stable/reflect/index.js +3 -1
  580. package/stable/reflect/is-extensible.js +3 -1
  581. package/stable/reflect/own-keys.js +3 -1
  582. package/stable/reflect/prevent-extensions.js +3 -1
  583. package/stable/reflect/set-prototype-of.js +3 -1
  584. package/stable/reflect/set.js +3 -1
  585. package/stable/regexp/constructor.js +3 -1
  586. package/stable/regexp/flags.js +3 -1
  587. package/stable/regexp/index.js +3 -1
  588. package/stable/regexp/match.js +3 -1
  589. package/stable/regexp/replace.js +3 -1
  590. package/stable/regexp/search.js +3 -1
  591. package/stable/regexp/split.js +3 -1
  592. package/stable/regexp/to-string.js +3 -1
  593. package/stable/set/index.js +3 -1
  594. package/stable/set-immediate.js +2 -1
  595. package/stable/set-interval.js +2 -1
  596. package/stable/set-timeout.js +2 -1
  597. package/stable/string/anchor.js +3 -1
  598. package/stable/string/big.js +3 -1
  599. package/stable/string/blink.js +3 -1
  600. package/stable/string/bold.js +3 -1
  601. package/stable/string/code-point-at.js +3 -1
  602. package/stable/string/ends-with.js +3 -1
  603. package/stable/string/fixed.js +3 -1
  604. package/stable/string/fontcolor.js +3 -1
  605. package/stable/string/fontsize.js +3 -1
  606. package/stable/string/from-code-point.js +3 -1
  607. package/stable/string/includes.js +3 -1
  608. package/stable/string/index.js +3 -1
  609. package/stable/string/italics.js +3 -1
  610. package/stable/string/iterator.js +3 -1
  611. package/stable/string/link.js +3 -1
  612. package/stable/string/match-all.js +3 -1
  613. package/stable/string/match.js +3 -1
  614. package/stable/string/pad-end.js +3 -1
  615. package/stable/string/pad-start.js +3 -1
  616. package/stable/string/raw.js +3 -1
  617. package/stable/string/repeat.js +3 -1
  618. package/stable/string/replace.js +3 -1
  619. package/stable/string/search.js +3 -1
  620. package/stable/string/small.js +3 -1
  621. package/stable/string/split.js +3 -1
  622. package/stable/string/starts-with.js +3 -1
  623. package/stable/string/strike.js +3 -1
  624. package/stable/string/sub.js +3 -1
  625. package/stable/string/sup.js +3 -1
  626. package/stable/string/trim-end.js +3 -1
  627. package/stable/string/trim-left.js +3 -1
  628. package/stable/string/trim-right.js +3 -1
  629. package/stable/string/trim-start.js +3 -1
  630. package/stable/string/trim.js +3 -1
  631. package/stable/string/virtual/anchor.js +3 -1
  632. package/stable/string/virtual/big.js +3 -1
  633. package/stable/string/virtual/blink.js +3 -1
  634. package/stable/string/virtual/bold.js +3 -1
  635. package/stable/string/virtual/code-point-at.js +3 -1
  636. package/stable/string/virtual/ends-with.js +3 -1
  637. package/stable/string/virtual/fixed.js +3 -1
  638. package/stable/string/virtual/fontcolor.js +3 -1
  639. package/stable/string/virtual/fontsize.js +3 -1
  640. package/stable/string/virtual/includes.js +3 -1
  641. package/stable/string/virtual/index.js +3 -1
  642. package/stable/string/virtual/italics.js +3 -1
  643. package/stable/string/virtual/iterator.js +3 -1
  644. package/stable/string/virtual/link.js +3 -1
  645. package/stable/string/virtual/match-all.js +3 -1
  646. package/stable/string/virtual/pad-end.js +3 -1
  647. package/stable/string/virtual/pad-start.js +3 -1
  648. package/stable/string/virtual/repeat.js +3 -1
  649. package/stable/string/virtual/small.js +3 -1
  650. package/stable/string/virtual/starts-with.js +3 -1
  651. package/stable/string/virtual/strike.js +3 -1
  652. package/stable/string/virtual/sub.js +3 -1
  653. package/stable/string/virtual/sup.js +3 -1
  654. package/stable/string/virtual/trim-end.js +3 -1
  655. package/stable/string/virtual/trim-left.js +3 -1
  656. package/stable/string/virtual/trim-right.js +3 -1
  657. package/stable/string/virtual/trim-start.js +3 -1
  658. package/stable/string/virtual/trim.js +3 -1
  659. package/stable/symbol/async-iterator.js +3 -1
  660. package/stable/symbol/for.js +3 -1
  661. package/stable/symbol/has-instance.js +3 -1
  662. package/stable/symbol/index.js +3 -1
  663. package/stable/symbol/is-concat-spreadable.js +3 -1
  664. package/stable/symbol/iterator.js +3 -1
  665. package/stable/symbol/key-for.js +3 -1
  666. package/stable/symbol/match-all.js +3 -1
  667. package/stable/symbol/match.js +3 -1
  668. package/stable/symbol/replace.js +3 -1
  669. package/stable/symbol/search.js +3 -1
  670. package/stable/symbol/species.js +3 -1
  671. package/stable/symbol/split.js +3 -1
  672. package/stable/symbol/to-primitive.js +3 -1
  673. package/stable/symbol/to-string-tag.js +3 -1
  674. package/stable/symbol/unscopables.js +3 -1
  675. package/stable/typed-array/float32-array.js +3 -1
  676. package/stable/typed-array/float64-array.js +3 -1
  677. package/stable/typed-array/index.js +3 -1
  678. package/stable/typed-array/int16-array.js +3 -1
  679. package/stable/typed-array/int32-array.js +3 -1
  680. package/stable/typed-array/int8-array.js +3 -1
  681. package/stable/typed-array/uint16-array.js +3 -1
  682. package/stable/typed-array/uint32-array.js +3 -1
  683. package/stable/typed-array/uint8-array.js +3 -1
  684. package/stable/typed-array/uint8-clamped-array.js +3 -1
  685. package/stable/url/index.js +3 -1
  686. package/stable/url-search-params/index.js +3 -1
  687. package/stable/weak-map/index.js +3 -1
  688. package/stable/weak-set/index.js +3 -1
  689. package/stage/0.js +2 -1
  690. package/stage/1.js +2 -1
  691. package/stage/2.js +2 -1
  692. package/stage/3.js +2 -1
  693. package/stage/4.js +2 -1
  694. package/stage/index.js +3 -1
  695. package/stage/pre.js +2 -1
  696. package/web/dom-collections.js +2 -1
  697. package/web/immediate.js +2 -1
  698. package/web/index.js +2 -1
  699. package/web/timers.js +2 -1
  700. package/internals/function-to-string.js +0 -3
@@ -1 +1,3 @@
1
- module.exports = require('../../../es/string/virtual/starts-with');
1
+ var parent = require('../../../es/string/virtual/starts-with');
2
+
3
+ module.exports = parent;
@@ -1 +1,3 @@
1
- module.exports = require('../../../es/string/virtual/strike');
1
+ var parent = require('../../../es/string/virtual/strike');
2
+
3
+ module.exports = parent;
@@ -1 +1,3 @@
1
- module.exports = require('../../../es/string/virtual/sub');
1
+ var parent = require('../../../es/string/virtual/sub');
2
+
3
+ module.exports = parent;
@@ -1 +1,3 @@
1
- module.exports = require('../../../es/string/virtual/sup');
1
+ var parent = require('../../../es/string/virtual/sup');
2
+
3
+ module.exports = parent;
@@ -1 +1,3 @@
1
- module.exports = require('../../../es/string/virtual/trim-end');
1
+ var parent = require('../../../es/string/virtual/trim-end');
2
+
3
+ module.exports = parent;
@@ -1 +1,3 @@
1
- module.exports = require('../../../es/string/virtual/trim-left');
1
+ var parent = require('../../../es/string/virtual/trim-left');
2
+
3
+ module.exports = parent;
@@ -1 +1,3 @@
1
- module.exports = require('../../../es/string/virtual/trim-right');
1
+ var parent = require('../../../es/string/virtual/trim-right');
2
+
3
+ module.exports = parent;
@@ -1 +1,3 @@
1
- module.exports = require('../../../es/string/virtual/trim-start');
1
+ var parent = require('../../../es/string/virtual/trim-start');
2
+
3
+ module.exports = parent;
@@ -1 +1,3 @@
1
- module.exports = require('../../../es/string/virtual/trim');
1
+ var parent = require('../../../es/string/virtual/trim');
2
+
3
+ module.exports = parent;
@@ -1 +1,3 @@
1
- module.exports = require('../../es/symbol/async-iterator');
1
+ var parent = require('../../es/symbol/async-iterator');
2
+
3
+ module.exports = parent;
@@ -1 +1,3 @@
1
- module.exports = require('../../es/symbol/for');
1
+ var parent = require('../../es/symbol/for');
2
+
3
+ module.exports = parent;
@@ -1 +1,3 @@
1
- module.exports = require('../../es/symbol/has-instance');
1
+ var parent = require('../../es/symbol/has-instance');
2
+
3
+ module.exports = parent;
@@ -1,8 +1,9 @@
1
- module.exports = require('../../es/symbol');
2
-
1
+ var parent = require('../../es/symbol');
3
2
  require('../../modules/esnext.symbol.async-dispose');
4
3
  require('../../modules/esnext.symbol.dispose');
5
4
  require('../../modules/esnext.symbol.observable');
6
5
  require('../../modules/esnext.symbol.pattern-match');
7
6
  // TODO: Remove from `core-js@4`
8
7
  require('../../modules/esnext.symbol.replace-all');
8
+
9
+ module.exports = parent;
@@ -1 +1,3 @@
1
- module.exports = require('../../es/symbol/is-concat-spreadable');
1
+ var parent = require('../../es/symbol/is-concat-spreadable');
2
+
3
+ module.exports = parent;
@@ -1 +1,3 @@
1
- module.exports = require('../../es/symbol/iterator');
1
+ var parent = require('../../es/symbol/iterator');
2
+
3
+ module.exports = parent;
@@ -1 +1,3 @@
1
- module.exports = require('../../es/symbol/key-for');
1
+ var parent = require('../../es/symbol/key-for');
2
+
3
+ module.exports = parent;
@@ -1 +1,3 @@
1
- module.exports = require('../../es/symbol/match-all');
1
+ var parent = require('../../es/symbol/match-all');
2
+
3
+ module.exports = parent;
@@ -1 +1,3 @@
1
- module.exports = require('../../es/symbol/match');
1
+ var parent = require('../../es/symbol/match');
2
+
3
+ module.exports = parent;
@@ -1 +1,3 @@
1
- module.exports = require('../../es/symbol/replace');
1
+ var parent = require('../../es/symbol/replace');
2
+
3
+ module.exports = parent;
@@ -1 +1,3 @@
1
- module.exports = require('../../es/symbol/search');
1
+ var parent = require('../../es/symbol/search');
2
+
3
+ module.exports = parent;
@@ -1 +1,3 @@
1
- module.exports = require('../../es/symbol/species');
1
+ var parent = require('../../es/symbol/species');
2
+
3
+ module.exports = parent;
@@ -1 +1,3 @@
1
- module.exports = require('../../es/symbol/split');
1
+ var parent = require('../../es/symbol/split');
2
+
3
+ module.exports = parent;
@@ -1 +1,3 @@
1
- module.exports = require('../../es/symbol/to-primitive');
1
+ var parent = require('../../es/symbol/to-primitive');
2
+
3
+ module.exports = parent;
@@ -1 +1,3 @@
1
- module.exports = require('../../es/symbol/to-string-tag');
1
+ var parent = require('../../es/symbol/to-string-tag');
2
+
3
+ module.exports = parent;
@@ -1 +1,3 @@
1
- module.exports = require('../../es/symbol/unscopables');
1
+ var parent = require('../../es/symbol/unscopables');
2
+
3
+ module.exports = parent;
@@ -1 +1,3 @@
1
- module.exports = require('../../es/typed-array/float32-array');
1
+ var parent = require('../../es/typed-array/float32-array');
2
+
3
+ module.exports = parent;
@@ -1 +1,3 @@
1
- module.exports = require('../../es/typed-array/float64-array');
1
+ var parent = require('../../es/typed-array/float64-array');
2
+
3
+ module.exports = parent;
@@ -1 +1,3 @@
1
- module.exports = require('../../es/typed-array');
1
+ var parent = require('../../es/typed-array');
2
+
3
+ module.exports = parent;
@@ -1 +1,3 @@
1
- module.exports = require('../../es/typed-array/int16-array');
1
+ var parent = require('../../es/typed-array/int16-array');
2
+
3
+ module.exports = parent;
@@ -1 +1,3 @@
1
- module.exports = require('../../es/typed-array/int32-array');
1
+ var parent = require('../../es/typed-array/int32-array');
2
+
3
+ module.exports = parent;
@@ -1 +1,3 @@
1
- module.exports = require('../../es/typed-array/int8-array');
1
+ var parent = require('../../es/typed-array/int8-array');
2
+
3
+ module.exports = parent;
@@ -1 +1,3 @@
1
- module.exports = require('../../es/typed-array/uint16-array');
1
+ var parent = require('../../es/typed-array/uint16-array');
2
+
3
+ module.exports = parent;
@@ -1 +1,3 @@
1
- module.exports = require('../../es/typed-array/uint32-array');
1
+ var parent = require('../../es/typed-array/uint32-array');
2
+
3
+ module.exports = parent;
@@ -1 +1,3 @@
1
- module.exports = require('../../es/typed-array/uint8-array');
1
+ var parent = require('../../es/typed-array/uint8-array');
2
+
3
+ module.exports = parent;
@@ -1 +1,3 @@
1
- module.exports = require('../../es/typed-array/uint8-clamped-array');
1
+ var parent = require('../../es/typed-array/uint8-clamped-array');
2
+
3
+ module.exports = parent;
@@ -1 +1,3 @@
1
- module.exports = require('../../stable/url');
1
+ var parent = require('../../stable/url');
2
+
3
+ module.exports = parent;
@@ -1 +1,3 @@
1
- module.exports = require('../../stable/url/to-json');
1
+ var parent = require('../../stable/url/to-json');
2
+
3
+ module.exports = parent;
@@ -1 +1,3 @@
1
- module.exports = require('../../stable/url-search-params');
1
+ var parent = require('../../stable/url-search-params');
2
+
3
+ module.exports = parent;
@@ -1,6 +1,7 @@
1
- module.exports = require('../../es/weak-map');
2
-
1
+ var parent = require('../../es/weak-map');
3
2
  require('../../modules/esnext.weak-map.from');
4
3
  require('../../modules/esnext.weak-map.of');
5
4
  require('../../modules/esnext.weak-map.delete-all');
6
5
  require('../../modules/esnext.weak-map.upsert');
6
+
7
+ module.exports = parent;
@@ -1,6 +1,7 @@
1
- module.exports = require('../../es/weak-set');
2
-
1
+ var parent = require('../../es/weak-set');
3
2
  require('../../modules/esnext.weak-set.add-all');
4
3
  require('../../modules/esnext.weak-set.delete-all');
5
4
  require('../../modules/esnext.weak-set.from');
6
5
  require('../../modules/esnext.weak-set.of');
6
+
7
+ module.exports = parent;
package/index.js CHANGED
@@ -1,5 +1,6 @@
1
1
  require('./es');
2
2
  require('./proposals');
3
3
  require('./web');
4
+ var path = require('./internals/path');
4
5
 
5
- module.exports = require('./internals/path');
6
+ module.exports = path;
@@ -68,7 +68,7 @@ var aTypedArrayConstructor = function (C) {
68
68
  } throw TypeError('Target is not a typed array constructor');
69
69
  };
70
70
 
71
- var exportProto = function (KEY, property, forced) {
71
+ var exportTypedArrayMethod = function (KEY, property, forced) {
72
72
  if (!DESCRIPTORS) return;
73
73
  if (forced) for (var ARRAY in TypedArrayConstructorsList) {
74
74
  var TypedArrayConstructor = global[ARRAY];
@@ -82,7 +82,7 @@ var exportProto = function (KEY, property, forced) {
82
82
  }
83
83
  };
84
84
 
85
- var exportStatic = function (KEY, property, forced) {
85
+ var exportTypedArrayStaticMethod = function (KEY, property, forced) {
86
86
  var ARRAY, TypedArrayConstructor;
87
87
  if (!DESCRIPTORS) return;
88
88
  if (setPrototypeOf) {
@@ -155,8 +155,8 @@ module.exports = {
155
155
  TYPED_ARRAY_TAG: TYPED_ARRAY_TAG_REQIRED && TYPED_ARRAY_TAG,
156
156
  aTypedArray: aTypedArray,
157
157
  aTypedArrayConstructor: aTypedArrayConstructor,
158
- exportProto: exportProto,
159
- exportStatic: exportStatic,
158
+ exportTypedArrayMethod: exportTypedArrayMethod,
159
+ exportTypedArrayStaticMethod: exportTypedArrayStaticMethod,
160
160
  isView: isView,
161
161
  isTypedArray: isTypedArray,
162
162
  TypedArray: TypedArray,
@@ -9,6 +9,7 @@ var anInstance = require('../internals/an-instance');
9
9
  var toInteger = require('../internals/to-integer');
10
10
  var toLength = require('../internals/to-length');
11
11
  var toIndex = require('../internals/to-index');
12
+ var IEEE754 = require('../internals/ieee754');
12
13
  var getOwnPropertyNames = require('../internals/object-get-own-property-names').f;
13
14
  var defineProperty = require('../internals/object-define-property').f;
14
15
  var arrayFill = require('../internals/array-fill');
@@ -25,95 +26,10 @@ var WRONG_INDEX = 'Wrong index';
25
26
  var NativeArrayBuffer = global[ARRAY_BUFFER];
26
27
  var $ArrayBuffer = NativeArrayBuffer;
27
28
  var $DataView = global[DATA_VIEW];
28
- var Math = global.Math;
29
29
  var RangeError = global.RangeError;
30
- // eslint-disable-next-line no-shadow-restricted-names
31
- var Infinity = 1 / 0;
32
- var abs = Math.abs;
33
- var pow = Math.pow;
34
- var floor = Math.floor;
35
- var log = Math.log;
36
- var LN2 = Math.LN2;
37
30
 
38
- // IEEE754 conversions based on https://github.com/feross/ieee754
39
- var packIEEE754 = function (number, mantissaLength, bytes) {
40
- var buffer = new Array(bytes);
41
- var exponentLength = bytes * 8 - mantissaLength - 1;
42
- var eMax = (1 << exponentLength) - 1;
43
- var eBias = eMax >> 1;
44
- var rt = mantissaLength === 23 ? pow(2, -24) - pow(2, -77) : 0;
45
- var sign = number < 0 || number === 0 && 1 / number < 0 ? 1 : 0;
46
- var index = 0;
47
- var exponent, mantissa, c;
48
- number = abs(number);
49
- // eslint-disable-next-line no-self-compare
50
- if (number != number || number === Infinity) {
51
- // eslint-disable-next-line no-self-compare
52
- mantissa = number != number ? 1 : 0;
53
- exponent = eMax;
54
- } else {
55
- exponent = floor(log(number) / LN2);
56
- if (number * (c = pow(2, -exponent)) < 1) {
57
- exponent--;
58
- c *= 2;
59
- }
60
- if (exponent + eBias >= 1) {
61
- number += rt / c;
62
- } else {
63
- number += rt * pow(2, 1 - eBias);
64
- }
65
- if (number * c >= 2) {
66
- exponent++;
67
- c /= 2;
68
- }
69
- if (exponent + eBias >= eMax) {
70
- mantissa = 0;
71
- exponent = eMax;
72
- } else if (exponent + eBias >= 1) {
73
- mantissa = (number * c - 1) * pow(2, mantissaLength);
74
- exponent = exponent + eBias;
75
- } else {
76
- mantissa = number * pow(2, eBias - 1) * pow(2, mantissaLength);
77
- exponent = 0;
78
- }
79
- }
80
- for (; mantissaLength >= 8; buffer[index++] = mantissa & 255, mantissa /= 256, mantissaLength -= 8);
81
- exponent = exponent << mantissaLength | mantissa;
82
- exponentLength += mantissaLength;
83
- for (; exponentLength > 0; buffer[index++] = exponent & 255, exponent /= 256, exponentLength -= 8);
84
- buffer[--index] |= sign * 128;
85
- return buffer;
86
- };
87
-
88
- var unpackIEEE754 = function (buffer, mantissaLength) {
89
- var bytes = buffer.length;
90
- var exponentLength = bytes * 8 - mantissaLength - 1;
91
- var eMax = (1 << exponentLength) - 1;
92
- var eBias = eMax >> 1;
93
- var nBits = exponentLength - 7;
94
- var index = bytes - 1;
95
- var sign = buffer[index--];
96
- var exponent = sign & 127;
97
- var mantissa;
98
- sign >>= 7;
99
- for (; nBits > 0; exponent = exponent * 256 + buffer[index], index--, nBits -= 8);
100
- mantissa = exponent & (1 << -nBits) - 1;
101
- exponent >>= -nBits;
102
- nBits += mantissaLength;
103
- for (; nBits > 0; mantissa = mantissa * 256 + buffer[index], index--, nBits -= 8);
104
- if (exponent === 0) {
105
- exponent = 1 - eBias;
106
- } else if (exponent === eMax) {
107
- return mantissa ? NaN : sign ? -Infinity : Infinity;
108
- } else {
109
- mantissa = mantissa + pow(2, mantissaLength);
110
- exponent = exponent - eBias;
111
- } return (sign ? -1 : 1) * mantissa * pow(2, exponent - mantissaLength);
112
- };
113
-
114
- var unpackInt32 = function (buffer) {
115
- return buffer[3] << 24 | buffer[2] << 16 | buffer[1] << 8 | buffer[0];
116
- };
31
+ var packIEEE754 = IEEE754.pack;
32
+ var unpackIEEE754 = IEEE754.unpack;
117
33
 
118
34
  var packInt8 = function (number) {
119
35
  return [number & 0xFF];
@@ -127,6 +43,10 @@ var packInt32 = function (number) {
127
43
  return [number & 0xFF, number >> 8 & 0xFF, number >> 16 & 0xFF, number >> 24 & 0xFF];
128
44
  };
129
45
 
46
+ var unpackInt32 = function (buffer) {
47
+ return buffer[3] << 24 | buffer[2] << 16 | buffer[1] << 8 | buffer[0];
48
+ };
49
+
130
50
  var packFloat32 = function (number) {
131
51
  return packIEEE754(number, 23, 4);
132
52
  };
@@ -140,8 +60,7 @@ var addGetter = function (Constructor, key) {
140
60
  };
141
61
 
142
62
  var get = function (view, count, index, isLittleEndian) {
143
- var numIndex = +index;
144
- var intIndex = toIndex(numIndex);
63
+ var intIndex = toIndex(index);
145
64
  var store = getInternalState(view);
146
65
  if (intIndex + count > store.byteLength) throw RangeError(WRONG_INDEX);
147
66
  var bytes = getInternalState(store.buffer).bytes;
@@ -151,8 +70,7 @@ var get = function (view, count, index, isLittleEndian) {
151
70
  };
152
71
 
153
72
  var set = function (view, count, index, conversion, value, isLittleEndian) {
154
- var numIndex = +index;
155
- var intIndex = toIndex(numIndex);
73
+ var intIndex = toIndex(index);
156
74
  var store = getInternalState(view);
157
75
  if (intIndex + count > store.byteLength) throw RangeError(WRONG_INDEX);
158
76
  var bytes = getInternalState(store.buffer).bytes;
@@ -1,3 +1,4 @@
1
+ var TO_STRING_TAG_SUPPORT = require('../internals/to-string-tag-support');
1
2
  var classofRaw = require('../internals/classof-raw');
2
3
  var wellKnownSymbol = require('../internals/well-known-symbol');
3
4
 
@@ -13,7 +14,7 @@ var tryGet = function (it, key) {
13
14
  };
14
15
 
15
16
  // getting tag from ES6+ `Object.prototype.toString`
16
- module.exports = function (it) {
17
+ module.exports = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
17
18
  var O, tag, result;
18
19
  return it === undefined ? 'Undefined' : it === null ? 'Null'
19
20
  // @@toStringTag case
@@ -12,11 +12,13 @@ var checkCorrectnessOfIteration = require('../internals/check-correctness-of-ite
12
12
  var setToStringTag = require('../internals/set-to-string-tag');
13
13
  var inheritIfRequired = require('../internals/inherit-if-required');
14
14
 
15
- module.exports = function (CONSTRUCTOR_NAME, wrapper, common, IS_MAP, IS_WEAK) {
15
+ module.exports = function (CONSTRUCTOR_NAME, wrapper, common) {
16
+ var IS_MAP = CONSTRUCTOR_NAME.indexOf('Map') !== -1;
17
+ var IS_WEAK = CONSTRUCTOR_NAME.indexOf('Weak') !== -1;
18
+ var ADDER = IS_MAP ? 'set' : 'add';
16
19
  var NativeConstructor = global[CONSTRUCTOR_NAME];
17
20
  var NativePrototype = NativeConstructor && NativeConstructor.prototype;
18
21
  var Constructor = NativeConstructor;
19
- var ADDER = IS_MAP ? 'set' : 'add';
20
22
  var exported = {};
21
23
 
22
24
  var fixMethod = function (KEY) {
@@ -0,0 +1,88 @@
1
+ // IEEE754 conversions based on https://github.com/feross/ieee754
2
+ // eslint-disable-next-line no-shadow-restricted-names
3
+ var Infinity = 1 / 0;
4
+ var abs = Math.abs;
5
+ var pow = Math.pow;
6
+ var floor = Math.floor;
7
+ var log = Math.log;
8
+ var LN2 = Math.LN2;
9
+
10
+ var pack = function (number, mantissaLength, bytes) {
11
+ var buffer = new Array(bytes);
12
+ var exponentLength = bytes * 8 - mantissaLength - 1;
13
+ var eMax = (1 << exponentLength) - 1;
14
+ var eBias = eMax >> 1;
15
+ var rt = mantissaLength === 23 ? pow(2, -24) - pow(2, -77) : 0;
16
+ var sign = number < 0 || number === 0 && 1 / number < 0 ? 1 : 0;
17
+ var index = 0;
18
+ var exponent, mantissa, c;
19
+ number = abs(number);
20
+ // eslint-disable-next-line no-self-compare
21
+ if (number != number || number === Infinity) {
22
+ // eslint-disable-next-line no-self-compare
23
+ mantissa = number != number ? 1 : 0;
24
+ exponent = eMax;
25
+ } else {
26
+ exponent = floor(log(number) / LN2);
27
+ if (number * (c = pow(2, -exponent)) < 1) {
28
+ exponent--;
29
+ c *= 2;
30
+ }
31
+ if (exponent + eBias >= 1) {
32
+ number += rt / c;
33
+ } else {
34
+ number += rt * pow(2, 1 - eBias);
35
+ }
36
+ if (number * c >= 2) {
37
+ exponent++;
38
+ c /= 2;
39
+ }
40
+ if (exponent + eBias >= eMax) {
41
+ mantissa = 0;
42
+ exponent = eMax;
43
+ } else if (exponent + eBias >= 1) {
44
+ mantissa = (number * c - 1) * pow(2, mantissaLength);
45
+ exponent = exponent + eBias;
46
+ } else {
47
+ mantissa = number * pow(2, eBias - 1) * pow(2, mantissaLength);
48
+ exponent = 0;
49
+ }
50
+ }
51
+ for (; mantissaLength >= 8; buffer[index++] = mantissa & 255, mantissa /= 256, mantissaLength -= 8);
52
+ exponent = exponent << mantissaLength | mantissa;
53
+ exponentLength += mantissaLength;
54
+ for (; exponentLength > 0; buffer[index++] = exponent & 255, exponent /= 256, exponentLength -= 8);
55
+ buffer[--index] |= sign * 128;
56
+ return buffer;
57
+ };
58
+
59
+ var unpack = function (buffer, mantissaLength) {
60
+ var bytes = buffer.length;
61
+ var exponentLength = bytes * 8 - mantissaLength - 1;
62
+ var eMax = (1 << exponentLength) - 1;
63
+ var eBias = eMax >> 1;
64
+ var nBits = exponentLength - 7;
65
+ var index = bytes - 1;
66
+ var sign = buffer[index--];
67
+ var exponent = sign & 127;
68
+ var mantissa;
69
+ sign >>= 7;
70
+ for (; nBits > 0; exponent = exponent * 256 + buffer[index], index--, nBits -= 8);
71
+ mantissa = exponent & (1 << -nBits) - 1;
72
+ exponent >>= -nBits;
73
+ nBits += mantissaLength;
74
+ for (; nBits > 0; mantissa = mantissa * 256 + buffer[index], index--, nBits -= 8);
75
+ if (exponent === 0) {
76
+ exponent = 1 - eBias;
77
+ } else if (exponent === eMax) {
78
+ return mantissa ? NaN : sign ? -Infinity : Infinity;
79
+ } else {
80
+ mantissa = mantissa + pow(2, mantissaLength);
81
+ exponent = exponent - eBias;
82
+ } return (sign ? -1 : 1) * mantissa * pow(2, exponent - mantissaLength);
83
+ };
84
+
85
+ module.exports = {
86
+ pack: pack,
87
+ unpack: unpack
88
+ };
@@ -0,0 +1,7 @@
1
+ var shared = require('../internals/shared');
2
+
3
+ var functionToString = Function.toString;
4
+
5
+ module.exports = shared('inspectSource', function (it) {
6
+ return functionToString.call(it);
7
+ });
@@ -1,6 +1,6 @@
1
1
  var global = require('../internals/global');
2
- var nativeFunctionToString = require('../internals/function-to-string');
2
+ var inspectSource = require('../internals/inspect-source');
3
3
 
4
4
  var WeakMap = global.WeakMap;
5
5
 
6
- module.exports = typeof WeakMap === 'function' && /native code/.test(nativeFunctionToString.call(WeakMap));
6
+ module.exports = typeof WeakMap === 'function' && /native code/.test(inspectSource(WeakMap));
@@ -8,11 +8,22 @@ var toObject = require('../internals/to-object');
8
8
  var IndexedObject = require('../internals/indexed-object');
9
9
 
10
10
  var nativeAssign = Object.assign;
11
+ var defineProperty = Object.defineProperty;
11
12
 
12
13
  // `Object.assign` method
13
14
  // https://tc39.github.io/ecma262/#sec-object.assign
14
- // should work with symbols and should have deterministic property order (V8 bug)
15
15
  module.exports = !nativeAssign || fails(function () {
16
+ // should have correct order of operations (Edge bug)
17
+ if (DESCRIPTORS && nativeAssign({ b: 1 }, nativeAssign(defineProperty({}, 'a', {
18
+ enumerable: true,
19
+ get: function () {
20
+ defineProperty(this, 'b', {
21
+ value: 3,
22
+ enumerable: false
23
+ });
24
+ }
25
+ }), { b: 2 })).b !== 1) return true;
26
+ // should work with symbols and should have deterministic property order (V8 bug)
16
27
  var A = {};
17
28
  var B = {};
18
29
  // eslint-disable-next-line no-undef
@@ -1,14 +1,9 @@
1
1
  'use strict';
2
+ var TO_STRING_TAG_SUPPORT = require('../internals/to-string-tag-support');
2
3
  var classof = require('../internals/classof');
3
- var wellKnownSymbol = require('../internals/well-known-symbol');
4
-
5
- var TO_STRING_TAG = wellKnownSymbol('toStringTag');
6
- var test = {};
7
-
8
- test[TO_STRING_TAG] = 'z';
9
4
 
10
5
  // `Object.prototype.toString` method implementation
11
6
  // https://tc39.github.io/ecma262/#sec-object.prototype.tostring
12
- module.exports = String(test) !== '[object z]' ? function toString() {
7
+ module.exports = TO_STRING_TAG_SUPPORT ? {}.toString : function toString() {
13
8
  return '[object ' + classof(this) + ']';
14
- } : test.toString;
9
+ };
package/internals/path.js CHANGED
@@ -1 +1,3 @@
1
- module.exports = require('../internals/global');
1
+ var global = require('../internals/global');
2
+
3
+ module.exports = global;