Index: test/cctest/test-api.cc |
diff --git a/test/cctest/test-api.cc b/test/cctest/test-api.cc |
index 354db4344f98c403665a0bd0a4e6b3c1ff69d4ee..437848b8c05f451fdcf802d4730ede607691e59a 100644 |
--- a/test/cctest/test-api.cc |
+++ b/test/cctest/test-api.cc |
@@ -25396,6 +25396,12 @@ TEST(ExtrasUtilsObject) { |
rejected_promise->Catch(env.local(), store).ToLocalChecked(); |
isolate->RunMicrotasks(); |
CHECK_EQ(3, CompileRun("result")->Int32Value(env.local()).FromJust()); |
+ |
+ auto rejected_but_handled_promise = |
+ result->Get(env.local(), v8_str("rejectedButHandledPromise")) |
+ .ToLocalChecked() |
+ .As<v8::Promise>(); |
+ CHECK_EQ(true, rejected_but_handled_promise->HasHandler()); |
} |