[JAEGER] Fix recent regression in jstest content/base/test/test_bug333198.html

This commit is contained in:
David Mandelin 2010-08-06 15:14:21 -07:00
parent d17042d2e4
commit a2a7b11dcb

View File

@ -554,7 +554,7 @@ static inline bool
FetchElementId(VMFrame &f, JSObject *obj, const Value &idval, jsid &id, Value *vp)
{
int32_t i_;
if (ValueFitsInInt32(idval, &i_)) {
if (ValueFitsInInt32(idval, &i_) && INT_FITS_IN_JSID(i_)) {
id = INT_TO_JSID(i_);
return true;
}