diff options
author | Arya Nair <aryaajitnair@gmail.com> | 2025-03-26 00:54:47 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-03-25 19:24:47 +0000 |
commit | 80fc64d0631244b4e165ecd1151b079bdfc2a2a4 (patch) | |
tree | b2c9c622234243150e54d6a4b49745c02e3f273b /components/script/body.rs | |
parent | 5a5e49ce47677eab0985cf2407a33051972178a3 (diff) | |
download | servo-80fc64d0631244b4e165ecd1151b079bdfc2a2a4.tar.gz servo-80fc64d0631244b4e165ecd1151b079bdfc2a2a4.zip |
feat: add CanGc argument in get_dictionary_property (#36156)
* feat: add CanGc argument in get_dictionary_property
Signed-off-by: Arya Nair <aryaajitnair@gmail.com>
* feat: add CanGc argument in get_dictionary_property
Signed-off-by: Arya Nair <aryaajitnair@gmail.com>
---------
Signed-off-by: Arya Nair <aryaajitnair@gmail.com>
Diffstat (limited to 'components/script/body.rs')
-rw-r--r-- | components/script/body.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/components/script/body.rs b/components/script/body.rs index 1a62556332f..c55e67d8add 100644 --- a/components/script/body.rs +++ b/components/script/body.rs @@ -282,7 +282,7 @@ struct TransmitBodyPromiseHandler { impl Callback for TransmitBodyPromiseHandler { /// Step 5 of <https://fetch.spec.whatwg.org/#concept-request-transmit-body> fn callback(&self, cx: JSContext, v: HandleValue, _realm: InRealm, can_gc: CanGc) { - let is_done = match get_read_promise_done(cx, &v) { + let is_done = match get_read_promise_done(cx, &v, can_gc) { Ok(is_done) => is_done, Err(_) => { // Step 5.5, the "otherwise" steps. @@ -299,7 +299,7 @@ impl Callback for TransmitBodyPromiseHandler { return self.stream.stop_reading(can_gc); } - let chunk = match get_read_promise_bytes(cx, &v) { + let chunk = match get_read_promise_bytes(cx, &v, can_gc) { Ok(chunk) => chunk, Err(_) => { // Step 5.5, the "otherwise" steps. @@ -660,7 +660,7 @@ impl Callback for ConsumeBodyPromiseHandler { .as_ref() .expect("ConsumeBodyPromiseHandler has no stream in callback."); - let is_done = match get_read_promise_done(cx, &v) { + let is_done = match get_read_promise_done(cx, &v, can_gc) { Ok(is_done) => is_done, Err(err) => { stream.stop_reading(can_gc); @@ -673,7 +673,7 @@ impl Callback for ConsumeBodyPromiseHandler { // When read is fulfilled with an object whose done property is true. self.resolve_result_promise(cx, can_gc); } else { - let chunk = match get_read_promise_bytes(cx, &v) { + let chunk = match get_read_promise_bytes(cx, &v, can_gc) { Ok(chunk) => chunk, Err(err) => { stream.stop_reading(can_gc); |