TypeError: Attempted to assign to readonly property. on iOS8 Safari

前端 未结 2 1139
悲哀的现实
悲哀的现实 2020-12-18 23:15

Hi this page on my site works fine on desktop browser, but has a weird bug on iOS8 Safari:

The index template doesn\'t show up, and there\'s a error in the console:<

相关标签:
2条回答
  • 2020-12-18 23:44

    Maintainer of RSVP here, sorry that you ran into this issue.

    Firstly, it appears you are using an older version of RSVP. I would recommend upgrading.

    Unfortunately it appears this issue may be related to https://github.com/emberjs/ember.js/pull/5629 which appears to just be that JSC for non-64bit devices running iOS 8 is just broken when in 'use strict' mode. In my observations it only happens in specific situations and then only when the code in question has become optimized.

    Again I am unsure if upgrading will help you, but you should consider it regardless. Additionally, if the problem persists removing all use strict statements may be the best option.

    If no solution appears soon, I will likely publish an update to RSVP with the use strict statements removed.

    0 讨论(0)
  • 2020-12-19 00:03

    Have you tried to remove all the "use strict";'s from your code? From my understanding it only seems to occur with 3. generation iPads.

    0 讨论(0)
提交回复
热议问题