Re: JS52 Compiler: JS::Compile returns false, but no errors reported by WarningReporter

Kent Williams <[email protected]> Wed, 20 Dec 2017 13:44:33 -0600
Newsgroups gmane.comp.mozilla.devel.jseng
Message-ID <[email protected]>
Yeah, OK I found a good example of grabbing the exception error message.

https://dxr.mozilla.org/mozilla-central/source/dom/file/FileReader.cpp

On 12/20/2017 12:22 PM, Boris Zbarsky wrote:
> 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

_______________________________________________
dev-tech-js-engine mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-js-engine