Closed jahands closed 9 months ago
Latest commit: 828125c1d397535342e23b32f3cf517c4cbc5793
Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.
Click here to learn what changesets are, and how to add one.
[Click here if you're a maintainer who wants to add a changeset to this PR](https://github.com/jahands/miniflare/new/fix-body-cancel?filename=.changeset/breezy-cups-lick.md&value=---%0A%22%40miniflare%2Fcore%22%3A%20patch%0A---%0A%0A%5BMiniflare%202%5D%20Fix%20body.cancel()%20throwing%20undefined%0A)
Thanks for fixing this! 🎉
We noticed while writing a test for code that uses the Cache API that
body.cancel()
existed, but threw an error complaining that the underlyingreader
was undefined.This ensures that
reader
is set before callingcancel()
. I have included a test which failed before but works after the change.