{"action":"created","issue":{"url":"https://api.github.com/repos/feross/buffer/issues/136","repository_url":"https://api.github.com/repos/feross/buffer","labels_url":"https://api.github.com/repos/feross/buffer/issues/136/labels{/name}","comments_url":"https://api.github.com/repos/feross/buffer/issues/136/comments","events_url":"https://api.github.com/repos/feross/buffer/issues/136/events","html_url":"https://github.com/feross/buffer/issues/136","id":177405569,"number":136,"title":"Buffer.prototype.slice does not work on iOS 10","user":{"login":"jonasschnelli","id":178464,"avatar_url":"https://avatars.githubusercontent.com/u/178464?v=3","gravatar_id":"","url":"https://api.github.com/users/jonasschnelli","html_url":"https://github.com/jonasschnelli","followers_url":"https://api.github.com/users/jonasschnelli/followers","following_url":"https://api.github.com/users/jonasschnelli/following{/other_user}","gists_url":"https://api.github.com/users/jonasschnelli/gists{/gist_id}","starred_url":"https://api.github.com/users/jonasschnelli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonasschnelli/subscriptions","organizations_url":"https://api.github.com/users/jonasschnelli/orgs","repos_url":"https://api.github.com/users/jonasschnelli/repos","events_url":"https://api.github.com/users/jonasschnelli/events{/privacy}","received_events_url":"https://api.github.com/users/jonasschnelli/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-09-16T11:40:40Z","updated_at":"2016-09-19T21:38:43Z","closed_at":"2016-09-16T17:48:18Z","body":"I tracked down an issue on cordova (includes node.js) where `Buffer.prototype.slice` result in returning the same value as the input buffer.\r\n\r\nIn iOS <10, this results shifting out 16 bytes:\r\n```\r\nvar out = this.cache.slice(0, 16)\r\nthis.cache = this.cache.slice(16)\r\n```\r\nIn iOS 10, `this.cache` will be unmodified.\r\n\r\nI haven't tracked it down, but seems to be a `Buffer.TYPED_ARRAY_SUPPORT` problem.\r\nIf I remove the if at https://github.com/feross/buffer/blob/c5267f419f51088068d165c07447256937b1ed63/index.js#L1078 it does work on iOS 10."},"comment":{"url":"https://api.github.com/repos/feross/buffer/issues/comments/248135316","html_url":"https://github.com/feross/buffer/issues/136#issuecomment-248135316","issue_url":"https://api.github.com/repos/feross/buffer/issues/136","id":248135316,"user":{"login":"feross","id":121766,"avatar_url":"https://avatars.githubusercontent.com/u/121766?v=3","gravatar_id":"","url":"https://api.github.com/users/feross","html_url":"https://github.com/feross","followers_url":"https://api.github.com/users/feross/followers","following_url":"https://api.github.com/users/feross/following{/other_user}","gists_url":"https://api.github.com/users/feross/gists{/gist_id}","starred_url":"https://api.github.com/users/feross/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/feross/subscriptions","organizations_url":"https://api.github.com/users/feross/orgs","repos_url":"https://api.github.com/users/feross/repos","events_url":"https://api.github.com/users/feross/events{/privacy}","received_events_url":"https://api.github.com/users/feross/received_events","type":"User","site_admin":false},"created_at":"2016-09-19T21:38:42Z","updated_at":"2016-09-19T21:38:42Z","body":"@psionic81 Returns 2 for me.\r\n\r\nAs stated before, please ensure you're using the latest version of `buffer`."}}
{"actor":{"display_login":"feross"}}