{"action":"reopened","issue":{"url":"https://api.github.com/repos/dignifiedquire/borc/issues/20","repository_url":"https://api.github.com/repos/dignifiedquire/borc","labels_url":"https://api.github.com/repos/dignifiedquire/borc/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/dignifiedquire/borc/issues/20/comments","events_url":"https://api.github.com/repos/dignifiedquire/borc/issues/20/events","html_url":"https://github.com/dignifiedquire/borc/issues/20","id":245891728,"number":20,"title":"Fails to decode arrays with over 255 elements","user":{"login":"wanderer","id":158211,"avatar_url":"https://avatars3.githubusercontent.com/u/158211?v=4","gravatar_id":"","url":"https://api.github.com/users/wanderer","html_url":"https://github.com/wanderer","followers_url":"https://api.github.com/users/wanderer/followers","following_url":"https://api.github.com/users/wanderer/following{/other_user}","gists_url":"https://api.github.com/users/wanderer/gists{/gist_id}","starred_url":"https://api.github.com/users/wanderer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wanderer/subscriptions","organizations_url":"https://api.github.com/users/wanderer/orgs","repos_url":"https://api.github.com/users/wanderer/repos","events_url":"https://api.github.com/users/wanderer/events{/privacy}","received_events_url":"https://api.github.com/users/wanderer/received_events","type":"User","site_admin":false},"labels":[{"id":469266012,"url":"https://api.github.com/repos/dignifiedquire/borc/labels/bug","name":"bug","color":"ee0701","default":true},{"id":495003270,"url":"https://api.github.com/repos/dignifiedquire/borc/labels/ready","name":"ready","color":"ededed","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-07-27T00:21:10Z","updated_at":"2017-07-28T14:26:52Z","closed_at":null,"body":"Fails to decode arrays with over 255 elements with the following\r\n```\r\n/home/null/code/borc/src/decoder.js:561\r\n        throw new Error('Undeterminated nesting')\r\n        ^\r\n\r\nError: Undeterminated nesting\r\n    at Decoder._decode (/home/null/code/borc/src/decoder.js:561:15)\r\n    at Decoder.decodeFirst (/home/null/code/borc/src/decoder.js:577:10)\r\n    at Object.<anonymous> (/home/null/code/js-primea-iframe-container/examples/ipfstest.js:18:5)\r\n    at Module._compile (module.js:569:30)\r\n    at Object.Module._extensions..js (module.js:580:10)\r\n    at Module.load (module.js:503:32)\r\n    at tryModuleLoad (module.js:466:12)\r\n    at Function.Module._load (module.js:458:3)\r\n    at Function.Module.runMain (module.js:605:10)\r\n    at startup (bootstrap_node.js:158:16)\r\n```\r\nsource\r\n```javascript\r\ncontent = Array(256).fill(0)\r\nconst encoded = cbor.encode(content)\r\nconst dec = new cbor.Decoder()\r\ndec.decodeFirst(encoded)\r\n```"}}
{"actor":{"display_login":"wanderer"}}