script: inform how to bypass infinite loop protection
This commit is contained in:
parent
af4f0d63aa
commit
cd289b27d1
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue