| Index: Source/core/dom/Promise.idl
|
| diff --git a/Source/modules/webmidi/MIDIConnectionEvent.idl b/Source/core/dom/Promise.idl
|
| similarity index 87%
|
| copy from Source/modules/webmidi/MIDIConnectionEvent.idl
|
| copy to Source/core/dom/Promise.idl
|
| index a9c745a2772afb04c1fb2083854cea7eac9dc082..4b3b1b0d2b5cb075ed800e4db9adaa7fff366f63 100644
|
| --- a/Source/modules/webmidi/MIDIConnectionEvent.idl
|
| +++ b/Source/core/dom/Promise.idl
|
| @@ -29,8 +29,11 @@
|
| */
|
|
|
| [
|
| - EnabledAtRuntime=webMIDI,
|
| - ConstructorTemplate=Event
|
| -] interface MIDIConnectionEvent : Event {
|
| - [InitializedByEventConstructor] readonly attribute MIDIPort port;
|
| + CustomConstructor(any init),
|
| + EnabledAtRuntime=promise
|
| +] interface Promise {
|
| + // Example methods
|
| + [Custom] any get(any value);
|
| + [Custom] static any getStatic(any value);
|
| + [Custom] static any concat(any a, any b);
|
| };
|
|
|