summary refs log tree commit diff stats
path: root/lib/js
diff options
context:
space:
mode:
authorringabout <43030857+ringabout@users.noreply.github.com>2023-08-12 00:24:46 +0800
committerGitHub <noreply@github.com>2023-08-11 18:24:46 +0200
commit3f7e1d7daadf4002da1a155d7b98ff7fcca9e2fa (patch)
treeca733c386244be34e2d0e53b8f79d4e2844b8794 /lib/js
parent48da472dd2e625d2d794907afd33a4a153fa2dc1 (diff)
downloadNim-3f7e1d7daadf4002da1a155d7b98ff7fcca9e2fa.tar.gz
replace `doAssert false` with `raiseAssert` in lib, which works better with strictdefs (#22458)
Diffstat (limited to 'lib/js')
-rw-r--r--lib/js/dom.nim6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/js/dom.nim b/lib/js/dom.nim
index 0a825865b..ceb0375b7 100644
--- a/lib/js/dom.nim
+++ b/lib/js/dom.nim
@@ -1423,7 +1423,7 @@ when defined(nodejs):
         parent.childNodes[i] = newNode
         return
       inc i
-    doAssert false, "old node not in node list"
+    raiseAssert "old node not in node list"
 
   proc removeChild*(parent, child: Node) =
     child.parentNode = nil
@@ -1433,7 +1433,7 @@ when defined(nodejs):
         parent.childNodes.delete(i)
         return
       inc i
-    doAssert false, "old node not in node list"
+    raiseAssert "old node not in node list"
 
   proc insertBefore*(parent, newNode, before: Node) =
     appendChild(parent, newNode)
@@ -1445,7 +1445,7 @@ when defined(nodejs):
         parent.childNodes[i-1] = newNode
         return
       inc i
-    #doAssert false, "before not in node list"
+    #raiseAssert "before not in node list"
 
   proc createElement*(d: Document, identifier: cstring): Element =
     new(result)