Create wasm.js

This commit is contained in:
Namhyeon Go 2021-12-28 15:25:49 +09:00 committed by GitHub
parent 08c5cf7fc0
commit 8e27eeeec6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

25
lib/wasm.js Normal file
View File

@ -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();