Bug 990787, part 2 - Don't call markUnknown again after GetProperty fails; once is enough. r=jandem.

--HG--
extra : rebase_source : e7776f6f054b5dc85339091497d65be7354afd38
This commit is contained in:
Jason Orendorff 2014-04-08 12:35:17 -05:00
parent 941ab7fb5d
commit e703146ea9

View File

@ -375,7 +375,7 @@ EnsureTrackPropertyTypes(JSContext *cx, JSObject *obj, jsid id)
return;
}
if (!obj->type()->unknownProperties() && !obj->type()->getProperty(cx, id)) {
obj->type()->markUnknown(cx);
MOZ_ASSERT(obj->type()->unknownProperties());
return;
}
}