cmd/compile: deferring nil function panicked too early on Wasm and AIX #34926
Labels
arch-wasm
WebAssembly issues
FrozenDueToAge
NeedsFix
The path to resolution is known, but the work has not been done.
OS-AIX
What version of Go are you using (
go version
)?tip (06b12e6)
Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?js/wasm, and aix/ppc64
What did you do?
https://play.golang.org/p/6zD83-Dhd1P
What did you expect to see?
The spec requires (https://golang.org/ref/spec#Defer_statements)
So in the program above, the assignment
x=1
should go through, so it should print 1.What did you see instead?
Print 0 on Wasm and AIX.
I'll send a CL shortly.
cc @danscales
The text was updated successfully, but these errors were encountered: