runtime-corejs2-definitions.js 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. exports.default = void 0;
  6. var _helpers = require("./helpers");
  7. var _default = runtimeVersion => {
  8. const includeMathModule = (0, _helpers.hasMinVersion)("7.0.1", runtimeVersion);
  9. return {
  10. BuiltIns: {
  11. Symbol: {
  12. stable: true,
  13. path: "symbol"
  14. },
  15. Promise: {
  16. stable: true,
  17. path: "promise"
  18. },
  19. Map: {
  20. stable: true,
  21. path: "map"
  22. },
  23. WeakMap: {
  24. stable: true,
  25. path: "weak-map"
  26. },
  27. Set: {
  28. stable: true,
  29. path: "set"
  30. },
  31. WeakSet: {
  32. stable: true,
  33. path: "weak-set"
  34. },
  35. setImmediate: {
  36. stable: true,
  37. path: "set-immediate"
  38. },
  39. clearImmediate: {
  40. stable: true,
  41. path: "clear-immediate"
  42. },
  43. parseFloat: {
  44. stable: true,
  45. path: "parse-float"
  46. },
  47. parseInt: {
  48. stable: true,
  49. path: "parse-int"
  50. }
  51. },
  52. StaticProperties: Object.assign({
  53. Array: {
  54. from: {
  55. stable: true,
  56. path: "array/from"
  57. },
  58. isArray: {
  59. stable: true,
  60. path: "array/is-array"
  61. },
  62. of: {
  63. stable: true,
  64. path: "array/of"
  65. }
  66. },
  67. JSON: {
  68. stringify: {
  69. stable: true,
  70. path: "json/stringify"
  71. }
  72. },
  73. Object: {
  74. assign: {
  75. stable: true,
  76. path: "object/assign"
  77. },
  78. create: {
  79. stable: true,
  80. path: "object/create"
  81. },
  82. defineProperties: {
  83. stable: true,
  84. path: "object/define-properties"
  85. },
  86. defineProperty: {
  87. stable: true,
  88. path: "object/define-property"
  89. },
  90. entries: {
  91. stable: true,
  92. path: "object/entries"
  93. },
  94. freeze: {
  95. stable: true,
  96. path: "object/freeze"
  97. },
  98. getOwnPropertyDescriptor: {
  99. stable: true,
  100. path: "object/get-own-property-descriptor"
  101. },
  102. getOwnPropertyDescriptors: {
  103. stable: true,
  104. path: "object/get-own-property-descriptors"
  105. },
  106. getOwnPropertyNames: {
  107. stable: true,
  108. path: "object/get-own-property-names"
  109. },
  110. getOwnPropertySymbols: {
  111. stable: true,
  112. path: "object/get-own-property-symbols"
  113. },
  114. getPrototypeOf: {
  115. stable: true,
  116. path: "object/get-prototype-of"
  117. },
  118. isExtensible: {
  119. stable: true,
  120. path: "object/is-extensible"
  121. },
  122. isFrozen: {
  123. stable: true,
  124. path: "object/is-frozen"
  125. },
  126. isSealed: {
  127. stable: true,
  128. path: "object/is-sealed"
  129. },
  130. is: {
  131. stable: true,
  132. path: "object/is"
  133. },
  134. keys: {
  135. stable: true,
  136. path: "object/keys"
  137. },
  138. preventExtensions: {
  139. stable: true,
  140. path: "object/prevent-extensions"
  141. },
  142. seal: {
  143. stable: true,
  144. path: "object/seal"
  145. },
  146. setPrototypeOf: {
  147. stable: true,
  148. path: "object/set-prototype-of"
  149. },
  150. values: {
  151. stable: true,
  152. path: "object/values"
  153. }
  154. }
  155. }, includeMathModule ? {
  156. Math: {
  157. acosh: {
  158. stable: true,
  159. path: "math/acosh"
  160. },
  161. asinh: {
  162. stable: true,
  163. path: "math/asinh"
  164. },
  165. atanh: {
  166. stable: true,
  167. path: "math/atanh"
  168. },
  169. cbrt: {
  170. stable: true,
  171. path: "math/cbrt"
  172. },
  173. clz32: {
  174. stable: true,
  175. path: "math/clz32"
  176. },
  177. cosh: {
  178. stable: true,
  179. path: "math/cosh"
  180. },
  181. expm1: {
  182. stable: true,
  183. path: "math/expm1"
  184. },
  185. fround: {
  186. stable: true,
  187. path: "math/fround"
  188. },
  189. hypot: {
  190. stable: true,
  191. path: "math/hypot"
  192. },
  193. imul: {
  194. stable: true,
  195. path: "math/imul"
  196. },
  197. log10: {
  198. stable: true,
  199. path: "math/log10"
  200. },
  201. log1p: {
  202. stable: true,
  203. path: "math/log1p"
  204. },
  205. log2: {
  206. stable: true,
  207. path: "math/log2"
  208. },
  209. sign: {
  210. stable: true,
  211. path: "math/sign"
  212. },
  213. sinh: {
  214. stable: true,
  215. path: "math/sinh"
  216. },
  217. tanh: {
  218. stable: true,
  219. path: "math/tanh"
  220. },
  221. trunc: {
  222. stable: true,
  223. path: "math/trunc"
  224. }
  225. }
  226. } : {}, {
  227. Symbol: {
  228. for: {
  229. stable: true,
  230. path: "symbol/for"
  231. },
  232. hasInstance: {
  233. stable: true,
  234. path: "symbol/has-instance"
  235. },
  236. isConcatSpreadable: {
  237. stable: true,
  238. path: "symbol/is-concat-spreadable"
  239. },
  240. iterator: {
  241. stable: true,
  242. path: "symbol/iterator"
  243. },
  244. keyFor: {
  245. stable: true,
  246. path: "symbol/key-for"
  247. },
  248. match: {
  249. stable: true,
  250. path: "symbol/match"
  251. },
  252. replace: {
  253. stable: true,
  254. path: "symbol/replace"
  255. },
  256. search: {
  257. stable: true,
  258. path: "symbol/search"
  259. },
  260. species: {
  261. stable: true,
  262. path: "symbol/species"
  263. },
  264. split: {
  265. stable: true,
  266. path: "symbol/split"
  267. },
  268. toPrimitive: {
  269. stable: true,
  270. path: "symbol/to-primitive"
  271. },
  272. toStringTag: {
  273. stable: true,
  274. path: "symbol/to-string-tag"
  275. },
  276. unscopables: {
  277. stable: true,
  278. path: "symbol/unscopables"
  279. }
  280. },
  281. String: {
  282. at: {
  283. stable: true,
  284. path: "string/at"
  285. },
  286. fromCodePoint: {
  287. stable: true,
  288. path: "string/from-code-point"
  289. },
  290. raw: {
  291. stable: true,
  292. path: "string/raw"
  293. }
  294. },
  295. Number: {
  296. EPSILON: {
  297. stable: true,
  298. path: "number/epsilon"
  299. },
  300. isFinite: {
  301. stable: true,
  302. path: "number/is-finite"
  303. },
  304. isInteger: {
  305. stable: true,
  306. path: "number/is-integer"
  307. },
  308. isNaN: {
  309. stable: true,
  310. path: "number/is-nan"
  311. },
  312. isSafeInteger: {
  313. stable: true,
  314. path: "number/is-safe-integer"
  315. },
  316. MAX_SAFE_INTEGER: {
  317. stable: true,
  318. path: "number/max-safe-integer"
  319. },
  320. MIN_SAFE_INTEGER: {
  321. stable: true,
  322. path: "number/min-safe-integer"
  323. },
  324. parseFloat: {
  325. stable: true,
  326. path: "number/parse-float"
  327. },
  328. parseInt: {
  329. stable: true,
  330. path: "number/parse-int"
  331. }
  332. },
  333. Reflect: {
  334. apply: {
  335. stable: true,
  336. path: "reflect/apply"
  337. },
  338. construct: {
  339. stable: true,
  340. path: "reflect/construct"
  341. },
  342. defineProperty: {
  343. stable: true,
  344. path: "reflect/define-property"
  345. },
  346. deleteProperty: {
  347. stable: true,
  348. path: "reflect/delete-property"
  349. },
  350. getOwnPropertyDescriptor: {
  351. stable: true,
  352. path: "reflect/get-own-property-descriptor"
  353. },
  354. getPrototypeOf: {
  355. stable: true,
  356. path: "reflect/get-prototype-of"
  357. },
  358. get: {
  359. stable: true,
  360. path: "reflect/get"
  361. },
  362. has: {
  363. stable: true,
  364. path: "reflect/has"
  365. },
  366. isExtensible: {
  367. stable: true,
  368. path: "reflect/is-extensible"
  369. },
  370. ownKeys: {
  371. stable: true,
  372. path: "reflect/own-keys"
  373. },
  374. preventExtensions: {
  375. stable: true,
  376. path: "reflect/prevent-extensions"
  377. },
  378. setPrototypeOf: {
  379. stable: true,
  380. path: "reflect/set-prototype-of"
  381. },
  382. set: {
  383. stable: true,
  384. path: "reflect/set"
  385. }
  386. },
  387. Date: {
  388. now: {
  389. stable: true,
  390. path: "date/now"
  391. }
  392. }
  393. })
  394. };
  395. };
  396. exports.default = _default;