summaryrefslogtreecommitdiffstats
path: root/js/src/tests/non262/ReadableStream/tee-start.js
blob: dbb6b1142d9736e6490b16f1e1371f34c7fa6dd0 (plain)
1
2
3
4
5
6
7
8
9
10
11
// |reftest| skip-if(!this.ReadableStream||!this.drainJobQueue)
// stream.tee() shouldn't try to call a .start() method.

Object.prototype.start = function () { throw "FAIL"; };
let source = Object.create(null);
new ReadableStream(source).tee();

drainJobQueue();

if (typeof reportCompare == 'function')
    reportCompare(0, 0);