fixes the regression #12860 caused; hotfix

This commit is contained in:
Araq
2020-04-30 20:23:42 +02:00
parent cf3e0008b9
commit 3d2459bdc0
2 changed files with 4 additions and 1 deletions

View File

@@ -3119,7 +3119,7 @@ template rawToFormalFileInfo(rawInfo, path, formalInfo): untyped =
assert(path != "") # symlinks can't occur for file handles
formalInfo.kind = getSymlinkFileKind(path)
when defined(js):
when defined(js) or defined(nimscript):
when not declared(FileHandle):
type FileHandle = distinct int32
when not declared(File):

View File

@@ -272,6 +272,9 @@ proc selfExec*(command: string) {.
raise newException(OSError, "FAILED: " & c)
checkOsError()
from os import paramCount, paramStr
export paramCount, paramStr
proc put*(key, value: string) =
## Sets a configuration 'key' like 'gcc.options.always' to its value.
builtin