Closed Bug 1206492 Opened 10 years ago Closed 8 years ago

Version of cujojs/curl.js incompatible with ES6 Promises?

Categories

(Firefox OS Graveyard :: Gaia::Calendar, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: mbdejong, Unassigned)

Details

The version of cujojs/curl.js used in the Calendar app looks like it is incompatible with the ES6 Promises available on B2G. If you run these lines https://github.com/mozilla-b2g/gaia/blob/master/apps/calendar/js/ext/curl.js#L298-L300 in B2G-42.0, it will result in: TypeError: Not enough arguments to Promise. I think cujojs is meant to be compiled in some way to replace the (deprecated?) "new Promise()" syntax to official ES6 Promise syntax, where an executor is passed (https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Promise). Maybe this doesn't affect the functioning of the Calendar app, and I opened https://github.com/cujojs/curl/issues/291 about this as well, but thought it would be worth bringing it to your attention.
Firefox OS is not being worked on
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.