Repair code generation error for "stop on (...)" handlers

This commit is contained in:
Tony Garnock-Jones 2021-12-09 18:54:43 +01:00
parent 4ec02591c0
commit d1c79973c5
1 changed files with 1 additions and 1 deletions

View File

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