diff --git a/atom/common/platform_util_linux.cc b/atom/common/platform_util_linux.cc index 039e26e263..a8940fd68f 100644 --- a/atom/common/platform_util_linux.cc +++ b/atom/common/platform_util_linux.cc @@ -95,9 +95,9 @@ void OpenExternal(const GURL& url, bool activate, bool opened = OpenExternal(url, activate); if (!opened) { callback.Run(v8::Exception::Error( - v8::String::NewFromUtf8(isolate, @"Failed to open"))); + v8::String::NewFromUtf8(isolate, "Failed to open"))); } else { - callback.Run(v8::Null(isolate);) + callback.Run(v8::Null(isolate)); } } diff --git a/atom/common/platform_util_win.cc b/atom/common/platform_util_win.cc index acf663b1dc..34cc2b1835 100644 --- a/atom/common/platform_util_win.cc +++ b/atom/common/platform_util_win.cc @@ -322,9 +322,9 @@ void OpenExternal(const base::string16& url, bool activate, bool opened = OpenExternal(url, activate); if (!opened) { callback.Run(v8::Exception::Error( - v8::String::NewFromUtf8(isolate, @"Failed to open"))); + v8::String::NewFromUtf8(isolate, "Failed to open"))); } else { - callback.Run(v8::Null(isolate);) + callback.Run(v8::Null(isolate)); } }