Pin readField's unheld-path panic past the trace check, and fail the gathered-reads test when nothing traced

This commit is contained in:
2026-09-29 01:15:22 +02:00
committed by Lillem4n
parent 77f79de443
commit 5a87dc04d3
2 changed files with 10 additions and 5 deletions
+1 -1
View File
@@ -766,6 +766,6 @@ func TestReadFieldPanicsOnAnUnheldPath(t *testing.T) {
t.Fatal("not a template")
}
mustPanic(t, "unheld arm with a path", func() {
readField(engine(1).rand, tm, nil, renderScope{}, arm{spelling: "w.x", key: "w", tail: []string{"x"}, path: "w.x"})
readField(engine(1).rand, tm, nil, renderScope{set: &holdSet{}}, arm{spelling: "w.x", key: "w", tail: []string{"x"}, path: "w.x"})
})
}