Some initialization errors for asynchronous transforms are not handled correctly
While testing the issue raised in forum post https://saxonica.plan.io/boards/5/topics/8759 ('"Error parsing supplied SEF" when attempting transform using property stylesheetText'), I discovered that there are some cases where we do not correctly handle errors when initializing asynchronous transforms. Specifically, in
transform() for asynchronous transforms the SEF and source are loaded asynchronously using promises, and once both are available, the
go() function is called. However, there are a couple of cases where errors loading the SEF are thrown directly, rather than returning a rejected promise.
Updated by Debbie Lockett over 1 year ago
- Status changed from In Progress to Resolved
- Fix Committed on JS Branch 2, Trunk added
Fix committed on saxonjs2 and main branches: to tidy the code by using
Promise.reject() as necessary for these initialization errors.
New saxonapi unit tests added: async-trans-050, -051, -052, -053; async-trans-905, -906, -907; sync-trans-905, -906, -907.
Please register to edit this issue