Make argument to Promise.as optional.