Steve Engledow
292345fe62
Improve --help message and Fix -e/--eval switch
--help should at least give some hint that node takes the -e switch
Update help message to include -e and swap eval block with module load block so argv works correctly
[steve@sane node](master)$ ./node -e 'process.argv' foo bar
[ '/home/steve/code/node/node', 'foo', 'bar' ]
:)
Add simple test for -e option.
Fixes #1311 .
14 years ago
isaacs
7f0047c2d5
Close #1348 Remove require.paths
Module.globalPaths is still set to a read-only copy of the global
include paths pulled off of the NODE_PATH environment variable.
It's important to be able to inspect this, but modifying it no longer
has any effect.
14 years ago
Ryan Dahl
f5a7de1ea7
windows: fix simple/test-executable-path
14 years ago
Elijah Insua
b722aaa8c5
Close #1303 Stream.pipe returns the destination
Squashed:
* Simple change to make Stream.pipe(destination) return the destination Stream
* Test: ensure Stream.pipe(destination) returns the destination Stream
* updated Stream.pipe() documentation to reflect that it now returns the
destination stream
14 years ago
isaacs
9b5098f509
Close #1281 Make require a public member of module
Reviewed by @felixge
14 years ago
Henry Rawas
876712a074
test-tcp-wrap dont assume port 80 priveleged'
14 years ago
koichik
8caf7fdb05
Add tests for #1085 and #1304
Fixes #1327 .
14 years ago
koichik
5208abe723
Fix Buffer drops last null character in UTF-8
Reproduce:
$ node
> buf = new Buffer('\0')
<Buffer >
> buf.length
0
> buf = new Buffer(1)
<Buffer 28>
> buf.write('\0')
0
Fixes #394 .
Fixes #1210 .
14 years ago
koichik
5f97c9a005
Improvements AssertionError message
Fixes #217 .
14 years ago
Henry Rawas
9057d3f17e
fix isip test
14 years ago
koichik
8faf941109
Fixes #1267 .
Error message of JSON.parse() was changed.
14 years ago
Henry Rawas
1018e7d23f
isIP test
14 years ago
Henry Rawas
b6f6a1ca11
ipv6 node
14 years ago
Ben Noordhuis
b62ecdc5bb
Revert 3e2a2a7
. Always send a HTTP/1.1 status line to the client.
14 years ago
Ben Noordhuis
3e8667d829
Revert 8dc8773
. Always send a HTTP/1.1 status line to the client.
14 years ago
Jeremy Selier
2a848fa727
Close #1149 IDNA and Punycode support in url.parse
Using @bnoordhuis's punycode lib.
Close #1174 also
14 years ago
Ryan Dahl
8b2f5af2a0
Revert "Fixes #1267."
Revert due to V8 downgrade.
This reverts commit 04c9169892
.
14 years ago
Ryan Dahl
64a06c5ffd
Revert "Error argument for http.ServerRequest 'close'"
Too slow.
This reverts commit e7ac6d8fcd
.
14 years ago
Ben Noordhuis
f087206067
Verify that the argument passed to vm.runInContext() is a context object.
Fixes #558 .
14 years ago
Ryan Dahl
ede1acc1ed
Revert "Remove 'connect' event from server side sockets"
Fixes #1276
This reverts commit f0a440d886
.
14 years ago
Ryan Dahl
d964b4c5aa
net_uv: enable another test case in test-net-pingpong
14 years ago
Ben Noordhuis
1e6b72e8cb
Test case for issue #1228 : errno masked in fs.openSync().
14 years ago
Ben Noordhuis
3e2a2a76fd
Test cases for #1234 : don't send HTTP/1.1 responses to HTTP/1.0 clients.
14 years ago
Ben Noordhuis
c6846565cf
Clean up temporary file on exit.
Unbreaks test/simple/test-http-get-pipeline-problem.js,
it assumed a fixed number of files in the tmp directory.
14 years ago
Ben Noordhuis
222f85fdf4
Test cases for #1234 : don't send HTTP/1.1 responses to HTTP/1.0 clients.
14 years ago
Ben Noordhuis
092fc42fbf
Clean up temporary file on exit.
Unbreaks test/simple/test-http-get-pipeline-problem.js,
it assumed a fixed number of files in the tmp directory.
14 years ago
Bert Belder
858f23094e
Bindings for libuv-integrated c-ares
14 years ago
Adam Luikart
7f30f13543
Update POSIX splitPathRe to allow control chars. Fixes #1230 .
Use [\s\S] instead of . to match any char, including newlines.
14 years ago
koichik
04c9169892
Fixes #1267 .
Error message of JSON.parse() was changed.
14 years ago
koichik
c60cdcda4e
Fix net.Socket.connect argument parsing
Fixes #1251 .
14 years ago
Ben Noordhuis
8e0d788842
Test for #402 : writing base64 at position > 0 should not mangle the result.
This is a regression test, the bug itself was fixed in v0.3.x.
14 years ago
Ryan Dahl
6d8b43c366
http: Fix agent id creation
Unbreaks test-regress-GH-877.js
14 years ago
Ryan Dahl
69d20f5352
use_uv: Correct readyState on connecting
14 years ago
Ryan Dahl
efca5456b8
Fixes #877 . Don't wait for socket pool to establish connections.
Thanks to Yann Biancheri for putting together an initial test.
14 years ago
Ryan Dahl
20996dbc2b
Revert "Add support for file descriptor type detection."
This reverts commit 911cbd0cef
.
This patch is broken on Linux and I don't want to think about the
functionality during the Windows port. We can reconsider it after v0.6.
14 years ago
Ryan Dahl
8cb5338f35
Fix test-tcp-wrap-listen
14 years ago
Henry Rawas
47a5d93256
Fix test-net-pingpong.js on windows
14 years ago
koichik
6c121edc60
Fix mismatch createConnection and Socket.connect
net.createConnection() is wrapper for net.Socket.connect(),
but There is mismatch between them.
net.createConnection(port, [host])
net.Socket.connect(port, [host], [callback])
Fixes #1208 .
14 years ago
Ben Noordhuis
c626f8bd8f
Test case for issue #1218 : uncatchable exception on TLS connection error.
14 years ago
koichik
d6ec8f668e
Fix -e/--eval can't load module from node_modules
With -e or --eval, require() can load module using relative path.
node -e 'require("./foo")'
But it can't load module from node_modules directory.
node -e 'require("foo")'
Fixes #1196 .
14 years ago
Ben Noordhuis
5c38163787
Fixes #1197 . Fix failing os.getNetworkInterfaces() test in test-os.js
14 years ago
Ryan Dahl
9696c27c45
tcp_wrap: implement shutdown
14 years ago
Ryan Dahl
97296e405c
tcp_wrap: add writeQueueSize
14 years ago
Ryan Dahl
ddc989333d
tcp_wrap: implement socket.connect()
14 years ago
Ryan Dahl
dae73dbd28
tcp_wrap: onread oncomplete parameter massage
14 years ago
Ryan Dahl
dafe32d3bf
tcp_wrap: implement write
14 years ago
Ryan Dahl
86214c9f16
tcp_wrap: Initial wrap of uv_read_start
14 years ago
Mark Cavage
88552c51ae
Support for signature verification with RSA/DSA public keys
Fixes #1166 .
14 years ago
isaacs
9967c369c9
AMD compatibility for node, with docs and tests
Closes #1173
Closes #1170
14 years ago
Ryan Dahl
062759194b
Initial binding to uv_tcp_t
14 years ago