Initial element access compilation; Carefully approaching std array

This commit is contained in:
dcodeIO
2018-01-13 23:38:07 +01:00
parent dd596b015d
commit 2c009c67d3
21 changed files with 9914 additions and 88 deletions

View File

@ -72,11 +72,15 @@ glob.sync(filter, { cwd: __dirname + "/compiler" }).forEach(filename => {
var wasmModule = new WebAssembly.Module(binary);
var wasmInstance = new WebAssembly.Instance(wasmModule, {
env: {
externalFunc: function() {},
externalFunc: function(arg0, arg1, arg2) {
console.log("env.externalFunc called with: " + arg0 + ", " + arg1 + ", " + arg2);
},
externalConst: 1
},
external: {
externalFunc: function() {},
externalFunc: function(arg0, arg1, arg2) {
console.log("external.externalFunc called with: " + arg0 + ", " + arg1 + ", " + arg2);
},
externalConst: 2
}
});