Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(193)

Unified Diff: Source/bindings/v8/ScriptPromiseResolver.cpp

Issue 24212004: Avoid useless call to v8::Isolate::GetCurrent() in ScriptPromiseResolver (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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()
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698