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

Unified Diff: third_party/WebKit/Source/platform/v8_inspector/V8Console.cpp

Issue 2155413002: [DevTools] Node.js compatibility (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
« no previous file with comments | « third_party/WebKit/Source/platform/inspector_protocol/CodeGenerator.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/v8_inspector/V8Console.cpp
diff --git a/third_party/WebKit/Source/platform/v8_inspector/V8Console.cpp b/third_party/WebKit/Source/platform/v8_inspector/V8Console.cpp
index 24f262817dedc1e32ea86bf39fcfadb17d5b8298..f7e142deeadbf36ecffd3c78b02e4da62c952413 100644
--- a/third_party/WebKit/Source/platform/v8_inspector/V8Console.cpp
+++ b/third_party/WebKit/Source/platform/v8_inspector/V8Console.cpp
@@ -98,7 +98,7 @@ public:
void reportCallWithArgument(ConsoleAPIType type, const String16& message)
{
- std::vector<v8::Local<v8::Value>> arguments = { toV8String(m_isolate, message) };
+ std::vector<v8::Local<v8::Value>> arguments(1, toV8String(m_isolate, message));
reportCall(type, arguments);
}
@@ -116,7 +116,7 @@ public:
{
if (checkAndSetPrivateFlagOnConsole(id, false))
return;
- std::vector<v8::Local<v8::Value>> arguments = { toV8String(m_isolate, message) };
+ std::vector<v8::Local<v8::Value>> arguments(1, toV8String(m_isolate, message));
reportCall(ConsoleAPIType::kWarning, arguments);
}
« no previous file with comments | « third_party/WebKit/Source/platform/inspector_protocol/CodeGenerator.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698