about summary refs log tree commit diff stats
path: root/src/html/env.nim
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2023-09-08 20:47:34 +0200
committerbptato <nincsnevem662@gmail.com>2023-09-08 20:47:34 +0200
commit0e4e8a6288e703af334ea52043ca8f84aa6d3465 (patch)
treeddaa43ca20a625462c37ebbe8484f4b96dea3575 /src/html/env.nim
parent39e9d80a49124067edb38c4711c58d5cb790c91e (diff)
downloadchawan-0e4e8a6288e703af334ea52043ca8f84aa6d3465.tar.gz
dom: align some return values with their webidl
Certain functions were returning types that do not align with the
WebIDL defined in the dom standard.
Diffstat (limited to 'src/html/env.nim')
-rw-r--r--src/html/env.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/html/env.nim b/src/html/env.nim
index 687c577a..144a6a05 100644
--- a/src/html/env.nim
+++ b/src/html/env.nim
@@ -55,9 +55,9 @@ proc javaEnabled(navigator: ptr Navigator): bool {.jsfunc.} = false
 proc namedItem(pluginArray: ptr PluginArray): string {.jsfunc.} = ""
 proc namedItem(mimeTypeArray: ptr MimeTypeArray): string {.jsfunc.} = ""
 proc item(pluginArray: ptr PluginArray): JSValue {.jsfunc.} = JS_NULL
-proc length(pluginArray: ptr PluginArray): int {.jsfget.} = 0
+proc length(pluginArray: ptr PluginArray): uint32 {.jsfget.} = 0
 proc item(mimeTypeArray: ptr MimeTypeArray): JSValue {.jsfunc.} = JS_NULL
-proc length(mimeTypeArray: ptr MimeTypeArray): int {.jsfget.} = 0
+proc length(mimeTypeArray: ptr MimeTypeArray): uint32 {.jsfget.} = 0
 proc getter(pluginArray: ptr PluginArray, i: int): Option[JSValue] {.jsgetprop.} = discard
 proc getter(mimeTypeArray: ptr MimeTypeArray, i: int): Option[JSValue] {.jsgetprop.} = discard