From 2455ae61fecf84b4ee36d74404b5df6009722832 Mon Sep 17 00:00:00 2001 From: Erjan Gavalji Date: Thu, 21 May 2015 10:27:50 +0300 Subject: [PATCH] Change the log method of the console class to always call the really native method with a string --- console/console.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/console/console.ts b/console/console.ts index 46512d995..3a9f4c9d7 100644 --- a/console/console.ts +++ b/console/console.ts @@ -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) {