Index: LayoutTests/http/tests/xmlhttprequest/resources/response-stream-orphaned-promise.js |
diff --git a/LayoutTests/http/tests/xmlhttprequest/resources/response-stream-orphaned-promise.js b/LayoutTests/http/tests/xmlhttprequest/resources/response-stream-orphaned-promise.js |
index ba2af06ea8f61c04ef002e58b1bacd5e0f48d230..ddb9f8c89b0bf87d1f066f9fa4f214b82e27e886 100644 |
--- a/LayoutTests/http/tests/xmlhttprequest/resources/response-stream-orphaned-promise.js |
+++ b/LayoutTests/http/tests/xmlhttprequest/resources/response-stream-orphaned-promise.js |
@@ -15,7 +15,7 @@ function fetchBody(url) { |
visited = true; |
// Note that all provided urls have empty bodies, so |
// we don't have to read the data. |
- xhr.response.closed.then(resolve, reject); |
+ xhr.response.getReader().closed.then(resolve, reject); |
}; |
xhr.open('GET', url); |
xhr.send(); |