Developer App only says: SyntaxError: Unexpected identifier... so?


#1
  • Cocoon Version:
    What Cocoon version are you using to compile (i.e. 1.0.0)?
    Cocoon Developer App 2.5.0

  • Basic description of the problem:
    I try to run my game in canvas+, expecting it to point out incompatible calls so I know what to edit in order for it to run in cocoonjs. But it does not say what the problem is, nor any line number or anything, it just says:
    JavaScript Exception ( File: ‘game.js’ Tag ‘script’): SyntaxError: Unexpected identifier
    Could it be more precise ?

  • Device info:
    iFive Mini 3, Android 4.4

  • Steps will reproduce the problem:

  1. Open http://diegotests.altervista.org/html5_games/8bpkwr_cocoonjs_test/ in Cocoon Developer App
  • Expected result:
    I need it to point out what is incompatible.

  • Error log
    JavaScript Exception ( File: ‘game.js’ Tag ‘script’): SyntaxError: Unexpected identifier

  • Testcase:

  • Other information:
    I get a similar error from old webview which don’t understand ‘let’ I use instead of obsolete ‘var’.

  • Webview engine(s):
    canvas+

  • Used plugins (if relevant):
    none

  • Framework/game engine (if relevant):
    none