blockly > CodeGenerator > INFINITE_LOOP_TRAP
CodeGenerator.INFINITE_LOOP_TRAP property
Arbitrary code to inject into locations that risk causing infinite loops. Any instances of '%1' will be replaced by the block ID that failed. E.g. checkTimeout(%1);\n
Signature:
INFINITE_LOOP_TRAP: string | null;