Backed out changeset c6cf679e8f08 (bug 1773237) for causing bc failures on Promise-inl.h. CLOSED TREE
This commit is contained in:
@@ -151,11 +151,6 @@ void FetchStreamReader::CloseAndRelease(JSContext* aCx, nsresult aStatus) {
|
||||
MOZ_KnownLive(mReader)->Cancel(aCx, errorValue, ignoredError);
|
||||
NS_WARNING_ASSERTION(!ignoredError.Failed(),
|
||||
"Failed to cancel stream during close and release");
|
||||
if (ignoredResultPromise) {
|
||||
bool setSettled = ignoredResultPromise->SetSettledPromiseIsHandled();
|
||||
NS_WARNING_ASSERTION(setSettled, "Failed to settle cancel promise");
|
||||
(void)setSettled;
|
||||
}
|
||||
}
|
||||
|
||||
// We don't want to propagate exceptions during the cleanup.
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
// This test fails if there is an unhandled promise rejection
|
||||
var stream = new ReadableStream({
|
||||
pull() {
|
||||
return Promise.reject("foobar");
|
||||
},
|
||||
});
|
||||
var response = new Response(stream);
|
||||
var text = response.text().then(
|
||||
() => {},
|
||||
e => {}
|
||||
);
|
||||
@@ -19,4 +19,3 @@ skip-if =
|
||||
tsan # Causes claim expired errors; see Bug 1770170.
|
||||
run-sequentially = very high failure rate in parallel
|
||||
[too-big-array-buffer.js]
|
||||
[bug-1773237.js]
|
||||
|
||||
Reference in New Issue
Block a user