mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 20:11:24 +08:00
Change the log method of the console class to always call the really native method with a string
This commit is contained in:
@ -202,7 +202,7 @@ export class Console implements definition.Console {
|
|||||||
|
|
||||||
private formatParams(message: any): string {
|
private formatParams(message: any): string {
|
||||||
if (arguments.length <= 1) {
|
if (arguments.length <= 1) {
|
||||||
return message ? message : '';
|
return "" + message;
|
||||||
}
|
}
|
||||||
var res = this.sprintf.apply(this, arguments);
|
var res = this.sprintf.apply(this, arguments);
|
||||||
if (res === message) {
|
if (res === message) {
|
||||||
|
Reference in New Issue
Block a user