built-in-definitions.js 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. exports.definitions = void 0;
  6. const ArrayNatureIterators = ["es6.object.to-string", "es6.array.iterator", "web.dom.iterable"];
  7. const CommonIterators = ["es6.string.iterator"].concat(ArrayNatureIterators);
  8. const definitions = {
  9. builtins: {
  10. DataView: "es6.typed.data-view",
  11. Float32Array: "es6.typed.float32-array",
  12. Float64Array: "es6.typed.float64-array",
  13. Int8Array: "es6.typed.int8-array",
  14. Int16Array: "es6.typed.int16-array",
  15. Int32Array: "es6.typed.int32-array",
  16. Map: ["es6.map"].concat(CommonIterators),
  17. Number: "es6.number.constructor",
  18. Promise: ["es6.object.to-string", "es6.promise"],
  19. RegExp: ["es6.regexp.constructor"],
  20. Set: ["es6.set"].concat(CommonIterators),
  21. Symbol: ["es6.symbol", "es7.symbol.async-iterator"],
  22. Uint8Array: "es6.typed.uint8-array",
  23. Uint8ClampedArray: "es6.typed.uint8-clamped-array",
  24. Uint16Array: "es6.typed.uint16-array",
  25. Uint32Array: "es6.typed.uint32-array",
  26. WeakMap: ["es6.weak-map"].concat(CommonIterators),
  27. WeakSet: ["es6.weak-set"].concat(CommonIterators)
  28. },
  29. instanceMethods: {
  30. __defineGetter__: ["es7.object.define-getter"],
  31. __defineSetter__: ["es7.object.define-setter"],
  32. __lookupGetter__: ["es7.object.lookup-getter"],
  33. __lookupSetter__: ["es7.object.lookup-setter"],
  34. anchor: ["es6.string.anchor"],
  35. big: ["es6.string.big"],
  36. bind: ["es6.function.bind"],
  37. blink: ["es6.string.blink"],
  38. bold: ["es6.string.bold"],
  39. codePointAt: ["es6.string.code-point-at"],
  40. copyWithin: ["es6.array.copy-within"],
  41. endsWith: ["es6.string.ends-with"],
  42. entries: ArrayNatureIterators,
  43. every: ["es6.array.is-array"],
  44. fill: ["es6.array.fill"],
  45. filter: ["es6.array.filter"],
  46. finally: ["es7.promise.finally"],
  47. find: ["es6.array.find"],
  48. findIndex: ["es6.array.find-index"],
  49. fixed: ["es6.string.fixed"],
  50. flags: ["es6.regexp.flags"],
  51. fontcolor: ["es6.string.fontcolor"],
  52. fontsize: ["es6.string.fontsize"],
  53. forEach: ["es6.array.for-each", "web.dom.iterable"],
  54. includes: ["es6.string.includes", "es7.array.includes"],
  55. indexOf: ["es6.array.index-of"],
  56. italics: ["es6.string.italics"],
  57. keys: ArrayNatureIterators,
  58. lastIndexOf: ["es6.array.last-index-of"],
  59. link: ["es6.string.link"],
  60. map: ["es6.array.map"],
  61. match: ["es6.regexp.match"],
  62. name: ["es6.function.name"],
  63. padStart: ["es7.string.pad-start"],
  64. padEnd: ["es7.string.pad-end"],
  65. reduce: ["es6.array.reduce"],
  66. reduceRight: ["es6.array.reduce-right"],
  67. repeat: ["es6.string.repeat"],
  68. replace: ["es6.regexp.replace"],
  69. search: ["es6.regexp.search"],
  70. slice: ["es6.array.slice"],
  71. small: ["es6.string.small"],
  72. some: ["es6.array.some"],
  73. sort: ["es6.array.sort"],
  74. split: ["es6.regexp.split"],
  75. startsWith: ["es6.string.starts-with"],
  76. strike: ["es6.string.strike"],
  77. sub: ["es6.string.sub"],
  78. sup: ["es6.string.sup"],
  79. toISOString: ["es6.date.to-iso-string"],
  80. toJSON: ["es6.date.to-json"],
  81. toString: ["es6.object.to-string", "es6.date.to-string", "es6.regexp.to-string"],
  82. trim: ["es6.string.trim"],
  83. values: ArrayNatureIterators
  84. },
  85. staticMethods: {
  86. Array: {
  87. from: ["es6.array.from", "es6.string.iterator"],
  88. isArray: "es6.array.is-array",
  89. of: "es6.array.of"
  90. },
  91. Date: {
  92. now: "es6.date.now"
  93. },
  94. Object: {
  95. assign: "es6.object.assign",
  96. create: "es6.object.create",
  97. defineProperty: "es6.object.define-property",
  98. defineProperties: "es6.object.define-properties",
  99. entries: "es7.object.entries",
  100. freeze: "es6.object.freeze",
  101. getOwnPropertyDescriptors: "es7.object.get-own-property-descriptors",
  102. getOwnPropertySymbols: "es6.object.get-own-property-symbols",
  103. is: "es6.object.is",
  104. isExtensible: "es6.object.is-extensible",
  105. isFrozen: "es6.object.is-frozen",
  106. isSealed: "es6.object.is-sealed",
  107. keys: "es6.object.keys",
  108. preventExtensions: "es6.object.prevent-extensions",
  109. seal: "es6.object.seal",
  110. setPrototypeOf: "es6.object.set-prototype-of",
  111. values: "es7.object.values"
  112. },
  113. Math: {
  114. acosh: "es6.math.acosh",
  115. asinh: "es6.math.asinh",
  116. atanh: "es6.math.atanh",
  117. cbrt: "es6.math.cbrt",
  118. clz32: "es6.math.clz32",
  119. cosh: "es6.math.cosh",
  120. expm1: "es6.math.expm1",
  121. fround: "es6.math.fround",
  122. hypot: "es6.math.hypot",
  123. imul: "es6.math.imul",
  124. log1p: "es6.math.log1p",
  125. log10: "es6.math.log10",
  126. log2: "es6.math.log2",
  127. sign: "es6.math.sign",
  128. sinh: "es6.math.sinh",
  129. tanh: "es6.math.tanh",
  130. trunc: "es6.math.trunc"
  131. },
  132. String: {
  133. fromCodePoint: "es6.string.from-code-point",
  134. raw: "es6.string.raw"
  135. },
  136. Number: {
  137. EPSILON: "es6.number.epsilon",
  138. MIN_SAFE_INTEGER: "es6.number.min-safe-integer",
  139. MAX_SAFE_INTEGER: "es6.number.max-safe-integer",
  140. isFinite: "es6.number.is-finite",
  141. isInteger: "es6.number.is-integer",
  142. isSafeInteger: "es6.number.is-safe-integer",
  143. isNaN: "es6.number.is-nan",
  144. parseFloat: "es6.number.parse-float",
  145. parseInt: "es6.number.parse-int"
  146. },
  147. Promise: {
  148. all: CommonIterators,
  149. race: CommonIterators
  150. },
  151. Reflect: {
  152. apply: "es6.reflect.apply",
  153. construct: "es6.reflect.construct",
  154. defineProperty: "es6.reflect.define-property",
  155. deleteProperty: "es6.reflect.delete-property",
  156. get: "es6.reflect.get",
  157. getOwnPropertyDescriptor: "es6.reflect.get-own-property-descriptor",
  158. getPrototypeOf: "es6.reflect.get-prototype-of",
  159. has: "es6.reflect.has",
  160. isExtensible: "es6.reflect.is-extensible",
  161. ownKeys: "es6.reflect.own-keys",
  162. preventExtensions: "es6.reflect.prevent-extensions",
  163. set: "es6.reflect.set",
  164. setPrototypeOf: "es6.reflect.set-prototype-of"
  165. }
  166. }
  167. };
  168. exports.definitions = definitions;