Skip to content

Instantly share code, notes, and snippets.

@nulltask
Created March 4, 2012 10:12
Show Gist options
  • Select an option

  • Save nulltask/1971895 to your computer and use it in GitHub Desktop.

Select an option

Save nulltask/1971895 to your computer and use it in GitHub Desktop.
Object.keys(global) in Node v0.6.12
> Object.keys(global).forEach(function(key) { console.log(require('util').inspect(global[key])); });
[Function: ArrayBuffer]
{ [Function: Int8Array] BYTES_PER_ELEMENT: 1 }
{ [Function: Uint8Array] BYTES_PER_ELEMENT: 1 }
{ [Function: Int16Array] BYTES_PER_ELEMENT: 2 }
{ [Function: Uint16Array] BYTES_PER_ELEMENT: 2 }
{ [Function: Int32Array] BYTES_PER_ELEMENT: 4 }
{ [Function: Uint32Array] BYTES_PER_ELEMENT: 4 }
{ [Function: Float32Array] BYTES_PER_ELEMENT: 4 }
{ [Function: Float64Array] BYTES_PER_ELEMENT: 8 }
[Function: DataView]
{ ArrayBuffer: [Function: ArrayBuffer],
Int8Array: { [Function: Int8Array] BYTES_PER_ELEMENT: 1 },
Uint8Array: { [Function: Uint8Array] BYTES_PER_ELEMENT: 1 },
Int16Array: { [Function: Int16Array] BYTES_PER_ELEMENT: 2 },
Uint16Array: { [Function: Uint16Array] BYTES_PER_ELEMENT: 2 },
Int32Array: { [Function: Int32Array] BYTES_PER_ELEMENT: 4 },
Uint32Array: { [Function: Uint32Array] BYTES_PER_ELEMENT: 4 },
Float32Array: { [Function: Float32Array] BYTES_PER_ELEMENT: 4 },
Float64Array: { [Function: Float64Array] BYTES_PER_ELEMENT: 8 },
DataView: [Function: DataView],
global: [Circular],
process:
{ title: 'node',
EventEmitter: [Function: EventEmitter],
assert: [Function],
version: 'v0.6.12',
_tickCallback: [Function],
moduleLoadList:
[ 'Binding evals',
'Binding natives',
'NativeModule events',
'NativeModule buffer',
'Binding buffer',
'NativeModule assert',
'NativeModule util',
'NativeModule module',
'NativeModule path',
'NativeModule tty',
'NativeModule net',
'NativeModule stream',
'NativeModule timers',
'Binding timer_wrap',
'NativeModule _linklist',
'Binding tty_wrap',
'NativeModule vm',
'NativeModule fs',
'Binding fs',
'Binding constants',
'NativeModule readline',
'Binding signal_watcher',
'NativeModule console' ],
nextTick: [Function],
versions:
{ node: '0.6.12',
v8: '3.6.6.24',
ares: '1.7.5-DEV',
uv: '0.6',
openssl: '0.9.8r' },
stdout: [Getter],
arch: 'x64',
stderr: [Getter],
platform: 'darwin',
argv: [ 'node' ],
stdin: [Getter],
env:
{ rvm_bin_path: '/Users/nulltask/.rvm/bin',
TERM_PROGRAM: 'Apple_Terminal',
GISTY_DIR: '/Users/nulltask/Documents/gist',
TERM: 'xterm-256color',
SHELL: '/bin/bash',
TMPDIR: '/var/folders/02/_0tmtyfj3tb1dj0_qv3y9pv40000gn/T/',
Apple_PubSub_Socket_Render: '/tmp/launch-YY6fhr/Render',
TERM_PROGRAM_VERSION: '303',
OLDPWD: '/Users/nulltask/Documents/almond-peak',
TERM_SESSION_ID: 'D4500525-0365-460C-A4EF-601679BAFEFC',
GISTY_SSL_VERIFY: 'none',
USER: 'nulltask',
COMMAND_MODE: 'unix2003',
EC2_HOME: '/Users/nulltask/.brew/Cellar/ec2-api-tools/1.5.2.3/jars',
__array_start: '0',
rvm_path: '/Users/nulltask/.rvm',
SSH_AUTH_SOCK: '/tmp/launch-HFOzSt/Listeners',
__CF_USER_TEXT_ENCODING: '0x1F5:1:14',
Apple_Ubiquity_Message: '/tmp/launch-ROrqb0/Apple_Ubiquity_Message',
escape_flag: '1',
rvm_prefix: '/Users/nulltask',
PATH: '/Users/nulltask/.brew/Cellar/coreutils/8.15/libexec/gnubin:./node_modules/.bin:/Users/nulltask/.brew/sbin:/Users/nulltask/.brew/bin:./bin:/Users/nulltask/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/Users/nulltask/.rvm/bin',
PWD: '/Users/nulltask',
JAVA_HOME: '/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home',
LANG: 'ja_JP.UTF-8',
_second: '1',
rvm_version: '1.10.2',
SHLVL: '1',
HOME: '/Users/nulltask',
_first: '0',
LOGNAME: 'nulltask',
GISTY_SSL_CA: '/System/Library/OpenSSL/cert.pem',
rvm_reload_flag: '0',
EC2_PRIVATE_KEY: '/Users/nulltask/.ec2/pk-BUIAUJOPM4J4BLD7SUJXLCAJXYHABYGB.pem',
DISPLAY: '/tmp/launch-uMmq4k/org.x:0',
EC2_CERT: '/Users/nulltask/.ec2/cert-BUIAUJOPM4J4BLD7SUJXLCAJXYHABYGB.pem',
_: '/Users/nulltask/.brew/bin/node' },
openStdin: [Function],
pid: 5739,
exit: [Function],
features:
{ debug: false,
uv: true,
ipv6: true,
tls_npn: false,
tls_sni: true,
tls: true },
kill: [Function],
execPath: '/Users/nulltask/.brew/Cellar/node/0.6.12/bin/node',
addListener: [Function],
_needTickCallback: [Function],
on: [Function],
removeListener: [Function],
reallyExit: [Function],
chdir: [Function],
debug: [Function],
cwd: [Function],
error: [Function],
watchFile: [Function],
umask: [Function],
getuid: [Function],
unwatchFile: [Function],
setuid: [Function],
mixin: [Function],
createChildProcess: [Function],
setgid: [Function],
inherits: [Function],
getgid: [Function],
_kill: [Function],
_byteLength: [Function],
_events: { SIGWINCH: [Object] },
_debugProcess: [Function],
dlopen: [Function],
uptime: [Function],
memoryUsage: [Function],
uvCounters: [Function],
binding: [Function] },
GLOBAL: [Circular],
root: [Circular],
Buffer:
{ [Function: Buffer]
poolSize: 8192,
isBuffer: [Function: isBuffer],
byteLength: [Function],
_charsWritten: 21 },
setTimeout: [Function],
setInterval: [Function],
clearTimeout: [Function],
clearInterval: [Function],
console: [Getter],
module:
{ id: 'repl',
exports:
{ disableColors: false,
writer: [Function],
REPLServer: [Function: REPLServer],
start: [Function],
repl: [Object] },
parent: undefined,
filename: '/Users/nulltask/repl',
loaded: false,
exited: false,
children: [],
paths:
[ '/Users/nulltask/repl/node_modules',
'/Users/nulltask/node_modules',
'/Users/node_modules',
'/node_modules' ] },
require:
{ [Function: require]
resolve: [Function],
main: undefined,
extensions: { '.js': [Function], '.json': [Function], '.node': [Function] },
registerExtension: [Function],
cache: {} },
_: undefined }
{ title: 'node',
EventEmitter: [Function: EventEmitter],
assert: [Function],
version: 'v0.6.12',
_tickCallback: [Function],
moduleLoadList:
[ 'Binding evals',
'Binding natives',
'NativeModule events',
'NativeModule buffer',
'Binding buffer',
'NativeModule assert',
'NativeModule util',
'NativeModule module',
'NativeModule path',
'NativeModule tty',
'NativeModule net',
'NativeModule stream',
'NativeModule timers',
'Binding timer_wrap',
'NativeModule _linklist',
'Binding tty_wrap',
'NativeModule vm',
'NativeModule fs',
'Binding fs',
'Binding constants',
'NativeModule readline',
'Binding signal_watcher',
'NativeModule console' ],
nextTick: [Function],
versions:
{ node: '0.6.12',
v8: '3.6.6.24',
ares: '1.7.5-DEV',
uv: '0.6',
openssl: '0.9.8r' },
stdout: [Getter],
arch: 'x64',
stderr: [Getter],
platform: 'darwin',
argv: [ 'node' ],
stdin: [Getter],
env:
{ rvm_bin_path: '/Users/nulltask/.rvm/bin',
TERM_PROGRAM: 'Apple_Terminal',
GISTY_DIR: '/Users/nulltask/Documents/gist',
TERM: 'xterm-256color',
SHELL: '/bin/bash',
TMPDIR: '/var/folders/02/_0tmtyfj3tb1dj0_qv3y9pv40000gn/T/',
Apple_PubSub_Socket_Render: '/tmp/launch-YY6fhr/Render',
TERM_PROGRAM_VERSION: '303',
OLDPWD: '/Users/nulltask/Documents/almond-peak',
TERM_SESSION_ID: 'D4500525-0365-460C-A4EF-601679BAFEFC',
GISTY_SSL_VERIFY: 'none',
USER: 'nulltask',
COMMAND_MODE: 'unix2003',
EC2_HOME: '/Users/nulltask/.brew/Cellar/ec2-api-tools/1.5.2.3/jars',
__array_start: '0',
rvm_path: '/Users/nulltask/.rvm',
SSH_AUTH_SOCK: '/tmp/launch-HFOzSt/Listeners',
__CF_USER_TEXT_ENCODING: '0x1F5:1:14',
Apple_Ubiquity_Message: '/tmp/launch-ROrqb0/Apple_Ubiquity_Message',
escape_flag: '1',
rvm_prefix: '/Users/nulltask',
PATH: '/Users/nulltask/.brew/Cellar/coreutils/8.15/libexec/gnubin:./node_modules/.bin:/Users/nulltask/.brew/sbin:/Users/nulltask/.brew/bin:./bin:/Users/nulltask/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/Users/nulltask/.rvm/bin',
PWD: '/Users/nulltask',
JAVA_HOME: '/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home',
LANG: 'ja_JP.UTF-8',
_second: '1',
rvm_version: '1.10.2',
SHLVL: '1',
HOME: '/Users/nulltask',
_first: '0',
LOGNAME: 'nulltask',
GISTY_SSL_CA: '/System/Library/OpenSSL/cert.pem',
rvm_reload_flag: '0',
EC2_PRIVATE_KEY: '/Users/nulltask/.ec2/pk-BUIAUJOPM4J4BLD7SUJXLCAJXYHABYGB.pem',
DISPLAY: '/tmp/launch-uMmq4k/org.x:0',
EC2_CERT: '/Users/nulltask/.ec2/cert-BUIAUJOPM4J4BLD7SUJXLCAJXYHABYGB.pem',
_: '/Users/nulltask/.brew/bin/node' },
openStdin: [Function],
pid: 5739,
exit: [Function],
features:
{ debug: false,
uv: true,
ipv6: true,
tls_npn: false,
tls_sni: true,
tls: true },
kill: [Function],
execPath: '/Users/nulltask/.brew/Cellar/node/0.6.12/bin/node',
addListener: [Function],
_needTickCallback: [Function],
on: [Function],
removeListener: [Function],
reallyExit: [Function],
chdir: [Function],
debug: [Function],
cwd: [Function],
error: [Function],
watchFile: [Function],
umask: [Function],
getuid: [Function],
unwatchFile: [Function],
setuid: [Function],
mixin: [Function],
createChildProcess: [Function],
setgid: [Function],
inherits: [Function],
getgid: [Function],
_kill: [Function],
_byteLength: [Function],
_events: { SIGWINCH: [ [Function] ] },
_debugProcess: [Function],
dlopen: [Function],
uptime: [Function],
memoryUsage: [Function],
uvCounters: [Function],
binding: [Function] }
{ ArrayBuffer: [Function: ArrayBuffer],
Int8Array: { [Function: Int8Array] BYTES_PER_ELEMENT: 1 },
Uint8Array: { [Function: Uint8Array] BYTES_PER_ELEMENT: 1 },
Int16Array: { [Function: Int16Array] BYTES_PER_ELEMENT: 2 },
Uint16Array: { [Function: Uint16Array] BYTES_PER_ELEMENT: 2 },
Int32Array: { [Function: Int32Array] BYTES_PER_ELEMENT: 4 },
Uint32Array: { [Function: Uint32Array] BYTES_PER_ELEMENT: 4 },
Float32Array: { [Function: Float32Array] BYTES_PER_ELEMENT: 4 },
Float64Array: { [Function: Float64Array] BYTES_PER_ELEMENT: 8 },
DataView: [Function: DataView],
global: [Circular],
process:
{ title: 'node',
EventEmitter: [Function: EventEmitter],
assert: [Function],
version: 'v0.6.12',
_tickCallback: [Function],
moduleLoadList:
[ 'Binding evals',
'Binding natives',
'NativeModule events',
'NativeModule buffer',
'Binding buffer',
'NativeModule assert',
'NativeModule util',
'NativeModule module',
'NativeModule path',
'NativeModule tty',
'NativeModule net',
'NativeModule stream',
'NativeModule timers',
'Binding timer_wrap',
'NativeModule _linklist',
'Binding tty_wrap',
'NativeModule vm',
'NativeModule fs',
'Binding fs',
'Binding constants',
'NativeModule readline',
'Binding signal_watcher',
'NativeModule console' ],
nextTick: [Function],
versions:
{ node: '0.6.12',
v8: '3.6.6.24',
ares: '1.7.5-DEV',
uv: '0.6',
openssl: '0.9.8r' },
stdout: [Getter],
arch: 'x64',
stderr: [Getter],
platform: 'darwin',
argv: [ 'node' ],
stdin: [Getter],
env:
{ rvm_bin_path: '/Users/nulltask/.rvm/bin',
TERM_PROGRAM: 'Apple_Terminal',
GISTY_DIR: '/Users/nulltask/Documents/gist',
TERM: 'xterm-256color',
SHELL: '/bin/bash',
TMPDIR: '/var/folders/02/_0tmtyfj3tb1dj0_qv3y9pv40000gn/T/',
Apple_PubSub_Socket_Render: '/tmp/launch-YY6fhr/Render',
TERM_PROGRAM_VERSION: '303',
OLDPWD: '/Users/nulltask/Documents/almond-peak',
TERM_SESSION_ID: 'D4500525-0365-460C-A4EF-601679BAFEFC',
GISTY_SSL_VERIFY: 'none',
USER: 'nulltask',
COMMAND_MODE: 'unix2003',
EC2_HOME: '/Users/nulltask/.brew/Cellar/ec2-api-tools/1.5.2.3/jars',
__array_start: '0',
rvm_path: '/Users/nulltask/.rvm',
SSH_AUTH_SOCK: '/tmp/launch-HFOzSt/Listeners',
__CF_USER_TEXT_ENCODING: '0x1F5:1:14',
Apple_Ubiquity_Message: '/tmp/launch-ROrqb0/Apple_Ubiquity_Message',
escape_flag: '1',
rvm_prefix: '/Users/nulltask',
PATH: '/Users/nulltask/.brew/Cellar/coreutils/8.15/libexec/gnubin:./node_modules/.bin:/Users/nulltask/.brew/sbin:/Users/nulltask/.brew/bin:./bin:/Users/nulltask/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/Users/nulltask/.rvm/bin',
PWD: '/Users/nulltask',
JAVA_HOME: '/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home',
LANG: 'ja_JP.UTF-8',
_second: '1',
rvm_version: '1.10.2',
SHLVL: '1',
HOME: '/Users/nulltask',
_first: '0',
LOGNAME: 'nulltask',
GISTY_SSL_CA: '/System/Library/OpenSSL/cert.pem',
rvm_reload_flag: '0',
EC2_PRIVATE_KEY: '/Users/nulltask/.ec2/pk-BUIAUJOPM4J4BLD7SUJXLCAJXYHABYGB.pem',
DISPLAY: '/tmp/launch-uMmq4k/org.x:0',
EC2_CERT: '/Users/nulltask/.ec2/cert-BUIAUJOPM4J4BLD7SUJXLCAJXYHABYGB.pem',
_: '/Users/nulltask/.brew/bin/node' },
openStdin: [Function],
pid: 5739,
exit: [Function],
features:
{ debug: false,
uv: true,
ipv6: true,
tls_npn: false,
tls_sni: true,
tls: true },
kill: [Function],
execPath: '/Users/nulltask/.brew/Cellar/node/0.6.12/bin/node',
addListener: [Function],
_needTickCallback: [Function],
on: [Function],
removeListener: [Function],
reallyExit: [Function],
chdir: [Function],
debug: [Function],
cwd: [Function],
error: [Function],
watchFile: [Function],
umask: [Function],
getuid: [Function],
unwatchFile: [Function],
setuid: [Function],
mixin: [Function],
createChildProcess: [Function],
setgid: [Function],
inherits: [Function],
getgid: [Function],
_kill: [Function],
_byteLength: [Function],
_events: { SIGWINCH: [Object] },
_debugProcess: [Function],
dlopen: [Function],
uptime: [Function],
memoryUsage: [Function],
uvCounters: [Function],
binding: [Function] },
GLOBAL: [Circular],
root: [Circular],
Buffer:
{ [Function: Buffer]
poolSize: 8192,
isBuffer: [Function: isBuffer],
byteLength: [Function],
_charsWritten: 3775 },
setTimeout: [Function],
setInterval: [Function],
clearTimeout: [Function],
clearInterval: [Function],
console: [Getter],
module:
{ id: 'repl',
exports:
{ disableColors: false,
writer: [Function],
REPLServer: [Function: REPLServer],
start: [Function],
repl: [Object] },
parent: undefined,
filename: '/Users/nulltask/repl',
loaded: false,
exited: false,
children: [],
paths:
[ '/Users/nulltask/repl/node_modules',
'/Users/nulltask/node_modules',
'/Users/node_modules',
'/node_modules' ] },
require:
{ [Function: require]
resolve: [Function],
main: undefined,
extensions: { '.js': [Function], '.json': [Function], '.node': [Function] },
registerExtension: [Function],
cache: {} },
_: undefined }
{ ArrayBuffer: [Function: ArrayBuffer],
Int8Array: { [Function: Int8Array] BYTES_PER_ELEMENT: 1 },
Uint8Array: { [Function: Uint8Array] BYTES_PER_ELEMENT: 1 },
Int16Array: { [Function: Int16Array] BYTES_PER_ELEMENT: 2 },
Uint16Array: { [Function: Uint16Array] BYTES_PER_ELEMENT: 2 },
Int32Array: { [Function: Int32Array] BYTES_PER_ELEMENT: 4 },
Uint32Array: { [Function: Uint32Array] BYTES_PER_ELEMENT: 4 },
Float32Array: { [Function: Float32Array] BYTES_PER_ELEMENT: 4 },
Float64Array: { [Function: Float64Array] BYTES_PER_ELEMENT: 8 },
DataView: [Function: DataView],
global: [Circular],
process:
{ title: 'node',
EventEmitter: [Function: EventEmitter],
assert: [Function],
version: 'v0.6.12',
_tickCallback: [Function],
moduleLoadList:
[ 'Binding evals',
'Binding natives',
'NativeModule events',
'NativeModule buffer',
'Binding buffer',
'NativeModule assert',
'NativeModule util',
'NativeModule module',
'NativeModule path',
'NativeModule tty',
'NativeModule net',
'NativeModule stream',
'NativeModule timers',
'Binding timer_wrap',
'NativeModule _linklist',
'Binding tty_wrap',
'NativeModule vm',
'NativeModule fs',
'Binding fs',
'Binding constants',
'NativeModule readline',
'Binding signal_watcher',
'NativeModule console' ],
nextTick: [Function],
versions:
{ node: '0.6.12',
v8: '3.6.6.24',
ares: '1.7.5-DEV',
uv: '0.6',
openssl: '0.9.8r' },
stdout: [Getter],
arch: 'x64',
stderr: [Getter],
platform: 'darwin',
argv: [ 'node' ],
stdin: [Getter],
env:
{ rvm_bin_path: '/Users/nulltask/.rvm/bin',
TERM_PROGRAM: 'Apple_Terminal',
GISTY_DIR: '/Users/nulltask/Documents/gist',
TERM: 'xterm-256color',
SHELL: '/bin/bash',
TMPDIR: '/var/folders/02/_0tmtyfj3tb1dj0_qv3y9pv40000gn/T/',
Apple_PubSub_Socket_Render: '/tmp/launch-YY6fhr/Render',
TERM_PROGRAM_VERSION: '303',
OLDPWD: '/Users/nulltask/Documents/almond-peak',
TERM_SESSION_ID: 'D4500525-0365-460C-A4EF-601679BAFEFC',
GISTY_SSL_VERIFY: 'none',
USER: 'nulltask',
COMMAND_MODE: 'unix2003',
EC2_HOME: '/Users/nulltask/.brew/Cellar/ec2-api-tools/1.5.2.3/jars',
__array_start: '0',
rvm_path: '/Users/nulltask/.rvm',
SSH_AUTH_SOCK: '/tmp/launch-HFOzSt/Listeners',
__CF_USER_TEXT_ENCODING: '0x1F5:1:14',
Apple_Ubiquity_Message: '/tmp/launch-ROrqb0/Apple_Ubiquity_Message',
escape_flag: '1',
rvm_prefix: '/Users/nulltask',
PATH: '/Users/nulltask/.brew/Cellar/coreutils/8.15/libexec/gnubin:./node_modules/.bin:/Users/nulltask/.brew/sbin:/Users/nulltask/.brew/bin:./bin:/Users/nulltask/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/Users/nulltask/.rvm/bin',
PWD: '/Users/nulltask',
JAVA_HOME: '/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home',
LANG: 'ja_JP.UTF-8',
_second: '1',
rvm_version: '1.10.2',
SHLVL: '1',
HOME: '/Users/nulltask',
_first: '0',
LOGNAME: 'nulltask',
GISTY_SSL_CA: '/System/Library/OpenSSL/cert.pem',
rvm_reload_flag: '0',
EC2_PRIVATE_KEY: '/Users/nulltask/.ec2/pk-BUIAUJOPM4J4BLD7SUJXLCAJXYHABYGB.pem',
DISPLAY: '/tmp/launch-uMmq4k/org.x:0',
EC2_CERT: '/Users/nulltask/.ec2/cert-BUIAUJOPM4J4BLD7SUJXLCAJXYHABYGB.pem',
_: '/Users/nulltask/.brew/bin/node' },
openStdin: [Function],
pid: 5739,
exit: [Function],
features:
{ debug: false,
uv: true,
ipv6: true,
tls_npn: false,
tls_sni: true,
tls: true },
kill: [Function],
execPath: '/Users/nulltask/.brew/Cellar/node/0.6.12/bin/node',
addListener: [Function],
_needTickCallback: [Function],
on: [Function],
removeListener: [Function],
reallyExit: [Function],
chdir: [Function],
debug: [Function],
cwd: [Function],
error: [Function],
watchFile: [Function],
umask: [Function],
getuid: [Function],
unwatchFile: [Function],
setuid: [Function],
mixin: [Function],
createChildProcess: [Function],
setgid: [Function],
inherits: [Function],
getgid: [Function],
_kill: [Function],
_byteLength: [Function],
_events: { SIGWINCH: [Object] },
_debugProcess: [Function],
dlopen: [Function],
uptime: [Function],
memoryUsage: [Function],
uvCounters: [Function],
binding: [Function] },
GLOBAL: [Circular],
root: [Circular],
Buffer:
{ [Function: Buffer]
poolSize: 8192,
isBuffer: [Function: isBuffer],
byteLength: [Function],
_charsWritten: 5791 },
setTimeout: [Function],
setInterval: [Function],
clearTimeout: [Function],
clearInterval: [Function],
console: [Getter],
module:
{ id: 'repl',
exports:
{ disableColors: false,
writer: [Function],
REPLServer: [Function: REPLServer],
start: [Function],
repl: [Object] },
parent: undefined,
filename: '/Users/nulltask/repl',
loaded: false,
exited: false,
children: [],
paths:
[ '/Users/nulltask/repl/node_modules',
'/Users/nulltask/node_modules',
'/Users/node_modules',
'/node_modules' ] },
require:
{ [Function: require]
resolve: [Function],
main: undefined,
extensions: { '.js': [Function], '.json': [Function], '.node': [Function] },
registerExtension: [Function],
cache: {} },
_: undefined }
{ [Function: Buffer]
poolSize: 8192,
isBuffer: [Function: isBuffer],
byteLength: [Function],
_charsWritten: 5791 }
[Function]
[Function]
[Function]
[Function]
{ log: [Function],
info: [Function],
warn: [Function],
error: [Function],
dir: [Function],
time: [Function],
timeEnd: [Function],
trace: [Function],
assert: [Function] }
{ id: 'repl',
exports:
{ disableColors: false,
writer: [Function],
REPLServer: [Function: REPLServer],
start: [Function],
repl:
{ useGlobal: true,
eval: [Function],
lines: [Object],
context: [Object],
bufferedCommand: '',
outputStream: [Object],
inputStream: [Object],
prompt: '> ',
rli: [Object],
commands: [Object] } },
parent: undefined,
filename: '/Users/nulltask/repl',
loaded: false,
exited: false,
children: [],
paths:
[ '/Users/nulltask/repl/node_modules',
'/Users/nulltask/node_modules',
'/Users/node_modules',
'/node_modules' ] }
{ [Function: require]
resolve: [Function],
main: undefined,
extensions: { '.js': [Function], '.json': [Function], '.node': [Function] },
registerExtension: [Function],
cache: {} }
undefined
undefined
> Object.keys(global);
[ 'ArrayBuffer',
'Int8Array',
'Uint8Array',
'Int16Array',
'Uint16Array',
'Int32Array',
'Uint32Array',
'Float32Array',
'Float64Array',
'DataView',
'global',
'process',
'GLOBAL',
'root',
'Buffer',
'setTimeout',
'setInterval',
'clearTimeout',
'clearInterval',
'console',
'module',
'require' ]
@nulltask
Copy link
Author

nulltask commented Mar 4, 2012

global === global.root === global.GLOBAL

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment