On 2016-06-01 1:03 PM, Jan de Mooij wrote: > Hi all, > > Just a heads-up: we want to change how exceptions are reported to the > embedding [0]. > > The current/old behavior: the embedding sets an error reporter callback > (JS_SetErrorReporter), and the engine calls this when it throws an > exception and script doesn't catch it. > > The new behavior: the callback will be renamed and will only be used for > warnings. Exceptions will be left on the JSContext and the embedding can > use JS_GetPendingException to get it. A RAII class is useful for this, for > instance see our code for the shell [1] and Gecko [2].
This sounds great! Is the plan to provide that RAII class in the public API, out of curiosity? > You can test this right now by setting the autoJSAPIOwnsErrorReporting > JSContext option. This option (and the dontReportUncaught option) will also > be removed though. > > Please let us know if you have any questions or concerns. It would be helpful if these renames and removals can all happen at the same time so that the embedders notice the behavior change by getting compiler errors. Cheers, Ehsan _______________________________________________ dev-tech-js-engine-internals mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-js-engine-internals

