Repair code generation error for "stop on (...)" handlers
This commit is contained in:
parent
4ec02591c0
commit
d1c79973c5
|
@ -199,7 +199,7 @@ ${joinItems(sa.captureBinders.map(binderTypeGuard(ctx, t)), '\n')}
|
|||
|
||||
x(ctx.parser.eventHandlerEndpointStatement, (s, t) => {
|
||||
if (s.triggerType === 'dataflow') {
|
||||
return t`dataflow { if (${walk(s.predicate)}) { ${terminalWrap(t, s.terminal, walk(s.body))} } }`;
|
||||
return t`__SYNDICATE__.Turn.active._dataflow(() => { if (${walk(s.predicate)}) { ${terminalWrap(t, s.terminal, walk(s.body))} } });`;
|
||||
}
|
||||
|
||||
if (s.triggerType === 'stop') {
|
||||
|
|
Loading…
Reference in New Issue