From b14ad79baec09613a235ad2c873e0b404e922941 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C3=BAl=20Ibarra=20Corretg=C3=A9?= Date: Fri, 10 Jan 2025 12:25:21 +0100 Subject: [PATCH] Disable rejected promise tracker in REPL Fixes: https://github.com/quickjs-ng/quickjs/issues/814 --- qjs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/qjs.c b/qjs.c index ada72d88..e6636d81 100644 --- a/qjs.c +++ b/qjs.c @@ -680,6 +680,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); } if (standalone || compile_file) {