[TIMOB-1657] JS compiler hangs
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Trivial |
Status | Closed |
Resolution | Cannot Reproduce |
Resolution Date | 2013-07-31T22:52:15.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Android |
Labels | android, feature, ios, parser |
Reporter | Ralf Pfeiffer |
Assignee | Ingo Muschenetz |
Created | 2011-04-15T02:58:36.000+0000 |
Updated | 2017-03-10T18:31:07.000+0000 |
Description
The following const statement makes the build and Ti Developer hang:
var utils = (function() {
const DAY_MILLIS = 24 * 60 * 60 * 1000;
// lots more...
})();
Changing const to var works.
Comments
- Stephen Tramer 2011-04-15
We do not support const. Consider this a low-priority feature.
- Chris Barber 2013-07-31 Could not reproduce with Titanium SDK 3.1.1.GA. const was added in JavaScript 1.5 (but is not apart of ECMAScript 5) and is compatible (but not necessarily enforced) by Titanium on iOS and Android.
- Lee Morris 2017-03-10 Closing ticket as the issue cannot be reproduced.