Commit d7fc2205 authored by Tobias Klauser's avatar Tobias Klauser Committed by Tobias Klauser

test: fix nilptr3 check for wasm

CL 131735 only updated nilptr3.go for the adjusted nil check. Adjust
nilptr3_wasm.go as well.

Change-Id: I4a6257d32bb212666fe768dac53901ea0b051138
Reviewed-on: https://go-review.googlesource.com/133495
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
parent fc5edaca
...@@ -246,8 +246,8 @@ type TT struct { ...@@ -246,8 +246,8 @@ type TT struct {
func f(t *TT) *byte { func f(t *TT) *byte {
// See issue 17242. // See issue 17242.
s := &t.SS // ERROR "removed nil check" s := &t.SS // ERROR "generated nil check"
return &s.x // ERROR "generated nil check" return &s.x // ERROR "removed nil check"
} }
// make sure not to do nil check for newobject // make sure not to do nil check for newobject
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment