From 06b08d3af03bc28ddc97fa59c8840f8c562e5c87 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Thu, 8 Nov 2012 00:40:21 +0000 Subject: make compatability macros for garbage collection --- javascript/jsapi/htmldocument.bnd | 1 - javascript/jsapi/window.bnd | 8 ++++---- 2 files changed, 4 insertions(+), 5 deletions(-) (limited to 'javascript/jsapi') diff --git a/javascript/jsapi/htmldocument.bnd b/javascript/jsapi/htmldocument.bnd index b642cabe6..272bbd2a9 100644 --- a/javascript/jsapi/htmldocument.bnd +++ b/javascript/jsapi/htmldocument.bnd @@ -173,7 +173,6 @@ operation write %{ /* in dom Document */ operation createTextNode %{ dom_string *data_dom; - dom_element *element; dom_exception exc; dom_text *text; diff --git a/javascript/jsapi/window.bnd b/javascript/jsapi/window.bnd index 5a7de530f..45541faec 100644 --- a/javascript/jsapi/window.bnd +++ b/javascript/jsapi/window.bnd @@ -41,16 +41,16 @@ binding window { api mark %{ if (private != NULL) { if (private->document != NULL) { - JS_CallTracer(trc, private->document, JSTRACE_OBJECT); + JSAPI_GCMARK(private->document); } if (private->navigator != NULL) { - JS_CallTracer(trc, private->navigator, JSTRACE_OBJECT); + JSAPI_GCMARK(private->navigator); } if (private->console != NULL) { - JS_CallTracer(trc, private->console, JSTRACE_OBJECT); + JSAPI_GCMARK(private->console); } if (private->location != NULL) { - JS_CallTracer(trc, private->location, JSTRACE_OBJECT); + JSAPI_GCMARK(private->location); } } %} -- cgit v1.2.3