Bug 477053 - Protect against evil E4X jsvals in args_resolve. r=brendan

This commit is contained in:
Blake Kaplan 2009-02-05 14:50:26 -08:00
parent 6043733d94
commit 0fa948a984

View File

@ -461,7 +461,7 @@ args_resolve(JSContext *cx, JSObject *obj, jsval id, uintN flags,
}
*objp = obj;
}
} else {
} else if (JSVAL_IS_STRING(id)) {
str = JSVAL_TO_STRING(id);
atom = cx->runtime->atomState.lengthAtom;
if (str == ATOM_TO_STRING(atom)) {