fixes the regression #12860 caused; hotfix
This commit is contained in:
parent
cf3e0008b9
commit
3d2459bdc0
2 changed files with 4 additions and 1 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue