mirror of
https://github.com/bellard/quickjs.git
synced 2025-09-30 15:04:24 +03:00
support JSON modules in qjsc - added support of JSON5 modules (using type = "json5")
This commit is contained in:
@@ -872,7 +872,7 @@ static JSModuleDef *js_module_loader_test(JSContext *ctx,
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if (js_module_test_json(ctx, attributes)) {
|
||||
if (js_module_test_json(ctx, attributes) == 1) {
|
||||
/* compile as JSON */
|
||||
JSValue val;
|
||||
val = JS_ParseJSON(ctx, (char *)buf, buf_len, module_name);
|
||||
|
Reference in New Issue
Block a user