From 8e27eeeec62d4c1a42b8cb1869f46f9d6012aab7 Mon Sep 17 00:00:00 2001 From: "Namhyeon, Go" Date: Tue, 28 Dec 2021 15:25:49 +0900 Subject: [PATCH] Create wasm.js --- lib/wasm.js | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 lib/wasm.js diff --git a/lib/wasm.js b/lib/wasm.js new file mode 100644 index 0000000..5ff090d --- /dev/null +++ b/lib/wasm.js @@ -0,0 +1,25 @@ +// WebAssembly Module for WelsonJS (Based on Microsoft JScript) + +var WebAssemblyObject = function() { + this.instantiate = function(bufferSource, importObject) { + // ... todo ... + }; + + this.instantiateStreaming = function(source, importObject) { + // ... todo ... + }; + + this.compile = function(bufferSource) { + // ... todo ... + }; + + this.compileStreaming = function(source) { + // ... todo ... + }; + + this.validate = function(bufferSource) { + // ... todo ... + }; +}; + +exports.WebAssembly = new WebAssemblyObject();