Rename Promise::new to Promise::new_in_current_compartment

This commit is contained in:
Aron Zwaan 2019-03-30 21:03:20 +01:00
parent 6fa1853bb1
commit 782b58587a
25 changed files with 93 additions and 51 deletions

View file

@ -127,6 +127,7 @@ fn request_init_from_request(request: NetTraitsRequest) -> NetTraitsRequestInit
// https://fetch.spec.whatwg.org/#fetch-method
#[allow(unrooted_must_root)]
#[allow(unsafe_code)]
pub fn Fetch(
global: &GlobalScope,
input: RequestInfo,
@ -135,7 +136,7 @@ pub fn Fetch(
let core_resource_thread = global.core_resource_thread();
// Step 1
let promise = Promise::new(global);
let promise = unsafe { Promise::new_in_current_compartment(global) };
let response = Response::new(global);
// Step 2