Index: Source/bindings/v8/ScriptPromiseResolver.cpp |
diff --git a/Source/bindings/v8/ScriptPromiseResolver.cpp b/Source/bindings/v8/ScriptPromiseResolver.cpp |
index 7440a418b8b34ca62031a95c4f1be814c9a218c4..6f0f00da1985b9b35266e40fa0d1db6a5d470382 100644 |
--- a/Source/bindings/v8/ScriptPromiseResolver.cpp |
+++ b/Source/bindings/v8/ScriptPromiseResolver.cpp |
@@ -65,8 +65,7 @@ PassRefPtr<ScriptPromiseResolver> ScriptPromiseResolver::create(ScriptExecutionC |
{ |
ASSERT(v8::Context::InContext()); |
ASSERT(context); |
- v8::Isolate* isolate = v8::Isolate::GetCurrent(); |
- return adoptRef(new ScriptPromiseResolver(toV8Context(context, DOMWrapperWorld::current())->Global(), isolate)); |
+ return adoptRef(new ScriptPromiseResolver(toV8Context(context, DOMWrapperWorld::current())->Global(), toIsolate(context))); |
} |
PassRefPtr<ScriptPromiseResolver> ScriptPromiseResolver::create() |