script: Pass &mut JSContext to FetchResponseListener::process_response_chunk (#43657)

Fixes #42841

Testing: It compiles

Signed-off-by: Tim van der Lippe <tvanderlippe@gmail.com>
This commit is contained in:
Tim van der Lippe
2026-03-26 19:05:24 +01:00
committed by GitHub
parent 12b8f5794b
commit f340042c1d
20 changed files with 144 additions and 47 deletions

View File

@@ -376,7 +376,12 @@ impl FetchResponseListener for ClassicContext {
};
}
fn process_response_chunk(&mut self, _: RequestId, mut chunk: Vec<u8>) {
fn process_response_chunk(
&mut self,
_: &mut js::context::JSContext,
_: RequestId,
mut chunk: Vec<u8>,
) {
if self.status.is_ok() {
self.data.append(&mut chunk);
}