-
Notifications
You must be signed in to change notification settings - Fork 68
Closed
Description
https://heycam.github.io/webidl/#idl-dictionaries says:
The type of a dictionary member must not include the dictionary it appears on. A type includes a dictionary D if at least one of the following is true:
- the type is D
- the type is a dictionary that inherits from D
- the type is a nullable type whose inner type includes D
- the type is a sequence type or frozen array whose element type includes D
- the type is a union type, one of whose member types includes D
- the type is a dictionary, one of whose members or inherited members has a type that includes D
- the type is record<K, V> where V includes D
#454 introduced a case of 4, 5 and 6, as right now NDEFRecordInit.data
can be an NDEFMessageInit
, which is a dictionary with a sequence of NDEFRecordInit
s. This creates a loop that is not allowed by Web IDL and which can cause implementation issues like https://bugs.chromium.org/p/chromium/issues/detail?id=1242274
Metadata
Metadata
Assignees
Labels
No labels