diff options
author | bptato <nincsnevem662@gmail.com> | 2023-10-23 19:50:54 +0200 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2023-10-23 19:51:03 +0200 |
commit | bf40bc957770a0367be51862d78ba4c85270e37b (patch) | |
tree | 97066af5f4ceaf26ee5a48e2ead4f4ea019b2fdf /src/js | |
parent | cf5f9dabc771b0361fe4f78871a74738ff16da5f (diff) | |
download | chawan-bf40bc957770a0367be51862d78ba4c85270e37b.tar.gz |
dom: add outerHTML setter
Also, misc. refactorings
Diffstat (limited to 'src/js')
-rw-r--r-- | src/js/domexception.nim | 3 |
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 |