Browse Source

Clean up externs

Fabian 2 years ago
parent
commit
e5adfc93c2
1 changed files with 0 additions and 25 deletions
  1. 0 25
      src/externs.js

+ 0 - 25
src/externs.js

@@ -1,17 +1,7 @@
 "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
@@ -19,23 +9,9 @@ var module = {};
  */
 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() {},
@@ -52,5 +28,4 @@ var cs = {
 
 const Buffer = {
     allocUnsafe : function(length) {},
-    from : function(arrayBuffer, byteOffset, length) {},
 };