We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
run
1 parent 086327b commit 03d535dCopy full SHA for 03d535d
1 file changed
src/runtime/runtime_wasm_wasip2.go
@@ -11,15 +11,6 @@ import (
11
12
type timeUnit int64
13
14
-//export wasi:cli/run@0.2.0#run
15
-func __wasi_cli_run_run() uint32 {
16
- // These need to be initialized early so that the heap can be initialized.
17
- heapStart = uintptr(unsafe.Pointer(&heapStartSymbol))
18
- heapEnd = uintptr(wasm_memory_size(0) * wasmPageSize)
19
- run()
20
- return 0
21
-}
22
-
23
//export _initialize
24
func _initialize() {
25
// These need to be initialized early so that the heap can be initialized.
@@ -29,6 +20,12 @@ func _initialize() {
29
initAll()
30
}
31
+//export wasi:cli/run@0.2.0#run
+func __wasi_cli_run_run() uint32 {
+ callMain()
26
+ return 0
27
+}
28
+
32
var args []string
33
34
//go:linkname os_runtime_args os.runtime_args
0 commit comments