Use concrete factory constructor for DomXMLHttpRequest (#115094)

This code should be calling the factory method, not the synthetic
constructor.
This commit is contained in:
Srujan Gaddam 2022-11-16 13:15:29 -08:00 committed by GitHub
parent 84357cbc4f
commit f205471a69
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,7 +18,7 @@ typedef HttpRequestFactory = DomXMLHttpRequest Function();
/// Default HTTP client.
DomXMLHttpRequest _httpClient() {
return DomXMLHttpRequest();
return createDomXMLHttpRequest();
}
/// Creates an overridable factory function.