From 0e4e8a6288e703af334ea52043ca8f84aa6d3465 Mon Sep 17 00:00:00 2001 From: bptato Date: Fri, 8 Sep 2023 20:47:34 +0200 Subject: 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. --- src/html/env.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/html/env.nim') 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 -- cgit 1.4.1-2-gfad0