Closed Bug 504474 Opened 11 years ago Closed 11 years ago
_Value To Boolean is void
according to brendan JS_ValueToBoolean will never return JS_FALSE, so we can stop pretending it will. This will make Coverity happy since we're slightly inconsistent at this point.
The API could be changed too, but at some cost to embedders. Probably better to focus on new C++ API. /be
In any new API that was infallible, the cx param would go, since its presence implies fallibility -- it is used only to CHECK_REQUEST(cx) in the current API wrapper impl. Could have new API in jsapi.h, but opt-in by name or ifdef. Worth it? Comments welcome. /be
Comment on attachment 388844 [details] [diff] [review] stop checking the return value Just noticed the quickstub generation code uses PRBool to declare the out param, which works because JSBool is PRBool is int, but JSBool is better. Looking mainly for jorendorff's blessing since I am weak reviewer for the quickstubs code, at best. /be
Attachment #388844 - Flags: review?(jorendorff) → review+
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.