[INFER] Avoid redundant TypeObject::markUnknown, bug 665289.

This commit is contained in:
Brian Hackett 2011-07-02 06:58:06 -07:00
parent 392d443f17
commit 47fd6595dc
2 changed files with 5 additions and 1 deletions

View File

@ -0,0 +1,4 @@
delete this.Function;
a = evalcx("lazy");
a["Object"] = this;
if (typeof a.isPrototypeOf == "") {}

View File

@ -2661,7 +2661,7 @@ TypeObject::splicePrototype(JSContext *cx, JSObject *proto)
AutoEnterTypeInference enter(cx);
if (proto->getType()->unknownProperties()) {
if (proto->getType()->unknownProperties() && !unknownProperties()) {
markUnknown(cx);
return;
}