about summary refs log tree commit diff stats
path: root/src/js
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2023-10-23 19:50:54 +0200
committerbptato <nincsnevem662@gmail.com>2023-10-23 19:51:03 +0200
commitbf40bc957770a0367be51862d78ba4c85270e37b (patch)
tree97066af5f4ceaf26ee5a48e2ead4f4ea019b2fdf /src/js
parentcf5f9dabc771b0361fe4f78871a74738ff16da5f (diff)
downloadchawan-bf40bc957770a0367be51862d78ba4c85270e37b.tar.gz
dom: add outerHTML setter
Also, misc. refactorings
Diffstat (limited to 'src/js')
-rw-r--r--src/js/domexception.nim3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/js/domexception.nim b/src/js/domexception.nim
index fcaf0e7a..cd1ea1ba 100644
--- a/src/js/domexception.nim
+++ b/src/js/domexception.nim
@@ -44,6 +44,9 @@ proc newDOMException*(message = "", name = "Error"): DOMException {.jsctor.} =
     message: message
   )
 
+template errDOMException*(message, name: string): untyped =
+  err(newDOMException(message, name))
+
 func message0(this: DOMException): string {.jsfget: "message".} =
   return this.message