diff options
author | Lorry Tar Creator <lorry-tar-importer@lorry> | 2017-06-27 06:07:23 +0000 |
---|---|---|
committer | Lorry Tar Creator <lorry-tar-importer@lorry> | 2017-06-27 06:07:23 +0000 |
commit | 1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c (patch) | |
tree | 46dcd36c86e7fbc6e5df36deb463b33e9967a6f7 /Source/WebCore/dom/ErrorEvent.idl | |
parent | 32761a6cee1d0dee366b885b7b9c777e67885688 (diff) | |
download | WebKitGtk-tarball-master.tar.gz |
webkitgtk-2.16.5HEADwebkitgtk-2.16.5master
Diffstat (limited to 'Source/WebCore/dom/ErrorEvent.idl')
-rw-r--r-- | Source/WebCore/dom/ErrorEvent.idl | 22 |
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; +}; |