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

and continue.  Bug 321494, r=sicking, sr=brendan


git-svn-id: svn://10.0.0.236/trunk@187107 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bzbarsky%mit.edu
2006-01-06 23:32:21 +00:00
parent 6477e29d8b
commit 6c370bdcdf

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,