Expose Node.js console global
Optimization: Only reset globals once
Rename ReferenceEmitter