diff --git a/javascript/jsapi/window.bnd b/javascript/jsapi/window.bnd index bf3f1700d..865cbf3d4 100644 --- a/javascript/jsapi/window.bnd +++ b/javascript/jsapi/window.bnd @@ -38,6 +38,23 @@ binding window { internal "JSObject *" location; } +api mark %{ + if (private != NULL) { + if (private->document != NULL) { + JS_CallTracer(trc, private->document, JSTRACE_OBJECT); + } + if (private->navigator != NULL) { + JS_CallTracer(trc, private->navigator, JSTRACE_OBJECT); + } + if (private->console != NULL) { + JS_CallTracer(trc, private->console, JSTRACE_OBJECT); + } + if (private->location != NULL) { + JS_CallTracer(trc, private->location, JSTRACE_OBJECT); + } + } +%} + api global %{ %}