Index: modules/websockets/CloseEvent.idl |
diff --git a/modules/websockets/CloseEvent.idl b/modules/websockets/CloseEvent.idl |
index be0f1e391b5ef5a02ffe6852fb130f6d894a45df..7371ad94f20c6261dbd18dd1cfb1e98916bf411f 100644 |
--- a/modules/websockets/CloseEvent.idl |
+++ b/modules/websockets/CloseEvent.idl |
@@ -28,11 +28,13 @@ |
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
+// https://html.spec.whatwg.org/multipage/comms.html#the-closeevent-interfaces |
+ |
[ |
- EventConstructor, |
+ Constructor(DOMString type, optional CloseEventInit eventInitDict), |
+ Exposed=(Window,Worker), |
] interface CloseEvent : Event { |
- [InitializedByEventConstructor] readonly attribute boolean wasClean; |
- [InitializedByEventConstructor] readonly attribute unsigned short code; |
- [InitializedByEventConstructor] readonly attribute DOMString reason; |
+ readonly attribute boolean wasClean; |
+ readonly attribute unsigned short code; |
+ readonly attribute DOMString reason; |
}; |
- |