From cd289b27d166e16565f5f4338d44b4634be61916 Mon Sep 17 00:00:00 2001 From: bordun Date: Tue, 15 Jun 2021 19:19:20 +0200 Subject: [PATCH] script: inform how to bypass infinite loop protection --- src/client/widgets/vm.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/widgets/vm.js b/src/client/widgets/vm.js index 11671108..178fb098 100644 --- a/src/client/widgets/vm.js +++ b/src/client/widgets/vm.js @@ -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