about summary refs log tree commit diff stats
path: root/src/buffer/container.nim
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2023-06-19 18:13:10 +0200
committerbptato <nincsnevem662@gmail.com>2023-06-19 18:15:09 +0200
commit17097052794aef56bbc55327d3e6c84ae1c67378 (patch)
tree13b81e1105c07c69d7a8d1e7367a698f41663a01 /src/buffer/container.nim
parente372bdaa0344b23c91aefa4da44c578fbf8f49e2 (diff)
downloadchawan-17097052794aef56bbc55327d3e6c84ae1c67378.tar.gz
Rework JS exception system
Now we use Result for passing exceptions to JS. As a result, we can
finally get rid of the .jserr pragma.
Diffstat (limited to 'src/buffer/container.nim')
-rw-r--r--src/buffer/container.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/buffer/container.nim b/src/buffer/container.nim
index e301e05c..57685784 100644
--- a/src/buffer/container.nim
+++ b/src/buffer/container.nim
@@ -638,13 +638,13 @@ proc onMatch(container: Container, res: BufferMatch) =
     container.needslines = true
     container.hlon = false
 
-proc cursorNextMatch*(container: Container, regex: Regex, wrap: bool) {.jsfunc.} =
+proc cursorNextMatch*(container: Container, regex: Regex, wrap: bool) =
   container.iface
     .findNextMatch(regex, container.cursorx, container.cursory, wrap)
     .then(proc(res: BufferMatch) =
       container.onMatch(res))
 
-proc cursorPrevMatch*(container: Container, regex: Regex, wrap: bool) {.jsfunc.} =
+proc cursorPrevMatch*(container: Container, regex: Regex, wrap: bool) =
   container.iface
     .findPrevMatch(regex, container.cursorx, container.cursory, wrap)
     .then(proc(res: BufferMatch) =