about summary refs log tree commit diff stats
path: root/src/js
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2022-12-13 22:55:43 +0100
committerbptato <nincsnevem662@gmail.com>2022-12-13 22:55:43 +0100
commite80ae4b136fe82f916868e1e9b728d69c403a70a (patch)
treed112f10934818394c746b9179de53552b9c778a1 /src/js
parent4b482418c22ea31729ca94583ffd2a6aa167d811 (diff)
downloadchawan-e80ae4b136fe82f916868e1e9b728d69c403a70a.tar.gz
Add referer support, re-render on windowChange
Diffstat (limited to 'src/js')
-rw-r--r--src/js/regex.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/js/regex.nim b/src/js/regex.nim
index 391cb46b..2a205130 100644
--- a/src/js/regex.nim
+++ b/src/js/regex.nim
@@ -91,7 +91,7 @@ template fastRuneAt(s: string16, i: int, r: untyped, doInc = true, be = false) =
 var dummyRuntime = newJSRuntime()
 var dummyContext = dummyRuntime.newJSContextRaw()
 
-proc `=destroy`(regex: var Regex) =
+proc `=destroy`*(regex: var Regex) =
   if regex.bytecode != nil:
     if regex.clone:
       dealloc(regex.bytecode)
@@ -99,7 +99,7 @@ proc `=destroy`(regex: var Regex) =
       dummyRuntime.js_free_rt(regex.bytecode)
     regex.bytecode = nil
 
-proc `=copy`(dest: var Regex, source: Regex) =
+proc `=copy`*(dest: var Regex, source: Regex) =
   if dest.bytecode != source.bytecode:
     `=destroy`(dest)
     wasMoved(dest)