Ryan Dahl
49806864e4
Add test from v0.4 dea49e3
Note this test completes in 3 seconds on v0.4 and 7 minutes on master. NOT
GOOD.
13 years ago
koichik
49ac083dc1
tls: Add test for #1775
13 years ago
Ben Noordhuis
fa44659c66
test: fix typo in error message
13 years ago
Ryan Dahl
dea49e3d19
net: Fix string-concat hot path bug
Also removes functionality added in f9fec3a2d6
because it changes API. (That patch shouldn't have been added anyway.)
13 years ago
Fedor Indutny
1b8b097fad
debugger: refactor, no more res.success checks
Fixes #1779 .
13 years ago
Fedor Indutny
542156a6a1
debugger: use regexps in repl test
Fixes #1788
13 years ago
Ryan Dahl
41d811f41f
Fix test-module-load-list.js
13 years ago
Ryan Dahl
f5bdce9cc0
Disable test-dgram-unix.js test-dgram-unix-anon.js test-dgram-multicast.js
13 years ago
Ben Noordhuis
413d38c43b
test: test crypto (P)RNG functions
13 years ago
Fedor Indutny
f4124e18cb
debugger: setBreakpoint('fn()')
Fixes #1777
13 years ago
Ryan Dahl
040cf02724
Re-land Bert's test for #1697
Was reverted out in cde81a6675
13 years ago
Fedor Indutny
c26cf84a08
debugger: fix backtrace with no frames
Fixes #1768
13 years ago
Ben Noordhuis
f6bce20e5e
buffers: handle bad length argument in constructor
Coerce fractional, negative and non-numeric length arguments to numbers.
Fractional numbers are rounded up, negative numbers and non-numeric values
are set to zero.
13 years ago
Ben Noordhuis
d157131439
buffers: handle bad length argument in constructor
Coerce fractional, negative and non-numeric length arguments to numbers.
Fractional numbers are rounded up, negative numbers and non-numeric values
are set to zero.
13 years ago
Fedor Indutny
39fec6003e
debugger: remove useless clearlines, updated test
* remove useless clearline call at Interface start
* silence after .handleBreak()
* output '\b' if this.stdout is not a tty (debugger)
* add '\b' checks for clearline (test)
13 years ago
Fedor Indutny
e406613ee5
test-debugger-repl improvements
13 years ago
Fedor Indutny
1e37efb08b
initial tests
* Don't buffer command, before it's execution (repl)
* `quit` command, custom streams for .start, stubbed out test, disable
history repeation for non-tty (debugger)
13 years ago
Igor Zinkovsky
8fe5712477
fs watcher binding
13 years ago
isaacs
74c02066fe
Add broken test for #1726 .
13 years ago
isaacs
e06ce7562c
Fix #1707 hasOwnProperty usage
If hasOwnProperty is overridden, then calling `obj.hasOwnProperty(prop)`
can fail. Any time a dictionary of user-generated items is built, we
cannot rely on hasOwnProperty being safe, so must call it from the
Object.prototype explicitly.
13 years ago
isaacs
b3af074a02
Add querystring test for hasOwnProperty usage
13 years ago
Ben Noordhuis
5724b54d2e
test: add http multi-line header test
Test case for #1569 . Verify that http_parser parses multi-line headers.
13 years ago
koichik
fdbfc9ceb7
net: Socket write encoding case sensitivity
Fixes #1586 .
14 years ago
koichik
3e853e627e
buffer: write() should always set _charsWritten.
Refs #1633 .
14 years ago
koichik
96ede8cc9b
buffer: Avoid overrun with 'binary' encoding.
Fixes #1624 .
14 years ago
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.
14 years ago
Ryan Dahl
ce9caa237f
Fix #1563 . overflow in ChildProcess custom_fd.
Backported from master f5db3f1f85
14 years ago
Ryan Dahl
c1ae6ea2f2
Add TTYWrap
13 years ago
isaacs
d104bfd5a6
zlib: Fix test so that it's not trivially passing, then pass it.
Regression from the refactor to move more things into JS.
13 years ago
isaacs
5b8e1dabbc
Initial pass at zlib bindings
14 years ago
Ryan Dahl
cde81a6675
Revert "Add regression test for issue 1697"
Causing many test failures due to lingering process
This reverts commit 8b754a9e02
.
13 years ago
Bert Belder
8b754a9e02
Add regression test for issue 1697
13 years ago
Ryan Dahl
2d0b1ed7ad
Upgrade libuv to 2640aae
Add test for bug fixed in joyent/libuv@2640aae1
13 years ago
Ryan Dahl
b281171030
Support legacy API: process.stdout.fd
13 years ago
Ryan Dahl
5cb1fd2e32
net.Socket(fd) should start readable and writable
13 years ago
Ryan Dahl
8c87250816
Do not load readline from util.inspect
This causes all modules using console.log() to load readline which seems
unnecessary.
13 years ago
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".
13 years ago
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.
13 years ago
isaacs
190abcac9d
mkdir EEXIST test
Fixed on uv 3c00d87b4239a6b8358e2085f806170c3eca10cf
13 years ago
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 .
14 years ago
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 .
13 years ago
koichik
389e2a07e6
util: Fix inspection for Error
Fixes #1634 .
14 years ago
Bert Belder
10e7c52a70
win: make test-cli-eval.js pass
13 years ago
Fedor Indutny
8c2c7bb8a9
vm context with accessors
fixes #1673
14 years ago
Igor Zinkovsky
79ce48d3f0
fix for test-fs-chmod
13 years ago
Igor Zinkovsky
85357abba1
fix test-fs-chmod test
14 years ago
Ryan Dahl
26834b0524
Revert "vm context with accessors"
This reverts commit 4527de8cba
.
Causes segfault in test/message/undefined_reference_in_new_context.js
14 years ago
Fedor Indutny
4527de8cba
vm context with accessors
true copy of sandbox properties
catch sealed errors, pass global's prototype to CloneObject
Fixes #1673
14 years ago
Ben Noordhuis
bb3a1d5b67
http: set .code='ECONNRESET' on socket hang up errors
Fixes #1672 .
14 years ago
koichik
6139459d45
util: Fix inspection for sparse array
Fixes #1651 .
14 years ago