Felix Geisendörfer [Tue, 8 May 2012 20:02:28 +0000 (22:02 +0200)]
Fix exception output for module load exceptions
So instead of:
node.js:201
throw e; // process.nextTick error, or 'error' event on first tick
^
You will now see:
path/to/foo.js:1
throw new Error('bar');
^
This is a sub-set of isaacs patch here:
https://github.com/joyent/node/issues/3235
The difference is that this patch purely adresses the exception output,
but does not try to make any behavior changes / improvements.
Felix Geisendörfer [Tue, 8 May 2012 14:07:14 +0000 (16:07 +0200)]
Fix process.nextTick throw call sites
This patch now reports the proper throw call site for exceptions
triggered within process.nextTick. So instead of this:
node.js:201
throw e; // process.nextTick error, or 'error' event on first tick
^
You will now see:
mydir/myscript.js:15
throw new Error('My Error');
^
From my testing this patch causes no performance regressions, but does
greatly simplify processing the nextTickQueue.
Ben Noordhuis [Mon, 7 May 2012 15:04:56 +0000 (17:04 +0200)]
zlib: fix error reporting
This commit is a back-port of the changes on the master branch.
Fixes #3230.
isaacs [Mon, 7 May 2012 21:19:16 +0000 (14:19 -0700)]
Don't destroy on timeout
isaacs [Mon, 7 May 2012 21:17:17 +0000 (14:17 -0700)]
Fix #3231. Don't try to emit error on a null'ed req object
Ben Noordhuis [Mon, 7 May 2012 20:49:10 +0000 (22:49 +0200)]
test: add failing HTTP client timeout test
See #3231.
isaacs [Sat, 5 May 2012 01:29:56 +0000 (18:29 -0700)]
test: No need for weak in 'make test'
isaacs [Fri, 4 May 2012 20:34:33 +0000 (13:34 -0700)]
Now working on 0.6.18
isaacs [Fri, 4 May 2012 20:34:08 +0000 (13:34 -0700)]
Merge branch 'v0.6.17-release' into v0.6
isaacs [Fri, 4 May 2012 18:21:08 +0000 (11:21 -0700)]
2012.05.04 Version 0.6.17 (stable)
* Upgrade npm to 1.1.21
* uv: Add support for EROFS errors (Ben Noordhuis, Maciej Małecki)
* uv: Add support for EIO and ENOSPC errors (Fedor Indutny)
* windows: Add support for EXDEV errors (Bert Belder)
* http: Fix client memory leaks (isaacs, Vincent Voyer)
* fs: fix file descriptor leak in sync functions (Ben Noordhuis)
* fs: fix ReadStream / WriteStream double close bug (Ben Noordhuis)
isaacs [Fri, 4 May 2012 19:51:37 +0000 (12:51 -0700)]
test: Run weak install with --unsafe-perm
This way it doesn't die when running as root.
isaacs [Fri, 4 May 2012 18:06:35 +0000 (11:06 -0700)]
Upgrade npm to 1.1.21
isaacs [Fri, 4 May 2012 18:00:39 +0000 (11:00 -0700)]
isaacs [Fri, 4 May 2012 17:57:33 +0000 (10:57 -0700)]
Update Authors
isaacs [Fri, 4 May 2012 17:54:24 +0000 (10:54 -0700)]
Merge branch 'http-memleak' into v0.6
isaacs [Fri, 4 May 2012 17:40:27 +0000 (10:40 -0700)]
http: Clean up parser usage
Move parsers.free(parser) to a single function, which also
nulls all of the various references we hang on them.
Also, move the parser.on* methods out of the closure, so that
there's one shared definition of each, instead of re-defining
for each parser in a spot where they can close over references
to other request-specific objects.
isaacs [Fri, 4 May 2012 17:32:42 +0000 (10:32 -0700)]
Clean up gc tests
This fixes the additional issues brought up in #3179.
ANDO Takahiro [Tue, 1 May 2012 02:41:29 +0000 (11:41 +0900)]
doc: fix callback argument of child_process.exec, execFile
Fixes #3196.
isaacs [Thu, 3 May 2012 17:39:16 +0000 (10:39 -0700)]
http: .once() usage in setTimeout
isaacs [Thu, 3 May 2012 17:16:25 +0000 (10:16 -0700)]
Tests for memory leaks
isaacs [Thu, 3 May 2012 17:20:20 +0000 (10:20 -0700)]
http leak: Null links from parser to req/res
vvo [Thu, 26 Apr 2012 23:02:10 +0000 (01:02 +0200)]
Fix #3179 HTTP memory leak using ClientRequest.
Ben Noordhuis [Wed, 2 May 2012 23:03:08 +0000 (01:03 +0200)]
fs: fix file descriptor leak in sync functions
Fixes #3202. This is a back-port of commit 4e290e4.
Ben Noordhuis [Wed, 2 May 2012 02:24:38 +0000 (04:24 +0200)]
fs: fix ReadStream / WriteStream double close bug
* Calling fs.ReadStream.destroy() or fs.WriteStream.destroy() twice would close
the file descriptor twice. That's bad because the file descriptor may have
been repurposed in the mean time.
* A bad value check in fs.ReadStream.prototype.destroy() would prevent a stream
created with fs.createReadStream({fd:0}) from getting closed.
isaacs [Wed, 2 May 2012 19:13:54 +0000 (12:13 -0700)]
http client: Destroy on timeout
isaacs [Tue, 1 May 2012 22:25:59 +0000 (15:25 -0700)]
http: Remove socket ondata/onend in parser cleanup
isaacs [Tue, 1 May 2012 21:26:18 +0000 (14:26 -0700)]
Null references to request object on socket errors.
Regarding #3199 and #3179 and issues seen in production.
Hopefully this fixes them.
isaacs [Tue, 1 May 2012 20:31:26 +0000 (13:31 -0700)]
Now working on 0.6.17
isaacs [Mon, 30 Apr 2012 20:15:40 +0000 (13:15 -0700)]
Merge branch 'v0.6.16-release' into v0.6
isaacs [Fri, 27 Apr 2012 21:33:15 +0000 (14:33 -0700)]
2012.04.30 Version 0.6.16 (stable)
* Upgrade V8 to 3.6.6.25
* Upgrade npm to 1.1.19
* Windows: add mappings for UV_ENOENT (Bert Belder)
* linux: add IN_MOVE_SELF to inotify event mask (Ben Noordhuis)
* unix: call pipe handle connection cb on accept() error (Ben Noordhuis)
* unix: handle EWOULDBLOCK (Ben Noordhuis)
* map EWOULDBLOCK to UV_EAGAIN (Ben Noordhuis)
* Map ENOMEM to UV_ENOMEM (isaacs)
* Child process: support the `gid` and `uid` options (Bert Belder)
* test: cluster: add worker death event test (Ben Noordhuis)
* typo in node_http_parser (isaacs)
* http_parser: Eat CRLF between requests, even on connection:close. (Ben Noordhuis)
* don't check return value of unsetenv (Ben Noordhuis)
isaacs [Mon, 30 Apr 2012 17:30:05 +0000 (10:30 -0700)]
Fix #3194 correct url documentation
isaacs [Mon, 30 Apr 2012 15:37:53 +0000 (08:37 -0700)]
Indentation fix
isaacs [Fri, 27 Apr 2012 22:01:31 +0000 (15:01 -0700)]
Upgrade npm to 1.1.18
ssuda [Tue, 20 Mar 2012 15:39:49 +0000 (21:09 +0530)]
process: don't use strdup()
file and cwd can be directly used from Utf8Value.
Conflicts:
src/process_wrap.cc
Bert Belder [Sat, 28 Apr 2012 21:36:47 +0000 (23:36 +0200)]
process_wrap: avoid leaking memory when throwing due to invalid arguments
Bert Belder [Fri, 27 Apr 2012 20:13:00 +0000 (22:13 +0200)]
Child process: support the `gid` and `uid` options
Bert Belder [Fri, 27 Apr 2012 20:06:12 +0000 (22:06 +0200)]
Windows: turn off /Gm
Otherwise multicode compile doesn't work.
Bert Belder [Fri, 27 Apr 2012 20:00:44 +0000 (22:00 +0200)]
uv: upgrade to
d41cc9118d
Bert Belder [Fri, 27 Apr 2012 19:28:56 +0000 (21:28 +0200)]
uv: upgrade to
aea5db5da1
isaacs [Fri, 27 Apr 2012 14:58:38 +0000 (07:58 -0700)]
Add customary 'fork me on github' banner to website
Ben Noordhuis [Mon, 23 Apr 2012 13:58:32 +0000 (15:58 +0200)]
test: cluster: add worker death event test
isaacs [Fri, 20 Apr 2012 14:46:36 +0000 (07:46 -0700)]
doc: typo in child_process documentation
Brian White [Fri, 20 Apr 2012 06:57:14 +0000 (02:57 -0400)]
docs: Remove duplicate socket.write() description
isaacs [Wed, 18 Apr 2012 02:24:28 +0000 (19:24 -0700)]
typo in node_http_parser
Dane Springmeyer [Wed, 18 Apr 2012 17:32:02 +0000 (10:32 -0700)]
deps: fix v8 build error
Pull in build error fix from http://code.google.com/p/v8/source/detail?r=9505
Missed in
5d69bbfbd.
lrn@chromium.org [Mon, 3 Oct 2011 10:31:01 +0000 (10:31 +0000)]
Fix bug in x64 RegExp detecting start of string.
Also add missing MIPS case in regexp tracer.
Fixes issues v8:1748 and v8:1746
BUG=v8:1748, v8:1746
TEST=mjsunit/regress/regress-1748.js
Review URL: http://codereview.chromium.org/8116001
git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@9504
ce2b1a6d-e550-0410-aec6-
3dcde31c8c00
Dave Pacheco [Wed, 8 Feb 2012 00:50:05 +0000 (16:50 -0800)]
disable omit-frame-pointer on solaris systems
isaacs [Thu, 2 Feb 2012 23:37:59 +0000 (15:37 -0800)]
Patches floating on v8
Bert Belder [Mon, 16 Apr 2012 15:27:16 +0000 (17:27 +0200)]
Upgrade V8 to 3.6.6.25
Ben Noordhuis [Sat, 31 Mar 2012 21:23:46 +0000 (23:23 +0200)]
node: don't check return value of unsetenv()
It returns void on some platforms, notably FreeBSD.
Ben Noordhuis [Sat, 14 Apr 2012 21:12:36 +0000 (23:12 +0200)]
deps: upgrade http_parser to joyent/http-parser@da91852
isaacs [Wed, 11 Apr 2012 01:29:25 +0000 (18:29 -0700)]
Fix #3089 Build changelog.html for website
isaacs [Wed, 11 Apr 2012 01:22:42 +0000 (18:22 -0700)]
Makefile: minor nit
isaacs [Mon, 9 Apr 2012 17:34:54 +0000 (10:34 -0700)]
Now working on v0.6.16
isaacs [Mon, 9 Apr 2012 17:34:32 +0000 (10:34 -0700)]
Merge branch 'v0.6.15-release' into v0.6
isaacs [Sat, 7 Apr 2012 23:59:54 +0000 (16:59 -0700)]
2012.04.09 Version 0.6.15 (stable)
* Update npm to 1.1.16
* Show licenses in binary installers.
* unix: add uv_fs_read64, uv_fs_write64 and uv_fs_ftruncate64 (Ben Noordhuis)
* add 64bit offset fs functions (Igor Zinkovsky)
* windows: don't report ENOTSOCK when attempting to bind an udp handle twice (Bert Belder)
* windows: backport pipe-connect-to-file fixes from master (Bert Belder)
* windows: never call fs event callbacks after closing the watcher (Bert Belder)
* fs.readFile: don't make the callback before the fd is closed (Bert Belder)
* windows: use 64bit offsets for uv_fs apis (Igor Zinkovsky)
* Fix #2061: segmentation fault on OS X due to stat size mismatch (Ben Noordhuis)
isaacs [Mon, 9 Apr 2012 15:39:13 +0000 (08:39 -0700)]
fs.WriteStream: Handle modifications to fs.open
If the fs.open method is modified via AOP-style extension, in between
the creation of an fs.WriteStream and the processing of its action
queue, then the test of whether or not the method === fs.open will fail,
because fs.open has been replaced.
The solution is to save a reference to fs.open on the stream itself when
the action is placed in the queue.
This fixes isaacs/node-graceful-fs#6.
isaacs [Sat, 7 Apr 2012 23:53:18 +0000 (16:53 -0700)]
fs.readFile: Emit 'close' if we don't expect a close later
This fixes a regression introduced by 40b7302
isaacs [Thu, 29 Mar 2012 23:01:27 +0000 (16:01 -0700)]
Make rules for release blog post and email message
isaacs [Sat, 7 Apr 2012 23:29:37 +0000 (16:29 -0700)]
website: Add October Sky JS and Node.js Hispano
isaacs [Sat, 7 Apr 2012 23:20:42 +0000 (16:20 -0700)]
Remove stray comment from LICENSE file
Bert Belder [Wed, 4 Apr 2012 16:06:33 +0000 (18:06 +0200)]
Windows: installer shows license agreement dialog
Bert Belder [Wed, 4 Apr 2012 16:06:00 +0000 (18:06 +0200)]
Windows: add build step that generates license.rtf from LICENSE
Ryan Dahl [Mon, 2 Apr 2012 22:14:52 +0000 (15:14 -0700)]
Mac installer shows license
ref #3056
Ryan Dahl [Mon, 2 Apr 2012 22:12:23 +0000 (15:12 -0700)]
Include text of licenses in LICENSE file
For easy inclusion in binary distributions. ref #3056
Ryan Dahl [Mon, 2 Apr 2012 21:36:23 +0000 (14:36 -0700)]
Fix links to libev and libeio licenses
isaacs [Fri, 6 Apr 2012 21:42:19 +0000 (14:42 -0700)]
Update npm to 1.1.16
Igor Zinkovsky [Fri, 6 Apr 2012 01:15:10 +0000 (18:15 -0700)]
enable test-fs-largefile.js test
Bert Belder [Fri, 6 Apr 2012 01:02:23 +0000 (03:02 +0200)]
Please the compiler
Bert Belder [Fri, 6 Apr 2012 00:54:33 +0000 (02:54 +0200)]
fs.readFile: don't make the callback before the fd is closed
On Windows it is not possible to unlink() the read file in the callback.
This fixes #3051. A test is included.
Igor Zinkovsky [Fri, 6 Apr 2012 00:10:39 +0000 (17:10 -0700)]
Igor Zinkovsky [Thu, 5 Apr 2012 23:03:11 +0000 (16:03 -0700)]
windows: use 64bit offsets for uv_fs apis
Ben Noordhuis [Mon, 2 Apr 2012 21:44:36 +0000 (23:44 +0200)]
build: define _DARWIN_USE_64_BIT_INODE=1 on OS X
Fixes a segmentation fault on some OS X systems due to sizeof(struct stat)
mismatches.
Fixes #2061.
Nathan Rajlich [Wed, 14 Mar 2012 01:31:04 +0000 (18:31 -0700)]
js2c: fix to support files other than ones ending with 2 char extensions
Previously this was basically hard-coded for *.js files, but now we
need to include the 'config.gypi' file in there as well.
isaacs [Sat, 31 Mar 2012 01:21:50 +0000 (18:21 -0700)]
website: Consistency in the industry logos
isaacs [Sat, 24 Mar 2012 08:39:39 +0000 (01:39 -0700)]
Fix #3001 website update 'latest' links on publish
isaacs [Fri, 23 Mar 2012 18:17:08 +0000 (11:17 -0700)]
Now working on v0.6.15
isaacs [Fri, 23 Mar 2012 18:16:31 +0000 (11:16 -0700)]
Merge branch 'v0.6.14-release' into v0.6
isaacs [Fri, 23 Mar 2012 00:32:11 +0000 (17:32 -0700)]
2012.03.22 Version 0.6.14 (stable)
* net: don't crash when queued write fails (Igor Zinkovsky)
* sunos: fix EMFILE on process.memoryUsage() (Bryan Cantrill)
* crypto: fix compile-time error with openssl 0.9.7e (Ben Noordhuis)
* unix: ignore ECONNABORTED errors from accept() (Ben Noordhuis)
* Add UV_ENOSPC and mappings to it (Bert Belder)
* http-parser: Fix response body is not read (koichik)
* Upgrade npm to 1.1.12
- upgrade node-gyp to 0.3.7
- work around AV-locked directories on Windows
- Fix isaacs/npm#2293 Don't try to 'uninstall' /
- Exclude symbolic links from packages.
- Fix isaacs/npm#2275 Spurious 'unresolvable cycle' error.
- Exclude/include dot files as if they were normal files
isaacs [Fri, 16 Mar 2012 15:19:18 +0000 (08:19 -0700)]
doc: Remove extraneous index.html's from hyperlinks
isaacs [Fri, 16 Mar 2012 15:13:41 +0000 (08:13 -0700)]
Remove hard-coded version number from docs
Igor Zinkovsky [Tue, 20 Mar 2012 07:21:38 +0000 (00:21 -0700)]
don't crash when queued write fails
isaacs [Thu, 22 Mar 2012 23:44:04 +0000 (16:44 -0700)]
Upgrade libuv to 8409a67
isaacs [Thu, 22 Mar 2012 23:43:28 +0000 (16:43 -0700)]
Remove unused fast-list module from npm
isaacs [Thu, 22 Mar 2012 23:38:58 +0000 (16:38 -0700)]
Upgrade npm to 1.1.12
Bryan Cantrill [Thu, 22 Mar 2012 23:06:35 +0000 (23:06 +0000)]
sunos: fix EMFILE on process.memoryUsage()
Ben Noordhuis [Thu, 22 Mar 2012 14:52:12 +0000 (15:52 +0100)]
crypto: fix compile-time error with openssl <= 0.9.7e
isaacs [Sat, 17 Mar 2012 18:07:28 +0000 (11:07 -0700)]
Fix include logic was replacing https include with http
isaacs [Sat, 17 Mar 2012 18:00:05 +0000 (11:00 -0700)]
Ignore 'making a build' artifacts
koichik [Sat, 17 Mar 2012 15:50:47 +0000 (00:50 +0900)]
test: HTTP responses with no content-length
Refs: #2952.
Ben Noordhuis [Sat, 17 Mar 2012 14:50:43 +0000 (15:50 +0100)]
deps: upgrade http_parser to joyent/http-parser@b47c44d
Rod Vagg [Fri, 16 Mar 2012 02:43:00 +0000 (13:43 +1100)]
doc: fix # links from (and within) api/fs
isaacs [Thu, 15 Mar 2012 17:33:33 +0000 (10:33 -0700)]
Now working on v0.6.14
isaacs [Thu, 15 Mar 2012 17:32:58 +0000 (10:32 -0700)]
Merge branch 'v0.6.13-release' into v0.6
isaacs [Thu, 15 Mar 2012 00:07:24 +0000 (17:07 -0700)]
2012.03.15 Version 0.6.13 (stable)
* Windows: Many libuv test fixes (Bert Belder)
* Windows: avoid uv_guess_handle crash in when fd < 0 (Bert Belder)
* Map EBUSY and ENOTEMPTY errors (Bert Belder)
* Windows: include syscall in fs errors (Bert Belder)
* Fix fs.watch ENOSYS on Linux kernel version mismatch (Ben Noordhuis)
* Update npm to 1.1.9
- upgrade node-gyp to 0.3.5 (Nathan Rajlich)
- Fix isaacs/npm#2249 Add cache-max and cache-min configs
- Properly redirect across https/http registry requests
- log config usage if undefined key in set function (Kris Windham)
- Add support for os/cpu fields in package.json (Adam Blackburn)
- Automatically node-gyp packages containing a binding.gyp
- Fix failures unpacking in UNC shares
- Never create un-listable directories
- Handle cases where an optionalDependency fails to build
isaacs [Thu, 15 Mar 2012 15:22:31 +0000 (08:22 -0700)]
makefile: Fix 'make doc'
isaacs [Thu, 15 Mar 2012 15:14:22 +0000 (08:14 -0700)]
Upgrade libuv to
66a959c4052
isaacs [Wed, 14 Mar 2012 23:39:15 +0000 (16:39 -0700)]
Update npm to 1.1.9
isaacs [Wed, 14 Mar 2012 23:30:35 +0000 (16:30 -0700)]
Update uv to 5d21056
Artur Adib [Fri, 9 Mar 2012 14:35:39 +0000 (09:35 -0500)]
Doc highlight fix