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

ignoreUnhandledRejections();

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

new ReadableStream({ cancel: ccwCancelMethod }).cancel("bye");