类型错误:试图将分配给只读属性。在iOS8上的Safari Angularjs应用 [英] TypeError: Attempted to assign to readonly property. in Angularjs application on iOS8 Safari

查看:986
本文介绍了类型错误:试图将分配给只读属性。在iOS8上的Safari Angularjs应用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们的移动应用也越来越类型错误:试图将分配给只读属性。仅在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.

我已经找到了一个类似的报告的问题,<一个href=\"http://stackoverflow.com/questions/25174594/typeerror-attempted-to-assign-to-readonly-property-on-ios8-safari\">here.

I have found one similar reported issue here.

推荐答案

看起来这是一个iOS8上的错误。
iOS8上的错误

Looks like this is an IOS8 bug. IOS8 bug

至少在ember.js的球员将暂时剥夺,直到它固定在使用严格的从code。
Ember.js问题

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应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆