quickjs-tart

quickjs-based runtime for wallet-core logic
Log | Files | Refs | README | LICENSE

commit 4de8d35919ca4afa085eeb369d9db36427236636
parent 0094749da9139a5055e885bc2d32fbf0a15f25fa
Author: Fabrice Bellard <fabrice@bellard.org>
Date:   Fri, 22 Dec 2023 11:07:00 +0100

call js_std_free_handlers() in the code generated by qjsc (github issue #96)

Diffstat:
Mquickjs/Makefile | 7+++----
Mquickjs/qjsc.c | 1+
2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/quickjs/Makefile b/quickjs/Makefile @@ -155,10 +155,9 @@ endif # examples ifeq ($(CROSS_PREFIX),) -ifdef CONFIG_ASAN -PROGS+= -else -PROGS+=examples/hello examples/hello_module examples/test_fib +PROGS+=examples/hello +ifndef CONFIG_ASAN +PROGS+=examples/hello_module examples/test_fib ifndef CONFIG_DARWIN PROGS+=examples/fib.so examples/point.so endif diff --git a/quickjs/qjsc.c b/quickjs/qjsc.c @@ -332,6 +332,7 @@ static const char main_c_template1[] = static const char main_c_template2[] = " js_std_loop(ctx);\n" + " js_std_free_handlers(rt);\n" " JS_FreeContext(ctx);\n" " JS_FreeRuntime(rt);\n" " return 0;\n"