Remove LegacyPromise from src/core/obj.js