mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
refactor: add CanGc as argument to create_buffer_source (#35597)
Signed-off-by: Yerkebulan Tulibergenov <yerkebulan@gmail.com>
This commit is contained in:
parent
35f21e426b
commit
245a39c07e
22 changed files with 169 additions and 96 deletions
|
@ -281,7 +281,7 @@ impl BlobMethods<crate::DomTypeHolder> for Blob {
|
|||
match bytes {
|
||||
Ok(b) => {
|
||||
let cx = GlobalScope::get_cx();
|
||||
let result = run_array_buffer_data_algorithm(cx, b);
|
||||
let result = run_array_buffer_data_algorithm(cx, b, CanGc::note());
|
||||
|
||||
match result {
|
||||
Ok(FetchedData::ArrayBuffer(a)) => promise.resolve_native(&a),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue