mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 914132 part 1 - MTypeOf should never be effectful. r=evilpie
This commit is contained in:
parent
2dbe63d2e2
commit
712a357915
@ -8937,8 +8937,6 @@ IonBuilder::jsop_typeof()
|
||||
current->add(ins);
|
||||
current->push(ins);
|
||||
|
||||
if (ins->isEffectful() && !resumeAfter(ins))
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -2919,11 +2919,7 @@ class MTypeOf
|
||||
MDefinition *foldsTo(bool useValueNumbers);
|
||||
|
||||
AliasSet getAliasSet() const {
|
||||
if (inputType_ <= MIRType_String)
|
||||
return AliasSet::None();
|
||||
|
||||
// For objects, typeof may invoke an effectful typeof hook.
|
||||
return AliasSet::Store(AliasSet::Any);
|
||||
return AliasSet::None();
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user