dart-archive/wasm

createGlobal is not defined

lexaknyazev opened this issue · 1 comments

The description of WasmGlobal refers to undefined WasmModule.createGlobal methods:
https://github.com/dart-lang/wasm/blob/c29808a450488fa139e6173386444f18ca676317/lib/src/module.dart#L427-L430

Oh, yeah, I changed the api and then forgot to update the comment. test/globals_test.dart shows how to use it. WasmInstanceBuilder.addGlobal returns the global it created. I'll fix the comment.