Closed padenot closed 9 months ago
partial interface MIDIMessageEvent : Event {
readonly attribute Uint8Array? data;
}
Does this look good? I agree that null
is better.
dictionary MIDIMessageEventInit: EventInit { Uint8Array? data; };
?
is implied, the opposite being to specify require
iirc.
Yes. Then we can lose the dictionary bit. I edited my comment above. Thanks!
https://github.com/WebAudio/web-midi-api/issues/168 seems to be a dupe, I'll sort it out.
Fixed by #252
STR in Chrome:
MIDIMessageEvent.data
is not nullable, so this should be an empty array. It's harmless to allow an emptyMIDIMessageEvent
but it's not particularly useful either. We can change the spec for compat instead of having Chrome fixed maybe.