mirror of
https://github.com/servo/servo
synced 2026-04-26 17:45:19 +02:00
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:
committed by
GitHub
parent
12b8f5794b
commit
f340042c1d
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user