run init in a goroutine

This commit is contained in:
Jaden Weiss
2020-02-07 19:20:36 -05:00
committed by Ayke
parent 5d869f6042
commit 0759b70c50
7 changed files with 21 additions and 7 deletions
+4
View File
@@ -22,6 +22,10 @@ func postinit() {}
//export _start
func _start() {
// These need to be initialized early so that the heap can be initialized.
heapStart = uintptr(unsafe.Pointer(&heapStartSymbol))
heapEnd = uintptr(wasm_memory_size(0) * wasmPageSize)
run()
}