minimal-env.js 760 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /**
  2. * @param {string} moduleName
  3. * @returns {?}
  4. */
  5. function require(moduleName) {};
  6. /**
  7. * @param {string} name
  8. * @param {Array.<string>} deps
  9. * @param {function(...[*])} f
  10. */
  11. function define(name, deps, f) {};
  12. /**
  13. * @param {number} size
  14. * @constructor
  15. * @extends Array
  16. */
  17. function Buffer(size) {};
  18. /**
  19. * @param {*} buf
  20. * @return {boolean}
  21. */
  22. Buffer.isBuffer = function(buf) {};
  23. /**
  24. * @type {Object.<string,*>}
  25. */
  26. var console = {};
  27. /**
  28. * @param {string} s
  29. */
  30. console.log = function(s) {};
  31. /**
  32. * @type {*}
  33. */
  34. var module = {};
  35. /**
  36. * @param {...*} var_args
  37. * @returns {string}
  38. */
  39. String.fromCodePoint = function(var_args) {};
  40. /**
  41. * @param {number} offset
  42. * @returns {number}
  43. */
  44. String.prototype.codePointAt = function(offset) {};