Files
tubestation/dom/streams/test/xpcshell/proper-realm-cancel.js
Matthew Gaudet 822fc3476f Bug 1746650 - Finish porting suitable JS tests r=smaug
Remaining tests rely on shell only features like the promise rejection tracker,
or rely on CCWs getting created where the new implementation will not create
them (as the compartment ends up being determined by the parent object).

Differential Revision: https://phabricator.services.mozilla.com/D135292
2022-01-18 20:40:14 +00:00

6 lines
191 B
JavaScript

// 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");