[go-nuts] Re: [wasm] net/http crashes application

2019-07-31 Thread Patrick Gaubatz
Hi Jihoon, On Wednesday, July 31, 2019 at 5:58:54 AM UTC+2, Jihoon Chung wrote: > > > Changing doFetch() call in goFetch to "go doFetch()" should work. > You're right, this actually fixes the crashes. Thank you so much! Patrick -- You received this message because you are subscribed to the Go

[go-nuts] [wasm] net/http crashes application

2019-07-30 Thread Patrick Gaubatz
Hi! When compiled to wasm, the following small application involving the net/http client completely crashes the Go runtime: // +build js,wasm package main import ( "fmt" "net/http" "syscall/js" ) func doFetch() { res, err := http.Get("http://localhost:8181";)