Index: src/d8.cc |
diff --git a/src/d8.cc b/src/d8.cc |
index f6c13c755278ea59c3305069bb8aff236bc27844..b7f76febe29bb13441912880cae68f1d661ac69f 100644 |
--- a/src/d8.cc |
+++ b/src/d8.cc |
@@ -1827,13 +1827,14 @@ class InspectorFrontend final : public v8_inspector::V8Inspector::Channel { |
virtual ~InspectorFrontend() = default; |
private: |
- void sendProtocolResponse(int callId, |
- const v8_inspector::StringView& message) override { |
- Send(message); |
- } |
- void sendProtocolNotification( |
- const v8_inspector::StringView& message) override { |
- Send(message); |
+ void sendResponse( |
+ int callId, |
+ std::unique_ptr<v8_inspector::StringBuffer> message) override { |
+ Send(message->string()); |
+ } |
+ void sendNotification( |
+ std::unique_ptr<v8_inspector::StringBuffer> message) override { |
+ Send(message->string()); |
} |
void flushProtocolNotifications() override {} |