mirror of
https://github.com/nim-lang/Nim.git
synced 2026-06-06 11:54:11 +00:00
fixes the regression #12860 caused; hotfix
This commit is contained in:
@@ -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):
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user