| Index: test/cctest/test-api.cc
|
| diff --git a/test/cctest/test-api.cc b/test/cctest/test-api.cc
|
| index 8b7cb59734aa98fe7bbc35499c91d99496294a26..838b36df7ff66f2bc9e65c885cb2e972db549bea 100644
|
| --- a/test/cctest/test-api.cc
|
| +++ b/test/cctest/test-api.cc
|
| @@ -11549,8 +11549,7 @@ THREADED_TEST(CrossEval) {
|
|
|
|
|
| // Test that calling eval in a context which has been detached from
|
| -// its global throws an exception. This behavior is consistent with
|
| -// other JavaScript implementations.
|
| +// its global proxy works.
|
| THREADED_TEST(EvalInDetachedGlobal) {
|
| v8::Isolate* isolate = CcTest::isolate();
|
| v8::HandleScope scope(isolate);
|
| @@ -11578,8 +11577,7 @@ THREADED_TEST(EvalInDetachedGlobal) {
|
| context0->DetachGlobal();
|
| v8::TryCatch catcher;
|
| x_value = CompileRun("fun('x')");
|
| - CHECK(x_value.IsEmpty());
|
| - CHECK(catcher.HasCaught());
|
| + CHECK_EQ(42, x_value->Int32Value());
|
| context1->Exit();
|
| }
|
|
|
|
|