summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/stream/proper-realm-pull.js
blob: 60ef7f5d822e2f057da00a4f391cd368208bb73a (plain)
1
2
3
4
5
6
7
// |jit-test| skip-if: !this.hasOwnProperty("ReadableStream")
ignoreUnhandledRejections();

var g = newGlobal({ newCompartment: true });
var ccwPullMethod = new g.Function("return 17;");

new ReadableStream({ pull: ccwPullMethod });