[gjs/wip/js24: 12/29] Update to new JS_Call*Tracer API



commit 84df8c3b0aa0df05f58e9b78856b4e47e3770913
Author: Tim Lunn <tim feathertop org>
Date:   Sat Sep 28 07:23:59 2013 +1000

    Update to new JS_Call*Tracer API

 gi/closure.cpp    |    2 +-
 gi/keep-alive.cpp |    3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/gi/closure.cpp b/gi/closure.cpp
index b03882b..68b3ff5 100644
--- a/gi/closure.cpp
+++ b/gi/closure.cpp
@@ -338,7 +338,7 @@ gjs_closure_trace(GClosure *closure,
     if (c->obj == NULL)
         return;
 
-    JS_CALL_OBJECT_TRACER(tracer, c->obj, "signal connection");
+    JS_CallObjectTracer(tracer, &c->obj, "signal connection");
 }
 
 GClosure*
diff --git a/gi/keep-alive.cpp b/gi/keep-alive.cpp
index e63337b..728f467 100644
--- a/gi/keep-alive.cpp
+++ b/gi/keep-alive.cpp
@@ -124,7 +124,8 @@ trace_foreach(void *key,
         jsval val;
         JS_SET_TRACING_DETAILS(tracer, NULL, "keep-alive", 0);
         val = OBJECT_TO_JSVAL(child->child);
-        JS_CallTracer(tracer, JSVAL_TO_TRACEABLE (val), JSTRACE_OBJECT);
+        g_assert (JSVAL_TO_TRACEABLE (val));
+        JS_CallValueTracer(tracer, &val, "keep-alive::val");
     }
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]