Skip to content

Commit 2455ae6

Browse files
committed
Change the log method of the console class to always call the really native method with a string
1 parent 949b319 commit 2455ae6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

console/console.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ export class Console implements definition.Console {
202202

203203
private formatParams(message: any): string {
204204
if (arguments.length <= 1) {
205-
return message ? message : '';
205+
return "" + message;
206206
}
207207
var res = this.sprintf.apply(this, arguments);
208208
if (res === message) {

0 commit comments

Comments
 (0)