I'm trying to list all of the global variables, including those refering to built-in objects.
In Chrome's console I can simply type this
and get back all the keys, including things like String
, Number
, etc.
However when I do this in Node.js I get much less:
> Object.keys(this)
[ 'global',
'process',
'GLOBAL',
'root',
'Buffer',
'setTimeout',
'setInterval',
'clearTimeout',
'clearInterval',
'setImmediate',
'clearImmediate',
'console',
'module',
'require',
'_' ]
> this.eval
[Function: eval]
Where is this.eval
coming from?