Remove LegacyPromise in src/core/pdf_manager.js