You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the type of an argument is a dictionary type or a union type that has a dictionary type as one of its flattened member types, and that dictionary type and its ancestors have no required members, and the argument is either the final argument or is followed only by optional arguments, then the argument must be specified as optional and have a default value provided.
Dictionary argument without any required fields need to have a default value. Hence
Constructor(optional MediaMetadataInit init)
should be replaced by
Constructor(optional MediaMetadataInit init = {})
Given that the extended attributes for Constructor is replaced by the new constructor() syntax(#235), the Constructor should be moved in the MediaMetadata interface and replaced by
constructor(optional MediaMetadataInit init = {})
The text was updated successfully, but these errors were encountered:
ChunMinChang
added a commit
to ChunMinChang/mediasession
that referenced
this issue
Sep 19, 2019
By the definition of the optional argument:
Dictionary argument without any required fields need to have a default value. Hence
Constructor(optional MediaMetadataInit init)
should be replaced by
Constructor(optional MediaMetadataInit init = {})
Given that the extended attributes for
Constructor
is replaced by the newconstructor()
syntax(#235), theConstructor
should be moved in theMediaMetadata
interface and replaced byconstructor(optional MediaMetadataInit init = {})
The text was updated successfully, but these errors were encountered: