| Index: Source/bindings/v8/custom/V8PromiseCustom.cpp
|
| diff --git a/Source/bindings/v8/custom/V8PromiseCustom.cpp b/Source/bindings/v8/custom/V8PromiseCustom.cpp
|
| index ed6f15c21492fe1bccf063e99b43b552a1c29fef..3efb2c5b1c5859287d62d59afb34a71a3853cc9f 100644
|
| --- a/Source/bindings/v8/custom/V8PromiseCustom.cpp
|
| +++ b/Source/bindings/v8/custom/V8PromiseCustom.cpp
|
| @@ -131,10 +131,10 @@ void PromiseTask::performTask(ScriptExecutionContext* context)
|
| }
|
| ASSERT(state);
|
|
|
| - v8::HandleScope handleScope;
|
| + v8::Isolate* isolate = state->isolate();
|
| + v8::HandleScope handleScope(isolate);
|
| v8::Handle<v8::Context> v8Context = state->context();
|
| v8::Context::Scope scope(v8Context);
|
| - v8::Isolate* isolate = v8Context->GetIsolate();
|
| v8::Handle<v8::Value> args[] = { m_result.newLocal(isolate) };
|
| V8ScriptRunner::callFunction(m_callback.newLocal(isolate), context, m_receiver.newLocal(isolate), WTF_ARRAY_LENGTH(args), args);
|
| };
|
|
|