Remove LegacyPromise in src/core/core.js