{"action":"created","issue":{"url":"https://api.github.com/repos/w3c/webcrypto/issues/88","repository_url":"https://api.github.com/repos/w3c/webcrypto","labels_url":"https://api.github.com/repos/w3c/webcrypto/issues/88/labels{/name}","comments_url":"https://api.github.com/repos/w3c/webcrypto/issues/88/comments","events_url":"https://api.github.com/repos/w3c/webcrypto/issues/88/events","html_url":"https://github.com/w3c/webcrypto/issues/88","id":156396889,"number":88,"title":"Bug 29438 - JSON.stringify as invoked by wrapKey can have side-effects depending on what you pass it","user":{"login":"mwatson2","id":7593867,"avatar_url":"https://avatars.githubusercontent.com/u/7593867?v=3","gravatar_id":"","url":"https://api.github.com/users/mwatson2","html_url":"https://github.com/mwatson2","followers_url":"https://api.github.com/users/mwatson2/followers","following_url":"https://api.github.com/users/mwatson2/following{/other_user}","gists_url":"https://api.github.com/users/mwatson2/gists{/gist_id}","starred_url":"https://api.github.com/users/mwatson2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mwatson2/subscriptions","organizations_url":"https://api.github.com/users/mwatson2/orgs","repos_url":"https://api.github.com/users/mwatson2/repos","events_url":"https://api.github.com/users/mwatson2/events{/privacy}","received_events_url":"https://api.github.com/users/mwatson2/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/w3c/webcrypto/labels/needs%20input","name":"needs input","color":"bfd4f2"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-05-24T00:43:45Z","updated_at":"2016-05-26T01:28:57Z","closed_at":null,"body":"[Bug 29438](https://www.w3.org/Bugs/Public/show_bug.cgi?id=29438):\r\n\r\nThe spec says:\r\n\r\n  Let json be the result of representing key as a UTF-16 string conforming to the\r\n  JSON grammar; for example, by executing the JSON.stringify algorithm specified\r\n  in ECMA262.\r\n\r\nThis needs to clearly define where the objects passed to JSON.stringify are coming from, because JSON.stringify will do things like get .toJSON properties and call them, so if the objects come from the page global and someone defines a .toJSON on Object.prototype in the page, that will get invoked during this process.  Maybe the intent is that there be no observable side-effects; in that case the behavior needs to be clearly specified so as to avoid them."},"comment":{"url":"https://api.github.com/repos/w3c/webcrypto/issues/comments/221754466","html_url":"https://github.com/w3c/webcrypto/issues/88#issuecomment-221754466","issue_url":"https://api.github.com/repos/w3c/webcrypto/issues/88","id":221754466,"user":{"login":"bzbarsky","id":1457979,"avatar_url":"https://avatars.githubusercontent.com/u/1457979?v=3","gravatar_id":"","url":"https://api.github.com/users/bzbarsky","html_url":"https://github.com/bzbarsky","followers_url":"https://api.github.com/users/bzbarsky/followers","following_url":"https://api.github.com/users/bzbarsky/following{/other_user}","gists_url":"https://api.github.com/users/bzbarsky/gists{/gist_id}","starred_url":"https://api.github.com/users/bzbarsky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bzbarsky/subscriptions","organizations_url":"https://api.github.com/users/bzbarsky/orgs","repos_url":"https://api.github.com/users/bzbarsky/repos","events_url":"https://api.github.com/users/bzbarsky/events{/privacy}","received_events_url":"https://api.github.com/users/bzbarsky/received_events","type":"User","site_admin":false},"created_at":"2016-05-26T01:28:57Z","updated_at":"2016-05-26T01:28:57Z","body":"Use a clean global for the dictionary-to-ES conversion and the JSON.stringify."}}
{"actor":{"display_login":"bzbarsky"}}