Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-13941] iOS: Titanium console.log should not output <null> instead of undefined

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionDuplicate
Resolution Date2016-08-29T22:42:30.000+0000
Affected Version/sRelease 3.2.0
Fix Version/sn/a
ComponentsiOS
Labelsn/a
ReporterMitchell Amihod
AssigneeEric Merriman
Created2013-05-21T01:30:26.000+0000
Updated2017-03-21T22:49:48.000+0000

Description

var foo = {};
console.log(foo.x);
Expecting console.log to output undefined, instead shows .

Comments

  1. Daniel Sefton 2013-05-21

    Tested and confirmed on iOS 6 simulator with Ti SDK 3.2 CI.
  2. Chris Barber 2013-10-14

    This is not a CLI bug. The iOS code is writing all "undefined" values as . It's also doing this for NULL values, so there's no way for the CLI to know if the value really is NULL or undefined. It will need to be corrected in the Obj-C code.
  3. Chris Barber 2016-08-29

    Dupe of TIMOB-11614.
  4. Lee Morris 2017-03-21

    Closing ticket as duplicate with reference to the above comments.

JSON Source