[gjs] keep-alive: Call JS_CallTracer how Firefox does
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs] keep-alive: Call JS_CallTracer how Firefox does
- Date: Thu, 5 May 2011 17:09:40 +0000 (UTC)
commit 50b08c82ba42d293ce0d099769e79bc9908b40c5
Author: Colin Walters <walters verbum org>
Date: Thu May 5 12:51:13 2011 -0400
keep-alive: Call JS_CallTracer how Firefox does
We were passing a JSObject* as jsval, and not calling
JSVAL_TO_TRACEABLE.
gi/keep-alive.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/gi/keep-alive.c b/gi/keep-alive.c
index e268eaf..28a7259 100644
--- a/gi/keep-alive.c
+++ b/gi/keep-alive.c
@@ -151,8 +151,10 @@ trace_foreach(void *key,
JSTracer *tracer = data;
if (child->child != NULL) {
+ jsval val;
JS_SET_TRACING_DETAILS(tracer, NULL, "keep-alive", 0);
- JS_CallTracer(tracer, child->child, JSTRACE_OBJECT);
+ val = OBJECT_TO_JSVAL(child->child);
+ JS_CallTracer(tracer, JSVAL_TO_TRACEABLE (val), JSTRACE_OBJECT);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]