Index: test/cctest/test-debug.cc |
diff --git a/test/cctest/test-debug.cc b/test/cctest/test-debug.cc |
index cfe63f216d599a5231f3332e786d599f9cc0cd91..440c6f15c490254016b5789fda65c6b508ceb19a 100644 |
--- a/test/cctest/test-debug.cc |
+++ b/test/cctest/test-debug.cc |
@@ -7834,8 +7834,8 @@ TEST(DebugPromiseInterceptedByTryCatch) { |
CompileRun("var p = new Promise(function(res, rej) { fun(); res(); });"); |
CompileRun( |
"var r;" |
- "p.chain(function() { r = 'resolved'; }," |
- " function() { r = 'rejected'; });"); |
+ "p.then(function() { r = 'resolved'; }," |
+ " function() { r = 'rejected'; });"); |
CHECK(CompileRun("r")->Equals(context, v8_str("resolved")).FromJust()); |
} |
@@ -7874,8 +7874,8 @@ TEST(DebugPromiseRejectedByCallback) { |
CompileRun("var p = new Promise(function(res, rej) { fun(); res(); });"); |
CompileRun( |
"var r;" |
- "p.chain(function() { r = 'resolved'; }," |
- " function(e) { r = 'rejected' + e; });"); |
+ "p.then(function() { r = 'resolved'; }," |
+ " function(e) { r = 'rejected' + e; });"); |
CHECK( |
CompileRun("r")->Equals(context, v8_str("rejectedrejection")).FromJust()); |
CHECK_EQ(1, exception_event_counter); |