The current IDL definition of WritableParams is:
dictionary WriteParams {
required WriteCommandType type;
unsigned long long? size;
unsigned long long? position;
(BufferSource or Blob or USVString)? data;
};
It's a bit weird that size, position and data are both nullable (by virtue of the ?) and optional (by virtue of having no required keyword).
Is this intentional? If so, what is the purpose of being both optional and nullable. Do they indicate separate things?
The current IDL definition of WritableParams is:
dictionary WriteParams { required WriteCommandType type; unsigned long long? size; unsigned long long? position; (BufferSource or Blob or USVString)? data; };It's a bit weird that
size,positionanddataare both nullable (by virtue of the?) and optional (by virtue of having norequiredkeyword).Is this intentional? If so, what is the purpose of being both optional and nullable. Do they indicate separate things?