@@ -105,11 +105,11 @@ void V8StackTraceImpl::setCaptureStackTraceForUncaughtExceptions(
105105}
106106
107107// static
108- std::unique_ptr<V8StackTraceImpl> V8StackTraceImpl::create (
108+ std::unique_ptr<V8StackTraceImpl> V8StackTraceImpl::create (v8::Isolate *isolate,
109109 V8Debugger* debugger, int contextGroupId,
110110 v8::Local<v8::StackTrace> stackTrace, size_t maxStackSize,
111111 const String16& description) {
112- v8::Isolate* isolate = v8::Isolate::GetCurrent ();
112+
113113 v8::HandleScope scope (isolate);
114114 std::vector<V8StackTraceImpl::Frame> frames;
115115 if (!stackTrace.IsEmpty ())
@@ -170,7 +170,7 @@ std::unique_ptr<V8StackTraceImpl> V8StackTraceImpl::capture(
170170 stackTrace = v8::StackTrace::CurrentStackTrace (
171171 isolate, static_cast <int >(maxStackSize), stackTraceOptions);
172172 }
173- return V8StackTraceImpl::create (debugger, contextGroupId, stackTrace,
173+ return V8StackTraceImpl::create (isolate, debugger, contextGroupId, stackTrace,
174174 maxStackSize, description);
175175}
176176
@@ -247,7 +247,7 @@ V8StackTraceImpl::buildInspectorObjectForTail(V8Debugger* debugger) const {
247247 v8::HandleScope handleScope (v8::Isolate::GetCurrent ());
248248 // Next call collapses possible empty stack and ensures
249249 // maxAsyncCallChainDepth.
250- std::unique_ptr<V8StackTraceImpl> fullChain = V8StackTraceImpl::create (
250+ std::unique_ptr<V8StackTraceImpl> fullChain = V8StackTraceImpl::create (v8::Isolate::GetCurrent (),
251251 debugger, m_contextGroupId, v8::Local<v8::StackTrace>(),
252252 V8StackTraceImpl::maxCallStackSizeToCapture);
253253 if (!fullChain || !fullChain->m_parent ) return nullptr ;
0 commit comments