definitions.js 5.9 KB

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