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

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: Constructor. 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
« no previous file with comments | « Source/bindings/v8/custom/V8ErrorEventCustom.cpp ('k') | Source/core/dom/ErrorEvent.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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; }
« no previous file with comments | « Source/bindings/v8/custom/V8ErrorEventCustom.cpp ('k') | Source/core/dom/ErrorEvent.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698