Nevkontakte
Nevkontakte
The upstream test case added in Go 1.18 for https://github.com/golang/go/issues/48898 is failing in gopherjs too. However, it appears the root cause is different, or at least is masked by https://github.com/gopherjs/gopherjs/issues/1126...
Consider the following program: ```go package main func main() { defer recover() panic(1) } ``` Compare upstream vs gopherjs: ``` $ go run main.go panic: 1 goroutine 1 [running]: main.main()...
Consider the following code: ```go package main import "fmt" func main() { defer func() { fmt.Println(recover()) }() defer func() { fmt.Println(recover()) }() defer panic(2) panic(1) } ``` When executed by...
While GopherJS tends to name JS functions similar to the Go ones, the names in the stack trace don't match exactly, which tends to break code that expects particular formatting...
Note: this is a very rough sketch of a proposal to serve as a reference in other issues, more design work is required to make it fully practical. # Proposal...
GopherJS's zero value for `unsafe.Pointer` is a numeric `0` (I'm guessing for interop with `uintptr`, but not entirely sure). However, this is incompatible with a pointer interface and causes incorrect...
I found following examples that cause the compiler to panic: **Example 1:** `[compiler panic] Unhandled len type: *types.Array` ```go package main func a() *[1]byte { println("side effect") return nil }...
## Background GopherJS ships with a set of "augmentations" to the standard library necessary to support JavaScript runtime. For user convenience, the augmentations are compiled into the `gopherjs` tool and...
This issue is related to https://github.com/golang/go/issues/34395 and https://github.com/golang/go/blob/master/test/fixedbugs/issue34395.go. For a declaration like this: ```go var test = [100 * 1024 * 1024]byte{42} ``` GopherJS will attempt to generate code like...
This is a new feature in 1.16 that allows embedding arbitrary files into Go binaries: https://pkg.go.dev/embed. This can be very useful in GopherJS context for use cases such as embedding...