I guess we&#x27;re supposed to assume that V8 is smart enough to inline that sort of function definition, but it seems deeply weird to me that <i>drawBar()</i> is defined inside the &quot;hot&quot; method like that. Also, I would have expected that streams would have been used for this. Logging is a very common &quot;simple example&quot; on node streams how-to pages.