isaacs
b0adaff67e
require looks in node_modules folders
for modules starting with the __dirname and moving up.
This makes it much easier to localize dependencies to a particular program.
14 years ago
isaacs
bfc6b51d95
The cwdRequire hack is no longer necessary with the require.resolve refactor.
14 years ago
isaacs
492fc0d752
Split out modulePaths and defaultPaths
This way, the "default" paths of ~/.node_libraries and {prefix}/lib/node are only checked *after* anything that the user has placed into the NODE_PATHS environ, or pushed onto require.paths.
This makes require.paths a much more effective write-target, albeit slightly less useful as a read-target. However, given the existence of require.resolve(), this is less of an issue -- if you want to know what a module ID will map to, just ask that question and get an authoritative answer from the loading machinery.
14 years ago
isaacs
b0aadbea6b
Docs for require.resolve
14 years ago
Ryan Dahl
8c0e87f9c3
Add some failing tests for path.join
14 years ago
Aaron Heckmann
bd8e4f656e
Prevents child_process.exec timeouts from throwing when the child was previously killed.
14 years ago
isaacs
226eff5104
Add require.resolve.
Also, hack the repl so that it works as expected there, too.
14 years ago
Ryan Dahl
3407dab07f
Remove old references to old 'stream' event
14 years ago
Nikhil Marathe
179a7f6ffa
Added documentation of EventEmitter.once
14 years ago
Ryan Dahl
a313f38c34
use bash instead of sh in http_simple_bench.sh
14 years ago
Ryan Dahl
1b2f6f9e29
Upgrade V8 to 2.5.0
14 years ago
Johan Euphrosine
5d400cfd3a
net listen should emit eaddrinuse error
14 years ago
Mark Nottingham
b14eeb3c1e
Fix expect/continue keepalive
14 years ago
Jorge Chamorro Bieling
c735b4663a
unbase64 skips over *any* illegal chars
14 years ago
Ryan Dahl
40f675b64b
Fix race conditions in test-http-upgrade-client2
14 years ago
Ryan Dahl
4adadc38f4
fix test-base64-bigfile for linux
14 years ago
Ryan Dahl
97255c2651
Fix test harness for Linux
Mostly just upgraded tools/test.py to the latest one that's in V8. But also
fixing the before and after hooks to preserve the test/tmp directory so that
running tests manually usually works.
14 years ago
Sami Samhuri
56df0cbf93
new api for defining repl commands
14 years ago
AJ ONeal
74c8b5fd08
./wscript: allow for cross-compiling of all three supported architectures
14 years ago
isaacs
25b5bc01a6
A big base64 file encoding/decoding test
Originally written to try to track down this bug report:
http://permalink.gmane.org/gmane.comp.lang.javascript.nodejs/13924
As it turns out, it's showing a completely different kind of failure. When
the file is base64 encoded with the native program, then decoded with node,
it doesn't match the original. Something's fishy.
14 years ago
Ryan Dahl
cf1db4f304
base64 decode should handle whitespace
14 years ago
Ryan Dahl
ccf2a04ea2
Install ev.h and eio.h
14 years ago
Peteris Krumins
a6ee3bac85
Add EventEmitter.prototype.once
14 years ago
Ryan Dahl
3cf4827ae0
Add idle connection test
14 years ago
Ryan Dahl
ff456b3886
Add 'make bench' script
14 years ago
Ryan Dahl
cdde22a27d
Improve benchmark/http_simple.js
14 years ago
Nathan Rajlich
9b1ff070e6
Upgrade http-parser with a fix for spaces in headers
14 years ago
Joshua Peek
73b29d79b9
Don't flush net writeQueue on end() if its still connecting
14 years ago
Ben Noordhuis
045bd4c7a4
Preliminary pkg-config support.
14 years ago
Ryan Dahl
6691aca229
Allow people to set backlog. Need a better API.
14 years ago
Tom Hughes
f61b110cf6
Add signal handlers so we clean up before exiting.
Add SIGTERM and SIGINT signal handlers so that we run the exit handlers
before exiting when getting these signals. Fixes an issue where we
couldn't run vi after CTRL+C'ing node because the stdin fd was left
non-blocking.
14 years ago
Ryan Dahl
0fcb3bd3a9
Add .js to native script's filename
14 years ago
Ryan Dahl
c4636a578c
Dynamically load native scripts
14 years ago
Ryan Dahl
901d5fd0d2
Don't require events in fs.js
14 years ago
Ryan Dahl
32aadd9400
fs.ReadStream and fs.WriteStream derive from stream.Stream
14 years ago
Ryan Dahl
8139bb24c1
Add destroy methods to HTTP messages
needs tests (particularly for pipeline situations)
14 years ago
Micheil Smith
372a7c9a3e
Migrated from sys.p to console.dir
14 years ago
Micheil Smith
d2c47b4f87
Removed deprecated methods from lib/path.js
14 years ago
Micheil Smith
a3604cf233
Removed deprecated methods from lib/net.js
14 years ago
Micheil Smith
0e1a581916
Removed deprecated methods from lib/http.js
14 years ago
Micheil Smith
7bfefb5250
Removed deprecated methods from lib/fs.js
14 years ago
Micheil Smith
83db91be41
Removed deprecated alias to lib/fs.js
14 years ago
Micheil Smith
c1aa8ea944
Removed deprecated events.Promise
14 years ago
Ryan Dahl
ee8522996a
Enable pipe test
14 years ago
Ryan Dahl
1879d8211d
Remove sys in new tests
14 years ago
Ryan Dahl
7e24a05cba
Fix test-http-buffer-sanity
14 years ago
Micheil Smith
e38eb0c5a4
Soft migration of sys -> util, Removal of deprecated utils module.
14 years ago
Ryan Dahl
0a0e90dcca
Add broken test passing a buffer through http
14 years ago
Rasmus Andersson
50443f08e0
environ symbol fix for Mac OS X
14 years ago
Ryan Dahl
2944e03a03
Closer to a working pipe
14 years ago