Fixes disableWorker regression
Merge pull request #4730 from yurydelendik/disableworker

Fixes disableWorker regression
Remove LegacyPromise in src/shared/annotation.js