[INFER] Fix assertion failure, bug 673705. r=bhackett

This commit is contained in:
Shu-yu Guo 2011-07-25 11:02:44 -07:00
parent bb6847a2de
commit 96e1b12dd9
2 changed files with 11 additions and 1 deletions

View File

@ -0,0 +1,10 @@
function bug673705() {
var x;
try {
} catch (e) {
} finally {
print(x);
}
return x;
}
assertEq(bug673705(), undefined);

View File

@ -1247,7 +1247,7 @@ inline void
ScriptAnalysis::ensureVariable(LifetimeVariable &var, unsigned until)
{
JS_ASSERT(var.lifetime);
JS_ASSERT(until < var.lifetime->start);
JS_ASSERT(until <= var.lifetime->start);
var.lifetime->start = until;
var.ensured = true;
}