Index: third_party/WebKit/Source/bindings/core/v8/SourceLocation.cpp |
diff --git a/third_party/WebKit/Source/bindings/core/v8/SourceLocation.cpp b/third_party/WebKit/Source/bindings/core/v8/SourceLocation.cpp |
index 12ae195d903a75d0da90b0c1c753dff7bb20983c..e821aa35329654789104ee6d79b5e3ef3e1d255b 100644 |
--- a/third_party/WebKit/Source/bindings/core/v8/SourceLocation.cpp |
+++ b/third_party/WebKit/Source/bindings/core/v8/SourceLocation.cpp |
@@ -99,4 +99,9 @@ void SourceLocation::toTracedValue(TracedValue* value, const char* name) const |
value->endArray(); |
} |
+PassOwnPtr<SourceLocation> SourceLocation::clone() const |
+{ |
+ return adoptPtr(new SourceLocation(m_url, m_lineNumber, m_columnNumber, m_stackTrace ? m_stackTrace->clone() : nullptr, m_scriptId)); |
+} |
+ |
} // namespace blink |