Clean up externs
This commit is contained in:
parent
3b827ac55d
commit
e5adfc93c2
|
@ -1,17 +1,7 @@
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
var performance = {};
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
var global = {};
|
var global = {};
|
||||||
var require = function(module) {};
|
|
||||||
var process = { hrtime: function() {} };
|
var process = { hrtime: function() {} };
|
||||||
var __dirname = "";
|
|
||||||
|
|
||||||
var exports = {};
|
|
||||||
var define = {};
|
|
||||||
var module = {};
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {string} name
|
* @param {string} name
|
||||||
|
@ -19,23 +9,9 @@ var module = {};
|
||||||
*/
|
*/
|
||||||
var registerProcessor = function(name, processor) {};
|
var registerProcessor = function(name, processor) {};
|
||||||
|
|
||||||
/** @const */
|
|
||||||
var currentTime = 0;
|
|
||||||
|
|
||||||
/** @const */
|
/** @const */
|
||||||
var sampleRate = 0;
|
var sampleRate = 0;
|
||||||
|
|
||||||
|
|
||||||
var WebAssembly = {
|
|
||||||
Memory() {},
|
|
||||||
Table() {},
|
|
||||||
instantiate() { return { instance: null, module: null }; },
|
|
||||||
compile() {},
|
|
||||||
Instance() {},
|
|
||||||
Module() {},
|
|
||||||
};
|
|
||||||
WebAssembly.Module.customSections = function(module, section) {};
|
|
||||||
|
|
||||||
var WabtModule = {
|
var WabtModule = {
|
||||||
readWasm: function(buf, opt) {},
|
readWasm: function(buf, opt) {},
|
||||||
generateNames: function() {},
|
generateNames: function() {},
|
||||||
|
@ -52,5 +28,4 @@ var cs = {
|
||||||
|
|
||||||
const Buffer = {
|
const Buffer = {
|
||||||
allocUnsafe : function(length) {},
|
allocUnsafe : function(length) {},
|
||||||
from : function(arrayBuffer, byteOffset, length) {},
|
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue