Index: test/cctest/test-api.cc |
diff --git a/test/cctest/test-api.cc b/test/cctest/test-api.cc |
index 5081a648bc13900dded52a0f6cc695b636b29d74..f91299dbb49d0ec7eceb2123d323f4fddfc3d1a5 100644 |
--- a/test/cctest/test-api.cc |
+++ b/test/cctest/test-api.cc |
@@ -7787,9 +7787,11 @@ THREADED_TEST(EvalAliasedDynamic) { |
" var bar = 2;" |
" with (x) { return eval('bar'); }" |
"}" |
- "f(this)")); |
+ "result4 = f(this)")); |
script->Run(); |
- CHECK(try_catch.HasCaught()); |
+ CHECK(!try_catch.HasCaught()); |
+ CHECK_EQ(2, current->Global()->Get(v8_str("result4"))->Int32Value()); |
+ |
try_catch.Reset(); |
} |