summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/stream/bug-1512008.js
blob: 32dc847256d23713d092dfe589a67c1d9ef9f914 (plain)
1
2
3
4
5
6
7
8
9
// |jit-test| skip-if: !this.hasOwnProperty("ReadableStream")
ignoreUnhandledRejections();

Object.defineProperty(Promise, Symbol.species, {
  value: function(g) {
    g(function() {}, function() {})
  }
});
new ReadableStream().tee();