lib/compiler/nodes.js
function RootScope(){
	RootScope.prototype.__super__.constructor.apply(this,arguments);
	
	this.register('global',this,{type: 'global'});
	this.register('module',this,{type: 'global'});
	this.register('window',this,{type: 'global'});
	this.register('document',this,{type: 'global'});
	this.register('exports',this,{type: 'global'});
	this.register('console',this,{type: 'global'});
	this.register('process',this,{type: 'global'});
	this.register('parseInt',this,{type: 'global'});
	this.register('parseFloat',this,{type: 'global'});
	this.register('setTimeout',this,{type: 'global'});
	this.register('setInterval',this,{type: 'global'});
	this.register('setImmediate',this,{type: 'global'});
	this.register('clearTimeout',this,{type: 'global'});
	this.register('clearInterval',this,{type: 'global'});
	this.register('clearImmediate',this,{type: 'global'});
	this.register('isNaN',this,{type: 'global'});
	this.register('isFinite',this,{type: 'global'});
	this.register('__dirname',this,{type: 'global'});
	this.register('__filename',this,{type: 'global'});
	this.register('_',this,{type: 'global'});
	
	// preregister global special variables here
	this._requires = {};
	this._warnings = [];
	this._scopes = [];
	this._helpers = [];
	this._selfless = false;
	this._entities = new Entities(this);
	this._object = Obj.wrap({});
	this._head = [this._vars];
}
function RootScope(){
	RootScope.prototype.__super__.constructor.apply(this,arguments);
	
	this.register('global',this,{type: 'global'});
	this.register('module',this,{type: 'global'});
	this.register('window',this,{type: 'global'});
	this.register('document',this,{type: 'global'});
	this.register('exports',this,{type: 'global'});
	this.register('console',this,{type: 'global'});
	this.register('process',this,{type: 'global'});
	this.register('parseInt',this,{type: 'global'});
	this.register('parseFloat',this,{type: 'global'});
	this.register('setTimeout',this,{type: 'global'});
	this.register('setInterval',this,{type: 'global'});
	this.register('setImmediate',this,{type: 'global'});
	this.register('clearTimeout',this,{type: 'global'});
	this.register('clearInterval',this,{type: 'global'});
	this.register('clearImmediate',this,{type: 'global'});
	this.register('isNaN',this,{type: 'global'});
	this.register('isFinite',this,{type: 'global'});
	this.register('__dirname',this,{type: 'global'});
	this.register('__filename',this,{type: 'global'});
	this.register('_',this,{type: 'global'});
	
	// preregister global special variables here
	this._requires = {};
	this._warnings = [];
	this._scopes = [];
	this._helpers = [];
	this._selfless = false;
	this._entities = new Entities(this);
	this._object = Obj.wrap({});
	this._head = [this._vars];
}
function RootScope ( ) { RootScope . prototype . __super__ . constructor . apply ( this , arguments ) ; this . register ( 'global' , this , { type : 'global' } ) ; this . register ( 'module' , this , { type : 'global' } ) ; this . register ( 'window' , this , { type : 'global' } ) ; this . register ( 'document' , this , { type : 'global' } ) ; this . register ( 'exports' , this , { type : 'global' } ) ; this . register ( 'console' , this , { type : 'global' } ) ; this . register ( 'process' , this , { type : 'global' } ) ; this . register ( 'parseInt' , this , { type : 'global' } ) ; this . register ( 'parseFloat' , this , { type : 'global' } ) ; this . register ( 'setTimeout' , this , { type : 'global' } ) ; this . register ( 'setInterval' , this , { type : 'global' } ) ; this . register ( 'setImmediate' , this , { type : 'global' } ) ; this . register ( 'clearTimeout' , this , { type : 'global' } ) ; this . register ( 'clearInterval' , this , { type : 'global' } ) ; this . register ( 'clearImmediate' , this , { type : 'global' } ) ; this . register ( 'isNaN' , this , { type : 'global' } ) ; this . register ( 'isFinite' , this , { type : 'global' } ) ; this . register ( '__dirname' , this , { type : 'global' } ) ; this . register ( '__filename' , this , { type : 'global' } ) ; this . register ( '_' , this , { type : 'global' } ) ; // preregister global special variables here this . _requires = { } ; this . _warnings = [ ] ; this . _scopes = [ ] ; this . _helpers = [ ] ; this . _selfless = false ; this . _entities = new Entities ( this ) ; this . _object = Obj . wrap ( { } ) ; this . _head = [ this . _vars ] ; }
RootScope is wrong? Rather TopScope or ProgramScope
RootScope is wrong? Rather TopScope or ProgramScope