about summary refs log tree commit diff stats
path: root/src/js/jsmodule.nim
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/js/jsmodule.nim
parentcaf1acc77ac74cf1e47c1a450922b9db2da1bdd8 (diff)
downloadchawan-c90c11ea3840c9d25edb16aa5e6a2c366406cb89.tar.gz
js: fix compileModule
Diffstat (limited to 'src/js/jsmodule.nim')
-rw-r--r--src/js/jsmodule.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/js/jsmodule.nim b/src/js/jsmodule.nim
index 636065b8..90ad7130 100644
--- a/src/js/jsmodule.nim
+++ b/src/js/jsmodule.nim
@@ -13,7 +13,7 @@ proc setImportMeta(ctx: JSContext; funcVal: JSValue; isMain: bool) =
   JS_FreeAtom(ctx, moduleNameAtom)
 
 proc finishLoadModule*(ctx: JSContext; f: string; name: cstring): JSModuleDef =
-  let funcVal = compileModule(ctx, f, name)
+  let funcVal = compileModule(ctx, f, $name)
   if JS_IsException(funcVal):
     return nil
   setImportMeta(ctx, funcVal, false)