Skip to content

Commit f4a2b7f

Browse files
alexkozyCommit Bot
authored andcommitted
[inspector] 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: nodejs/node#15464 [email protected] 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 <[email protected]> Commit-Queue: Aleksey Kozyatinskiy <[email protected]> Cr-Commit-Position: refs/heads/master@{#48265}
1 parent 631489b commit f4a2b7f

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/inspector/v8-inspector-impl.cc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,18 +289,22 @@ std::unique_ptr<V8StackTrace> V8InspectorImpl::captureStackTrace(
289289

290290
void V8InspectorImpl::asyncTaskScheduled(const StringView& taskName, void* task,
291291
bool recurring) {
292+
if (!task) return;
292293
m_debugger->asyncTaskScheduled(taskName, task, recurring);
293294
}
294295

295296
void V8InspectorImpl::asyncTaskCanceled(void* task) {
297+
if (!task) return;
296298
m_debugger->asyncTaskCanceled(task);
297299
}
298300

299301
void V8InspectorImpl::asyncTaskStarted(void* task) {
302+
if (!task) return;
300303
m_debugger->asyncTaskStarted(task);
301304
}
302305

303306
void V8InspectorImpl::asyncTaskFinished(void* task) {
307+
if (!task) return;
304308
m_debugger->asyncTaskFinished(task);
305309
}
306310

0 commit comments

Comments
 (0)