Make sure to return in the error condition, not just pop the JSContext stack

and continue.  Bug 321494, r=sicking, sr=brendan
This commit is contained in:
bzbarsky%mit.edu 2006-01-06 23:32:21 +00:00
parent dbc03c98c4
commit 199fb02ff4

View File

@ -3112,7 +3112,8 @@ nsTextControlFrame::SetValue(const nsAString& aValue)
JSContext* cx;
stack->Pop(&cx);
NS_ASSERTION(!cx, "Unexpected JSContext popped!");
}
}
return;
}
// Since this code does not handle user-generated changes to the text,