summary refs log tree commit diff stats
path: root/lib/js
diff options
context:
space:
mode:
authorringabout <43030857+ringabout@users.noreply.github.com>2024-07-27 02:45:52 +0800
committerGitHub <noreply@github.com>2024-07-26 20:45:52 +0200
commit39629a1adcbcc822508acc3983f444328f90dd85 (patch)
treed60cad7a004aee263a9e3dfd6b1e183ca95f0ad9 /lib/js
parentbd063113ec3c00d80fc32a5581ac9552682f6b43 (diff)
downloadNim-39629a1adcbcc822508acc3983f444328f90dd85.tar.gz
fixes JS semicolon omissions (#23896)
Diffstat (limited to 'lib/js')
-rw-r--r--lib/js/asyncjs.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/js/asyncjs.nim b/lib/js/asyncjs.nim
index b7ebc905f..9b043f3e5 100644
--- a/lib/js/asyncjs.nim
+++ b/lib/js/asyncjs.nim
@@ -243,7 +243,7 @@ since (1, 5, 1):
     else:
       type A = impl(onSuccess(default(T)))
     var ret: A
-    {.emit: "`ret` = `future`.then(`onSuccess`, `onReject`)".}
+    {.emit: "`ret` = `future`.then(`onSuccess`, `onReject`);".}
     return ret
 
   proc catch*[T](future: Future[T], onReject: OnReject): Future[void] =
@@ -266,4 +266,4 @@ since (1, 5, 1):
 
       discard main()
 
-    {.emit: "`result` = `future`.catch(`onReject`)".}
+    {.emit: "`result` = `future`.catch(`onReject`);".}