This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
The return types of certain function may be null in certain scenarios. This has been specified for getTrackById "Return type: MediaStreamTrack, nullable", but missed to specify for other functions. This should be specified for all the possible cases clone - should return null in case of any error occurred while processing. and may be for other functions like getCapabilities, getConstraints, getSettings etc.
There are no error conditions defined for clone, getCapabilities, getConstraints, getSettings, and I'm not clear what kind of error might occur. Thus I don't think their return values should be nullable.
There has been no evidence of the need for more cases where the return type can be null. Closing as "WONTFIX".