[heycam/webidl] `record<unsigned short, ...` (#978)

Hey folks, I read that record type keys [must be](https://heycam.github.io/webidl/#idl-record) one of DOMString, USVString, or ByteString. Would it be possible to consider `unsigned short` as well or is there another way to think about this?

Here's what I'd like to implement.

```idl
dictionary Foo {
  ...
  record<unsigned short, Bar> someName;
}; 

dictionary Bar {
  BufferSource someSource;
  BufferSource anotherSource;
};
```

Thanks in advance,
Francois.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/heycam/webidl/issues/978

Received on Tuesday, 20 April 2021 08:14:20 UTC