{"action":"created","issue":{"url":"https://api.github.com/repos/slightlyoff/ServiceWorker/issues/792","labels_url":"https://api.github.com/repos/slightlyoff/ServiceWorker/issues/792/labels{/name}","comments_url":"https://api.github.com/repos/slightlyoff/ServiceWorker/issues/792/comments","events_url":"https://api.github.com/repos/slightlyoff/ServiceWorker/issues/792/events","html_url":"https://github.com/slightlyoff/ServiceWorker/issues/792","id":119532665,"number":792,"title":"The prose for Clients.matchAll() distinguishes an omitted dictionary type argument","user":{"login":"ehsan","id":168508,"avatar_url":"https://avatars.githubusercontent.com/u/168508?v=3","gravatar_id":"","url":"https://api.github.com/users/ehsan","html_url":"https://github.com/ehsan","followers_url":"https://api.github.com/users/ehsan/followers","following_url":"https://api.github.com/users/ehsan/following{/other_user}","gists_url":"https://api.github.com/users/ehsan/gists{/gist_id}","starred_url":"https://api.github.com/users/ehsan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ehsan/subscriptions","organizations_url":"https://api.github.com/users/ehsan/orgs","repos_url":"https://api.github.com/users/ehsan/repos","events_url":"https://api.github.com/users/ehsan/events{/privacy}","received_events_url":"https://api.github.com/users/ehsan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-30T16:50:12Z","updated_at":"2015-11-30T16:52:19Z","closed_at":null,"body":"According to the [WebIDL spec](http://heycam.github.io/webidl/#idl-operations), an optional argument with a dictionary type should always be considered to have a default value:\r\n\r\n> 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. Such arguments are always considered to have a default value of an empty dictionary, unless otherwise specified.\r\n\r\nSection 4.3.2 step 1.2 of `Clients.matchAll()` currently specifies a different behavior for when the argument is omitted, which probably needs to be changed accordingly:\r\n\r\n> If the optional argument options is omitted, then:"},"comment":{"url":"https://api.github.com/repos/slightlyoff/ServiceWorker/issues/comments/160687545","html_url":"https://github.com/slightlyoff/ServiceWorker/issues/792#issuecomment-160687545","issue_url":"https://api.github.com/repos/slightlyoff/ServiceWorker/issues/792","id":160687545,"user":{"login":"ehsan","id":168508,"avatar_url":"https://avatars.githubusercontent.com/u/168508?v=3","gravatar_id":"","url":"https://api.github.com/users/ehsan","html_url":"https://github.com/ehsan","followers_url":"https://api.github.com/users/ehsan/followers","following_url":"https://api.github.com/users/ehsan/following{/other_user}","gists_url":"https://api.github.com/users/ehsan/gists{/gist_id}","starred_url":"https://api.github.com/users/ehsan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ehsan/subscriptions","organizations_url":"https://api.github.com/users/ehsan/orgs","repos_url":"https://api.github.com/users/ehsan/repos","events_url":"https://api.github.com/users/ehsan/events{/privacy}","received_events_url":"https://api.github.com/users/ehsan/received_events","type":"User","site_admin":false},"created_at":"2015-11-30T16:52:19Z","updated_at":"2015-11-30T16:52:19Z","body":"Implementor's feedback:  In Gecko, our binding machinery doesn't even expose whether the dictionary type argument was passed in or not.  I'm going to implement as if the step 1.2 of section 4.3.2 and everything under it was deleted."}}