From d0edd23fd4d7bc8579333a04da9ac82119480481 Mon Sep 17 00:00:00 2001 From: Bryan Roe Date: Fri, 13 Dec 2019 09:45:52 -0800 Subject: [PATCH] update debugGC() to only call gc once instead of twice, because the context can get collected after the first call. --- microscript/ILibDuktape_Polyfills.c | 1 - 1 file changed, 1 deletion(-) diff --git a/microscript/ILibDuktape_Polyfills.c b/microscript/ILibDuktape_Polyfills.c index a6bb8df..2264ac2 100644 --- a/microscript/ILibDuktape_Polyfills.c +++ b/microscript/ILibDuktape_Polyfills.c @@ -1617,7 +1617,6 @@ void ILibDuktape_Polyfills_debugGC2(duk_context *ctx, void ** args, int argsLen) { if (g_displayFinalizerMessages) { printf("=> GC();\n"); } duk_gc(ctx, 0); - duk_gc(ctx, 0); } duk_ret_t ILibDuktape_Polyfills_debugGC(duk_context *ctx) {