diff options
Diffstat (limited to 'components/script/dom/gpubuffer.rs')
-rw-r--r-- | components/script/dom/gpubuffer.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/components/script/dom/gpubuffer.rs b/components/script/dom/gpubuffer.rs index 3b6f8eb6fe3..7cd56c9741c 100644 --- a/components/script/dom/gpubuffer.rs +++ b/components/script/dom/gpubuffer.rs @@ -238,8 +238,9 @@ impl GPUBufferMethods for GPUBuffer { offset: GPUSize64, size: Option<GPUSize64>, comp: InRealm, + can_gc: CanGc, ) -> Rc<Promise> { - let promise = Promise::new_in_current_realm(comp); + let promise = Promise::new_in_current_realm(comp, can_gc); // Step 2 if self.pending_map.borrow().is_some() { promise.reject_error(Error::Operation); |