diff options
author | Yerkebulan Tulibergenov <yerkebulan@gmail.com> | 2025-02-23 14:32:13 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-02-23 22:32:13 +0000 |
commit | 47f6c50dd9aa113c80409d8f9794cfc883335c61 (patch) | |
tree | 6ee605853c2a66db689682e2e8c99c94e3f9bcee /components/script/body.rs | |
parent | 678f0c9fdcab1782041317514e47e21608353e28 (diff) | |
download | servo-47f6c50dd9aa113c80409d8f9794cfc883335c61.tar.gz servo-47f6c50dd9aa113c80409d8f9794cfc883335c61.zip |
refactor: add CanGc as argument to Promise::reject (#35622)
Signed-off-by: Yerkebulan Tulibergenov <yerkebulan@gmail.com>
Diffstat (limited to 'components/script/body.rs')
-rw-r--r-- | components/script/body.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/body.rs b/components/script/body.rs index 675655b5c74..2d01184ad1b 100644 --- a/components/script/body.rs +++ b/components/script/body.rs @@ -600,8 +600,8 @@ impl Callback for ConsumeBodyPromiseRejectionHandler { /// Continuing Step 4 of <https://fetch.spec.whatwg.org/#concept-body-consume-body> /// Step 3 of <https://fetch.spec.whatwg.org/#concept-read-all-bytes-from-readablestream>, // the rejection steps. - fn callback(&self, cx: JSContext, v: HandleValue, _realm: InRealm, _can_gc: CanGc) { - self.result_promise.reject(cx, v); + fn callback(&self, cx: JSContext, v: HandleValue, _realm: InRealm, can_gc: CanGc) { + self.result_promise.reject(cx, v, can_gc); } } |