summaryrefslogtreecommitdiffstats
path: root/dom/streams/test/xpcshell/proper-realm-pull.js
blob: 9d42d9a65d9e62a31ff3831e80a52d20e1043465 (plain)
1
2
3
4
5
6
// This test passes if we don't have a CCW assertion.

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

new ReadableStream({ pull: ccwPullMethod });