Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-534] Javascript stops execution when using @var doc-comment

GitHub Issuen/a
TypeBug
PriorityTrivial
StatusClosed
ResolutionInvalid
Resolution Date2011-04-15T02:31:18.000+0000
Affected Version/sn/a
Fix Version/sBacklog
ComponentsiOS
Labelsdoctags, javascript, parser
ReporterChristian Döring
AssigneeReggie Seagraves
Created2011-04-15T02:31:16.000+0000
Updated2017-03-02T18:40:19.000+0000

Description

Hi there,

while working with Titanium Mobile 0.8.2 (OSX 10.5.8, iPhone-SDK 3.1.2) i could use these doc-coments (@var/@return etc) without problems, but suddenly the execution of my code stopped without any message whatsoever. It turns out the problem was a doc-comment in a prototype. A snippet to illustrate:

function XXX()
{

/* * @var date / this.thing = null;

}

does fine, while

function XXX()
{

/* * @var Date / this.thing = null;

}

does not.

I'm not sure if i'm using the "correct" way to anotate my code, but since it's inside a comment-block i tend to say it's an error. Correct me if i'm wrong, otherwise i hope its helpful to you and others.

Comments

  1. Christian Döring 2011-04-15

    narg :),

       
       /**
        * @var Date
        */
       this.thing = null;
       
  2. Stephen Tramer 2011-04-15

    May not still be valid. Will have to R&D.

  3. Stephen Tramer 2011-04-15

    Quick test proves that my hunch was correct. Likely invalidated in the switch to 0.9.

  4. Lee Morris 2017-03-02

    Closing as invalid.

JSON Source