Skip to content

Commit

Permalink
deps: V8: stub backport 9e52d5c5d717
Browse files Browse the repository at this point in the history
Refs: v8/v8@9e52d5c

PR-URL: #32885
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Ujjwal Sharma <ryzokuken@disroot.org>
Reviewed-By: Gerhard Stöbich <deb2001-github@yahoo.de>
Reviewed-By: Beth Griggs <Bethany.Griggs@uk.ibm.com>
  • Loading branch information
addaleax authored and BethGriggs committed Apr 20, 2020
1 parent a27852a commit 8198e78
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion common.gypi
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@

# Reset this number to 0 on major V8 upgrades.
# Increment by one for each non-official patch applied to deps/v8.
'v8_embedder_string': '-node.26',
'v8_embedder_string': '-node.27',

##### V8 defaults for Node.js #####

Expand Down
5 changes: 4 additions & 1 deletion deps/v8/include/v8-inspector.h
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,10 @@ class V8_EXPORT V8InspectorSession {
virtual void breakProgram(StringView breakReason,
StringView breakDetails) = 0;
virtual void setSkipAllPauses(bool) = 0;
virtual void resume() = 0;

// NOTE: setTerminateOnResume is not implemented on the base version of
// Node.js v14.0.0 / V8 8.1.
virtual void resume(bool setTerminateOnResume = false) = 0;
virtual void stepOver() = 0;
virtual std::vector<std::unique_ptr<protocol::Debugger::API::SearchMatch>>
searchInTextByLines(StringView text, StringView query, bool caseSensitive,
Expand Down
4 changes: 3 additions & 1 deletion deps/v8/src/inspector/v8-inspector-session-impl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,9 @@ void V8InspectorSessionImpl::setSkipAllPauses(bool skip) {
m_debuggerAgent->setSkipAllPauses(skip);
}

void V8InspectorSessionImpl::resume() { m_debuggerAgent->resume(); }
void V8InspectorSessionImpl::resume(bool terminateOnResume) {
m_debuggerAgent->resume();
}

void V8InspectorSessionImpl::stepOver() { m_debuggerAgent->stepOver(); }

Expand Down
2 changes: 1 addition & 1 deletion deps/v8/src/inspector/v8-inspector-session-impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ class V8InspectorSessionImpl : public V8InspectorSession,
void cancelPauseOnNextStatement() override;
void breakProgram(StringView breakReason, StringView breakDetails) override;
void setSkipAllPauses(bool) override;
void resume() override;
void resume(bool terminateOnResume = false) override;
void stepOver() override;
std::vector<std::unique_ptr<protocol::Debugger::API::SearchMatch>>
searchInTextByLines(StringView text, StringView query, bool caseSensitive,
Expand Down

0 comments on commit 8198e78

Please sign in to comment.