mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
[INFER] Avoid redundant TypeObject::markUnknown, bug 665289.
This commit is contained in:
parent
392d443f17
commit
47fd6595dc
4
js/src/jit-test/tests/basic/bug665289.js
Normal file
4
js/src/jit-test/tests/basic/bug665289.js
Normal file
@ -0,0 +1,4 @@
|
||||
delete this.Function;
|
||||
a = evalcx("lazy");
|
||||
a["Object"] = this;
|
||||
if (typeof a.isPrototypeOf == "") {}
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user