{ "id": "61166", "key": "TIMOB-534", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "11258", "description": "Holding Pen for Triaged Issues", "name": "Backlog", "archived": false, "released": false } ], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2011-04-15T02:31:18.000+0000", "created": "2011-04-15T02:31:16.000+0000", "priority": { "name": "Trivial", "id": "5" }, "labels": [ "doctags", "javascript", "parser" ], "versions": [], "issuelinks": [], "assignee": { "name": "rseagraves", "key": "rseagraves", "displayName": "Reggie Seagraves", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-02T18:40:19.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "{html}

Hi there,

\n

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

\n

function XXX()
\n{

\n

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

\n

}

\n

does fine, while

\n

function XXX()
\n{

\n

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

\n

}

\n

does not.

\n

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

{html}", "attachment": [], "flagged": false, "summary": "Javascript stops execution when using @var doc-comment", "creator": { "name": "christiandöring", "key": "christiandöring", "displayName": "Christian Döring", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "christiandöring", "key": "christiandöring", "displayName": "Christian Döring", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "123489", "author": { "name": "christiandöring", "key": "christiandöring", "displayName": "Christian Döring", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

narg :),

\n
\n\n/**\n * @var Date\n */\nthis.thing = null;\n
{html}", "updateAuthor": { "name": "christiandöring", "key": "christiandöring", "displayName": "Christian Döring", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:31:17.000+0000", "updated": "2011-04-15T02:31:17.000+0000" }, { "id": "123490", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

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

{html}", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:31:18.000+0000", "updated": "2011-04-15T02:31:18.000+0000" }, { "id": "123491", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

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

{html}", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:31:18.000+0000", "updated": "2011-04-15T02:31:18.000+0000" }, { "id": "408365", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing as invalid.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-02T18:40:19.000+0000", "updated": "2017-03-02T18:40:19.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }