summaryrefslogtreecommitdiffstats
path: root/dom/streams/test/xpcshell/proper-realm-cancel.js
blob: 1de6db3172dc154f2e5d77815add47737f08de00 (plain)
1
2
3
4
5
// This test passes if we don't have a CCW assertion.
var g = newGlobal();
var ccwCancelMethod = new g.Function("return 17;");

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