Function mozjs::jsapi::JS_ReportWarning [] [src]

pub unsafe extern "C" fn JS_ReportWarning(
    cx: *mut JSContext,
    format: *const c_char,
     ...
) -> bool

As above, but report a warning instead (JSREPORT_IS_WARNING(report.flags)). Return true if there was no error trying to issue the warning, and if the warning was not converted into an error due to the JSOPTION_WERROR option being set, false otherwise.