disable rejection tracker in the repl - repl cleanup

This commit is contained in:
Fabrice Bellard
2025-03-27 15:34:20 +01:00
parent e8cfe8fede
commit d045a13b4b
2 changed files with 6 additions and 9 deletions

1
qjs.c
View File

@@ -465,6 +465,7 @@ int main(int argc, char **argv)
goto fail;
}
if (interactive) {
JS_SetHostPromiseRejectionTracker(rt, NULL, NULL);
js_std_eval_binary(ctx, qjsc_repl, qjsc_repl_size, 0);
}
js_std_loop(ctx);