Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-11614] iOS: console logging functions with no args print as null

GitHub Issuen/a
TypeSub-task
PriorityLow
StatusOpen
ResolutionUnresolved
Affected Version/sRelease 2.1.3, Release 3.0.0
Fix Version/sn/a
ComponentsiOS
Labelscb-tooling, parity, qe-ios100112
ReporterDustin Hyde
AssigneeUnknown
Created2012-10-30T23:44:24.000+0000
Updated2018-02-28T20:04:17.000+0000

Description

Console logging functions with no args print the message as 'null'. This occurs in all iOS logging functions (Ti.API and console (js logging object)). This does not occur in MobileWeb or Android. Normally a print function with no argument prints as a null string (i.e., blank output). Steps to Reproduce: 1. Run code:
/* console */

console.log();
console.debug();
console.info();
console.warn();
console.error();

/* Ti.API */

Ti.API.trace();
Ti.API.debug();
Ti.API.info();
Ti.API.warn();
Ti.API.error();
Ti.API.log();

/* Ti.iOS.API */

Ti.API.timestamp();
Actual Result:
[INFO] (null)
[DEBUG] (null)
[INFO] (null)
[WARN] (null)
[ERROR] (null)
[TRACE] (null)
[DEBUG] (null)
[INFO] (null)
[WARN] (null)
[ERROR] (null)
[INFO] (null)
[TIMESTAMP] 373333351.000958 (null)
Expected Result: Blank message output (i.e., the null string) as in the other platforms and most standard print functions.

Comments

No comments

JSON Source