Bug 1055864 - IonMonkey: Remove bogus assert in MTruncateToInt32, r=jandem

This commit is contained in:
Hannes Verschore 2014-08-25 10:08:24 +02:00
Родитель ef1c647d6b
Коммит d7c0ae169d
2 изменённых файлов: 8 добавлений и 1 удалений

Просмотреть файл

@ -0,0 +1,8 @@
function f() {}
(function() {
f()
})()
function g() {
new f >> 0
}
g()

Просмотреть файл

@ -3918,7 +3918,6 @@ class MTruncateToInt32
// An object might have "valueOf", which means it is effectful. // An object might have "valueOf", which means it is effectful.
// ToInt32(symbol) throws. // ToInt32(symbol) throws.
MOZ_ASSERT(def->type() != MIRType_Object);
if (def->mightBeType(MIRType_Object) || def->mightBeType(MIRType_Symbol)) if (def->mightBeType(MIRType_Object) || def->mightBeType(MIRType_Symbol))
setGuard(); setGuard();
} }