[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 62e90008e7
commit 214f56d7ea

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;
}