Opened 9 years ago
Last modified 9 years ago
#13466 assigned Bug
CKBuilder fails on ES6 Promises
Reported by: | Karen Ananiev | Owned by: | Artur Delura |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | Project : CKBuilder | Version: | |
Keywords: | Cc: |
Description
.catch() in ES6 Promises causes an CKBuilder error:
Jun 25, 2015 8:39:12 PM com.google.javascript.jscomp.LoggerErrorManager println SEVERE: plugin.js:87: ERROR - Parse error. missing name after . operator }).catch(function() { ^
Change History (3)
comment:1 Changed 9 years ago by
Status: | new → confirmed |
---|
comment:2 Changed 9 years ago by
Just to make it clear: it should be possible to configure CKBuilder (by adding a command line flag) to use ES3, ES5 or ES6.
comment:3 Changed 9 years ago by
Owner: | set to Artur Delura |
---|---|
Status: | confirmed → assigned |
Confirmed. AFAIK GCC should be executed with flag allowing ES5. In ES3 catch was a reserved keyword, so this is why this code fails. But the reason why we use GCC in ES3 mode is to catch cases like trailing commas which would crash editor in IE Quirks Mode and Compat Mode. Perhaps a solution here would be to expose this setting in CKBuilder.