Ryan Dahl
8c87250816
Do not load readline from util.inspect
...
This causes all modules using console.log() to load readline which seems
unnecessary.
2011-09-12 18:25:23 -07:00
Ryan Dahl
0928f0f290
Fix test-module-load-list
...
and lazy load modules for process.stdout
This probably breaks test-module-load-list on windows, but it hopefully is
an easy fix to replace "_posix" bindings with "_win32".
2011-09-12 18:12:48 -07:00
Ryan Dahl
0aad61e802
Use net_uv instead of net_legacy for stdio
...
Also temporary hack to prevent process.stdout from keeping event loop alive
by calling uv_unref on process.stdout initialization.
2011-09-12 17:32:52 -07:00
isaacs
190abcac9d
mkdir EEXIST test
...
Fixed on uv 3c00d87b4239a6b8358e2085f806170c3eca10cf
2011-09-12 17:13:12 -07:00
Thomas Shinnick
7dc2c492e9
fs: unguarded fs.watchFile cache statWatchers checking fixed
...
Use hasOwnProperty to check filepath cache; previous code could fail if
a filepath duplicated a chained property name.
Fixes #1637 .
2011-09-12 15:59:00 +09:00
Thomas Shinnick
e58c036c27
fs: add positioned file writing feature to fs.WriteStream
...
Patterned on same feature in ReadStream; a small bit of new code added
plus two refactorings of previous code; added two test files.
Fixes #1645 .
2011-09-12 14:57:49 +09:00
koichik
389e2a07e6
util: Fix inspection for Error
...
Fixes #1634 .
2011-09-11 23:13:06 +09:00
Bert Belder
10e7c52a70
win: make test-cli-eval.js pass
2011-09-11 03:52:44 +02:00
Fedor Indutny
8c2c7bb8a9
vm context with accessors
...
fixes #1673
2011-09-10 10:51:58 -07:00
Igor Zinkovsky
79ce48d3f0
fix for test-fs-chmod
2011-09-09 21:09:59 +02:00
Igor Zinkovsky
85357abba1
fix test-fs-chmod test
2011-09-09 14:45:37 +02:00
Ryan Dahl
26834b0524
Revert "vm context with accessors"
...
This reverts commit 4527de8cba
.
Causes segfault in test/message/undefined_reference_in_new_context.js
2011-09-08 13:30:52 -07:00
Fedor Indutny
4527de8cba
vm context with accessors
...
true copy of sandbox properties
catch sealed errors, pass global's prototype to CloneObject
Fixes #1673
2011-09-08 11:59:21 -07:00
Ben Noordhuis
bb3a1d5b67
http: set .code='ECONNRESET' on socket hang up errors
...
Fixes #1672 .
2011-09-08 20:47:16 +02:00
koichik
6139459d45
util: Fix inspection for sparse array
...
Fixes #1651 .
2011-09-09 00:57:42 +09:00
koichik
526c54c979
buffer: write() should always set _charsWritten.
...
Fixes #1633 .
2011-09-08 11:47:32 +09:00
Ryan Dahl
52044fd1b1
Merge remote branch 'origin/v0.4'
...
Conflicts:
lib/net.js
test/simple/test-buffer.js
2011-09-07 17:51:33 -07:00
Sean Cunningham
eb99083d0b
tls: add client-side session resumption support
2011-09-07 20:01:14 +02:00
Maciej Małecki
fb93ab4125
test: test for correct parsing of URLs with plus character in protocol
2011-09-06 17:04:00 +02:00
Bert Belder
8153a21613
Improve path parsing on windows
...
Closes #650
2011-09-06 04:47:36 +02:00
Ben Noordhuis
2d9ab49239
file: fix errno propagation in sync fs calls
...
Include libuv fs error code in the JS exception.
Fixes #1657 .
2011-09-06 02:15:08 +02:00
Bert Belder
e20d0c1cd0
net-uv: correctly set socket.remoteAddress and -port
...
closes #1345
2011-09-05 02:10:14 +02:00
koichik
fdbfc9ceb7
net: Socket write encoding case sensitivity
...
Fixes #1586 .
2011-09-04 13:53:38 +09:00
koichik
3e853e627e
buffer: write() should always set _charsWritten.
...
Refs #1633 .
2011-09-03 11:48:27 +09:00
koichik
28a908471d
crypto: Fix BIO's usage.
...
Fixes #1612 .
Fixes #1296 .
2011-09-03 00:53:47 +09:00
Niclas Hoyer
b7e36f8584
added test case for foaf+ssl client certificate
2011-09-03 00:49:37 +09:00
Nathan Rajlich
cafcc7e67a
test: add test case for util.isDate() behavior
2011-09-02 17:29:33 +02:00
koichik
96ede8cc9b
buffer: Avoid overrun with 'binary' encoding.
...
Fixes #1624 .
2011-09-02 09:56:58 +09:00
koichik
6f60683802
tls: x509 certificate subject parsing fail
...
Fixes #1568 .
2011-08-31 03:47:23 +09:00
Peter Lyons
d2defa3012
test: test for issue #752
2011-08-28 23:49:24 +02:00
Ryan Dahl
f1996ffebc
Merge remote branch 'origin/v0.4'
...
Conflicts:
AUTHORS
ChangeLog
doc/api/stdio.markdown
doc/index.html
doc/template.html
lib/net.js
src/node_version.h
test/simple/test-child-process-customfd-bounded.js
test/simple/test-console-not-call-toString.js
2011-08-26 13:16:16 -07:00
koichik
43cdbec3be
test: simple/test-tls-client-abort fails on SunOS
...
Fixes #1583 .
2011-08-26 23:57:36 +09:00
Nathan Rajlich
0c91a835ff
util: isRegExp() should not call toString() on its argument
...
An overloaded toString() method may have side effects
so don't call it for a simple type check.
Back-port of 54b409d
to the v0.4 branch.
2011-08-25 19:23:31 +02:00
Ben Noordhuis
accc34c50f
test: fix simple/test-eval
...
Test expects output of console.error(process.argv) to be spread out
over several lines but if /path/to/node is short, it stays on a single line.
2011-08-25 00:18:39 +02:00
Ryan Dahl
52a40e0fd5
Add process.features.debug; fixes simple/test-executable-path.js
2011-08-24 14:16:35 -07:00
Ryan Dahl
4e1d6fca8e
Mark tests which are broken in libuv
2011-08-23 23:45:21 -07:00
Ryan Dahl
a7300c8297
WAF builds in out/ instead of build/
2011-08-23 14:10:39 -07:00
Ryan Dahl
879eb16280
Have WAF variants match GYP configuration names
2011-08-23 14:10:35 -07:00
koichik
485d5b5dff
dns: Force the DNS module to invoke callbacks asynchronously.
...
Fixes #1164 .
2011-08-24 03:01:41 +09:00
Maciej Małecki
94963ab39a
Add failing test for https2 compatibility
...
Issue #1531
2011-08-22 14:30:58 -07:00
Ryan Dahl
ce9caa237f
Fix #1563 . overflow in ChildProcess custom_fd.
...
Backported from master f5db3f1f85
2011-08-20 12:42:58 -07:00
Ryan Dahl
f5db3f1f85
Fix #1563 . overflow in ChildProcess custom_fd.
2011-08-20 12:39:40 -07:00
koichik
4cf931db17
http: improve compatibility of legacy API
...
In http1, legacy http.Client shares one connection with multiple requests.
But in http2, it uses concurrent connections.
With --use-http1, test/simple/test-http-legacy.js passes.
However, it fails without --use-http1 (use http2).
This improves compatibility of legacy http.Client API between http1 and http2.
Fixes #1530 .
2011-08-17 00:19:55 +09:00
koichik
8293bb8a32
test: refactored http test.
...
Many http tests had used legacy http.Client.
This refactored it to use modern API.
Fixes #1528 .
2011-08-16 23:59:57 +09:00
Antranig Basman
c05936ca13
vm: fix incorrect dispatch of vm.runInContext for argument "filename"
...
Adds test case and documentation for vm.runInContext and vm.createContext.
Fixes #1140 .
2011-08-16 14:50:04 +02:00
Mikeal Rogers
584ae7b084
Remove http.cat. fixes #1447
2011-08-16 01:24:41 +02:00
Nathan Rajlich
54b409d650
util: isRegExp() should not call toString() on its argument
...
An overloaded toString() method may have side effects
so don't call it for a simple type check.
2011-08-15 17:22:48 +02:00
Thomas Shinnick
59b815b097
test: add typed arrays to known globals list
2011-08-13 23:51:31 +02:00
Glen Low
04122ad2d3
crypto: PBKDF2 function from OpenSSL
2011-08-12 16:23:11 +02:00
Brian White
b7c23ac3f5
Incorporate endianness into buffer.read* function names instead of passing in a boolean flag
2011-08-12 15:49:57 +02:00