Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
op(Op.EnterList, label('BODY')),
op('Label', 'ITER'),
op(Op.Iterate, label('BREAK')),
op('Label', 'BODY'),
invokeStaticBlockWithStack(unwrap(blocks.get('default')), 2),
op(Op.Pop, 2),
op(MachineOp.Jump, label('FINALLY')),
op('Label', 'BREAK'),
op(Op.ExitList),
op(MachineOp.PopFrame),
op(MachineOp.Jump, label('FINALLY')),
op('Label', 'ELSE'),
];
if (blocks.has('else')) {
out.push(invokeStaticBlock(blocks.get('else')!));
}
return out;
},
});
ifTrue() {
return [
op(Op.PushRemoteElement),
invokeStaticBlock(unwrap(blocks.get('default'))),
op(Op.PopRemoteElement),
];
},
});