We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 390b963 commit e21a7b2Copy full SHA for e21a7b2
1 file changed
lib/web/fetch/body.js
@@ -438,7 +438,11 @@ function mixinBody (prototype, getInternalState) {
438
* @param {(target: any) => any} getInternalState
439
*/
440
function consumeBody (object, convertBytesToJSValue, instance, getInternalState) {
441
- webidl.brandCheck(object, instance)
+ try {
442
+ webidl.brandCheck(object, instance)
443
+ } catch (e) {
444
+ return Promise.reject(e)
445
+ }
446
447
const state = getInternalState(object)
448
0 commit comments