v86/src/externs.js

35 lines
731 B
JavaScript

"use strict";
var performance = {};
var global = {};
var require = function(module) {};
var process = {};
var __dirname = "";
var esprima = { tokenize: {}, parse: {} };
var acorn = { walk: { simple: {} } };
var exports = {};
var define = {};
var module = {};
var WebAssembly = { Memory() {}, Table() {}, instantiate() {}, compile() {}, Instance() {}, Module() {} };
WebAssembly.Module.customSections = function(module, section) {};
var wabt = {
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: "", },
};