Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(155)

Unified Diff: third_party/WebKit/Source/bindings/core/v8/ScriptCallStack.cpp

Issue 2010603002: Use SourceLocation when reporting runtime exceptions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2004243002
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/bindings/core/v8/ScriptCallStack.cpp
diff --git a/third_party/WebKit/Source/bindings/core/v8/ScriptCallStack.cpp b/third_party/WebKit/Source/bindings/core/v8/ScriptCallStack.cpp
index e00c482e488e53cd39da2feccdad6b0eaa8d6d9c..3e042a7005690bcd55c5a77a637091dc4c846037 100644
--- a/third_party/WebKit/Source/bindings/core/v8/ScriptCallStack.cpp
+++ b/third_party/WebKit/Source/bindings/core/v8/ScriptCallStack.cpp
@@ -40,15 +40,6 @@
namespace blink {
-PassRefPtr<ScriptCallStack> ScriptCallStack::create(v8::Isolate* isolate, v8::Local<v8::StackTrace> stackTrace, size_t maxStackSize)
-{
- V8PerIsolateData* data = V8PerIsolateData::from(isolate);
- if (!data->threadDebugger())
- return nullptr;
- OwnPtr<V8StackTrace> stack = data->threadDebugger()->debugger()->createStackTrace(stackTrace, maxStackSize);
- return stack ? adoptRef(new ScriptCallStack(std::move(stack))) : nullptr;
-}
-
PassRefPtr<ScriptCallStack> ScriptCallStack::capture(size_t maxStackSize)
{
v8::Isolate* isolate = v8::Isolate::GetCurrent();

Powered by Google App Engine
This is Rietveld 408576698