Replace CanGC note calls with arguments passed by callers (#33978)

Signed-off-by: Wulan Seruniati Salim <wulanseruniati@gmail.com>
Co-authored-by: Wulan Seruniati Salim <lauwwulan1806@gmail.com>
This commit is contained in:
Wulan Seruniati Salim 2024-10-24 05:19:20 +07:00 committed by GitHub
parent 9d75862c7d
commit 3ed778150f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 5 additions and 5 deletions

View file

@ -708,7 +708,7 @@ impl Callback for ConsumeBodyPromiseHandler {
let realm = enter_realm(&*global);
let comp = InRealm::Entered(&realm);
read_promise.append_native_handler(&handler, comp, CanGc::note());
read_promise.append_native_handler(&handler, comp, can_gc);
}
}
}