src: update inspector code to match upstream API
PR-URL: https://github.com/nodejs/node/pull/11752 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
This commit is contained in:
parent
9c9e2d7f4a
commit
ed12ea371c
@ -234,12 +234,15 @@ class ChannelImpl final : public v8_inspector::V8Inspector::Channel {
|
|||||||
explicit ChannelImpl(AgentImpl* agent): agent_(agent) {}
|
explicit ChannelImpl(AgentImpl* agent): agent_(agent) {}
|
||||||
virtual ~ChannelImpl() {}
|
virtual ~ChannelImpl() {}
|
||||||
private:
|
private:
|
||||||
void sendProtocolResponse(int callId, const StringView& message) override {
|
void sendResponse(
|
||||||
sendMessageToFrontend(message);
|
int callId,
|
||||||
|
std::unique_ptr<v8_inspector::StringBuffer> message) override {
|
||||||
|
sendMessageToFrontend(message->string());
|
||||||
}
|
}
|
||||||
|
|
||||||
void sendProtocolNotification(const StringView& message) override {
|
void sendNotification(
|
||||||
sendMessageToFrontend(message);
|
std::unique_ptr<v8_inspector::StringBuffer> message) override {
|
||||||
|
sendMessageToFrontend(message->string());
|
||||||
}
|
}
|
||||||
|
|
||||||
void flushProtocolNotifications() override { }
|
void flushProtocolNotifications() override { }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user