about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--src/js/javascript.nim4
-rw-r--r--src/loader/response.nim2
-rw-r--r--src/types/url.nim2
3 files changed, 4 insertions, 4 deletions
diff --git a/src/js/javascript.nim b/src/js/javascript.nim
index 39330361..cdf6b127 100644
--- a/src/js/javascript.nim
+++ b/src/js/javascript.nim
@@ -850,7 +850,7 @@ func getFuncName(fun: NimNode; jsname, staticName: string): string =
   if jsname != "":
     return jsname
   if staticName != "":
-    let i = staticName.find(':')
+    let i = staticName.find('.')
     if i != -1:
       return staticName.substr(i + 1)
   let x = $fun[0]
@@ -934,7 +934,7 @@ proc initGenerator(fun: NimNode; t: BoundFunctionType; thisname = some("this");
   if staticName == "":
     gen.addThisName(thisname)
   else:
-    gen.thisType = staticName.until(':')
+    gen.thisType = staticName.until('.')
     gen.newName = ident($gen.t & "_" & gen.funcName)
   return gen
 
diff --git a/src/loader/response.nim b/src/loader/response.nim
index 56e955a3..4cf17c99 100644
--- a/src/loader/response.nim
+++ b/src/loader/response.nim
@@ -59,7 +59,7 @@ proc newResponse*(res: int; request: Request; stream: SocketStream): Response =
     outputId: -1
   )
 
-func makeNetworkError*(): Response {.jsstfunc: "Response:error".} =
+func makeNetworkError*(): Response {.jsstfunc: "Response.error".} =
   #TODO use "create" function
   #TODO headers immutable
   return Response(
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".} =