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

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

Issue 18169002: Improve Dart Debugger performance and robustness by creating Dart wrappers using the standard SetNa… (Closed) Base URL: svn://svn.chromium.org/multivm/trunk/webkit
Patch Set: code review fixes Created 7 years, 5 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
Index: Source/bindings/v8/V8Binding.cpp
diff --git a/Source/bindings/v8/V8Binding.cpp b/Source/bindings/v8/V8Binding.cpp
index 93f7167a1fcdd3619a403b4c7d001d730da3efa0..005ad353e6764424926e687b3ba4d10522be1b88 100644
--- a/Source/bindings/v8/V8Binding.cpp
+++ b/Source/bindings/v8/V8Binding.cpp
@@ -311,6 +311,10 @@ DOMWindow* toDOMWindow(v8::Handle<v8::Context> context)
if (!window.IsEmpty())
return V8DOMWindow::toNative(window);
window = global->FindInstanceInPrototypeChain(V8DOMWindow::GetTemplate(context->GetIsolate(), IsolatedWorld));
+ if (window.IsEmpty()) {
Anton Muhin 2013/07/16 13:27:40 when do you trigger this path?
Jacob 2013/07/16 16:44:59 This path is triggered if you invoke a Dart method
Jacob 2013/07/17 05:58:16 It took far longer than it should but figured out
+ // FIXME: correct the Dart debugger implementation so this isn't required.
+ return toDOMWindow(v8::Context::GetEntered());
+ }
ASSERT(!window.IsEmpty());
return V8DOMWindow::toNative(window);
}

Powered by Google App Engine
This is Rietveld 408576698