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

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: test fixes 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 6b954e3af0b1995f7b56c99f86c9998953cd36e6..b7c5b0899459757827109de34e9e1ef43421e499 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;
- std::unique_ptr<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