Source code

Revision control

Copy as Markdown

Other Tools

/* Any copyright is dedicated to the Public Domain.
"use strict";
Services.scriptloader.loadSubScript(
this
);
const { streamRegistry } = ChromeUtils.importESModule(
);
async function registerFileStream(contents, options) {
const stream = await createFileStream(contents, options);
const handle = streamRegistry.add(stream);
return { handle, stream };
}