JS: Remove timeout for node --version check

This commit is contained in:
Asger Feldthaus
2020-05-20 17:12:24 +01:00
parent 079021a3e9
commit ec7c9489dc

View File

@@ -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());