{"action":"created","issue":{"url":"https://api.github.com/repos/Urigo/angular2-meteor/issues/278","repository_url":"https://api.github.com/repos/Urigo/angular2-meteor","labels_url":"https://api.github.com/repos/Urigo/angular2-meteor/issues/278/labels{/name}","comments_url":"https://api.github.com/repos/Urigo/angular2-meteor/issues/278/comments","events_url":"https://api.github.com/repos/Urigo/angular2-meteor/issues/278/events","html_url":"https://github.com/Urigo/angular2-meteor/issues/278","id":156298707,"number":278,"title":"new FileReader() produces Maximum call stack size exceeded error","user":{"login":"demil133","id":3038962,"avatar_url":"https://avatars.githubusercontent.com/u/3038962?v=3","gravatar_id":"","url":"https://api.github.com/users/demil133","html_url":"https://github.com/demil133","followers_url":"https://api.github.com/users/demil133/followers","following_url":"https://api.github.com/users/demil133/following{/other_user}","gists_url":"https://api.github.com/users/demil133/gists{/gist_id}","starred_url":"https://api.github.com/users/demil133/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/demil133/subscriptions","organizations_url":"https://api.github.com/users/demil133/orgs","repos_url":"https://api.github.com/users/demil133/repos","events_url":"https://api.github.com/users/demil133/events{/privacy}","received_events_url":"https://api.github.com/users/demil133/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-05-23T14:51:22Z","updated_at":"2016-06-04T21:21:16Z","closed_at":"2016-05-31T10:58:22Z","body":"When trying to instantiate a new FileReader it gives this error. Or in FireFox `Too much recursion`.\r\n```js\r\nimport 'reflect-metadata';\r\nimport 'zone.js/dist/zone';\r\nimport { Component } from '@angular/core';\r\nimport { bootstrap } from '@angular/platform-browser-dynamic';\r\n\r\n\r\n@Component({\r\n    selector: 'app',\r\n    template: '<h1>hi</h1>'\r\n})\r\nclass Socially { }\r\n\r\nbootstrap(Socially);\r\n```\r\n\r\n![image](https://cloud.githubusercontent.com/assets/3038962/15474095/7a1fbe46-2103-11e6-8138-565384d36aaa.png)\r\n\r\nThe error stack trace looks like this:\r\n```js\r\n> var reader = new FileReader()\r\n------------------- trace -----------------\r\nzone.js:966 Uncaught RangeError: Maximum call stack size exceeded(…)\r\nObject.defineProperty.get @ zone.js:966\r\nObject.defineProperty.get @ zone.js:966\r\nObject.defineProperty.get @ zone.js:966\r\nObject.defineProperty.get @ zone.js:966\r\nObject.defineProperty.get @ zone.js:966\r\nObject.defineProperty.get @ zone.js:966\r\nObject.defineProperty.get @ zone.js:966\r\nObject.defineProperty.get @ zone.js:966\r\nObject.defineProperty.get @ zone.js:966\r\nObject.defineProperty.get @ zone.js:966\r\n```\r\n\r\nAnd at `zone.js:966` we find:\r\n```js\r\nget: function () {\r\n    return this[originalInstanceKey][prop];  // <---966\r\n}\r\n```\r\n\r\nIt doesn't work either if I run it outside the angular with zone:\r\n```js\r\nzone.runOutsideAngular(() => {\r\n    new FileReader();\r\n    zone.run();\r\n});\r\n```\r\n\r\nAm I doing something wrong with the FileReader?"},"comment":{"url":"https://api.github.com/repos/Urigo/angular2-meteor/issues/comments/223778962","html_url":"https://github.com/Urigo/angular2-meteor/issues/278#issuecomment-223778962","issue_url":"https://api.github.com/repos/Urigo/angular2-meteor/issues/278","id":223778962,"user":{"login":"kokokenada","id":15197961,"avatar_url":"https://avatars.githubusercontent.com/u/15197961?v=3","gravatar_id":"","url":"https://api.github.com/users/kokokenada","html_url":"https://github.com/kokokenada","followers_url":"https://api.github.com/users/kokokenada/followers","following_url":"https://api.github.com/users/kokokenada/following{/other_user}","gists_url":"https://api.github.com/users/kokokenada/gists{/gist_id}","starred_url":"https://api.github.com/users/kokokenada/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kokokenada/subscriptions","organizations_url":"https://api.github.com/users/kokokenada/orgs","repos_url":"https://api.github.com/users/kokokenada/repos","events_url":"https://api.github.com/users/kokokenada/events{/privacy}","received_events_url":"https://api.github.com/users/kokokenada/received_events","type":"User","site_admin":false},"created_at":"2016-06-04T21:21:16Z","updated_at":"2016-06-04T21:21:16Z","body":"@demil133 - I'm cursed with this too.  Can you shed some light on how you worked around it?  \r\n"}}
{"actor":{"display_login":"kokokenada"}}