about summary refs log tree commit diff stats
path: root/src/js/regex.nim
diff options
context:
space:
mode:
Diffstat (limited to 'src/js/regex.nim')
-rw-r--r--src/js/regex.nim5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/js/regex.nim b/src/js/regex.nim
index d7371428..157e1fbc 100644
--- a/src/js/regex.nim
+++ b/src/js/regex.nim
@@ -2,7 +2,6 @@
 
 import bindings/libregexp
 import bindings/quickjs
-import js/javascript
 import utils/opt
 import utils/twtstr
 
@@ -30,8 +29,8 @@ type
     rule: string
     global: bool
 
-var dummyRuntime = newJSRuntime()
-var dummyContext = dummyRuntime.newJSContextRaw()
+var dummyRuntime = JS_NewRuntime()
+var dummyContext = JS_NewContextRaw(dummyRuntime)
 
 when NimMajor >= 2:
   proc `=destroy`*(regex: Regex) =