commit 65917f8876df6aa233a90bceadd7c581d7b8d729
parent b6ff8e834eb0d7a62805abc9c31cccc268d6dfa1
Author: Andrey Kosyakov <caseq@chromium.org>
Date: Thu, 11 Dec 2025 09:28:21 +0000
Bug 2005027 [wpt PR 56609] - Fix a CHECK() induced by Observable resolving a promise with pending exception, a=testonly
Automatic update from web-platform-tests
Fix a CHECK() induced by Observable resolving a promise with pending exception
Bug: 462010740
Change-Id: I72c374f04feb023c5749ca5f9ddedbf58358aff0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7239868
Reviewed-by: Nate Chapin <japhet@chromium.org>
Commit-Queue: Andrey Kosyakov <caseq@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1556255}
--
wpt-commits: b27685aa4087705c5ac7852ebd4ce406dd0966c5
wpt-pr: 56609
Diffstat:
1 file changed, 8 insertions(+), 0 deletions(-)
diff --git a/testing/web-platform/tests/dom/observable/tentative/crashtests/observable-takeUntil-toArray.any.js b/testing/web-platform/tests/dom/observable/tentative/crashtests/observable-takeUntil-toArray.any.js
@@ -0,0 +1,8 @@
+// Because we test that the global error handler is called at various times.
+promise_test(async () => {
+ return new Observable(() => {})
+ .takeUntil(new Observable(() => {})
+ .inspect({subscribe: () => { throw "KABOOM"; }}))
+ .toArray();
+}, "takeUntil correctly passes error on inner observable to outer observables");
+