diff options
author | Timothee Cour <timothee.cour2@gmail.com> | 2020-04-15 23:59:54 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-16 08:59:54 +0200 |
commit | 6914de0d8dfb14e4ebe0448c558466c9bb80d833 (patch) | |
tree | 3277f1c8f47c2062547ea99603ff1d7dad8e8525 /lib | |
parent | d72808520b248d72913d8f9e57acdddc95c84465 (diff) | |
download | Nim-6914de0d8dfb14e4ebe0448c558466c9bb80d833.tar.gz |
fix newDomParser (#13981)
Diffstat (limited to 'lib')
-rw-r--r-- | lib/js/dom.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/js/dom.nim b/lib/js/dom.nim index 280e47d82..a0df4b7b9 100644 --- a/lib/js/dom.nim +++ b/lib/js/dom.nim @@ -1309,7 +1309,7 @@ proc offsetTop*(e: Node): int {.importcpp: "#.offsetTop", nodecl.} proc offsetLeft*(e: Node): int {.importcpp: "#.offsetLeft", nodecl.} since (1, 3): - func newDomParser*(): DOMParser {.importcpp: "(new DOMParser())".} + func newDomParser*(): DOMParser {.importcpp: "new DOMParser()".} ## DOM Parser constructor. func parseFromString*(this: DOMParser; str: cstring; mimeType: cstring): Document {.importcpp.} |