Revert "Add setValue calls in doClone to properly initialize Ref with tee'd streams"

This reverts commit 100b7fcd9f.
This commit is contained in:
Claude Bot
2025-10-05 05:45:16 +00:00
parent 100b7fcd9f
commit 07b3a65e03

View File

@@ -828,12 +828,10 @@ pub fn doClone(
if (js_wrapper != .zero) {
if (this.body.value == .Locked and readable_stream_tee[0] != .zero) {
js.gc.body.set(this_value, globalThis, readable_stream_tee[0]);
this.body.value.Locked.readable.setValue(.{ .Request = this_value }, readable_stream_tee[0], globalThis);
}
if (cloned.body.value == .Locked and readable_stream_tee[1] != .zero) {
js.gc.body.set(js_wrapper, globalThis, readable_stream_tee[1]);
cloned.body.value.Locked.readable.setValue(.{ .Request = js_wrapper }, readable_stream_tee[1], globalThis);
}
}