about summary refs log tree commit diff stats
path: root/src/js/base64.nim
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-04-16 15:08:44 +0200
committerbptato <nincsnevem662@gmail.com>2024-04-17 23:19:09 +0200
commit66b9574b165be62e76c7397cf0eaa8d229d42675 (patch)
treeadb8a9719cc70f2b577706aaa4e30bb0d5d629a6 /src/js/base64.nim
parentd86f1939204eee771a30f47e4cbe71fd8d9a4f5f (diff)
downloadchawan-66b9574b165be62e76c7397cf0eaa8d229d42675.tar.gz
Update code style
* separate params with ; (semicolon) instead of , (colon)
* reduce screaming snake case use
* wrap long lines
Diffstat (limited to 'src/js/base64.nim')
-rw-r--r--src/js/base64.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/js/base64.nim b/src/js/base64.nim
index 3d540664..a8362910 100644
--- a/src/js/base64.nim
+++ b/src/js/base64.nim
@@ -17,7 +17,7 @@ proc atob*(data: string): DOMResult[NarrowString] =
     return errDOMException("Invalid character in string",
       "InvalidCharacterError")
 
-proc btoa*(ctx: JSContext, data: JSValue): DOMResult[string] =
+proc btoa*(ctx: JSContext; data: JSValue): DOMResult[string] =
   let data = JS_ToString(ctx, data)
   if JS_IsException(data):
     return err()