Change the log method of the console class to always call the really native method with a string

This commit is contained in:
Erjan Gavalji
2015-05-21 10:27:50 +03:00
parent 949b319560
commit 2455ae61fe

View File

@ -202,7 +202,7 @@ export class Console implements definition.Console {
private formatParams(message: any): string {
if (arguments.length <= 1) {
return message ? message : '';
return "" + message;
}
var res = this.sprintf.apply(this, arguments);
if (res === message) {