ast.walk(new U2.TreeWalker(function(node){ if (node instanceof U2.AST_Call && (node.expression.print_to_string() === 'setTimeout' || node.expression.print_to_string() === 'setTimeout' || node.expression.print_to_string() === 'setinterval' || node.expression.print_to_string() === 'eval') ){ ifErr = true; }else if(node.name === 'require'){ ifErr = true; } }));