script: inform how to bypass infinite loop protection

This commit is contained in:
bordun 2021-06-15 19:19:20 +02:00
parent af4f0d63aa
commit cd289b27d1

View file

@ -40,7 +40,7 @@ class Vm {
// init infinite loop guard
loopProtect.alias = '__protect'
loopProtect.hit = function(line){
throw 'Potential infinite loop found on line ' + line
throw 'Potential infinite loop found on line ' + line + '(script interrupted).\nAdd "// noprotect" to your code to disable loop protection.'
}
this.sandbox.contentWindow.__protect = loopProtect