Don't pin object atoms, since those can entrain all sorts of other stuff. Bug

294893 some more, r=brendan, sr=jst, a=brendan
This commit is contained in:
bzbarsky%mit.edu 2005-05-26 13:27:57 +00:00
parent 789c075a6f
commit 1a63d106a8

View File

@ -7462,7 +7462,7 @@ js_GetFunctionNamespace(JSContext *cx, jsval *vp)
if (!obj)
return JS_FALSE;
atom = js_AtomizeObject(cx, obj, ATOM_PINNED);
atom = js_AtomizeObject(cx, obj, 0);
if (!atom)
return JS_FALSE;
rt->atomState.lazy.functionNamespaceAtom = atom;
@ -7650,7 +7650,7 @@ js_GetAnyName(JSContext *cx, jsval *vp)
METER(xml_stats.qnameobj);
METER(xml_stats.liveqnameobj);
atom = js_AtomizeObject(cx, obj, ATOM_PINNED);
atom = js_AtomizeObject(cx, obj, 0);
if (!atom)
return JS_FALSE;
rt->atomState.lazy.anynameAtom = atom;