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

Unified Diff: src/d8.cc

Issue 2450653002: [inspector] enable inspector by default (Closed)
Patch Set: disable debugger after test Created 4 years, 2 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 | « build_overrides/v8.gni ('k') | src/inspector/string-16.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/d8.cc
diff --git a/src/d8.cc b/src/d8.cc
index bce9103f6499fbbafb869c2085d5a40e69e523df..31ae7923af449c6087bd859d49b6bfbc8628bd56 100644
--- a/src/d8.cc
+++ b/src/d8.cc
@@ -1867,7 +1867,7 @@ class InspectorClient : public v8_inspector::V8InspectorClient {
v8_inspector::V8InspectorSession* session =
InspectorClient::GetSession(context);
int length = message->Length();
- std::unique_ptr<uint16_t> buffer(new uint16_t[length]);
+ std::unique_ptr<uint16_t[]> buffer(new uint16_t[length]);
message->Write(buffer.get(), 0, length);
v8_inspector::StringView message_view(buffer.get(), length);
session->dispatchProtocolMessage(message_view);
« no previous file with comments | « build_overrides/v8.gni ('k') | src/inspector/string-16.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698