]> Cypherpunks repositories - gostls13.git/commit
reflect: return user-visible method name in panic string
authorIan Lance Taylor <iant@golang.org>
Mon, 20 Apr 2020 23:30:43 +0000 (16:30 -0700)
committerIan Lance Taylor <iant@golang.org>
Tue, 21 Apr 2020 04:14:15 +0000 (04:14 +0000)
commitf6b30e53bbb026ce1d0aeddd112a8bdb0cd836c3
treec2521db6cba931264733de791142d0b5dd1c2daa
parent7f8fda3c0bfcc832934aa75b4580b4c780e1cb52
reflect: return user-visible method name in panic string

This was accidentally broken in CL 166462, which introduce another
function in the panicking path without adjusting the argument to
runtime.Caller.

Change-Id: Ib6f9ed8673fefd458c7a4e3a918c45c5b31ca552
Reviewed-on: https://go-review.googlesource.com/c/go/+/229082
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
src/reflect/all_test.go
src/reflect/value.go