platform/upstream/nodejs.git
12 years agoTest for ChildProcess.disconnect()
Andreas Madsen [Tue, 31 Jan 2012 13:46:23 +0000 (14:46 +0100)]
Test for ChildProcess.disconnect()

12 years agofs: add O_EXCL support, exclusive open file
Ben Noordhuis [Tue, 31 Jan 2012 00:36:57 +0000 (01:36 +0100)]
fs: add O_EXCL support, exclusive open file

12 years agofs, test: add file open mode tests
Ben Noordhuis [Mon, 30 Jan 2012 23:54:40 +0000 (00:54 +0100)]
fs, test: add file open mode tests

12 years agourl: Support for IPv6 addresses in URLs.
Łukasz Walukiewicz [Wed, 25 Jan 2012 23:12:00 +0000 (00:12 +0100)]
url: Support for IPv6 addresses in URLs.

Fixes #1138, #2610.

12 years agomore specific fs error messages
Tj Holowaychuk [Tue, 31 Jan 2012 00:41:32 +0000 (16:41 -0800)]
more specific fs error messages

12 years agoupgrade uv to 812e410772
Igor Zinkovsky [Mon, 30 Jan 2012 23:57:08 +0000 (15:57 -0800)]
upgrade uv to 812e410772

12 years agoadd node::SetMethod and node::SetPrototypeMethod
Roman Shtylman [Mon, 30 Jan 2012 16:58:08 +0000 (11:58 -0500)]
add node::SetMethod and node::SetPrototypeMethod

defines cannot be used if the callback is a templated and has
multiple template arguments. The comma separating the arguments
breaks the preprocessor argument handling. Using a templated function
is clearer and more idiomatic in c++.

12 years agoAdd disconnect method to forked child processes
Andreas Madsen [Mon, 30 Jan 2012 15:35:05 +0000 (16:35 +0100)]
Add disconnect method to forked child processes

This disconnect method allows the child to exit gracefully.
This also adds a disconnect event and connect property.

12 years agocore: make .deprecate() warn only once
Brandon Benvie [Mon, 30 Jan 2012 07:41:40 +0000 (02:41 -0500)]
core: make .deprecate() warn only once

12 years agocore: add `NativeModule.prototype.deprecate`
Brandon Benvie [Sun, 29 Jan 2012 04:13:42 +0000 (23:13 -0500)]
core: add `NativeModule.prototype.deprecate`

Formalize and cleanup handling of deprecated core methods.

12 years agoChange removed process methods to be non-enumerable.
Brandon Benvie [Sun, 29 Jan 2012 04:39:38 +0000 (23:39 -0500)]
Change removed process methods to be non-enumerable.

12 years agotty: emit 'unknown' key event if key sequence not found
Dan VerWeire [Fri, 27 Jan 2012 23:49:07 +0000 (18:49 -0500)]
tty: emit 'unknown' key event if key sequence not found

Add key.code and key.sequence -mad props go out to @TooTallNate

12 years agouv: upgrade to 3de0411
Ben Noordhuis [Fri, 27 Jan 2012 21:25:04 +0000 (22:25 +0100)]
uv: upgrade to 3de0411

12 years agowaf: predict target arch for OSX
Fedor Indutny [Fri, 27 Jan 2012 14:23:32 +0000 (20:23 +0600)]
waf: predict target arch for OSX

12 years agobuild: compile release build too if BUILDTYPE=Debug
Ben Noordhuis [Thu, 26 Jan 2012 22:45:16 +0000 (23:45 +0100)]
build: compile release build too if BUILDTYPE=Debug

It's backwards compatible with the old waf build system. If you want to compile
just the debug build, run `make -C out BUILDTYPE=Debug` instead.

Fixes #2615.

12 years agozlib: fix `Failed to set dictionary` issue
Fedor Indutny [Wed, 25 Jan 2012 17:35:35 +0000 (23:35 +0600)]
zlib: fix `Failed to set dictionary` issue

12 years agomodule: fix --debug-brk on symlinked scripts
Fedor Indutny [Tue, 24 Jan 2012 16:45:34 +0000 (22:45 +0600)]
module: fix --debug-brk on symlinked scripts

* fixes #1519

12 years agonet, tls, http: remove socket.ondrain
Ben Noordhuis [Tue, 24 Jan 2012 14:49:32 +0000 (15:49 +0100)]
net, tls, http: remove socket.ondrain

Replace the ondrain hack with a regular 'drain' listener. Speeds up the
bytes/1024 http benchmark by about 1.2%.

12 years agoMerge branch 'v0.7.1-release'
isaacs [Tue, 24 Jan 2012 08:11:59 +0000 (00:11 -0800)]
Merge branch 'v0.7.1-release'

12 years agohttp: fix test-http-should-keepalive.js is fail
koichik [Tue, 24 Jan 2012 04:57:20 +0000 (13:57 +0900)]
http: fix test-http-should-keepalive.js is fail

3df7c90 was removed when conflict was resolved.

12 years agoNow working on 0.7.2
isaacs [Tue, 24 Jan 2012 01:27:08 +0000 (17:27 -0800)]
Now working on 0.7.2

12 years ago2012.01.23, Version 0.7.1 (unstable) v0.7.1
isaacs [Mon, 23 Jan 2012 23:55:15 +0000 (15:55 -0800)]
2012.01.23, Version 0.7.1 (unstable)

* Update V8 to 3.8.8

* Install node-waf by default (Fedor Indutny)

* crypto: Add ability to turn off PKCS padding (Ingmar Runge)

* v8: implement VirtualMemory class on SunOS (Ben Noordhuis)

* Add cluster.setupMaster (Andreas Madsen)

* move `path.exists*` to `fs.exists*` (Maciej Małecki)

* typed arrays: set class name (Ben Noordhuis)

* libuv bug fixes (Igor Zinkovsky, Ben Noordhuis, Dan VerWeire)

12 years agoUpgrade V8 to 3.8.8
isaacs [Tue, 24 Jan 2012 00:16:42 +0000 (16:16 -0800)]
Upgrade V8 to 3.8.8

12 years agoudp: 'interface' is reserved word on windows.
isaacs [Mon, 23 Jan 2012 23:44:53 +0000 (15:44 -0800)]
udp: 'interface' is reserved word on windows.

12 years agoMerge branch 'v0.6'
Fedor Indutny [Mon, 23 Jan 2012 18:30:28 +0000 (00:30 +0600)]
Merge branch 'v0.6'

Conflicts:
ChangeLog
doc/template.html
lib/cluster.js
lib/http.js
lib/tls.js
src/node.h
src/node_version.h
test/simple/test-cluster-kill-workers.js

12 years agouv: upgrade to 1cca230
Ben Noordhuis [Mon, 23 Jan 2012 12:35:36 +0000 (13:35 +0100)]
uv: upgrade to 1cca230

12 years agofix windows build
Igor Zinkovsky [Mon, 23 Jan 2012 09:30:56 +0000 (01:30 -0800)]
fix windows build

12 years agoupgrade libuv to edbabe6f83
Igor Zinkovsky [Mon, 23 Jan 2012 09:34:05 +0000 (01:34 -0800)]
upgrade libuv to edbabe6f83

12 years agoversion: bump `NODE_PATCH_VERSION`
Maciej Małecki [Sun, 22 Jan 2012 19:46:52 +0000 (20:46 +0100)]
version: bump `NODE_PATCH_VERSION`

Patch version hasn't been bumped correctly in
72cbb7492cb5956c8265b415bd6ff473b7b89f35.

12 years agocrypto: silence unused variable warning
Ben Noordhuis [Sun, 22 Jan 2012 17:19:10 +0000 (18:19 +0100)]
crypto: silence unused variable warning

`retry` is not used if SSL_PRINT_DEBUG is not defined.

12 years agotest: fix test/simple/test-net-server-max-connections.js is racey
koichik [Sun, 22 Jan 2012 14:23:04 +0000 (23:23 +0900)]
test: fix test/simple/test-net-server-max-connections.js is racey

Fixes #1333.

12 years agotest: for #2109
koichik [Sun, 22 Jan 2012 08:35:28 +0000 (17:35 +0900)]
test: for #2109

12 years agoutil: use getOwnPropertyDescripter
Brandon Benvie [Mon, 14 Nov 2011 20:42:14 +0000 (15:42 -0500)]
util: use getOwnPropertyDescripter

Change formatProperty in util.js to use Object.getOwnPropertyDescriptor
instead of __lookup[GS]etter__.

Use the cached value from the descriptor to reduce number of property
lookups from 3 to 1.

Fallback to standard lookup if the descriptor is empty. This doesn't
ever happen with normal JS objects (this function is called only when
the key exists) but apparently does with Node's custom ENV interface.

Fixes: #2109.

12 years agohttp: keep-alive should default with HTTP/1.1 server
koichik [Sun, 22 Jan 2012 05:55:41 +0000 (14:55 +0900)]
http: keep-alive should default with HTTP/1.1 server

As RFC 2616 says we should, assume that servers will provide a persistent
connection by default.

> A significant difference between HTTP/1.1 and earlier versions of
> HTTP is that persistent connections are the default behavior of any
> HTTP connection. That is, unless otherwise indicated, the client
> SHOULD assume that the server will maintain a persistent connection,
> even after error responses from the server.

> HTTP/1.1 applications that do not support persistent connections MUST
> include the "close" connection option in every message.

Fixes #2436.

12 years agoonly ref non-default isolate loops
Igor Zinkovsky [Sat, 21 Jan 2012 22:35:25 +0000 (14:35 -0800)]
only ref non-default isolate loops

12 years agopath fs: move `path.exists*` to `fs.exists*`
Maciej Małecki [Sat, 21 Jan 2012 01:37:57 +0000 (02:37 +0100)]
path fs: move `path.exists*` to `fs.exists*`

`path.exists*` functions show a deprecation warning and call functions
from `fs`. They should be removed later.

test: fix references to `path.exists*` in tests

test fs: add test for `fs.exists` and `fs.existsSync`

doc: reflect moving `path.exists*` to `fs`

12 years agohttp: fix deprecation warning module ID
Ben Noordhuis [Sat, 21 Jan 2012 13:31:20 +0000 (14:31 +0100)]
http: fix deprecation warning module ID

Mea culpa, I told @mmalecki wrong

12 years agodgram: reintroduce setMulticastTTL()
Dan VerWeire [Tue, 22 Nov 2011 21:04:40 +0000 (16:04 -0500)]
dgram: reintroduce setMulticastTTL()

Removed during the early stages of node 0.5 refactoring to libuv.

12 years agodgram: reintroduce setBroadcast()
Dan VerWeire [Thu, 27 Oct 2011 14:48:38 +0000 (10:48 -0400)]
dgram: reintroduce setBroadcast()

Removed during the early stages of node 0.5 refactoring to libuv.

12 years agodgram: reintroduce addMembership() and dropMembership()
Roman Shtylman [Wed, 12 Oct 2011 17:55:15 +0000 (13:55 -0400)]
dgram: reintroduce addMembership() and dropMembership()

Removed during the early stages of node 0.5 refactoring to libuv.

12 years agouv: upgrade to 497b1ec
Ben Noordhuis [Sat, 21 Jan 2012 02:13:58 +0000 (03:13 +0100)]
uv: upgrade to 497b1ec

12 years agoref isolate loop
Igor Zinkovsky [Fri, 20 Jan 2012 02:56:23 +0000 (18:56 -0800)]
ref isolate loop

12 years agohttp: reduce creating http-parser instances
koichik [Fri, 20 Jan 2012 12:54:34 +0000 (21:54 +0900)]
http: reduce creating http-parser instances

Fixes #2577.

12 years agoFix #2365 zlib crashing on invalid input
Nicolas LaCasse [Fri, 20 Jan 2012 14:36:28 +0000 (15:36 +0100)]
Fix #2365 zlib crashing on invalid input

Fix zlib crashes on error due to improper use of removeListener
in the error handler

12 years agoAdd cluster.setupMaster
Andreas Madsen [Thu, 5 Jan 2012 19:09:43 +0000 (20:09 +0100)]
Add cluster.setupMaster

Fixes #2470

12 years agoAdd missing ChangeLog item re: fs.stat improvement
isaacs [Fri, 20 Jan 2012 05:15:12 +0000 (21:15 -0800)]
Add missing ChangeLog item re: fs.stat improvement

This was a very significant improvement that should have been called out
explicitly.

I added 'review all libuv changes' to my build checklist.  It won't
happen again.  Sorry, @igorzi.

12 years agobuild: disable NDEBUG in release builds for now
Ben Noordhuis [Fri, 20 Jan 2012 15:00:25 +0000 (16:00 +0100)]
build: disable NDEBUG in release builds for now

assert() sanity checks are a good thing.

12 years agofs, handle_wrap: use Loop(), not uv_default_loop()
Ben Noordhuis [Fri, 20 Jan 2012 14:55:38 +0000 (15:55 +0100)]
fs, handle_wrap: use Loop(), not uv_default_loop()

Using the default loop will fail in unexpected and interesting ways when
isolates are used.

12 years agofs: don't assert on uv_fs_*() errors
Shigeki Ohtsu [Tue, 8 Nov 2011 15:27:52 +0000 (00:27 +0900)]
fs: don't assert on uv_fs_*() errors

Pass errors to the JS callbacks, don't assert in C++ land.

Fixes among other things the case where Node aborts because uv_fs_futimes()
returns ENOSYS.

12 years agoNow working on 0.6.9
isaacs [Fri, 20 Jan 2012 05:15:12 +0000 (21:15 -0800)]
Now working on 0.6.9

12 years ago2012.01.19, Version 0.6.8 (stable) v0.6.8
isaacs [Fri, 20 Jan 2012 01:23:56 +0000 (17:23 -0800)]
2012.01.19, Version 0.6.8 (stable)

* Update V8 to 3.6.6.19

* Numeric key hash collision fix for V8 (Erik Corry, Fedor Indutny)

* Add missing TTY key translations for F1-F5 on Windows (Brandon Benvie)

* path.extname bugfix with . and .. paths (Bert Belder)

* cluster: don't always kill the master on uncaughtException (Ben
* Noordhuis)

* Update npm to 1.1.0-2 (isaacs)

* typed arrays: set class name (Ben Noordhuis)

* zlib binding cleanup (isaacs, Bert Belder)

* dgram: use slab memory allocator (Michael Bernstein)

* fix segfault #2473

12 years agoUpgrade V8 to 3.6.6.19
isaacs [Fri, 20 Jan 2012 02:07:12 +0000 (18:07 -0800)]
Upgrade V8 to 3.6.6.19

12 years agov8: link against libsocket and libnsl on sunos
Ben Noordhuis [Thu, 19 Jan 2012 23:05:04 +0000 (23:05 +0000)]
v8: link against libsocket and libnsl on sunos

The V8 debugger requires BSD socket support. Solaris-like systems obviously
support that but you need to link against the right libraries, it's not part of
libc.

12 years agov8: implement VirtualMemory class on SunOS
Ben Noordhuis [Thu, 19 Jan 2012 22:46:20 +0000 (22:46 +0000)]
v8: implement VirtualMemory class on SunOS

Unbreaks build on SunOS. Re-applies 4908e5bf7a9c8014eefcf344e958bf0dad95d907.

12 years agoLand number collision fix for v8 3.6 by Erik Corry
Fedor Indutny [Thu, 19 Jan 2012 15:44:59 +0000 (21:44 +0600)]
Land number collision fix for v8 3.6 by Erik Corry

Update with fixes from: http://codereview.chromium.org/9190001/

12 years agodocs: document common add-on design patterns
Artur Adib [Thu, 19 Jan 2012 15:18:15 +0000 (10:18 -0500)]
docs: document common add-on design patterns

12 years agoCrypto: adding ability to turn off automatic PKCS padding
Ingmar Runge [Fri, 2 Dec 2011 20:04:13 +0000 (21:04 +0100)]
Crypto: adding ability to turn off automatic PKCS padding

12 years agoAdd missing TTY key translations for F1-F5 on Windows
Brandon Benvie [Thu, 29 Dec 2011 07:39:56 +0000 (02:39 -0500)]
Add missing TTY key translations for F1-F5 on Windows

12 years agoMake path.extname do the right thing when the last path component is . or ..
Bert Belder [Wed, 18 Jan 2012 14:09:42 +0000 (15:09 +0100)]
Make path.extname do the right thing when the last path component is . or ..

Closes GH-2526

12 years agobuild: remove node_debug from config.gypi
Ben Noordhuis [Wed, 18 Jan 2012 01:00:43 +0000 (02:00 +0100)]
build: remove node_debug from config.gypi

12 years agocluster: don't always kill the master on uncaughtException
Ben Noordhuis [Tue, 17 Jan 2012 23:10:22 +0000 (00:10 +0100)]
cluster: don't always kill the master on uncaughtException

uncaughtException handlers installed by the user override the default one that
the cluster module installs, the one that kills off the master process.

Fixes #2556.

12 years agodocs: replace expresso with mocha in appendix 1
Dan Williams [Tue, 17 Jan 2012 04:36:01 +0000 (23:36 -0500)]
docs: replace expresso with mocha in appendix 1

12 years agodocs: fix syntax error on cluster api docs
Dan Williams [Tue, 17 Jan 2012 04:36:01 +0000 (23:36 -0500)]
docs: fix syntax error on cluster api docs

12 years agobuild: respect --debug configure switch
Ben Noordhuis [Tue, 17 Jan 2012 22:02:15 +0000 (23:02 +0100)]
build: respect --debug configure switch

12 years agoAdd failing test case: parent on('exit')
Andreas Madsen [Tue, 17 Jan 2012 19:37:11 +0000 (20:37 +0100)]
Add failing test case: parent on('exit')

Fixes #2564

12 years agoLink to Marak's module rap in community page
Ryan Dahl [Tue, 17 Jan 2012 19:32:58 +0000 (11:32 -0800)]
Link to Marak's module rap in community page

12 years agotests: fix more lint issues
Bert Belder [Tue, 17 Jan 2012 19:16:49 +0000 (20:16 +0100)]
tests: fix more lint issues

12 years agoTests: fix jslint issues
Andreas Madsen [Tue, 17 Jan 2012 18:43:34 +0000 (19:43 +0100)]
Tests: fix jslint issues

12 years agoAllow calling fork() without args or options
Andreas Madsen [Tue, 27 Dec 2011 12:08:41 +0000 (13:08 +0100)]
Allow calling fork() without args or options

Closes GH-2424

12 years agochild_process: add errno property to exceptions
Andreas Madsen [Tue, 17 Jan 2012 07:04:50 +0000 (08:04 +0100)]
child_process: add errno property to exceptions

In case of a write failure when using fork() an error would be thrown. The
thrown exception was missing the `errno` property.

12 years agoLand number collision fix for v8 3.6 by Erik Corry
Fedor Indutny [Tue, 17 Jan 2012 16:20:28 +0000 (22:20 +0600)]
Land number collision fix for v8 3.6 by Erik Corry

- If V8 snapshots are enabled then the hash is only randomized at build time.

---
backport @10366, @10367 and @10402 to 3.6

Add seed to hash of numeric keyed properties.

Minor cleanups of numeric seeded hashing patch.

Split NumberDictionary into a randomly seeded and an unseeded version.
We don't want to randomize the stub cache.

Review URL: http://codereview.chromium.org/9190001/

12 years agotls: fix double 'error' events on HTTPS Requests
koichik [Tue, 17 Jan 2012 08:34:53 +0000 (17:34 +0900)]
tls: fix double 'error' events on HTTPS Requests

Fixes #2549.

12 years agotyped arrays: set class name
Ben Noordhuis [Tue, 17 Jan 2012 15:20:37 +0000 (16:20 +0100)]
typed arrays: set class name

Make obj.toString and Object.prototype.toString work correctly for typed arrays.

12 years agoMakefile: Don't force user to run ./configure first
Ryan Dahl [Tue, 17 Jan 2012 07:28:25 +0000 (23:28 -0800)]
Makefile: Don't force user to run ./configure first

12 years agoinstaller: install node-waf
Fedor Indutny [Tue, 17 Jan 2012 05:48:50 +0000 (11:48 +0600)]
installer: install node-waf

* added --without-waf flag for configure script

12 years agoNow working on v0.7.1-pre
Ryan Dahl [Tue, 17 Jan 2012 03:45:39 +0000 (19:45 -0800)]
Now working on v0.7.1-pre

12 years agoBump version to v0.7.0 v0.7.0
Ryan Dahl [Tue, 17 Jan 2012 01:19:17 +0000 (17:19 -0800)]
Bump version to v0.7.0

12 years agoAdd make dist-upload
Ryan Dahl [Tue, 17 Jan 2012 02:52:36 +0000 (18:52 -0800)]
Add make dist-upload

12 years agoFix 'make dist'
Ryan Dahl [Tue, 17 Jan 2012 02:40:12 +0000 (18:40 -0800)]
Fix 'make dist'

12 years agoupgrade libuv to 52511b9ddc
Igor Zinkovsky [Tue, 17 Jan 2012 01:24:53 +0000 (17:24 -0800)]
upgrade libuv to 52511b9ddc

12 years agofix windows build
Igor Zinkovsky [Fri, 16 Dec 2011 02:42:03 +0000 (18:42 -0800)]
fix windows build

12 years agoMerge remote branch 'origin/v0.6'
Ryan Dahl [Mon, 16 Jan 2012 23:20:26 +0000 (15:20 -0800)]
Merge remote branch 'origin/v0.6'

Conflicts:
deps/uv/src/win/util.c
src/udp_wrap.cc

12 years agoUpgrade libuv to joyent/libuv@f5bd21f
Ryan Dahl [Mon, 16 Jan 2012 23:15:34 +0000 (15:15 -0800)]
Upgrade libuv to joyent/libuv@f5bd21f

12 years agoUpdate npm to 1.1.0-2
isaacs [Mon, 16 Jan 2012 23:06:16 +0000 (15:06 -0800)]
Update npm to 1.1.0-2

12 years agofix windows build
Igor Zinkovsky [Mon, 16 Jan 2012 22:26:58 +0000 (14:26 -0800)]
fix windows build

12 years agoUpgrade V8 to 3.8.6
Ryan Dahl [Mon, 16 Jan 2012 22:37:57 +0000 (14:37 -0800)]
Upgrade V8 to 3.8.6

12 years agoRevert "gyp: install node-gyp"
Ryan Dahl [Mon, 16 Jan 2012 22:06:55 +0000 (14:06 -0800)]
Revert "gyp: install node-gyp"

No.

This reverts commit 3d1476a3168effe3edb32510f56cf9b00bce8392.

12 years agogyp: install node-gyp
Fedor Indutny [Mon, 16 Jan 2012 18:17:45 +0000 (00:17 +0600)]
gyp: install node-gyp

* fixes #2480

12 years agohttp: use `util._deprecationWarning` for deprecation warning
Maciej Małecki [Mon, 16 Jan 2012 16:50:18 +0000 (17:50 +0100)]
http: use `util._deprecationWarning` for deprecation warning

12 years agouv: upgrade to e7758e1
Fedor Indutny [Mon, 16 Jan 2012 14:18:37 +0000 (20:18 +0600)]
uv: upgrade to e7758e1

12 years agoRevert "util: always display a warning for module in debug mode"
Fedor Indutny [Mon, 16 Jan 2012 13:33:16 +0000 (19:33 +0600)]
Revert "util: always display a warning for module in debug mode"

This reverts commit df62005ece4bb0be0d5af645fd9093b1506ce63d.

12 years agoutil: always display a warning for module in debug mode
Maciej Małecki [Mon, 16 Jan 2012 12:54:35 +0000 (13:54 +0100)]
util: always display a warning for module in debug mode

12 years agoquerystring: fix maxKeys = 0 is ignored
Fedor Indutny [Mon, 16 Jan 2012 10:13:43 +0000 (16:13 +0600)]
querystring: fix maxKeys = 0 is ignored

12 years agohttp: do not accept headers if limit is exceeded
Fedor Indutny [Mon, 16 Jan 2012 10:11:29 +0000 (16:11 +0600)]
http: do not accept headers if limit is exceeded

* fix limiting when parser was reused
* fix maxHeadersCount = 0 is ignored ( credit to @koichik )
* add test-http-max-headers-count.js ( credit to @koichik )

12 years agoisolates: remove references to uv_thread_self()
Ben Noordhuis [Mon, 16 Jan 2012 00:41:26 +0000 (01:41 +0100)]
isolates: remove references to uv_thread_self()

uv_thread_self() is difficult to implement on Windows in a way where the return
value is valid across threads. It's already been removed from upstream libuv.

12 years agohttp, querystring: added limits to prevent DoS
Fedor Indutny [Sun, 15 Jan 2012 19:45:31 +0000 (01:45 +0600)]
http, querystring: added limits to prevent DoS

12 years agobuild: support --dest-cpu configure switch again
Ben Noordhuis [Sun, 15 Jan 2012 15:50:58 +0000 (16:50 +0100)]
build: support --dest-cpu configure switch again

12 years agotest-eio-limit: add missing copyright headers
Fedor Indutny [Sat, 14 Jan 2012 17:51:53 +0000 (23:51 +0600)]
test-eio-limit: add missing copyright headers

12 years agoAdd failing test-eio-limit.js
Fedor Indutny [Sat, 14 Jan 2012 17:48:56 +0000 (23:48 +0600)]
Add failing test-eio-limit.js

12 years agonet: make .write() throw on bad input
Ben Noordhuis [Sat, 14 Jan 2012 01:13:22 +0000 (02:13 +0100)]
net: make .write() throw on bad input

Passing a non-buffer or non-string argument to Socket.prototype.write triggered
an assert:

  Assertion failed: (Buffer::HasInstance(args[0])), function Write,
  file ../src/stream_wrap.cc, line 289.

Fixes #2532.