definitions.js 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191
  1. "use strict";
  2. module.exports = {
  3. builtins: {
  4. Symbol: "symbol",
  5. Promise: "promise",
  6. Map: "map",
  7. WeakMap: "weak-map",
  8. Set: "set",
  9. WeakSet: "weak-set",
  10. Observable: "observable",
  11. setImmediate: "set-immediate",
  12. clearImmediate: "clear-immediate",
  13. asap: "asap"
  14. },
  15. methods: {
  16. Array: {
  17. concat: "array/concat",
  18. copyWithin: "array/copy-within",
  19. entries: "array/entries",
  20. every: "array/every",
  21. fill: "array/fill",
  22. filter: "array/filter",
  23. findIndex: "array/find-index",
  24. find: "array/find",
  25. forEach: "array/for-each",
  26. from: "array/from",
  27. includes: "array/includes",
  28. indexOf: "array/index-of",
  29. join: "array/join",
  30. keys: "array/keys",
  31. lastIndexOf: "array/last-index-of",
  32. map: "array/map",
  33. of: "array/of",
  34. pop: "array/pop",
  35. push: "array/push",
  36. reduceRight: "array/reduce-right",
  37. reduce: "array/reduce",
  38. reverse: "array/reverse",
  39. shift: "array/shift",
  40. slice: "array/slice",
  41. some: "array/some",
  42. sort: "array/sort",
  43. splice: "array/splice",
  44. unshift: "array/unshift",
  45. values: "array/values"
  46. },
  47. JSON: {
  48. stringify: "json/stringify"
  49. },
  50. Object: {
  51. assign: "object/assign",
  52. create: "object/create",
  53. defineProperties: "object/define-properties",
  54. defineProperty: "object/define-property",
  55. entries: "object/entries",
  56. freeze: "object/freeze",
  57. getOwnPropertyDescriptor: "object/get-own-property-descriptor",
  58. getOwnPropertyDescriptors: "object/get-own-property-descriptors",
  59. getOwnPropertyNames: "object/get-own-property-names",
  60. getOwnPropertySymbols: "object/get-own-property-symbols",
  61. getPrototypeOf: "object/get-prototype-of",
  62. isExtensible: "object/is-extensible",
  63. isFrozen: "object/is-frozen",
  64. isSealed: "object/is-sealed",
  65. is: "object/is",
  66. keys: "object/keys",
  67. preventExtensions: "object/prevent-extensions",
  68. seal: "object/seal",
  69. setPrototypeOf: "object/set-prototype-of",
  70. values: "object/values"
  71. },
  72. RegExp: {
  73. escape: "regexp/escape" },
  74. Math: {
  75. acosh: "math/acosh",
  76. asinh: "math/asinh",
  77. atanh: "math/atanh",
  78. cbrt: "math/cbrt",
  79. clz32: "math/clz32",
  80. cosh: "math/cosh",
  81. expm1: "math/expm1",
  82. fround: "math/fround",
  83. hypot: "math/hypot",
  84. imul: "math/imul",
  85. log10: "math/log10",
  86. log1p: "math/log1p",
  87. log2: "math/log2",
  88. sign: "math/sign",
  89. sinh: "math/sinh",
  90. tanh: "math/tanh",
  91. trunc: "math/trunc",
  92. iaddh: "math/iaddh",
  93. isubh: "math/isubh",
  94. imulh: "math/imulh",
  95. umulh: "math/umulh"
  96. },
  97. Symbol: {
  98. for: "symbol/for",
  99. hasInstance: "symbol/has-instance",
  100. isConcatSpreadable: "symbol/is-concat-spreadable",
  101. iterator: "symbol/iterator",
  102. keyFor: "symbol/key-for",
  103. match: "symbol/match",
  104. replace: "symbol/replace",
  105. search: "symbol/search",
  106. species: "symbol/species",
  107. split: "symbol/split",
  108. toPrimitive: "symbol/to-primitive",
  109. toStringTag: "symbol/to-string-tag",
  110. unscopables: "symbol/unscopables"
  111. },
  112. String: {
  113. at: "string/at",
  114. codePointAt: "string/code-point-at",
  115. endsWith: "string/ends-with",
  116. fromCodePoint: "string/from-code-point",
  117. includes: "string/includes",
  118. matchAll: "string/match-all",
  119. padLeft: "string/pad-left",
  120. padRight: "string/pad-right",
  121. padStart: "string/pad-start",
  122. padEnd: "string/pad-end",
  123. raw: "string/raw",
  124. repeat: "string/repeat",
  125. startsWith: "string/starts-with",
  126. trim: "string/trim",
  127. trimLeft: "string/trim-left",
  128. trimRight: "string/trim-right",
  129. trimStart: "string/trim-start",
  130. trimEnd: "string/trim-end"
  131. },
  132. Number: {
  133. EPSILON: "number/epsilon",
  134. isFinite: "number/is-finite",
  135. isInteger: "number/is-integer",
  136. isNaN: "number/is-nan",
  137. isSafeInteger: "number/is-safe-integer",
  138. MAX_SAFE_INTEGER: "number/max-safe-integer",
  139. MIN_SAFE_INTEGER: "number/min-safe-integer",
  140. parseFloat: "number/parse-float",
  141. parseInt: "number/parse-int"
  142. },
  143. Reflect: {
  144. apply: "reflect/apply",
  145. construct: "reflect/construct",
  146. defineProperty: "reflect/define-property",
  147. deleteProperty: "reflect/delete-property",
  148. enumerate: "reflect/enumerate",
  149. getOwnPropertyDescriptor: "reflect/get-own-property-descriptor",
  150. getPrototypeOf: "reflect/get-prototype-of",
  151. get: "reflect/get",
  152. has: "reflect/has",
  153. isExtensible: "reflect/is-extensible",
  154. ownKeys: "reflect/own-keys",
  155. preventExtensions: "reflect/prevent-extensions",
  156. setPrototypeOf: "reflect/set-prototype-of",
  157. set: "reflect/set",
  158. defineMetadata: "reflect/define-metadata",
  159. deleteMetadata: "reflect/delete-metadata",
  160. getMetadata: "reflect/get-metadata",
  161. getMetadataKeys: "reflect/get-metadata-keys",
  162. getOwnMetadata: "reflect/get-own-metadata",
  163. getOwnMetadataKeys: "reflect/get-own-metadata-keys",
  164. hasMetadata: "reflect/has-metadata",
  165. hasOwnMetadata: "reflect/has-own-metadata",
  166. metadata: "reflect/metadata"
  167. },
  168. System: {
  169. global: "system/global"
  170. },
  171. Error: {
  172. isError: "error/is-error" },
  173. Date: {},
  174. Function: {}
  175. }
  176. };