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

Unified Diff: Source/core/dom/ErrorEvent.h

Issue 20351002: Add 'error' parameter to 'window.onerror' handlers. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Feedback. Created 7 years, 5 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: Source/core/dom/ErrorEvent.h
diff --git a/Source/core/dom/ErrorEvent.h b/Source/core/dom/ErrorEvent.h
index a28dcbef2a1e81300849935046f502bf0a8e94db..821554452fb4a24decb2d92844213b9222475257 100644
--- a/Source/core/dom/ErrorEvent.h
+++ b/Source/core/dom/ErrorEvent.h
@@ -59,6 +59,10 @@ public:
{
return adoptRef(new ErrorEvent(type, initializer));
}
+ static PassRefPtr<ErrorEvent> createSanitizedError()
+ {
+ return adoptRef(new ErrorEvent("Script error.", String(), 0, 0));
+ }
virtual ~ErrorEvent();
const String& message() const { return m_message; }

Powered by Google App Engine
This is Rietveld 408576698