{"action":"created","issue":{"url":"https://api.github.com/repos/angular/angular.js/issues/9128","labels_url":"https://api.github.com/repos/angular/angular.js/issues/9128/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular.js/issues/9128/comments","events_url":"https://api.github.com/repos/angular/angular.js/issues/9128/events","html_url":"https://github.com/angular/angular.js/issues/9128","id":43009424,"number":9128,"title":"(iOS 8 GM iPhone5C) TypeError: Attempted to assign to readonly property","user":{"login":"HAKASHUN","id":1150412,"avatar_url":"https://avatars.githubusercontent.com/u/1150412?v=3","gravatar_id":"","url":"https://api.github.com/users/HAKASHUN","html_url":"https://github.com/HAKASHUN","followers_url":"https://api.github.com/users/HAKASHUN/followers","following_url":"https://api.github.com/users/HAKASHUN/following{/other_user}","gists_url":"https://api.github.com/users/HAKASHUN/gists{/gist_id}","starred_url":"https://api.github.com/users/HAKASHUN/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HAKASHUN/subscriptions","organizations_url":"https://api.github.com/users/HAKASHUN/orgs","repos_url":"https://api.github.com/users/HAKASHUN/repos","events_url":"https://api.github.com/users/HAKASHUN/events{/privacy}","received_events_url":"https://api.github.com/users/HAKASHUN/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/angular/angular.js/labels/browser:%20iOS","name":"browser: iOS","color":"fbca04"},{"url":"https://api.github.com/repos/angular/angular.js/labels/needs:%20more%20info","name":"needs: more info","color":"d7eb9f"},{"url":"https://api.github.com/repos/angular/angular.js/labels/type:%20bug","name":"type: bug","color":"000000"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/angular/angular.js/milestones/35","html_url":"https://github.com/angular/angular.js/milestones/Purgatory","labels_url":"https://api.github.com/repos/angular/angular.js/milestones/35/labels","id":526241,"number":35,"title":"Purgatory","description":"This milestone is for issues and PRs that weren't accepted yet and we are waiting for more info from the submitter.\r\n\r\nFor issues this typically means that we weren't able to reproduce the issue or we haven't decided yet if a feature request is a good idea at all.\r\n\r\nFor PRs this means that the PR still needs a lot of work and we might not even be interested in merging it because it looks like a non-core feature. We are still waiting for more discussion within the team or more info from the contributor before making the final decision.","creator":{"login":"IgorMinar","id":216296,"avatar_url":"https://avatars.githubusercontent.com/u/216296?v=3","gravatar_id":"","url":"https://api.github.com/users/IgorMinar","html_url":"https://github.com/IgorMinar","followers_url":"https://api.github.com/users/IgorMinar/followers","following_url":"https://api.github.com/users/IgorMinar/following{/other_user}","gists_url":"https://api.github.com/users/IgorMinar/gists{/gist_id}","starred_url":"https://api.github.com/users/IgorMinar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IgorMinar/subscriptions","organizations_url":"https://api.github.com/users/IgorMinar/orgs","repos_url":"https://api.github.com/users/IgorMinar/repos","events_url":"https://api.github.com/users/IgorMinar/events{/privacy}","received_events_url":"https://api.github.com/users/IgorMinar/received_events","type":"User","site_admin":false},"open_issues":110,"closed_issues":338,"state":"open","created_at":"2014-01-04T01:20:50Z","updated_at":"2015-04-29T19:52:39Z","due_on":null,"closed_at":null},"comments":94,"created_at":"2014-09-17T13:16:48Z","updated_at":"2015-04-29T21:59:56Z","closed_at":null,"body":"I am using on iOS 8 GM(iPhone5C).\r\nWith this device, I am getting this error in this line(https://github.com/angular/angular.js/blob/master/src/ng/rootScope.js#L216)\r\nBut on iOS 8 GM(iPhone5S) and iOS 7.x (iPhone5C, iPhone5S), this error does not occur.\r\n\r\nTo resolve this error, I rewrote the code as follows:\r\n``` javascript\r\n$new: function(isolate) {\r\n        var child;\r\n\r\n        if (isolate) {\r\n          child = new Scope();\r\n          child.$root = this.$root;\r\n          // ensure that there is just one async queue per $rootScope and its children\r\n          child.$$asyncQueue = this.$$asyncQueue;\r\n          child.$$postDigestQueue = this.$$postDigestQueue;\r\n        } else {\r\n          // Only create a child scope class if somebody asks for one,\r\n          // but cache it to allow the VM to optimize lookups.\r\n          if (!this.$$ChildScope) {\r\n            this.$$ChildScope = function ChildScope() {\r\n              this['$$watchers'] = this['$$nextSibling'] =\r\n                  this['$$childHead'] = this['$$childTail'] = null;\r\n              this['$$listeners'] = {};\r\n              this['$$listenerCount'] = {};\r\n              this['$id'] = nextUid();\r\n              this['$$ChildScope'] = null;\r\n            };\r\n            this.$$ChildScope.prototype = this;\r\n          }\r\n          child = new this.$$ChildScope();\r\n        }\r\n        child['this'] = child;\r\n        child['$parent'] = this;\r\n        child['$$prevSibling'] = this.$$childTail;\r\n        if (this.$$childHead) {\r\n          this.$$childTail.$$nextSibling = child;\r\n          this.$$childTail = child;\r\n        } else {\r\n          this.$$childHead = this.$$childTail = child;\r\n        }\r\n        return child;\r\n      },\r\n```\r\n\r\nThe situation has improved, but I do not understand the reason..."},"comment":{"url":"https://api.github.com/repos/angular/angular.js/issues/comments/97600649","html_url":"https://github.com/angular/angular.js/issues/9128#issuecomment-97600649","issue_url":"https://api.github.com/repos/angular/angular.js/issues/9128","id":97600649,"user":{"login":"caitp","id":2294695,"avatar_url":"https://avatars.githubusercontent.com/u/2294695?v=3","gravatar_id":"","url":"https://api.github.com/users/caitp","html_url":"https://github.com/caitp","followers_url":"https://api.github.com/users/caitp/followers","following_url":"https://api.github.com/users/caitp/following{/other_user}","gists_url":"https://api.github.com/users/caitp/gists{/gist_id}","starred_url":"https://api.github.com/users/caitp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caitp/subscriptions","organizations_url":"https://api.github.com/users/caitp/orgs","repos_url":"https://api.github.com/users/caitp/repos","events_url":"https://api.github.com/users/caitp/events{/privacy}","received_events_url":"https://api.github.com/users/caitp/received_events","type":"User","site_admin":false},"created_at":"2015-04-29T21:59:56Z","updated_at":"2015-04-29T21:59:56Z","body":"@gitmh I've been trying for a while, but I can't seem to reproduce this on an iPad (MD787C/A) with iOS 8.3 --- Method: Press on \"öffnen\" buttons on random graphs (whether same button is pressed sequentially or not doesn't seem to have an impact).\r\n\r\nIf any WebKit/JSC gurus know if there are any flags to force (different types of) optimization of even cold code, that might be helpful in tracking this down."}}