dont run inf loop check on ns1 scripts

This commit is contained in:
Olivier Gagnon
2021-10-29 01:23:15 -04:00
parent 2926ee0fc0
commit d99d3fc222
4 changed files with 33 additions and 28 deletions
-1
View File
@@ -234,7 +234,6 @@ export function checkInfiniteLoop(code: string): number {
{
WhileStatement: (node: acorn.Node, st: any, walkDeeper: walk.WalkerCallback<any>) => {
if (nodeHasTrueTest((node as any).test) && !hasAwait(node)) {
console.log(node);
missingAwaitLine = (code.slice(0, node.start).match(/\n/g) || []).length + 1;
} else {
(node as any).body && walkDeeper((node as any).body, st);