{ "id": "123684", "key": "TIMOB-15977", "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": [], "resolution": { "id": "2", "description": "The problem described is an issue which will never be fixed.", "name": "Won't Fix" }, "resolutiondate": "2016-08-24T19:49:46.000+0000", "created": "2013-12-13T00:53:56.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "qe-3.2.0" ], "versions": [ { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "issuelinks": [ { "id": "33752", "type": { "id": "10000", "name": "Blocks", "inward": "is blocked by", "outward": "blocks" }, "inwardIssue": { "id": "119392", "key": "TIMOB-15031", "fields": { "summary": "Code Processor: Implement support for cloning values and contexts", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false } } } } ], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2017-03-20T17:23:38.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": "13102", "name": "Code Processor", "description": "Analyzes JavaScript source" } ], "description": "h5. Problem description\r\nRunning 'mocha' tests in the titanium-code-processor folder, failures are returned.\r\n\r\n1. Install mocha in case is not already present\r\n{code}\r\nsudo npm install -g mocha\r\n{code}\r\n\r\n2. Go to the titanium code processor folder (by default /usr/local/lib/node_modules/titanium-code-processor) and run \"mocha\"\r\n\r\nResult:\r\n\r\n6 tests are passing, 7 are failing. \r\n\r\n{code}\r\nfcasaliMBP:titanium-code-processor fcasali$ mocha\r\n\r\n ․․․․․․․․․․․․․\r\n\r\n 6 passing (25ms)\r\n 7 failing\r\n\r\n 1) Cloning should clone an object:\r\n AssertionError: Cloned objects should have the same number of properties\r\n at compareValues (/usr/local/lib/node_modules/titanium-code-processor/test/cloning.js:92:11)\r\n at compareValues (/usr/local/lib/node_modules/titanium-code-processor/test/cloning.js:91:4)\r\n at Context. (/usr/local/lib/node_modules/titanium-code-processor/test/cloning.js:166:3)\r\n at Test.Runnable.run (/usr/local/lib/node_modules/mocha/lib/runnable.js:211:32)\r\n at Runner.runTest (/usr/local/lib/node_modules/mocha/lib/runner.js:372:10)\r\n at /usr/local/lib/node_modules/mocha/lib/runner.js:448:12\r\n at next (/usr/local/lib/node_modules/mocha/lib/runner.js:297:14)\r\n at /usr/local/lib/node_modules/mocha/lib/runner.js:307:7\r\n at next (/usr/local/lib/node_modules/mocha/lib/runner.js:245:23)\r\n at Object._onImmediate (/usr/local/lib/node_modules/mocha/lib/runner.js:274:5)\r\n at processImmediate [as _immediateCallback] (timers.js:330:15)\r\n\r\n 2) Cloning should clone a function:\r\n TypeError: Cannot read property 'enumerable' of undefined\r\n at Cloner.cloneDescriptor (/usr/local/lib/node_modules/titanium-code-processor/lib/Base.js:11875:26)\r\n at Cloner.cloneProperties (/usr/local/lib/node_modules/titanium-code-processor/lib/Base.js:11868:10)\r\n at Cloner.cloneFunction (/usr/local/lib/node_modules/titanium-code-processor/lib/Base.js:11927:7)\r\n at Cloner.cloneValue (/usr/local/lib/node_modules/titanium-code-processor/lib/Base.js:11790:18)\r\n at Context. (/usr/local/lib/node_modules/titanium-code-processor/test/cloning.js:179:19)\r\n at Test.Runnable.run (/usr/local/lib/node_modules/mocha/lib/runnable.js:211:32)\r\n at Runner.runTest (/usr/local/lib/node_modules/mocha/lib/runner.js:372:10)\r\n at /usr/local/lib/node_modules/mocha/lib/runner.js:448:12\r\n at next (/usr/local/lib/node_modules/mocha/lib/runner.js:297:14)\r\n at /usr/local/lib/node_modules/mocha/lib/runner.js:307:7\r\n at next (/usr/local/lib/node_modules/mocha/lib/runner.js:245:23)\r\n at Object._onImmediate (/usr/local/lib/node_modules/mocha/lib/runner.js:274:5)\r\n at processImmediate [as _immediateCallback] (timers.js:330:15)\r\n\r\n 3) Cloning should clone an array:\r\n TypeError: Cannot read property 'enumerable' of undefined\r\n at Cloner.cloneDescriptor (/usr/local/lib/node_modules/titanium-code-processor/lib/Base.js:11875:26)\r\n at Cloner.cloneProperties (/usr/local/lib/node_modules/titanium-code-processor/lib/Base.js:11868:10)\r\n at Cloner.cloneArray (/usr/local/lib/node_modules/titanium-code-processor/lib/Base.js:11938:7)\r\n at Cloner.cloneValue (/usr/local/lib/node_modules/titanium-code-processor/lib/Base.js:11793:18)\r\n at Context. (/usr/local/lib/node_modules/titanium-code-processor/test/cloning.js:191:19)\r\n at Test.Runnable.run (/usr/local/lib/node_modules/mocha/lib/runnable.js:211:32)\r\n at Runner.runTest (/usr/local/lib/node_modules/mocha/lib/runner.js:372:10)\r\n at /usr/local/lib/node_modules/mocha/lib/runner.js:448:12\r\n at next (/usr/local/lib/node_modules/mocha/lib/runner.js:297:14)\r\n at /usr/local/lib/node_modules/mocha/lib/runner.js:307:7\r\n at next (/usr/local/lib/node_modules/mocha/lib/runner.js:245:23)\r\n at Object._onImmediate (/usr/local/lib/node_modules/mocha/lib/runner.js:274:5)\r\n at processImmediate [as _immediateCallback] (timers.js:330:15)\r\n\r\n 4) Cloning should clone a regex:\r\n AssertionError: Cloned objects should have the same number of properties\r\n at compareValues (/usr/local/lib/node_modules/titanium-code-processor/test/cloning.js:92:11)\r\n at compareValues (/usr/local/lib/node_modules/titanium-code-processor/test/cloning.js:91:4)\r\n at Context. (/usr/local/lib/node_modules/titanium-code-processor/test/cloning.js:199:3)\r\n at Test.Runnable.run (/usr/local/lib/node_modules/mocha/lib/runnable.js:211:32)\r\n at Runner.runTest (/usr/local/lib/node_modules/mocha/lib/runner.js:372:10)\r\n at /usr/local/lib/node_modules/mocha/lib/runner.js:448:12\r\n at next (/usr/local/lib/node_modules/mocha/lib/runner.js:297:14)\r\n at /usr/local/lib/node_modules/mocha/lib/runner.js:307:7\r\n at next (/usr/local/lib/node_modules/mocha/lib/runner.js:245:23)\r\n at Object._onImmediate (/usr/local/lib/node_modules/mocha/lib/runner.js:274:5)\r\n at processImmediate [as _immediateCallback] (timers.js:330:15)\r\n\r\n 5) Cloning should clone an error:\r\n TypeError: Cannot read property 'enumerable' of undefined\r\n at Cloner.cloneDescriptor (/usr/local/lib/node_modules/titanium-code-processor/lib/Base.js:11875:26)\r\n at Cloner.cloneProperties (/usr/local/lib/node_modules/titanium-code-processor/lib/Base.js:11868:10)\r\n at Cloner.cloneFunction (/usr/local/lib/node_modules/titanium-code-processor/lib/Base.js:11927:7)\r\n at Cloner.cloneValue (/usr/local/lib/node_modules/titanium-code-processor/lib/Base.js:11790:18)\r\n at Cloner.cloneObject (/usr/local/lib/node_modules/titanium-code-processor/lib/Base.js:11895:61)\r\n at Cloner.cloneError (/usr/local/lib/node_modules/titanium-code-processor/lib/Base.js:11955:20)\r\n at Cloner.cloneValue (/usr/local/lib/node_modules/titanium-code-processor/lib/Base.js:11805:18)\r\n at Context. (/usr/local/lib/node_modules/titanium-code-processor/test/cloning.js:208:20)\r\n at Test.Runnable.run (/usr/local/lib/node_modules/mocha/lib/runnable.js:211:32)\r\n at Runner.runTest (/usr/local/lib/node_modules/mocha/lib/runner.js:372:10)\r\n at /usr/local/lib/node_modules/mocha/lib/runner.js:448:12\r\n at next (/usr/local/lib/node_modules/mocha/lib/runner.js:297:14)\r\n at /usr/local/lib/node_modules/mocha/lib/runner.js:307:7\r\n at next (/usr/local/lib/node_modules/mocha/lib/runner.js:245:23)\r\n at Object._onImmediate (/usr/local/lib/node_modules/mocha/lib/runner.js:274:5)\r\n at processImmediate [as _immediateCallback] (timers.js:330:15)\r\n\r\n 6) Cloning should clone a module context:\r\n AssertionError: Cloned objects should have the same number of properties\r\n at compareValues (/usr/local/lib/node_modules/titanium-code-processor/test/cloning.js:92:11)\r\n at compareLexicalEnvironments (/usr/local/lib/node_modules/titanium-code-processor/test/cloning.js:39:4)\r\n at compareContexts (/usr/local/lib/node_modules/titanium-code-processor/test/cloning.js:47:3)\r\n at Context. (/usr/local/lib/node_modules/titanium-code-processor/test/cloning.js:224:3)\r\n at Test.Runnable.run (/usr/local/lib/node_modules/mocha/lib/runnable.js:211:32)\r\n at Runner.runTest (/usr/local/lib/node_modules/mocha/lib/runner.js:372:10)\r\n at /usr/local/lib/node_modules/mocha/lib/runner.js:448:12\r\n at next (/usr/local/lib/node_modules/mocha/lib/runner.js:297:14)\r\n at /usr/local/lib/node_modules/mocha/lib/runner.js:307:7\r\n at next (/usr/local/lib/node_modules/mocha/lib/runner.js:245:23)\r\n at Object._onImmediate (/usr/local/lib/node_modules/mocha/lib/runner.js:274:5)\r\n at processImmediate [as _immediateCallback] (timers.js:330:15)\r\n\r\n 7) Cloning should clone a function context:\r\n TypeError: Cannot read property 'enumerable' of undefined\r\n at Cloner.cloneDescriptor (/usr/local/lib/node_modules/titanium-code-processor/lib/Base.js:11875:26)\r\n at Cloner.cloneProperties (/usr/local/lib/node_modules/titanium-code-processor/lib/Base.js:11868:10)\r\n at Cloner.cloneFunction (/usr/local/lib/node_modules/titanium-code-processor/lib/Base.js:11927:7)\r\n at Cloner.cloneValue (/usr/local/lib/node_modules/titanium-code-processor/lib/Base.js:11790:18)\r\n at Cloner.cloneDeclarativeEnvironment (/usr/local/lib/node_modules/titanium-code-processor/lib/Base.js:11721:16)\r\n at Cloner.cloneContext (/usr/local/lib/node_modules/titanium-code-processor/lib/Base.js:11692:9)\r\n at Context. (/usr/local/lib/node_modules/titanium-code-processor/test/cloning.js:235:20)\r\n at Test.Runnable.run (/usr/local/lib/node_modules/mocha/lib/runnable.js:211:32)\r\n at Runner.runTest (/usr/local/lib/node_modules/mocha/lib/runner.js:372:10)\r\n at /usr/local/lib/node_modules/mocha/lib/runner.js:448:12\r\n at next (/usr/local/lib/node_modules/mocha/lib/runner.js:297:14)\r\n at /usr/local/lib/node_modules/mocha/lib/runner.js:307:7\r\n at next (/usr/local/lib/node_modules/mocha/lib/runner.js:245:23)\r\n at Object._onImmediate (/usr/local/lib/node_modules/mocha/lib/runner.js:274:5)\r\n at processImmediate [as _immediateCallback] (timers.js:330:15)\r\n\r\n\r\n\r\n{code}\r\n", "attachment": [], "flagged": false, "summary": "Code Processor: mocha is returning failures", "creator": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "TiSDK 3.2.0.v20131210191510\r\nCLI 3.2.0-beta\r\nAlloy 1.3.0-beta\r\nTitanium Code Processor 1.1.0-cr2\r\nAppcelerator Studio 3.2.0.201312101708", "comment": { "comments": [ { "id": "394176", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "Code processor is dead.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2016-08-24T19:49:47.000+0000", "updated": "2016-08-24T19:49:47.000+0000" }, { "id": "413748", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as code processor is no longer supported.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-20T17:23:38.000+0000", "updated": "2017-03-20T17:23:38.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }