externs.js 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. "use strict";
  2. var performance = {};
  3. var global = {};
  4. var require = function(module) {};
  5. var process = { hrtime: function() {} };
  6. var __dirname = "";
  7. var exports = {};
  8. var define = {};
  9. var module = {};
  10. /**
  11. * @param {string} name
  12. * @param {function()} processor
  13. */
  14. var registerProcessor = function(name, processor) {};
  15. /** @const */
  16. var currentTime = 0;
  17. /** @const */
  18. var sampleRate = 0;
  19. var WebAssembly = {
  20. Memory() {},
  21. Table() {},
  22. instantiate() { return { instance: null, module: null }; },
  23. compile() {},
  24. Instance() {},
  25. Module() {},
  26. };
  27. WebAssembly.Module.customSections = function(module, section) {};
  28. var WabtModule = {
  29. readWasm: function(buf, opt) {},
  30. generateNames: function() {},
  31. applyNames: function() {},
  32. toText: function() {},
  33. };
  34. var cs = {
  35. Capstone: function() {},
  36. ARCH_X86: 0,
  37. MODE_16: 0,
  38. MODE_32: 0,
  39. disasm: { bytes: "", mnemonic: "", op_str: "", },
  40. };
  41. const Buffer = {
  42. allocUnsafe : function(length) {},
  43. from : function(arrayBuffer, byteOffset, length) {},
  44. };