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

Fixes disableWorker regression
Remove LegacyPromise in src/core/core.js