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

Unified Diff: third_party/WebKit/Source/core/events/ErrorEvent.cpp

Issue 2804533002: Update Error Event inside a worker to provide the exact exception value (Closed)
Patch Set: nits Created 3 years, 8 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
« no previous file with comments | « third_party/WebKit/Source/core/events/ErrorEvent.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/events/ErrorEvent.cpp
diff --git a/third_party/WebKit/Source/core/events/ErrorEvent.cpp b/third_party/WebKit/Source/core/events/ErrorEvent.cpp
index 1844ee3eca936dedfd398145cc6a2b36efd0e1e8..0e854cc517e38eb4801c571fa05228a19c446903 100644
--- a/third_party/WebKit/Source/core/events/ErrorEvent.cpp
+++ b/third_party/WebKit/Source/core/events/ErrorEvent.cpp
@@ -59,10 +59,12 @@ ErrorEvent::ErrorEvent(const AtomicString& type,
ErrorEvent::ErrorEvent(const String& message,
std::unique_ptr<SourceLocation> location,
+ ScriptValue error,
DOMWrapperWorld* world)
: Event(EventTypeNames::error, false, true),
m_sanitizedMessage(message),
m_location(std::move(location)),
+ m_error(error),
m_world(world) {}
void ErrorEvent::setUnsanitizedMessage(const String& message) {
« no previous file with comments | « third_party/WebKit/Source/core/events/ErrorEvent.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698