Ryan Dahl
7704fb9711
Fix fs.realpathSync('/')
2010-09-10 13:31:39 -07:00
isaacs
2f071ac7d1
Fix issue #262 . Allow fs.realpath to traverse above the current working directory.
2010-09-08 17:56:34 -07:00
Ryan Dahl
35682ac88e
Fix style; undefined reference bug
2010-09-08 17:56:17 -07:00
Tobie Langel
5bbebf3593
Do not emit WriteStream's drain event before ws.write has been called.
2010-09-08 17:56:12 -07:00
Tobie Langel
0b9dab650e
Avoid closing a WriteStream before it has been opened.
2010-09-08 17:55:58 -07:00
Tobie Langel
a6659e7612
Avoid missing ref error in WriteStream.prototype.destroy().
2010-09-08 17:55:53 -07:00
Ryan Dahl
cc0164bc12
Increase ReadStream bufferSize to 64k
2010-09-08 17:48:45 -07:00
Trent Mick
ccd1304c5b
Ctrl+W support for the REPL
...
FWIW, command-line style (delete back to whitespace) would be:
leading = leading.replace(/\S+\s*$/, '');
2010-09-08 17:48:15 -07:00
Ryan Dahl
c1a4e10156
Special deepEquals for buffer
2010-09-08 17:47:23 -07:00
Ryan Dahl
b655ce5c08
typo: forceClose -> destroy for WriteStreams
2010-09-08 17:47:17 -07:00
isaacs
b2dfea0361
Treat "//some_path" as pathname rather than hostname by default.
...
Note that "//" is still a special indicator for the hostname, and this does
not change the parsing of mailto: and other "slashless" url schemes. It
does however remove some oddness in url.parse(req.url) which is the most
common use-case for the url.parse function.
2010-09-08 17:46:50 -07:00
Marco Rogers
14f16ec592
fix for fs.readFile to return string when encoding specified on zero length read
2010-09-08 17:45:26 -07:00
Marco Rogers
cdee88051d
Fixed async fs writes with length 0, it should fire the callback
2010-09-08 17:45:21 -07:00
Bradley Meck
b39b15d53f
Allow Strings for ports on net.Server.listen
2010-09-08 17:45:07 -07:00
Johan Euphrosine
c306fa241c
add readline support for meta-d
2010-09-08 17:44:13 -07:00
Ryan Dahl
416aa73946
Safe constructor: net.Server, net.Stream
2010-09-08 17:43:39 -07:00
Ryan Dahl
ad960f4462
Safe constructors: http.Server and http.Client
2010-09-08 17:43:25 -07:00
Brian
c14c445cb6
Fix home/end keys in repl for putty/xterm.
2010-09-08 17:42:47 -07:00
Russell Haering
b9ca8435f5
Modify fs.open to use accept a callback without a mode
2010-09-08 17:42:36 -07:00
Johan Euphrosine
baa24bd40e
add readline support for meta-f and meta-b
2010-09-08 17:42:23 -07:00
Johan Euphrosine
7a836ef813
add home/end support in rxvt and readline tests
2010-09-08 17:42:09 -07:00
isaacs
53dac7c341
Missing 'var' in sys.inspect (Found by Oleg Slobodskoi)
2010-09-08 17:40:50 -07:00
Johan Euphrosine
699fdfaa43
fix home/end on GNU/Linux
2010-09-08 17:40:35 -07:00
Ryan Dahl
51ecba8da9
Add get/set methods to Buffer
2010-08-19 23:29:06 -07:00
Trent Mick
293809b8b6
drop obsolete TODO comment
2010-08-18 23:02:54 -07:00
Trent Mick
1aeaf8d289
repl tab completion: insert common prefix of multiple completions
2010-08-18 23:02:30 -07:00
Trent Mick
5c1ffa165f
repl completion: completion for arguments to "require"
2010-08-18 22:59:49 -07:00
Trent Mick
2134982ea4
repl completion: comment/TODO cleanup, no functional change
2010-08-18 22:59:35 -07:00
Herbert Vojčík
5dc2b93311
Fix sys.inspect for regex in different context.
2010-08-18 11:47:43 -07:00
Marco Rogers
6744e59e46
detect 0 length fs writes with tests
2010-08-16 23:57:01 -07:00
Ryan Dahl
4593c04959
Implement net.Server.maxConnections
...
Simplify EMFILE behavior.
2010-08-15 14:01:55 -07:00
Illarionov Oleg
cde80d9859
Fix OpenSSL 100% CPU usage on error
2010-08-15 13:23:09 -07:00
Rasmus Andersson
cf909e8725
added dns.getHostByAddr() -- resolve an external IP address to hostname(s)
2010-08-12 16:25:45 -07:00
Ryan Dahl
9acd76ed6e
Don't throw on HEAD requests
2010-08-12 10:06:52 -07:00
Trent Mick
72e4a49cac
repl completion: multi-column display of completions
2010-08-12 00:07:26 -07:00
Trent Mick
1c9a85b9a6
First pass at tab-completion in the REPL
2010-08-11 13:42:45 -07:00
Rasmus Andersson
fd3cd755d1
[dgram] only look up hostname for the requested address family
...
- [lib/dns.js] dns.lookup takes a new optional argument "family" which
should be the integer 4, 6, dns.AF_INET or dns.AF_INET6. Passing a
non-false "family" argument makes c-ares explicitly look up addresses for
the specified family.
- [test/simple/test-c-ares.js] test explicit address family lookups
2010-08-10 17:53:32 -07:00
Ryan Dahl
3d551e5538
Close fd on readFile(emptyfile)
2010-08-10 14:47:40 -07:00
Ryan Dahl
1c5d5e0b72
uppercase request methods
2010-08-09 21:23:52 -07:00
Bert Belder
7d4e8a9a71
If no options are given to child_process.spawn, env should default to process.env
...
Regression.
2010-08-09 15:37:14 -07:00
Ryan Dahl
7068912fbb
Export Interface from readline.js
2010-08-08 11:52:31 -07:00
Bert Belder
aaa1f451e6
Expose cwd option to child_process.exec()
2010-08-06 13:38:41 -07:00
Bert Belder
94914135df
New api for child_process.spawn; ability to set cwd for spawn()ed process
...
Tests for child_process.spawn() use new API
Test for deprecated child_process.spawn() API
2010-08-06 13:37:30 -07:00
Ryan Dahl
d408de87fc
Remove module.js - put code into src/node.js
2010-08-06 12:34:02 -07:00
cloudhead
fe3e419687
querystring.parse: handle undefined value properly
2010-08-05 10:46:28 -07:00
Nick Stenning
0a3eff8021
Standardise module load order for native and registered file extensions.
...
This patch standardises the load order for modules. Highest priority is trying to load exactly the file the user specified, followed by native extensions, followed by registered extra extensions, etc.
In full, if we require('foo') having registered '.coffee' as an alternative extension, we try and load the following files in order:
foo
foo.js
foo.node
foo.coffee
foo/index.js
foo/index.node
foo/index.coffee
2010-08-04 16:03:08 -07:00
Nick Stenning
78520ba482
Don't attempt to load a directory.
...
This patch replaces the path.exists check for module loading with a call to
fs.statSync (or fs.stat for require.async) which ensures that it's not trying
to load a directory.
2010-08-04 15:55:47 -07:00
Ryan Dahl
adec544fdd
Revert "Expose the V8 debug object process.debug"
...
This reverts commit d9fbb8a580 .
2010-08-04 10:38:19 -07:00
Ben Noordhuis
4b19bd2896
Client.onend: Anticipate that the HTTP parser object is uninitialized when the client setup failed.
2010-08-02 11:25:53 -07:00
Ryan Dahl
d9fbb8a580
Expose the V8 debug object process.debug
...
Add one duplicate test from V8, just to make sure it works.
2010-08-02 00:46:09 -07:00