mirror of
https://github.com/oven-sh/bun
synced 2026-02-16 05:42:43 +00:00
Revert "Add setValue calls in doClone to properly initialize Ref with tee'd streams"
This reverts commit 100b7fcd9f.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user