From 2d80f94edafe09329b027424b32908632694553d Mon Sep 17 00:00:00 2001 From: Ciro Spaciari Date: Mon, 4 Sep 2023 16:26:49 -0300 Subject: fix(HTMLRewriter) buffer response before transform (#4418) * html rewriter response buffering * pipe the data when marked as used * fix empty response * add some fetch tests * deinit parent stream * fix decompression * keep byte_reader alive * update builds * remove nonsense * was not nonsense after all * protect tmp ret value from GC, fix readable strong ref deinit/init * fmt * if we detach the stream we cannot update the fetch stream * detach checking source * more tests, progress with javascript and Direct sink * drop support for pure readable stream for now * more fixes --------- Co-authored-by: Jarred Sumner --- src/bun.js/bindings/ZigGlobalObject.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/bun.js/bindings/ZigGlobalObject.h') diff --git a/src/bun.js/bindings/ZigGlobalObject.h b/src/bun.js/bindings/ZigGlobalObject.h index 5ba155c99..029f90132 100644 --- a/src/bun.js/bindings/ZigGlobalObject.h +++ b/src/bun.js/bindings/ZigGlobalObject.h @@ -341,8 +341,11 @@ public: CallbackJob__onResolve, CallbackJob__onReject, + + Bun__BodyValueBufferer__onRejectStream, + Bun__BodyValueBufferer__onResolveStream, }; - static constexpr size_t promiseFunctionsSize = 22; + static constexpr size_t promiseFunctionsSize = 24; static PromiseFunctions promiseHandlerID(EncodedJSValue (*handler)(JSC__JSGlobalObject* arg0, JSC__CallFrame* arg1)); -- cgit v1.2.3