diff options
Diffstat (limited to 'components/script/fetch.rs')
-rw-r--r-- | components/script/fetch.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/fetch.rs b/components/script/fetch.rs index 9166914cda7..78f3f28c4f2 100644 --- a/components/script/fetch.rs +++ b/components/script/fetch.rs @@ -144,7 +144,7 @@ pub fn Fetch( can_gc: CanGc, ) -> Rc<Promise> { // Step 1. Let p be a new promise. - let promise = Promise::new_in_current_realm(comp); + let promise = Promise::new_in_current_realm(comp, can_gc); // Step 7. Let responseObject be null. // NOTE: We do initialize the object earlier earlier so we can use it to track errors |