diff --git a/compiler/nim.nim b/compiler/nim.nim index 553c4635f5..c420f6f303 100644 --- a/compiler/nim.nim +++ b/compiler/nim.nim @@ -68,7 +68,7 @@ proc handleCmdLine() = else: ex = quoteShell( completeCFilePath(changeFileExt(gProjectFull, "js").prependCurDir)) - execExternalProgram(findNodeJs & " " & ex & ' ' & commands.arguments) + execExternalProgram(findNodeJs() & " " & ex & ' ' & commands.arguments) else: var binPath: string if options.outFile.len > 0: diff --git a/lib/core/nodejs.nim b/lib/pure/nodejs.nim similarity index 100% rename from lib/core/nodejs.nim rename to lib/pure/nodejs.nim