fix 'Illegal invocation' regression inside console.log when in a browser
v0.1.97