mirror of
https://github.com/github/codeql.git
synced 2025-12-20 10:46:30 +01:00
JS: Remove timeout for node --version check
This commit is contained in:
@@ -203,7 +203,7 @@ public class TypeScriptParser {
|
|||||||
getNodeJsRuntimeInvocation("--version"), out, err, getParserWrapper().getParentFile());
|
getNodeJsRuntimeInvocation("--version"), out, err, getParserWrapper().getParentFile());
|
||||||
b.expectFailure(); // We want to do our own logging in case of an error.
|
b.expectFailure(); // We want to do our own logging in case of an error.
|
||||||
|
|
||||||
int timeout = Env.systemEnv().getInt(TYPESCRIPT_TIMEOUT_VAR, 10000);
|
int timeout = Env.systemEnv().getInt(TYPESCRIPT_TIMEOUT_VAR, 0); // Default to no timeout.
|
||||||
try {
|
try {
|
||||||
int r = b.execute(timeout);
|
int r = b.execute(timeout);
|
||||||
String stdout = new String(out.toByteArray());
|
String stdout = new String(out.toByteArray());
|
||||||
|
|||||||
Reference in New Issue
Block a user