Issue #1442 - Part 18 - Cycle collect FetchStreamReader. https://bugzilla.mozilla.org/show_bug.cgi?id=1128959

This commit is contained in:
Brian Smith 2023-09-28 22:17:06 -05:00 committed by roytam1
commit b898780bb1
4 changed files with 28 additions and 6 deletions

View file

@ -922,10 +922,9 @@ FetchBody<Derived>::BodyUsed() const
// If this object is disturbed or locked, return false.
if (mReadableStreamBody) {
AutoJSAPI jsapi;
// If we start tracking ownership, we need something like this.
//if (!jsapi.Init(mOwner)) {
// return true;
//}
if (!jsapi.Init(mOwner)) {
return true;
}
JSContext* cx = jsapi.cx();