|
@@ -36,8 +36,7 @@ JS::NonnullGCPtr<JS::Promise> fetch(JS::VM& vm, RequestInfo const& input, Reques
|
|
|
// as arguments. If this throws an exception, reject p with it and return p.
|
|
|
auto exception_or_request_object = Request::construct_impl(realm, input, init);
|
|
|
if (exception_or_request_object.is_exception()) {
|
|
|
- // FIXME: We should probably make this a public API?
|
|
|
- auto throw_completion = Bindings::Detail::dom_exception_to_throw_completion(vm, exception_or_request_object.release_error());
|
|
|
+ auto throw_completion = Bindings::dom_exception_to_throw_completion(vm, exception_or_request_object.exception());
|
|
|
WebIDL::reject_promise(realm, promise_capability, *throw_completion.value());
|
|
|
return verify_cast<JS::Promise>(*promise_capability->promise().ptr());
|
|
|
}
|