blob: 3c86e476e8a3449d6429da03bccf5906a3bc9b63 [file] [log] [blame]
'use strict';
if (self.importScripts) {
self.importScripts('../resources/testharness.js');
}
function teeRepetitively(stream)
{
const [t1, t2] = stream.tee();
setTimeout(() => {
teeRepetitively(t1);
}, 0);
}
test(function() {
const stream = new ReadableStream({ start: () => { } });
teeRepetitively(stream);
}, "Tee a ReadableStream in worker");
done();