{"action":"created","issue":{"url":"https://api.github.com/repos/whatwg/encoding/issues/7","labels_url":"https://api.github.com/repos/whatwg/encoding/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/whatwg/encoding/issues/7/comments","events_url":"https://api.github.com/repos/whatwg/encoding/issues/7/events","html_url":"https://github.com/whatwg/encoding/issues/7","id":94776731,"number":7,"title":"Serializing internal TextDecoder state?","user":{"login":"domenic","id":617481,"avatar_url":"https://avatars.githubusercontent.com/u/617481?v=3","gravatar_id":"","url":"https://api.github.com/users/domenic","html_url":"https://github.com/domenic","followers_url":"https://api.github.com/users/domenic/followers","following_url":"https://api.github.com/users/domenic/following{/other_user}","gists_url":"https://api.github.com/users/domenic/gists{/gist_id}","starred_url":"https://api.github.com/users/domenic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/domenic/subscriptions","organizations_url":"https://api.github.com/users/domenic/orgs","repos_url":"https://api.github.com/users/domenic/repos","events_url":"https://api.github.com/users/domenic/events{/privacy}","received_events_url":"https://api.github.com/users/domenic/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-13T18:01:58Z","updated_at":"2015-07-13T18:06:34Z","closed_at":null,"body":"Was talking to @bsittler about using TextDecoder and he mentioned that he needs to be able to serialize the current decoding state to IndexedDB in order to survive e.g. service worker upgrades. TextDecoder definitely has internal state (a few bytes left in its internal \"stream\" variable, basically) which can get lost in this manner. It would be great to expose this, and allow construction of a new TextDecoder primed with that state."},"comment":{"url":"https://api.github.com/repos/whatwg/encoding/issues/comments/121008866","html_url":"https://github.com/whatwg/encoding/issues/7#issuecomment-121008866","issue_url":"https://api.github.com/repos/whatwg/encoding/issues/7","id":121008866,"user":{"login":"annevk","id":1544111,"avatar_url":"https://avatars.githubusercontent.com/u/1544111?v=3","gravatar_id":"","url":"https://api.github.com/users/annevk","html_url":"https://github.com/annevk","followers_url":"https://api.github.com/users/annevk/followers","following_url":"https://api.github.com/users/annevk/following{/other_user}","gists_url":"https://api.github.com/users/annevk/gists{/gist_id}","starred_url":"https://api.github.com/users/annevk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/annevk/subscriptions","organizations_url":"https://api.github.com/users/annevk/orgs","repos_url":"https://api.github.com/users/annevk/repos","events_url":"https://api.github.com/users/annevk/events{/privacy}","received_events_url":"https://api.github.com/users/annevk/received_events","type":"User","site_admin":false},"created_at":"2015-07-13T18:06:34Z","updated_at":"2015-07-13T18:06:34Z","body":"I wonder how easy the C++ APIs make it to expose that state. @vyv03354, @hsivonen, @inexorabletash?"}}