Worker crashes when a Response is passed to FetchEvent.respondWith

Both the Cloudflare docs and MDN say I’m allowed to pass a Response object to the respondWith method. Yet this error appears when I do:

Failed to execute ‘respondWith’ on ‘FetchEvent’: parameter 1 is not of type ‘Promise’.