diff options
Diffstat (limited to 'javascript/jsapi')
-rw-r--r-- | javascript/jsapi/window.bnd | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/javascript/jsapi/window.bnd b/javascript/jsapi/window.bnd index d06e7d478..5de0e5bf0 100644 --- a/javascript/jsapi/window.bnd +++ b/javascript/jsapi/window.bnd @@ -252,6 +252,9 @@ api init %{ /* add properties to prototype */ if (!JS_DefineProperties(cx, prototype, jsclass_properties)) return NULL; + + /* as the global just got changed, force a GC run */ + JS_GC(cx); %} api new %{ |