Ensure Promise#then() stub can be called as a free function
Documentation for module base, Promise and CancellationError