mirror of
https://github.com/oven-sh/bun
synced 2026-02-13 12:29:07 +00:00
Fix ReadableStream.prototype.tee
This commit is contained in:
@@ -751,7 +751,7 @@ const char* const s_readableStreamInternalsPipeToFinalizeCode =
|
||||
const JSC::ConstructAbility s_readableStreamInternalsReadableStreamTeeCodeConstructAbility = JSC::ConstructAbility::CannotConstruct;
|
||||
const JSC::ConstructorKind s_readableStreamInternalsReadableStreamTeeCodeConstructorKind = JSC::ConstructorKind::None;
|
||||
const JSC::ImplementationVisibility s_readableStreamInternalsReadableStreamTeeCodeImplementationVisibility = JSC::ImplementationVisibility::Public;
|
||||
const int s_readableStreamInternalsReadableStreamTeeCodeLength = 1689;
|
||||
const int s_readableStreamInternalsReadableStreamTeeCodeLength = 1839;
|
||||
static const JSC::Intrinsic s_readableStreamInternalsReadableStreamTeeCodeIntrinsic = JSC::NoIntrinsic;
|
||||
const char* const s_readableStreamInternalsReadableStreamTeeCode =
|
||||
"(function (stream, shouldClone) {\n" \
|
||||
@@ -760,6 +760,12 @@ const char* const s_readableStreamInternalsReadableStreamTeeCode =
|
||||
" @assert(@isReadableStream(stream));\n" \
|
||||
" @assert(typeof shouldClone === \"boolean\");\n" \
|
||||
"\n" \
|
||||
" var start_ = @getByIdDirectPrivate(stream, \"start\");\n" \
|
||||
" if (start_) {\n" \
|
||||
" @putByIdDirectPrivate(stream, \"start\", @undefined);\n" \
|
||||
" start_();\n" \
|
||||
" }\n" \
|
||||
"\n" \
|
||||
" const reader = new @ReadableStreamDefaultReader(stream);\n" \
|
||||
"\n" \
|
||||
" const teeState = {\n" \
|
||||
|
||||
Reference in New Issue
Block a user