3

Strange Parse error:

  Input: {}
  Failed with: TypeError: Object [object Object] has no method 'apply'
    at e (Parse.js:2:6486)
    at Parse.js:2:5935
    at Array.forEach (native)
    at Object.x.each.x.forEach [as _arrayEach] (Parse.js:1:664)
    at c.extend.resolve (Parse.js:2:5886)
    at Parse.js:2:6565
    at e (Parse.js:2:6486)
    at Parse.js:2:5935
    at Array.forEach (native)
    at Object.x.each.x.forEach [as _arrayEach] (Parse.js:1:664)

As you'll notice, none of these lines refer to any code I've written.

How can I begin to debug this?

fatuhoku
  • 4,815
  • 3
  • 30
  • 70
  • Are you using an external libray ? this is for sure related to a change you attempt to do on a pointer rather than an object – Toucouleur Jun 26 '15 at 05:16
  • 2
    Hi @Toucouleur I figured out why — it was because I tried to join up promises by using the invalid syntax `promise1.then(promise2);`. The debug trace for this expression is surprisingly completely unreadable, as above... – fatuhoku Jun 27 '15 at 12:15

0 Answers0