aboutsummaryrefslogtreecommitdiff
path: root/src/bun.js/builtins
diff options
context:
space:
mode:
Diffstat (limited to 'src/bun.js/builtins')
-rw-r--r--src/bun.js/builtins/cpp/ReadableStreamInternalsBuiltins.cpp5
-rw-r--r--src/bun.js/builtins/js/ReadableStreamInternals.js3
2 files changed, 1 insertions, 7 deletions
diff --git a/src/bun.js/builtins/cpp/ReadableStreamInternalsBuiltins.cpp b/src/bun.js/builtins/cpp/ReadableStreamInternalsBuiltins.cpp
index a862fc0b4..79db2b727 100644
--- a/src/bun.js/builtins/cpp/ReadableStreamInternalsBuiltins.cpp
+++ b/src/bun.js/builtins/cpp/ReadableStreamInternalsBuiltins.cpp
@@ -2253,7 +2253,7 @@ const char* const s_readableStreamInternalsReadableStreamDefaultControllerCanClo
const JSC::ConstructAbility s_readableStreamInternalsLazyLoadStreamCodeConstructAbility = JSC::ConstructAbility::CannotConstruct;
const JSC::ConstructorKind s_readableStreamInternalsLazyLoadStreamCodeConstructorKind = JSC::ConstructorKind::None;
const JSC::ImplementationVisibility s_readableStreamInternalsLazyLoadStreamCodeImplementationVisibility = JSC::ImplementationVisibility::Public;
-const int s_readableStreamInternalsLazyLoadStreamCodeLength = 2701;
+const int s_readableStreamInternalsLazyLoadStreamCodeLength = 2512;
static const JSC::Intrinsic s_readableStreamInternalsLazyLoadStreamCodeIntrinsic = JSC::NoIntrinsic;
const char* const s_readableStreamInternalsLazyLoadStreamCode =
"(function (stream, autoAllocateChunkSize) {\n" \
@@ -2277,7 +2277,6 @@ const char* const s_readableStreamInternalsLazyLoadStreamCode =
" handleResult = function handleResult(result, controller, view) {\n" \
" \"use strict\";\n" \
"\n" \
- " console.log(\"handleResult\", result, controller, view);\n" \
" \n" \
" if (result && @isPromise(result)) {\n" \
" return result.then(\n" \
@@ -2289,10 +2288,8 @@ const char* const s_readableStreamInternalsLazyLoadStreamCode =
" );\n" \
" } else if (result !== false) {\n" \
" if (view && view.byteLength === result) {\n" \
- " console.log(\"view\", result, controller.byobRequest);\n" \
" controller.byobRequest.respondWithNewView(view);\n" \
" } else {\n" \
- " console.log(\"result\", result, controller.byobRequest);\n" \
" controller.byobRequest.respond(result);\n" \
" }\n" \
" }\n" \
diff --git a/src/bun.js/builtins/js/ReadableStreamInternals.js b/src/bun.js/builtins/js/ReadableStreamInternals.js
index a1e496290..3d14535ca 100644
--- a/src/bun.js/builtins/js/ReadableStreamInternals.js
+++ b/src/bun.js/builtins/js/ReadableStreamInternals.js
@@ -1855,7 +1855,6 @@ function lazyLoadStream(stream, autoAllocateChunkSize) {
handleResult = function handleResult(result, controller, view) {
"use strict";
- console.log("handleResult", result, controller, view);
if (result && @isPromise(result)) {
return result.then(
@@ -1867,10 +1866,8 @@ function lazyLoadStream(stream, autoAllocateChunkSize) {
);
} else if (result !== false) {
if (view && view.byteLength === result) {
- console.log("view", result, controller.byobRequest);
controller.byobRequest.respondWithNewView(view);
} else {
- console.log("result", result, controller.byobRequest);
controller.byobRequest.respond(result);
}
}