mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-16 16:31:32 +00:00
Initial instance methods and field layout; More cleanup
This commit is contained in:
@ -9,8 +9,9 @@ var func = mod.addFunction("test", funcType, [],
|
||||
)
|
||||
])
|
||||
);
|
||||
mod.addExport("test", func);
|
||||
mod.addFunctionExport("test", "test", func);
|
||||
|
||||
console.log(mod.emitText());
|
||||
if (mod.validate())
|
||||
console.log("-> validates");
|
||||
mod.emitBinary(); // -> Assertion failed: mappedGlobals.count(name), at: binaryen/src/wasm/wasm-binary.cpp,355,getGlobalIndex at Error
|
||||
|
Reference in New Issue
Block a user