Bug 499019: don't report errors for code that is 'not reached', even as an intermediate result, r=jorendorff

This commit is contained in:
David Mandelin 2009-06-23 10:52:52 -07:00
Родитель ca47be33c5
Коммит b5835292b2
1 изменённых файлов: 2 добавлений и 1 удалений

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

@ -172,7 +172,8 @@ RedGreenCheck.prototype.flowState = function(isn, state) {
// warning("(Remove the workaround in jsstack.js and recompile to get a JS stack trace.)",
// location_of(isn));
//}
let green = (state.get(this._state_var_decl) != 1);
let stackState = state.get(this._state_var_decl);
let green = stackState != 1 && stackState != ESP.NOT_REACHED;
let redInfo = isn.redInfo;
if (green && redInfo) {
error(redInfo[0], redInfo[1]);