"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.stringToReadableStream = stringToReadableStream;
function stringToReadableStream(system, str) {
    const { api: { window: { ReadableStream }, text: { TextEncoder }, }, } = system;
    return new ReadableStream({
        start(controller) {
            controller.enqueue(new TextEncoder().encode(str));
            controller.close();
        },
    });
}
//# sourceMappingURL=readable.js.map