1
0
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:
Tao Qingyun 2021-03-17 09:30:43 +08:00
parent 2ed2b81d7b
commit 44b90b2e2e

View File

@ -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 {