Re: JS52 Compiler: JS::Compile returns false, but no errors reported by WarningReporter
Boris Zbarsky <[email protected]> Wed, 20 Dec 2017 13:22:19 -0500
| Newsgroups | gmane.comp.mozilla.devel.jseng |
|---|---|
| Message-ID | <[email protected]> |
On 12/20/17 12:31 PM, Kent Williams wrote: > Trying to do something rather complex (*cough* TypeScript *cough*) and > having trouble diagnosing the problem. The compile fails but I'm not > getting any error messages via the handler I set using > JS::SetWarningReporter. > > Is there something I'm missing here? JS::SetWarningReporter sets a thing to be used for warnings, not errors. To handle errors, you should examine the pending exception on the JSContext if a JSAPI call fails. -Boris _______________________________________________ dev-tech-js-engine mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-js-engine