Results 1 to 2 of 2

Thread: How to compile ES6 deconstruction code>

  1. #1
    Sencha User
    Join Date
    Dec 2019

    Default How to compile ES6 deconstruction code>


    I have a code:
    let {a, b, c, d = 1} = {a : 1,b : 2, c : 3};
    I use sencha to compile:
    sencha -sdk ext ^
    compile -classpath=aaaaa.js ^
    exclude -namespace Ext and concat main-debug.js >> compile.log

    And then reported an error: cannot be cast to

    Why does the compiler report this error. The above code is valid ES6 code, "d" is default value. I hope someone will answer this question, thanks very much.

  2. #2


    The forum is about to be closed

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts