mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-06 00:55:37 +00:00
[INFER] Fix assertion failure, bug 673705. r=bhackett
This commit is contained in:
parent
bb6847a2de
commit
96e1b12dd9
10
js/src/jit-test/tests/basic/bug673705.js
Normal file
10
js/src/jit-test/tests/basic/bug673705.js
Normal file
@ -0,0 +1,10 @@
|
||||
function bug673705() {
|
||||
var x;
|
||||
try {
|
||||
} catch (e) {
|
||||
} finally {
|
||||
print(x);
|
||||
}
|
||||
return x;
|
||||
}
|
||||
assertEq(bug673705(), undefined);
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user