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.
Please register to edit this issue