diff options
author | bptato <nincsnevem662@gmail.com> | 2024-06-03 20:28:57 +0200 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2024-06-03 20:28:57 +0200 |
commit | 5acbab703ba074e20dbc0ce729d9f57f467901e0 (patch) | |
tree | 6796b11781a681c647d6eb0f15b44f92530238ef /src/types | |
parent | c906166374d0ce921b2c49d60b41288424414a47 (diff) | |
download | chawan-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.nim | 2 |
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".} = |