зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
edae1198c7
Коммит
732a318bfe
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче