mirror of
https://github.com/DoneJS-Runtime/quickjs-done-nextgen.git
synced 2025-01-09 17:43:15 +00:00
Fix DUMP_MODULE_RESOLVE flag checks
Make sure to always check if the flag is enabled.
This commit is contained in:
parent
b5d2210096
commit
89d9305582
1 changed files with 5 additions and 3 deletions
|
@ -26835,7 +26835,9 @@ static int js_inner_module_linking(JSContext *ctx, JSModuleDef *m,
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef DUMP_MODULE_RESOLVE
|
#ifdef DUMP_MODULE_RESOLVE
|
||||||
printf("js_inner_module_linking done\n");
|
if (check_dump_flag(ctx->rt, DUMP_MODULE_RESOLVE)) {
|
||||||
|
printf("js_inner_module_linking done\n");
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
return index;
|
return index;
|
||||||
fail:
|
fail:
|
||||||
|
@ -26849,7 +26851,7 @@ static int js_link_module(JSContext *ctx, JSModuleDef *m)
|
||||||
JSModuleDef *stack_top, *m1;
|
JSModuleDef *stack_top, *m1;
|
||||||
|
|
||||||
#ifdef DUMP_MODULE_RESOLVE
|
#ifdef DUMP_MODULE_RESOLVE
|
||||||
{
|
if (check_dump_flag(ctx->rt, DUMP_MODULE_RESOLVE)) {
|
||||||
char buf1[ATOM_GET_STR_BUF_SIZE];
|
char buf1[ATOM_GET_STR_BUF_SIZE];
|
||||||
printf("js_link_module '%s':\n", JS_AtomGetStr(ctx, buf1, sizeof(buf1), m->module_name));
|
printf("js_link_module '%s':\n", JS_AtomGetStr(ctx, buf1, sizeof(buf1), m->module_name));
|
||||||
}
|
}
|
||||||
|
@ -27359,7 +27361,7 @@ static int js_inner_module_evaluation(JSContext *ctx, JSModuleDef *m,
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef DUMP_MODULE_RESOLVE
|
#ifdef DUMP_MODULE_RESOLVE
|
||||||
{
|
if (check_dump_flag(ctx->rt, DUMP_MODULE_RESOLVE)) {
|
||||||
char buf1[ATOM_GET_STR_BUF_SIZE];
|
char buf1[ATOM_GET_STR_BUF_SIZE];
|
||||||
printf("js_inner_module_evaluation '%s':\n", JS_AtomGetStr(ctx, buf1, sizeof(buf1), m->module_name));
|
printf("js_inner_module_evaluation '%s':\n", JS_AtomGetStr(ctx, buf1, sizeof(buf1), m->module_name));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue