Titanium

[TIMOB-1657] JS compiler hangs

GitHub Issuen/a
TypeBug
PriorityTrivial
StatusClosed
ResolutionCannot Reproduce
Resolution Date2013-07-31T22:52:15.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsAndroid
Labelsandroid, feature, ios, parser
ReporterRalf Pfeiffer
AssigneeIngo Muschenetz
Created2011-04-15T02:58:36.000+0000
Updated2017-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

  1. Stephen Tramer 2011-04-15

    We do not support const. Consider this a low-priority feature.

  2. 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.
  3. Lee Morris 2017-03-10 Closing ticket as the issue cannot be reproduced.

JSON Source