mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-23 02:05:42 +00:00
Bug 391851: JS_ResolveStandardClass now does nothing on shutdown. r=brendan
This commit is contained in:
parent
3b9742e4ba
commit
bc6feecd10
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user