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 Piotrek Koszuliński

Status: newconfirmed

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.

comment:2 Changed 9 years ago by Wiktor Walc

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 Artur Delura

Owner: set to Artur Delura
Status: confirmedassigned
Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy