mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-16 08:21:44 +00:00
Initial element access compilation; Carefully approaching std array
This commit is contained in:
@ -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
|
||||
}
|
||||
});
|
||||
|
Reference in New Issue
Block a user