From 2d5245d9ecc920c81b39e790bc3e396a61381849 Mon Sep 17 00:00:00 2001 From: bptato Date: Mon, 26 Dec 2022 20:43:32 +0100 Subject: Correct attribute functions, de-extern jserr Instead of unnecessarily marking every jserr function as *, add the used pragma (so the C compiler can get rid of them later.) Also, use the correct definition of attribute namespace. --- src/html/htmlparser.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/html/htmlparser.nim') diff --git a/src/html/htmlparser.nim b/src/html/htmlparser.nim index 310a11aa..5467e321 100644 --- a/src/html/htmlparser.nim +++ b/src/html/htmlparser.nim @@ -2225,7 +2225,7 @@ proc parseHTML*(inputStream: Stream, cs = none(Charset), fallbackcs = CHARSET_UT proc newDOMParser*(): DOMParser {.jsctor.} = new(result) -proc parseFromString*(parser: DOMParser, str: string, t: string): Document {.jserr, jsfunc.} = +proc parseFromString(parser: DOMParser, str: string, t: string): Document {.jserr, jsfunc.} = case t of "text/html": let (res, _) = parseHTML(newStringStream(str)) -- cgit 1.4.1-2-gfad0