-
Sencha User
How to compile ES6 deconstruction code>
Hello,
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:
com.sencha.tools.compiler.ast.js.DefaultParameter cannot be cast to com.sencha.tools.compiler.ast.js.ObjectProperty
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.
-
Sencha User
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
-
Forum Rules