Skip to content

Commit 6f0356b

Browse files
committed
Revert "JS: Remove timeout for node --version check"
This reverts commit ec7c948.
1 parent ec7c948 commit 6f0356b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

javascript/extractor/src/com/semmle/js/parser/TypeScriptParser.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ public String verifyNodeInstallation() {
203203
getNodeJsRuntimeInvocation("--version"), out, err, getParserWrapper().getParentFile());
204204
b.expectFailure(); // We want to do our own logging in case of an error.
205205

206-
int timeout = Env.systemEnv().getInt(TYPESCRIPT_TIMEOUT_VAR, 0); // Default to no timeout.
206+
int timeout = Env.systemEnv().getInt(TYPESCRIPT_TIMEOUT_VAR, 10000);
207207
try {
208208
int r = b.execute(timeout);
209209
String stdout = new String(out.toByteArray());

0 commit comments

Comments
 (0)