| Index: test/cctest/test-thread-termination.cc
|
| diff --git a/test/cctest/test-thread-termination.cc b/test/cctest/test-thread-termination.cc
|
| index 4c0853955cfff25b8025fb90f5b55672e4cde5b5..e9c991897e797132353ea0e0183f1007f4b4fd5c 100644
|
| --- a/test/cctest/test-thread-termination.cc
|
| +++ b/test/cctest/test-thread-termination.cc
|
| @@ -391,11 +391,11 @@ void DoLoopCancelTerminate(const v8::FunctionCallbackInfo<v8::Value>& args) {
|
| // Test that a single thread of JavaScript execution can terminate
|
| // itself and then resume execution.
|
| TEST(TerminateCancelTerminateFromThreadItself) {
|
| - v8::HandleScope scope;
|
| + v8::Isolate* isolate = v8::Isolate::GetCurrent();
|
| + v8::HandleScope scope(isolate);
|
| v8::Handle<v8::ObjectTemplate> global =
|
| CreateGlobalTemplate(TerminateCurrentThread, DoLoopCancelTerminate);
|
| - v8::Handle<v8::Context> context =
|
| - v8::Context::New(v8::Isolate::GetCurrent(), NULL, global);
|
| + v8::Handle<v8::Context> context = v8::Context::New(isolate, NULL, global);
|
| v8::Context::Scope context_scope(context);
|
| CHECK(!v8::V8::IsExecutionTerminating());
|
| v8::Handle<v8::String> source =
|
| @@ -403,4 +403,3 @@ TEST(TerminateCancelTerminateFromThreadItself) {
|
| // Check that execution completed with correct return value.
|
| CHECK(v8::Script::Compile(source)->Run()->Equals(v8_str("completed")));
|
| }
|
| -
|
|
|