Ryan Dahl
1b1bee8099
Fix test/message/undefined_reference_in_new_context
14 years ago
Tim-Smart
0f16af7ee4
Remove registerExtension, add .extensions. Tests.
Updated extensions tests
14 years ago
isaacs
bb08f0c219
Remove require.async
This patch removes require.async from nodejs.
1. It complicated the code unnecessarily.
2. Everyone uses sync require anyway.
3. It's got a lot of weird edge cases when mixed with sync require.
4. It is many months behind the commonjs spec anyhow.
14 years ago
Ryan Dahl
db73c71280
Pass correct message in HTTP client upgrade
Simplify and correct test.
Fix by Fedor Indutny.
14 years ago
Ryan Dahl
4962702e4a
Revert requireNative changes: 4e6b9b0
, d429033
, 6abbfa0
, bcad540
The REPL needs the full require(); add test for that behavior.
14 years ago
Ryan Dahl
776754c33f
Remove process._byteLength
14 years ago
Ryan Dahl
9628e28aec
Remove process.evalcx
14 years ago
Ryan Dahl
bbbcd1fee0
Safe constructors for fs.ReadStream and fs.WriteStream
14 years ago
Paul Querna
c8f9728de7
Move dns.isIP to net.isIP
Add tests and docs.
14 years ago
Ryan Dahl
251d03197f
Remove deprecation warnings in net module
14 years ago
Ryan Dahl
f47ad10db7
Remove a few old deprecation warnings
14 years ago
Sam Stephenson
6560ab9073
Send multiple header lines in ServerResponse#writeHead when header values are arrays
14 years ago
Ryan Dahl
feea1330cc
Make a list of known globals
And fix missing var!
It would be good to get this script running at the end of every test, so we
know that modules aren't leaking either - but it will require a lot
modification of the tests so that they themselves aren't leaking globals.
14 years ago
Ryan Dahl
77fc61d539
Default value for second arg of Buffer#slice
14 years ago
Mark Nottingham
4fe3007a1a
Support for outgoing HTTP trailing headers
14 years ago
Ryan Dahl
83ff473d30
Use child_process.exec rather than sys.exec
14 years ago
isaacs
686d9f9cc6
Bug in realpath with symlinks to absolute folder paths which have children.
Found by Cliffano Subagio
http://groups.google.com/group/nodejs/browse_thread/thread/f46f093938265ac0/387e14da08c7dd7b ?
14 years ago
Peter Griess
422d3c93bc
Get rid of PHP/Rails style parameter munging.
- Handle only the most basic of query string parsing and construction.
Leave the rest (e.g. Rails/PHP behaviors) to modules higher up the
stack, like Express.
14 years ago
Tony Metzidis
debf389490
Catch Exceptions thrown when openssl is disabled
14 years ago
Paul Querna
9a701b0a70
Expose fingerproint from getPeerCertificate
Expose the SHA1 digest of the certificate as the fingerprint attribute in
the object returned by getPeerCertificate()
14 years ago
Ryan Dahl
3a9570386a
Fix fs.realpathSync('/')
14 years ago
isaacs
85fb47c11c
Better temporary directory handling for tests.
Add a setUp and tearDown function to the test case class, and use it to
create and remove the test/tmp directory for each test.
TODO: amend other tests.
14 years ago
Ryan Dahl
7628905a9b
Don't use empty.js - breaks module test
14 years ago
Felix Geisendörfer
f870240dcf
Simple benchmark for node's startup time
14 years ago
Ryan Dahl
efc723787a
Fix big string bug
14 years ago
Ryan Dahl
3e9f636b64
Improve long buffer test
14 years ago
Ryan Dahl
8078ed1f86
Expose fast-buffer bug in tests
14 years ago
Ryan Dahl
7b772f3f68
More fast buffer work
14 years ago
Ryan Dahl
d5bdda74c1
fast buffer bounds checking in copy()
14 years ago
Felix Geisendörfer
ef54777fa5
Fix: uncaughtException was broken for main module
See: 635986e433
14 years ago
Ryan Dahl
17f3ffa633
Call Tick() after coming out of select()
Previously we would only call it before going into select(). This is needed
to fix test/simple/test-next-tick-ordering2.js.
14 years ago
isaacs
ba0c32e2e1
Fix issue #262 . Allow fs.realpath to traverse above the current working directory.
14 years ago
Tobie Langel
512016fd74
Test for ReadStream typo
14 years ago
Tobie Langel
ccf4afa256
Do not emit WriteStream's drain event before ws.write has been called.
14 years ago
Tobie Langel
f5e4047064
Avoid closing a WriteStream before it has been opened.
14 years ago
Herbert Vojčík
6789ab16d8
Modifying test-global to accomodate v8 inter-context 'global' protection.
14 years ago
Herbert Vojčík
2a03d5802b
Removing test-global-between-modules.
Using "global" to push data to require()d modules
not supported under NODE_MODULE_CONTEXTS=1.
14 years ago
Felix Geisendörfer
cf4b5fc52a
Test case showing a bug in nextTick ordering
nextTick should fire before setTimeout in this test, but it doesn't.
14 years ago
Ryan Dahl
1d0fb850d9
test-http-parser should not use private API
14 years ago
Ryan Dahl
4fe5e86a7e
Don't refer to private API in test-repl
14 years ago
Benjamin Thomas
cda1a38426
Fix bug in process._tickCallback where callbacks can get abandoned.
Change process._tickCallback so that if a callback throws an error but
there are other callbacks after it, we indicate that
process._tickCallback needs to be ran again.
Currently, if a callback in process._tickCallback throws an error, and
that error is caught by an uncaughtException handler and
process.nextTick is never called again, then any other callbacks already
added to the nextTickQueue won't be called again.
Updated the next-tick-errors test to catch this scenario.
14 years ago
isaacs
0e311717b5
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.
14 years ago
Ryan Dahl
7347fb3e2c
Make sure setInterval(cb, 0) loops infinitely
14 years ago
Ryan Dahl
a055153cda
Fix style in test/simple/test-dgram-unix.js
14 years ago
Ryan Dahl
f188b9d6d7
Remove timer from test/simple/test-dgram-unix.js
Test running already has a timeout mechanism.
14 years ago
Marco Rogers
af9aa93e0c
fix for fs.readFile to return string when encoding specified on zero length read
14 years ago
Marco Rogers
9c7c6e93e1
Fixed async fs writes with length 0, it should fire the callback
14 years ago
Ryan Dahl
635986e433
Add failing uncaughtException test
FIXME
14 years ago
Johan Euphrosine
e49be4768b
add readline support for meta-d
14 years ago
Russell Haering
37b6e10684
Pass an error to the sys.pump callback if one occurs
- Add test case for pumping from unreadable stream.
- Document the sys.pump error handling behavior
14 years ago