console: apply null as `this` for util.format
authorJackson Tian <shyvo1987@gmail.com>
Sun, 14 Feb 2016 07:32:33 +0000 (15:32 +0800)
committerMyles Borins <mborins@us.ibm.com>
Wed, 2 Mar 2016 22:01:11 +0000 (14:01 -0800)
commit78ddd9bc8058137df5f9e38bb83606d126f07765
treef3b891ac07bcfef914c8ca3dd963fc3639c88202
parent3a4d6ad2059df2dd3d0f986b46d3d4f741c2de43
console: apply null as `this` for util.format

Util.format is just a stateless function. Apply current console
as `this` is unnecessary.

PR-URL: https://github.com/nodejs/node/pull/5222
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Roman Reiss <me@silverwind.io>
Reviewed-By: Michaƫl Zasso <mic.besace@gmail.com>
lib/console.js