Index: test/cctest/test-profile-generator.cc |
diff --git a/test/cctest/test-profile-generator.cc b/test/cctest/test-profile-generator.cc |
index 48633f5da1eb07a13f58d5540a8d20eeeeb0e97f..71c5ba874363b5941b44880ef259dde27b253d05 100644 |
--- a/test/cctest/test-profile-generator.cc |
+++ b/test/cctest/test-profile-generator.cc |
@@ -698,12 +698,7 @@ TEST(BailoutReason) { |
" debugger;\n" |
" startProfiling();\n" |
"}\n" |
- "function TryFinally() {\n" |
- " try {\n" |
- " Debugger();\n" |
- " } finally { };\n" |
- "}\n" |
- "TryFinally();\n" |
+ "Debugger();\n" |
"stopProfiling();")); |
script->Run(v8::Isolate::GetCurrent()->GetCurrentContext()).ToLocalChecked(); |
CHECK_EQ(1, iprofiler->GetProfilesCount()); |
@@ -715,15 +710,10 @@ TEST(BailoutReason) { |
// The tree should look like this: |
// (root) |
// "" |
- // kTryFinallyStatement |
- // kDebuggerStatement |
+ // kDebuggerStatement |
current = PickChild(current, ""); |
CHECK(const_cast<v8::CpuProfileNode*>(current)); |
- current = PickChild(current, "TryFinally"); |
- CHECK(const_cast<v8::CpuProfileNode*>(current)); |
- CHECK(!strcmp("TryFinallyStatement", current->GetBailoutReason())); |
- |
current = PickChild(current, "Debugger"); |
CHECK(const_cast<v8::CpuProfileNode*>(current)); |
CHECK(!strcmp("DebuggerStatement", current->GetBailoutReason())); |