Bug 391851: JS_ResolveStandardClass now does nothing on shutdown. r=brendan

This commit is contained in:
igor@mir2.org 2007-08-12 15:11:38 -07:00
Родитель 3b9742e4ba
Коммит bc6feecd10
1 изменённых файлов: 5 добавлений и 3 удалений

Просмотреть файл

@ -1440,10 +1440,12 @@ JS_ResolveStandardClass(JSContext *cx, JSObject *obj, jsval id,
CHECK_REQUEST(cx);
*resolved = JS_FALSE;
if (!JSVAL_IS_STRING(id))
return JS_TRUE;
idstr = JSVAL_TO_STRING(id);
rt = cx->runtime;
JS_ASSERT(rt->state != JSRTS_DOWN);
if (rt->state == JSRTS_LANDING || !JSVAL_IS_STRING(id))
return JS_TRUE;
idstr = JSVAL_TO_STRING(id);
/* Check whether we're resolving 'undefined', and define it if so. */
atom = rt->atomState.typeAtoms[JSTYPE_VOID];