Let exceptions in GUI script events triggered by script setters propagate out of the setter, so error messages aren't useless.

This was SVN commit r8997.
This commit is contained in:
Ykkrosh
2011-02-27 17:57:32 +00:00
parent eb163c8d24
commit d045258c29
2 changed files with 3 additions and 2 deletions
@@ -578,7 +578,7 @@ JSBool JSI_IGUIObject::setProperty(JSContext* cx, JSObject* obj, jsid id, jsval*
break;
}
return JS_TRUE;
return !JS_IsExceptionPending(cx);
}