JSVM logging async or sync?

In JSVM plugins when i invoke log(....) is that buffered and flushed on same thread that the http request is bound to? Or is it buffered and processed async?

Same thread.

In terms of implementation, log function in JS is just exposed Tyk logging function, exposed via bridge.