Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(118)

Unified Diff: test/cctest/interpreter/test-interpreter.cc

Issue 1796893002: [Interpreter] Pops the context to the correct level on return. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebased the patch. Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: test/cctest/interpreter/test-interpreter.cc
diff --git a/test/cctest/interpreter/test-interpreter.cc b/test/cctest/interpreter/test-interpreter.cc
index 6644c13cb520002239a6a767930b686c51002632..4de061fcd2a54d3e559d27b313413fe3f3ca8fa4 100644
--- a/test/cctest/interpreter/test-interpreter.cc
+++ b/test/cctest/interpreter/test-interpreter.cc
@@ -2075,6 +2075,15 @@ TEST(InterpreterTryFinally) {
" try { a = 3; throw 23; } finally { a = 4; }"
"} catch(e) { a = a + e; } return a;",
factory->NewStringFromStaticChars("R27")),
+ std::make_pair("var func_name;"
+ "function tcf2(a) {"
+ " try { throw new Error('boom');} "
+ " catch(e) {return 153; } "
+ " finally {func_name = tcf2.name;}"
+ "}"
+ "tcf2();"
+ "return func_name;",
+ factory->NewStringFromStaticChars("Rtcf2")),
};
const char* try_wrapper =

Powered by Google App Engine
This is Rietveld 408576698