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
Ben Noordhuis
fcba1459f2
uv: upgrade to 8f617b9
13 years ago
Fedor Indutny
43cb4ec76b
debugger fix for #1707
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
78d91ff074
don't use global vars
13 years ago
Fedor Indutny
2010071339
readline: custom streams support
13 years ago
Ben Leslie
a4e10cdb07
Raise an error when a malformed package.json file is found.
The current behaviour will silently ignore any parsing errors
that may occur when loading a package.json file. This makes
debugging errors in the package.json file very difficult.
This changes the behaviour that that errors opening and reading
the file package.json file continue to be ignored, but errors
in parsing will throw an exception.
13 years ago
Ryan Dahl
94bedc60f4
Upgrade libuv to f20297f
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
66293f6e98
fix spelling
13 years ago
Ben Noordhuis
9ad334085f
build: explicitly link in libz on non-win32 platforms
13 years ago
Igor Zinkovsky
8fe5712477
fs watcher binding
13 years ago
Ryan Dahl
8d37b6c92b
upgrade libuv
13 years ago
isaacs
74c02066fe
Add broken test for #1726 .
13 years ago
Ben Noordhuis
93aad55342
crypto: fix delete of potentially uninitialized pointer
13 years ago
Ben Noordhuis
fdb0eb5825
crypto: fix read of potentially uninitialized variable
13 years ago
Ben Noordhuis
3a9b08f156
crypto: look up SSL errors with ERR_print_errors()
13 years ago
Ben Noordhuis
9ef962f9ee
crypto: fix error message buffer overrun
ERR_error_string() expects a buffer of at least 256 bytes, the input buffer
was not even half that size. Use ERR_error_string_n() instead.
13 years ago
Igor Zinkovsky
de0066c697
remove node_zlib.h from node.gyp
13 years ago
Fedor Indutny
8efe7a8304
[debugger] shorten break message
13 years ago
Fedor Indutny
79fd1f7f0b
[debugger] optimize context's properties initialization, make 'list' a function, not a getter
13 years ago
Fedor Indutny
3148f1400e
[debugger] fix 'debug> connecting...', fixed autostart (XXX figure out why it wasn't working in some cases), fixed highlighting for first line of module's code
13 years ago
Vitor Balocco
97d355c273
docs: Add anchor links next to each function
Modify doctool.js to automatically create anchor links for
every function, for easy linking.
Include support for functions that have a <h4> level
Fixes : #1718 .
13 years ago
Ben Noordhuis
320cf729db
crypto: fix delete of potentially uninitialized pointer
13 years ago
Ben Noordhuis
b185751c3f
crypto: fix read of potentially uninitialized variable
13 years ago
koichik
b93a7cc99e
docs: add links
13 years ago
Ben Noordhuis
ed44098cf6
build: fix SYS_clock_gettime feature check
execute=True makes it fail while cross-compiling.
Fixes #1541 .
13 years ago
Ryan Dahl
b31d5ac639
Update website address in Makefile
13 years ago
Ryan Dahl
cfe0f4226b
Now working on v0.4.13
13 years ago
Ryan Dahl
771ba34ca7
Bump version to v0.4.12
13 years ago
Ryan Dahl
6312e889b1
Drain OpenSSL error queue? Addresses #1719
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
isaacs
98990b9779
Fix #1707 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
Ben Noordhuis
8b2a3354f9
http_parser: cherry-pick 3258e4a and b89f944 from upstream
Fixes #1569 , parse error on multi-line HTTP 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
isaacs
ef27d56cc1
Fixes #1610 Remove DigiNotar CA from trusted list
Details:
https://threatpost.com/en_us/blogs/attackers-obtain-valid-cert-google-domains-mozilla-moves-revoke-it-082911
http://www.coriolis-systems.com/blog/2011/08/diginotar-certificate-security.php
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
827b9c5f1f
net: fix throw error
Thanks Tobi
14 years ago
koichik
509a676128
Doc improvements
14 years ago
Ryan Dahl
ce9caa237f
Fix #1563 . overflow in ChildProcess custom_fd.
Backported from master f5db3f1f85
14 years ago
Maciej Małecki
e150bc4f2b
docs: process.memoryUsage returns memory usage measured in bytes
14 years ago
isaacs
b4712bf1ac
Close #1544 Document slashesDenoteHost flag in url.parse
14 years ago
Ryan Dahl
dc578724b1
Now working on v0.4.12
14 years ago
Ryan Dahl
a745d19ce7
Bump version to v0.4.11
14 years ago
Ryan Dahl
9cd510846e
Fixes #1546 . Remove expensive debug call.
14 years ago