From b4db207725a3ab85ffb44424a6ec84d25aff4f05 Mon Sep 17 00:00:00 2001 From: Witold Filipczyk Date: Mon, 11 Oct 2021 19:21:12 +0200 Subject: [PATCH] [ecmascript] window_finalize --- src/ecmascript/spidermonkey/window.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/ecmascript/spidermonkey/window.c b/src/ecmascript/spidermonkey/window.c index 366335a2c..9ac964ffd 100644 --- a/src/ecmascript/spidermonkey/window.c +++ b/src/ecmascript/spidermonkey/window.c @@ -53,6 +53,14 @@ static bool window_get_property_status(JSContext *ctx, unsigned int argc, JS::Va static bool window_set_property_status(JSContext *ctx, unsigned int argc, JS::Value *vp); static bool window_get_property_top(JSContext *ctx, unsigned int argc, JS::Value *vp); +static void window_finalize(JSFreeOp *op, JSObject *obj) +{ +#ifdef ECMASCRIPT_DEBUG + fprintf(stderr, "%s:%s\n", __FILE__, __FUNCTION__); +#endif +} + + JSClassOps window_ops = { nullptr, // addProperty nullptr, // deleteProperty @@ -60,7 +68,7 @@ JSClassOps window_ops = { nullptr, // newEnumerate nullptr, // resolve nullptr, // mayResolve - nullptr, // finalize + window_finalize, // finalize nullptr, // call nullptr, // hasInstance nullptr, // construct