summaryrefslogtreecommitdiff
path: root/Source/WebCore/dom/ErrorEvent.idl
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/dom/ErrorEvent.idl')
-rw-r--r--Source/WebCore/dom/ErrorEvent.idl22
1 files changed, 16 insertions, 6 deletions
diff --git a/Source/WebCore/dom/ErrorEvent.idl b/Source/WebCore/dom/ErrorEvent.idl
index 1c7bb7966..edb5e4b87 100644
--- a/Source/WebCore/dom/ErrorEvent.idl
+++ b/Source/WebCore/dom/ErrorEvent.idl
@@ -1,5 +1,6 @@
/*
* Copyright (C) 2009 Google Inc. All rights reserved.
+ * Copyright (C) 2016 Apple Inc. All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
@@ -29,12 +30,21 @@
*/
[
- JSNoStaticTables,
- ConstructorTemplate=Event
+ Constructor(DOMString type, optional ErrorEventInit eventInitDict),
+ ConstructorCallWith=ScriptState,
+ Exposed=(Window,Worker),
] interface ErrorEvent : Event {
- [InitializedByEventConstructor] readonly attribute DOMString message;
- [InitializedByEventConstructor] readonly attribute DOMString filename;
- [InitializedByEventConstructor] readonly attribute unsigned long lineno;
- [InitializedByEventConstructor] readonly attribute unsigned long colno;
+ readonly attribute DOMString message;
+ readonly attribute USVString filename;
+ readonly attribute unsigned long lineno;
+ readonly attribute unsigned long colno;
+ [CallWith=ScriptState&GlobalObject] readonly attribute any error;
};
+dictionary ErrorEventInit : EventInit {
+ DOMString message = "";
+ USVString filename = "";
+ unsigned long lineno = 0;
+ unsigned long colno = 0;
+ any error = null;
+};