about summary refs log tree commit diff stats
path: root/src/loader
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/loader
parentc906166374d0ce921b2c49d60b41288424414a47 (diff)
downloadchawan-5acbab703ba074e20dbc0ce729d9f57f467901e0.tar.gz
js: change jsstfunc syntax
Interface:function -> Interface.function

for consistency with regular JS syntax
Diffstat (limited to 'src/loader')
-rw-r--r--src/loader/response.nim2
1 files changed, 1 insertions, 1 deletions
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(