aboutsummaryrefslogtreecommitdiffstats
path: root/src/types
diff options
context:
space:
mode:
Diffstat (limited to 'src/types')
-rw-r--r--src/types/blob.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/types/blob.nim b/src/types/blob.nim
index 672163a0..ea5c588d 100644
--- a/src/types/blob.nim
+++ b/src/types/blob.nim
@@ -18,7 +18,7 @@ type
buffer*: pointer
opaque*: pointer
deallocFun*: DeallocFun
- fd*: Option[FileHandle]
+ fd*: Option[cint]
WebFile* = ref object of Blob
webkitRelativePath {.jsget.}: string
@@ -87,7 +87,7 @@ proc finalize(blob: Blob) {.jsfin.} =
proc finalize(file: WebFile) {.jsfin.} =
Blob(file).finalize()
-proc newWebFile*(name: string; fd: FileHandle): WebFile =
+proc newWebFile*(name: string; fd: cint): WebFile =
return WebFile(
name: name,
fd: some(fd),