forked from mirrors/0ad
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:
@@ -578,7 +578,7 @@ JSBool JSI_IGUIObject::setProperty(JSContext* cx, JSObject* obj, jsid id, jsval*
|
||||
break;
|
||||
}
|
||||
|
||||
return JS_TRUE;
|
||||
return !JS_IsExceptionPending(cx);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user