| Index: test/cctest/test-thread-termination.cc
|
| diff --git a/test/cctest/test-thread-termination.cc b/test/cctest/test-thread-termination.cc
|
| index a5ed7ab9bfe9231a689958ddde46b55af170375f..21d3b95f10d88e9e924384bc99ca00a572b32062 100644
|
| --- a/test/cctest/test-thread-termination.cc
|
| +++ b/test/cctest/test-thread-termination.cc
|
| @@ -459,3 +459,15 @@ TEST(PostponeTerminateException) {
|
| CHECK(try_catch.HasTerminated());
|
| CHECK_EQ(2, callback_counter);
|
| }
|
| +
|
| +
|
| +TEST(ErrorObjectAfterTermination) {
|
| + v8::Isolate* isolate = CcTest::isolate();
|
| + v8::HandleScope scope(isolate);
|
| + v8::Handle<v8::Context> context = v8::Context::New(CcTest::isolate());
|
| + v8::Context::Scope context_scope(context);
|
| + v8::V8::TerminateExecution(isolate);
|
| + v8::Local<v8::Value> error = v8::Exception::Error(v8_str("error"));
|
| + // TODO(yangguo): crbug/403509. Check for empty handle instead.
|
| + CHECK(error->IsUndefined());
|
| +}
|
|
|