From e8bf798b52cee12da68d1168e176e845161c8418 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Thu, 24 Apr 2014 11:25:06 +0800 Subject: [PATCH] Fix using an null dictionary. --- atom/browser/api/atom_api_window.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/atom/browser/api/atom_api_window.cc b/atom/browser/api/atom_api_window.cc index a8482ff4..c30db210 100644 --- a/atom/browser/api/atom_api_window.cc +++ b/atom/browser/api/atom_api_window.cc @@ -355,8 +355,8 @@ bool Window::IsCrashed() { } mate::Dictionary Window::GetDevTools(v8::Isolate* isolate) { + mate::Dictionary dict(mate::Dictionary::CreateEmpty(isolate)); content::WebContents* web_contents = window_->GetDevToolsWebContents(); - mate::Dictionary dict(isolate); dict.Set("processId", web_contents->GetRenderProcessHost()->GetID()); dict.Set("routingId", web_contents->GetRoutingID()); return dict; -- 2.43.0