Adding support for require-like initialization of node,
authorDaniel Ennis <aikar@aikar.co>
Tue, 25 Jan 2011 01:52:38 +0000 (20:52 -0500)
committerRyan Dahl <ry@tinyclouds.org>
Tue, 25 Jan 2011 05:33:30 +0000 (21:33 -0800)
commit52f93185c783beb71535f59e478fcac8912d0c54
treee47be75c1234827e57c07d3208654f7701602403
parent4c5e570706c6e2a0fa2a6dbeef54553b8da07b6c
Adding support for require-like initialization of node,

so `node foo`
will load one of:
./foo.js
./foo.node
./foo/index.js
./foo/index.node

Test cases added.
Ensured no conflict with native names.
lib/module.js
test/fixtures/test-init-index/index.js [new file with mode: 0644]
test/fixtures/test-init-native/fs.js [new file with mode: 0644]
test/message/undefined_reference_in_new_context.out
test/simple/test-init.js [new file with mode: 0644]