mirror of
https://github.com/servo/servo.git
synced 2025-07-22 14:53:49 +01:00
Replace CanGc::note() calls with arguments in components/script
(#33816)
* Replace CanGc::note() calls with arguments in components/script Signed-off-by: taniishkaaa <tanishkasingh2004@gmail.com> * Revert changes for task macro Signed-off-by: taniishkaaa <tanishkasingh2004@gmail.com> --------- Signed-off-by: taniishkaaa <tanishkasingh2004@gmail.com>
This commit is contained in:
parent
a86dcfc6e7
commit
e5e1ef9fb6
3 changed files with 5 additions and 4 deletions
|
@ -145,6 +145,7 @@ pub fn Fetch(
|
|||
input: RequestInfo,
|
||||
init: RootedTraceableBox<RequestInit>,
|
||||
comp: InRealm,
|
||||
can_gc: CanGc,
|
||||
) -> Rc<Promise> {
|
||||
let core_resource_thread = global.core_resource_thread();
|
||||
|
||||
|
@ -158,7 +159,7 @@ pub fn Fetch(
|
|||
|
||||
// Step 2. Let requestObject be the result of invoking the initial value of Request as constructor
|
||||
// with input and init as arguments. If this throws an exception, reject p with it and return p.
|
||||
let request = match Request::Constructor(global, None, CanGc::note(), input, init) {
|
||||
let request = match Request::Constructor(global, None, can_gc, input, init) {
|
||||
Err(e) => {
|
||||
response.error_stream(e.clone());
|
||||
promise.reject_error(e);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue