diff options
author | Michaël Zasso <targos@protonmail.com> | 2022-09-21 13:28:42 +0200 |
---|---|---|
committer | Michaël Zasso <targos@protonmail.com> | 2022-10-11 07:24:33 +0200 |
commit | 6bd756d7c6dfb7dc25daee329ad70df68c14223e (patch) | |
tree | af93818c545f5bd04cafd4a0c19817e19a475641 /deps/v8/include/v8-inspector.h | |
parent | 624dadb00706a9fc08f919ac72941cdaba7e3ec9 (diff) | |
download | node-new-6bd756d7c6dfb7dc25daee329ad70df68c14223e.tar.gz |
deps: update V8 to 10.7.193.13
PR-URL: https://github.com/nodejs/node/pull/44741
Fixes: https://github.com/nodejs/node/issues/44650
Fixes: https://github.com/nodejs/node/issues/37472
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'deps/v8/include/v8-inspector.h')
-rw-r--r-- | deps/v8/include/v8-inspector.h | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/deps/v8/include/v8-inspector.h b/deps/v8/include/v8-inspector.h index ce5430bd03..aa5a044afb 100644 --- a/deps/v8/include/v8-inspector.h +++ b/deps/v8/include/v8-inspector.h @@ -207,10 +207,10 @@ class V8_EXPORT V8InspectorSession { class V8_EXPORT WebDriverValue { public: - explicit WebDriverValue(StringView type, v8::MaybeLocal<v8::Value> value = {}) - : type(type), value(value) {} - - StringView type; + explicit WebDriverValue(std::unique_ptr<StringBuffer> type, + v8::MaybeLocal<v8::Value> value = {}) + : type(std::move(type)), value(value) {} + std::unique_ptr<StringBuffer> type; v8::MaybeLocal<v8::Value> value; }; @@ -219,6 +219,9 @@ class V8_EXPORT V8InspectorClient { virtual ~V8InspectorClient() = default; virtual void runMessageLoopOnPause(int contextGroupId) {} + virtual void runMessageLoopOnInstrumentationPause(int contextGroupId) { + runMessageLoopOnPause(contextGroupId); + } virtual void quitMessageLoopOnPause() {} virtual void runIfWaitingForDebugger(int contextGroupId) {} @@ -361,9 +364,12 @@ class V8_EXPORT V8Inspector { virtual void sendNotification(std::unique_ptr<StringBuffer> message) = 0; virtual void flushProtocolNotifications() = 0; }; - virtual std::unique_ptr<V8InspectorSession> connect(int contextGroupId, - Channel*, - StringView state) = 0; + enum ClientTrustLevel { kUntrusted, kFullyTrusted }; + virtual std::unique_ptr<V8InspectorSession> connect( + int contextGroupId, Channel*, StringView state, + ClientTrustLevel client_trust_level) { + return nullptr; + } // API methods. virtual std::unique_ptr<V8StackTrace> createStackTrace( |