Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
deps: V8: stub backport 9e52d5c5d717
  • Loading branch information
addaleax authored and targos committed Apr 18, 2020
commit a4a21141e261d56d06fada7dc875120d10768521
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