diff options
Diffstat (limited to 'src/js/module.nim')
-rw-r--r-- | src/js/module.nim | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/js/module.nim b/src/js/module.nim index bae146a7..70755ebd 100644 --- a/src/js/module.nim +++ b/src/js/module.nim @@ -1,3 +1,4 @@ +import bindings/constcharp import bindings/quickjs import js/javascript import js/tojs @@ -23,6 +24,6 @@ proc finishLoadModule*(ctx: JSContext, f: string, name: cstring): JSModuleDef = result = cast[JSModuleDef](JS_VALUE_GET_PTR(funcVal)) JS_FreeValue(ctx, funcVal) -proc normalizeModuleName*(ctx: JSContext, base_name: cstring, name: cstring, +proc normalizeModuleName*(ctx: JSContext, base_name, name: cstringConst, opaque: pointer): cstring {.cdecl.} = - return js_strdup(ctx, name) + return js_strdup(ctx, cstring(name)) |