Browse Source

deps: cherry-pick f4a2b7f3 from V8 upstream.

Original commit message:
    should ignore asyncTask* with null

    In V8Debugger code we don't expect task_id == null, e.g.
    asyncTaskStartedForStepping will trigger debug break on null as task_id.
    Let's filter task_id == null out.

    This issue is originally filed in Node.js:
    https://github.com/nodejs/node/issues/15464

    R=dgozman@chromium.org

    Bug: none
    Cq-Include-Trybots: master.tryserver.blink:linux_trusty_blink_rel
    Change-Id: Icc9f96105b3c91ee1b102d545a7817f7ee93394c
    Reviewed-on: https://chromium-review.googlesource.com/695808
    Reviewed-by: Dmitry Gozman <dgozman@chromium.org>
    Commit-Queue: Aleksey Kozyatinskiy <kozyatinskiy@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#48265}

Fixes https://github.com/nodejs/node/issues/15464

PR-URL: https://github.com/nodejs/node/pull/16053
Reviewed-By: Myles Borins <myles.borins@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
Reviewed-By: Ali Ijaz Sheikh <ofrobots@google.com>
Reviewed-By: Michaël Zasso <mic.besace@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
v9.x-staging
Erin Spiceland 7 years ago
committed by Myles Borins
parent
commit
be2a5b323e
No known key found for this signature in database GPG Key ID: 933B01F40B5CA946
  1. 4
      deps/v8/src/inspector/v8-inspector-impl.cc

4
deps/v8/src/inspector/v8-inspector-impl.cc

@ -286,18 +286,22 @@ std::unique_ptr<V8StackTrace> V8InspectorImpl::captureStackTrace(
void V8InspectorImpl::asyncTaskScheduled(const StringView& taskName, void* task, void V8InspectorImpl::asyncTaskScheduled(const StringView& taskName, void* task,
bool recurring) { bool recurring) {
if (!task) return;
m_debugger->asyncTaskScheduled(taskName, task, recurring); m_debugger->asyncTaskScheduled(taskName, task, recurring);
} }
void V8InspectorImpl::asyncTaskCanceled(void* task) { void V8InspectorImpl::asyncTaskCanceled(void* task) {
if (!task) return;
m_debugger->asyncTaskCanceled(task); m_debugger->asyncTaskCanceled(task);
} }
void V8InspectorImpl::asyncTaskStarted(void* task) { void V8InspectorImpl::asyncTaskStarted(void* task) {
if (!task) return;
m_debugger->asyncTaskStarted(task); m_debugger->asyncTaskStarted(task);
} }
void V8InspectorImpl::asyncTaskFinished(void* task) { void V8InspectorImpl::asyncTaskFinished(void* task) {
if (!task) return;
m_debugger->asyncTaskFinished(task); m_debugger->asyncTaskFinished(task);
} }

Loading…
Cancel
Save