Eliminate JS warnings due to a bad prototype chain caused by the global scope pollution class. r+sr=brendan@mozilla.org

git-svn-id: svn://10.0.0.236/trunk@161515 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
jst%mozilla.jstenback.com
2004-08-31 00:04:04 +00:00
parent efc188929c
commit b0812d2dfa

View File

@@ -3485,6 +3485,9 @@ nsWindowSH::GetInvalidatedGlobalScopePolluter(JSContext *cx, JSObject *obj)
::JS_SetPrivate(cx, proto, nsnull);
// Pull the global scope polluter out of the prototype chain.
::JS_SetPrototype(cx, obj, ::JS_GetPrototype(cx, proto));
::JS_ClearScope(cx, proto);
break;