mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-21 00:47:28 +01:00
Don't gen coro_susp_point's for try expressions
This commit is contained in:
1 parent
54d126db74
commit
394e846061
5 files changed
+11
-15
No files matched your search
@@ -428,7 +428,7 @@ func (g *gen) writeSuspendibles(b *buffer, n *a.Expr, depth uint32) error {
|
||||
return err
|
||||
}
|
||||
mightActuallySuspend := err != nil
|
||||
if mightActuallySuspend {
|
||||
if mightActuallySuspend && n.Operator() != t.IDTry {
|
||||
if err := g.writeCoroSuspPoint(b, false); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user