externs.js 862 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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. var WebAssembly = {
  11. Memory() {},
  12. Table() {},
  13. instantiate() { return { instance: null, module: null }; },
  14. compile() {},
  15. Instance() {},
  16. Module() {},
  17. };
  18. WebAssembly.Module.customSections = function(module, section) {};
  19. var WabtModule = {
  20. readWasm: function(buf, opt) {},
  21. generateNames: function() {},
  22. applyNames: function() {},
  23. toText: function() {},
  24. };
  25. var cs = {
  26. Capstone: function() {},
  27. ARCH_X86: 0,
  28. MODE_16: 0,
  29. MODE_32: 0,
  30. disasm: { bytes: "", mnemonic: "", op_str: "", },
  31. };
  32. const Buffer = {
  33. allocUnsafe : function(length) {},
  34. from : function(arrayBuffer, byteOffset, length) {},
  35. };