[TIMOB-11614] iOS: console logging functions with no args print as null
GitHub Issue | n/a |
---|---|
Type | Sub-task |
Priority | Low |
Status | Open |
Resolution | Unresolved |
Affected Version/s | Release 2.1.3, Release 3.0.0 |
Fix Version/s | n/a |
Components | iOS |
Labels | cb-tooling, parity, qe-ios100112 |
Reporter | Dustin Hyde |
Assignee | Unknown |
Created | 2012-10-30T23:44:24.000+0000 |
Updated | 2018-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.
No comments