| Index: third_party/WebKit/Source/platform/v8_inspector/V8Debugger.cpp
|
| diff --git a/third_party/WebKit/Source/platform/v8_inspector/V8Debugger.cpp b/third_party/WebKit/Source/platform/v8_inspector/V8Debugger.cpp
|
| index 4b932fabab958002ab718f0fe1e955b0dd676d78..4364e917d613eb82eeee18a6f73aef88de13fe28 100644
|
| --- a/third_party/WebKit/Source/platform/v8_inspector/V8Debugger.cpp
|
| +++ b/third_party/WebKit/Source/platform/v8_inspector/V8Debugger.cpp
|
| @@ -717,7 +717,7 @@ int V8Debugger::markContext(const V8ContextInfo& info)
|
| {
|
| DCHECK(info.context->GetIsolate() == m_isolate);
|
| int contextId = ++m_lastContextId;
|
| - String16 debugData = String16::fromInteger(info.contextGroupId) + "," + String16::fromInteger(contextId) + "," + info.auxData;
|
| + String16 debugData = String16::fromInteger(info.contextGroupId) + "," + String16::fromInteger(contextId) + "," + toString16(info.auxData);
|
| v8::Context::Scope contextScope(info.context);
|
| info.context->SetEmbedderData(static_cast<int>(v8::Context::kDebugIdIndex), toV8String(m_isolate, debugData));
|
| return contextId;
|
| @@ -743,6 +743,13 @@ void V8Debugger::setAsyncCallStackDepth(V8DebuggerAgentImpl* agent, int depth)
|
| allAsyncTasksCanceled();
|
| }
|
|
|
| +void V8Debugger::asyncTaskScheduled(const StringView& taskName, void* task, bool recurring)
|
| +{
|
| + if (!m_maxAsyncCallStackDepth)
|
| + return;
|
| + asyncTaskScheduled(toString16(taskName), task, recurring);
|
| +}
|
| +
|
| void V8Debugger::asyncTaskScheduled(const String16& taskName, void* task, bool recurring)
|
| {
|
| if (!m_maxAsyncCallStackDepth)
|
|
|