diff --git a/ext/web/06_streams.js b/ext/web/06_streams.js index 09e5b74148..933d7b09ca 100644 --- a/ext/web/06_streams.js +++ b/ext/web/06_streams.js @@ -2675,7 +2675,9 @@ ], ); } - cancelPromise.resolve(undefined); + if (canceled1 === false || canceled2 === false) { + cancelPromise.resolve(undefined); + } }, errorSteps() { reading = false; diff --git a/tools/wpt/expectation.json b/tools/wpt/expectation.json index d5560ffb6b..e9dfa03d0a 100644 --- a/tools/wpt/expectation.json +++ b/tools/wpt/expectation.json @@ -1336,8 +1336,12 @@ "patched-global.any.worker.html": true, "reentrant-strategies.any.html": true, "reentrant-strategies.any.worker.html": true, - "tee.any.html": false, - "tee.any.worker.html": false, + "tee.any.html": [ + "ReadableStream teeing: enqueue() and close() while both branches are pulling" + ], + "tee.any.worker.html": [ + "ReadableStream teeing: enqueue() and close() while both branches are pulling" + ], "templated.any.html": true, "templated.any.worker.html": true },