This commit is contained in:
Jarred Sumner
2022-09-25 13:08:51 -07:00
parent 7ae73fad68
commit 7cc772cd39
6 changed files with 180 additions and 15 deletions

View File

@@ -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" \