Ryan Dahl
458bbb4687
fs.writeSync should return bytes written
15 years ago
Сергей Крыжановский
078a48a97b
added env to child_process.exec
15 years ago
Ryan Dahl
02729d4af7
instanceof Buffer to Buffer.isBuffer()
15 years ago
Ryan Dahl
6961bc568f
More instanceof Array fixes
15 years ago
Ryan Dahl
9472812569
Fix reference to root global context
15 years ago
Ryan Dahl
6a57a42109
Use Array.isArray instead of instanceof
15 years ago
Ryan Dahl
3a00470dbb
Add 'root' global variable as reference to sandbox
15 years ago
Ryan Dahl
5f30377bbc
Load modules in individual contexts
Add NODE_MODULE_CONTEXTS env var
Only one test was modified to check that this works. NEED to go through all
tests and modify them so that
NODE_MODULE_CONTEXTS=1 make test
passes.
15 years ago
Matt Ranney
4e50197e53
Datagram socket refactor. Add tests and documentation.
Support setTTL() and setBroadcast() socket options.
15 years ago
isaacs
781d51285d
Use execPath for default NODE_PATH, not installPrefix
15 years ago
Mikeal Rogers
16cb45103f
Adds "pause" and "resume" events to pump and it's readable argument.
15 years ago
David Siegel
2085909aeb
fix corner-case bug in Module
and added a test to expose it
15 years ago
rick
c9e505791a
use delete for removing events after removing the final listener
15 years ago
Ryan Dahl
d700a6f74a
Return child from execFile
15 years ago
Dmitriy Shalashov
70a8fb3763
Fix headers with empty value.
15 years ago
Ryan Dahl
515dc2161b
Experimental: 'on' as alias to 'addListener'
15 years ago
Peter Griess
94cd83ef34
Doc fixes for FD related features, upgrade.
- Add docs for 'fd' events, Server.listenFD(), Stream.write(...[, fd])
and http.Client 'upgrade' event.
15 years ago
Ryan Dahl
8a52fb7aeb
Revert "Fix 'uncaughtException' for top level exceptions"
This reverts commit 8f8dcf8ed6
.
15 years ago
Ryan Dahl
8f8dcf8ed6
Fix 'uncaughtException' for top level exceptions
Done by not evaluating the code in the first tick.
This breaks one test in test-error-reporting.js but I believe this to be a
V8 error and I have reported it in
http://code.google.com/p/v8/issues/detail?id=764
15 years ago
Ryan Dahl
ce8c30c9de
Clean up indention on module compile
Remove strange code artifact
15 years ago
Blake Mizerany
8c8534046c
fix whitespace errors
15 years ago
Dmitry Baranovskiy
f8ca6b383c
Rewrote QueryString.parse to make it smaller and more effective.
Also added ability to parse foo.bar=4 equal to foo[bar]=4
Added tests for this as well
15 years ago
Ryan Dahl
0a8bd34b69
Resolve .local domains with getaddrinfo()
C-Ares doesn't go through the Name Service Switch (NSS) and thus can't
resolve certain classes of names. Generally this doesn't matter and the
whole idea of NSS is rather annoying. Nevertheless until C-Ares gets better
support, adding this hack to go through getaddrinfo() for .local domain look
up.
This reverts commit 9926dacd14
.
15 years ago
Blake Mizerany
898afbaf34
Buffer.prototype.write: Indifferent order preference of encoding and offset
15 years ago
Ryan Dahl
5e86d01385
Revert "Buffer.copy should copy through sourceEnd, as specified."
This reverts commit a2f70da4c9
.
Keep tests modifies a few edge checks on Copy()
15 years ago
Dmitry Baranovskiy
8ec12339f5
Refactored isA, isBool, etc functions to use some of ES5 goodness.
15 years ago
Dmitry Baranovskiy
d3f04933f1
sys.inherts to shadow constructor property from enumerability
thanks to ES5 features in V8 it is quite easily possible.
15 years ago
Ruben Rodriguez
242161bef2
Added new API to Script, and implemented it in the REPL
15 years ago
Matt Ranney
a2f70da4c9
Buffer.copy should copy through sourceEnd, as specified.
Improve test-buffer.js to cover all copy error cases.
Fix off by one error in string_decoder.
15 years ago
Ryan Dahl
7b119f8b38
Fix error message
15 years ago
Ryan Dahl
f541043618
Remove ini.js
15 years ago
Ryan Dahl
fc175a089d
Remove mjsunit from repo
15 years ago
Mikeal Rogers
f62979da6b
Add sys.pump
15 years ago
Peter Griess
51bd1b4483
Only concatenate some incoming HTTP headers.
- Concatenate 'accept', 'accept-charset', 'accept-encoding',
'accept-language', 'connection', 'cookie', and 'x-*' headers.
- For all others, drop duplicates.
15 years ago
Peter Griess
187f191558
Support 'upgrade' event in HTTP client.
- Add a unit test for client HTTP upgrade.
- Move around unit tests for server HTTP upgrade.
15 years ago
Ryan Dahl
cbf2a2233e
Add callback to dgramSocket.send()
15 years ago
David Siegel
81ad8106dc
Add UDP broadcast support
15 years ago
Micheil Smith
b05daaaf69
Adding path.existsSync (with tests.)
15 years ago
Aaron Heckmann
1d088fb906
fs.writeFile accepts Buffers
15 years ago
Peter Dekkers
e48f0d1dd9
Fixed incorrect mask for determining fs.Stats types
15 years ago
isaacs
4ce100fa62
A replacement for decodeURIComponent that doesn't throw.
And add a few more tests.
15 years ago
Ryan Dahl
ed5f4f3a44
RootCaCerts shouldn't be global
15 years ago
Ryan Dahl
6bed15e074
Refactor: Utf8Decoder -> StringDecoder
Instead of just decoding Utf8, this will proxy requests to buffer.toString()
for other encodings. This makes for a simpler interface.
15 years ago
Peter Griess
4b48042c17
Wrap FD in closure before emitting from Stream.
- Without this, recvMsg can be invoked before the event emitter gets a
chance to run. In this case, recvMsg.fd will be overwritten and the
original caller can end up emitting null.
15 years ago
Ben Lowery
f3cd7bbe77
Coerce each argument to a String before attempting to print it via sys.print
15 years ago
Ryan Dahl
14414f81f3
Soft deprecation of 'listening' event.
Add callback param to listen() instead
15 years ago
Ryan Dahl
009b4569b3
Merge Hash.init() function into JS constructor
15 years ago
Felix Geisendörfer
5f3906b65e
Fix: fs.writeFile could not handle utf8
15 years ago
Paul Querna
02da5ed4a1
Implement datagram sockets
- Adds new dgram module, for all data-gram type transports
- Supports both UDP client and servers
- Supports Unix Daemon sockets in DGRAM mode too (think syslog)
- Uses a shared Buffer and slices that as needed to be reasonably
performant.
- One supplied test program so far, test-dgram-pingpong
- Passes test cases on osx 10.6 and ubuntu 9.10u
15 years ago
isaacs
e65e6039a8
Fix #169 . Expose require members in the repl.
This fixes #169 by putting the require members onto the cwdRequire function
which is exposed to the repl scope.
15 years ago