问题描述
我们的移动应用也越来越类型错误:试图将分配给只读属性。仅在iOS 8和堆栈跟踪不是有益的,似乎是在角code。
Our Mobile App is getting "TypeError: Attempted to assign to readonly property." only on IOS 8 and the stack traces are not helpful and seem to be in Angular code.
这可能会发生,因为的上Angularjs code的顶级使用严格。
我的问题是:(1)它为什么只开始iOS8上发生了什么?这是一个iOS8上的错误?
(2)或这是一个错误的角度浮出了水面iOS8上? (3)也许我们违反了严格的模式规则,但只有iOS8上开始赶上他们!我是持怀疑态度的第三个选项,因为。
This might be happening because of the "use strict" on top level of Angularjs code.My questions are (1) why did it start happening only on IOS8? is this an IOS8 bug?(2) or is this an angular bug surfaced on IOS8? (3) Or maybe we are violating strict mode rules but only IOS8 started to catch them! I am skeptical about the third option because strict mode is supported by other major browsers.
我已经找到了一个类似的报告的问题,here.
I have found one similar reported issue here.
推荐答案
看起来这是一个iOS8上的错误。
Looks like this is an IOS8 bug.IOS8 bug
至少在ember.js的球员将暂时剥夺,直到它固定在使用严格的从code。
At least the guys at ember.js will temporarily strip the 'use strict' from their code until it's fixed.Ember.js issue
问候
这篇关于类型错误:试图将分配给只读属性。在iOS8上的Safari Angularjs应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!