57 lines
1 KiB
JavaScript
57 lines
1 KiB
JavaScript
"use strict";
|
|
|
|
var performance = {};
|
|
|
|
|
|
|
|
var global = {};
|
|
var require = function(module) {};
|
|
var process = { hrtime: function() {} };
|
|
var __dirname = "";
|
|
|
|
var exports = {};
|
|
var define = {};
|
|
var module = {};
|
|
|
|
/**
|
|
* @param {string} name
|
|
* @param {function()} processor
|
|
*/
|
|
var registerProcessor = function(name, processor) {};
|
|
|
|
/** @const */
|
|
var currentTime = 0;
|
|
|
|
/** @const */
|
|
var sampleRate = 0;
|
|
|
|
|
|
var WebAssembly = {
|
|
Memory() {},
|
|
Table() {},
|
|
instantiate() { return { instance: null, module: null }; },
|
|
compile() {},
|
|
Instance() {},
|
|
Module() {},
|
|
};
|
|
WebAssembly.Module.customSections = function(module, section) {};
|
|
|
|
var WabtModule = {
|
|
readWasm: function(buf, opt) {},
|
|
generateNames: function() {},
|
|
applyNames: function() {},
|
|
toText: function() {},
|
|
};
|
|
var cs = {
|
|
Capstone: function() {},
|
|
ARCH_X86: 0,
|
|
MODE_16: 0,
|
|
MODE_32: 0,
|
|
disasm: { bytes: "", mnemonic: "", op_str: "", },
|
|
};
|
|
|
|
const Buffer = {
|
|
allocUnsafe : function(length) {},
|
|
from : function(arrayBuffer, byteOffset, length) {},
|
|
};
|