Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
console.error is not a function #4467
Using 4.2.4 on OSX (not sure if this appears anywhere else yet).
Same error does not occur using the repl:
const EventEmitter = require('events'); EventEmitter.defaultMaxListeners = 1; console.error('');
So this seems kind of expected.
pushed a commit
Dec 30, 2015
So, node sets up the global objects e.g.
. The second one of these wants to trigger another warning about max listeners detected, so it has to initialize the global
There's no problem in the REPL because
I propose a fix at #4479.