about summary refs log tree commit diff stats
path: root/src/html
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-05-08 19:20:18 +0200
committerbptato <nincsnevem662@gmail.com>2024-05-08 19:20:27 +0200
commitc90c11ea3840c9d25edb16aa5e6a2c366406cb89 (patch)
tree085de879e8c7938892e4e5300426b3a2b3a575b7 /src/html
parentcaf1acc77ac74cf1e47c1a450922b9db2da1bdd8 (diff)
downloadchawan-c90c11ea3840c9d25edb16aa5e6a2c366406cb89.tar.gz
js: fix compileModule
Diffstat (limited to 'src/html')
-rw-r--r--src/html/dom.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/html/dom.nim b/src/html/dom.nim
index dc12bb6e..3ee12f8d 100644
--- a/src/html/dom.nim
+++ b/src/html/dom.nim
@@ -3565,7 +3565,7 @@ proc markAsReady(element: HTMLScriptElement; res: ScriptResult) =
 proc createClassicScript(ctx: JSContext; source: string; baseURL: URL;
     options: ScriptOptions; mutedErrors = false): Script =
   let urls = baseURL.serialize(excludepassword = true)
-  let record = compileScript(ctx, source, cstring(urls))
+  let record = compileScript(ctx, source, urls)
   return Script(
     record: record,
     baseURL: baseURL,