Project

Profile

Help

Bug #5554

closed

Some initialization errors for asynchronous transforms are not handled correctly

Added by Debbie Lockett over 2 years ago. Updated about 2 years ago.

Status:
Closed
Priority:
Normal
Category:
API
Sprint/Milestone:
Start date:
2022-06-06
Due date:
% Done:

100%

Estimated time:
Applies to JS Branch:
2, Trunk
Fix Committed on JS Branch:
2, Trunk
Fixed in JS Release:
SEF Generated with:
Platforms:
Company:
-
Contact person:
-
Additional contact persons:
-

Description

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

Also available in: Atom PDF Tracking page