Bug 1754912 - Root ReadableStreamBYOBReadResult. r=mgaudet

Differential Revision: https://phabricator.services.mozilla.com/D138565
This commit is contained in:
Tom Schuster 2022-02-11 20:24:23 +00:00
parent 24402f03bc
commit 8fd8ae0f82

View File

@ -108,7 +108,7 @@ struct Read_ReadIntoRequest final : public ReadIntoRequest {
return;
}
ReadableStreamBYOBReadResult result;
RootedDictionary<ReadableStreamBYOBReadResult> result(aCx);
result.mValue.Construct();
result.mValue.Value().Init(chunk);
result.mDone.Construct(false);