Fix issues where bad user code hits the tail

This commit is contained in:
SaintPeter
2016-01-02 13:45:49 -08:00
parent 97cdc71772
commit 6d8fe315e6
2 changed files with 2 additions and 2 deletions

View File

@@ -35,7 +35,7 @@ $(document).ready(function() {
.flatMap(code => {
return common.detectUnsafeCode$(code)
.map(() => {
const combinedCode = common.head + code + common.tail;
const combinedCode = common.head + '\n;;' + code + '\n;;' + common.tail;
return addLoopProtect(combinedCode);
})