commit 44d5fbee0c459abcc32cd78dd95eed2c697a40fe
parent 6ba4e8afd38ac26834263548cd4c8e8a9ee610d1
Author: lash <dev@holbrook.no>
Date: Sat, 31 Aug 2024 17:26:02 +0100
Remove need for template for _first sym (prevm)
Diffstat:
2 files changed, 2 insertions(+), 9 deletions(-)
diff --git a/engine/engine.go b/engine/engine.go
@@ -129,6 +129,7 @@ func(en *Engine) runFirst(ctx context.Context) (bool, error) {
en.ca.Invalidate()
}
en.st.ResetFlag(state.FLAG_TERMINATE)
+ en.st.ResetFlag(state.FLAG_DIRTY)
Logg.DebugCtxf(ctx, "end pre-VM check")
return r, err
}
diff --git a/testdata/testdata.go b/testdata/testdata.go
@@ -149,14 +149,6 @@ func defaultCatch() error {
return out("_catch", b, tpl, nil)
}
-func defaultFirst() error {
- b := []byte{}
-
- tpl := ""
-
- return out("_first", b, tpl, nil)
-}
-
func lang() error {
b := []byte{}
b = vm.NewLine(b, vm.MOUT, []string{"back", "0"}, nil, nil)
@@ -190,7 +182,7 @@ func generate() error {
return err
}
- fns := []genFunc{root, foo, bar, baz, long, lang, defaultCatch, defaultFirst}
+ fns := []genFunc{root, foo, bar, baz, long, lang, defaultCatch}
for _, fn := range fns {
err = fn()
if err != nil {