about summary refs log tree commit diff stats
path: root/src/types
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-06-03 20:28:57 +0200
committerbptato <nincsnevem662@gmail.com>2024-06-03 20:28:57 +0200
commit5acbab703ba074e20dbc0ce729d9f57f467901e0 (patch)
tree6796b11781a681c647d6eb0f15b44f92530238ef /src/types
parentc906166374d0ce921b2c49d60b41288424414a47 (diff)
downloadchawan-5acbab703ba074e20dbc0ce729d9f57f467901e0.tar.gz
js: change jsstfunc syntax
Interface:function -> Interface.function

for consistency with regular JS syntax
Diffstat (limited to 'src/types')
-rw-r--r--src/types/url.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/types/url.nim b/src/types/url.nim
index c82555de..075e3b08 100644
--- a/src/types/url.nim
+++ b/src/types/url.nim
@@ -1226,7 +1226,7 @@ proc setHash*(url: URL; s: string) {.jsfset: "hash".} =
   url.fragment = some("")
   discard basicParseURL(s, url = url, stateOverride = some(usFragment))
 
-proc jsParse(url: string; base = none(string)): URL {.jsstfunc: "URL:parse".} =
+proc jsParse(url: string; base = none(string)): URL {.jsstfunc: "URL.parse".} =
   return parseAPIURL(url, base).get(nil)
 
 proc canParse(url: string; base = none(string)): bool {.jsstfunc: "URL".} =