Index: test/cctest/test-api.cc |
diff --git a/test/cctest/test-api.cc b/test/cctest/test-api.cc |
index b97c0cf265458b39b945e726c02b6eddf692567b..65e6135f8a074c5b3a661b94f12805c62aa22bd3 100644 |
--- a/test/cctest/test-api.cc |
+++ b/test/cctest/test-api.cc |
@@ -25486,6 +25486,12 @@ TEST(ExtrasUtilsObject) { |
.ToLocalChecked() |
.As<v8::Promise>(); |
CHECK(rejected_but_handled_promise->HasHandler()); |
+ |
+ auto promise_states = result->Get(env.local(), v8_str("promiseStates")) |
+ .ToLocalChecked() |
+ .As<v8::String>(); |
+ String::Utf8Value promise_states_string(promise_states); |
+ CHECK_EQ(0, strcmp(*promise_states_string, "pending fulfilled rejected")); |
} |