blockly > CodeGenerator > INFINITE_LOOP_TRAP
CodeGenerator.INFINITE_LOOP_TRAP özelliği
Sonsuz döngülere neden olma riski taşıyan konumlara yerleştirilen rastgele kod. Tüm "%1" örnekleri başarısız olan engelleme kimliğiyle değiştirilir. Ör. checkTimeout(%1);\n
İmza:
INFINITE_LOOP_TRAP: string | null;
Aksi belirtilmediği sürece bu sayfanın içeriği Creative Commons Atıf 4.0 Lisansı altında ve kod örnekleri Apache 2.0 Lisansı altında lisanslanmıştır. Ayrıntılı bilgi için Google Developers Site Politikaları'na göz atın. Java, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2024-08-21 UTC.
[null,null,["Son güncelleme tarihi: 2024-08-21 UTC."],[[["`CodeGenerator.INFINITE_LOOP_TRAP` allows you to insert code snippets into potentially infinite loop-prone areas within generated code."],["This property accepts a string containing the code to inject, where '%1' is replaced with the problematic block's ID."],["The purpose is to mitigate the risk of infinite loops during code execution by introducing checks or safeguards."],["Its value can be customized as needed but defaults to `null`, implying no loop trap code injection by default."]]],[]]