mirror of
https://github.com/golang/go
synced 2024-11-22 20:40:03 -07:00
testing: update helperNames just before checking it
parent's helperNames has not been set when frameSkip called, moving helperNames initilazing to frameSkip. Fixes #44887
This commit is contained in:
parent
2ed2b81d7b
commit
44b90b2e2e
@ -509,6 +509,7 @@ func (c *common) frameSkip(skip int) runtime.Frame {
|
||||
}
|
||||
return prevFrame
|
||||
}
|
||||
// If more helper PCs have been added since we last did the conversion
|
||||
if c.helperNames == nil {
|
||||
c.helperNames = make(map[string]struct{})
|
||||
for pc := range c.helperPCs {
|
||||
|
Loading…
Reference in New Issue
Block a user