mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-14 23:41:30 +00:00
Namespaced imports
This commit is contained in:
@ -61,7 +61,12 @@ glob.sync(filter, { cwd: __dirname + "/compiler" }).forEach(filename => {
|
||||
var wasmModule = new WebAssembly.Module(module.toBinary());
|
||||
var wasmInstance = new WebAssembly.Instance(wasmModule, {
|
||||
env: {
|
||||
external: function() {}
|
||||
externalFunc: function() {},
|
||||
externalConst: 1
|
||||
},
|
||||
external: {
|
||||
externalFunc: function() {},
|
||||
externalConst: 2
|
||||
}
|
||||
});
|
||||
console.log(chalk.default.green("instantiate OK"));
|
||||
|
Reference in New Issue
Block a user