platform/upstream/nodejs.git
12 years agoSupport addons with gyp
Ryan Dahl [Wed, 21 Dec 2011 06:03:32 +0000 (22:03 -0800)]
Support addons with gyp

Initial pass.

12 years agoRemove visibility=hidden options from common.gypi
Ryan Dahl [Wed, 21 Dec 2011 06:02:47 +0000 (22:02 -0800)]
Remove visibility=hidden options from common.gypi

Not necessary and preventing addon loading.

12 years agoRemove unnecessary stuff from node.gyp
Ryan Dahl [Wed, 21 Dec 2011 04:26:13 +0000 (20:26 -0800)]
Remove unnecessary stuff from node.gyp

12 years agoFix 'make install'
Ryan Dahl [Tue, 20 Dec 2011 02:06:19 +0000 (18:06 -0800)]
Fix 'make install'

Broken in 45605c because configure does not spit out proper JavaScript.
Needed to change single quotes to double.

12 years agoAdd missing return statement in _debugPause() binding.
Ben Noordhuis [Mon, 19 Dec 2011 23:30:41 +0000 (00:30 +0100)]
Add missing return statement in _debugPause() binding.

12 years agogyp: switch json for pprint when generating config
jbergstroem [Sun, 18 Dec 2011 22:53:07 +0000 (23:53 +0100)]
gyp: switch json for pprint when generating config

12 years agobuild: remove unused cmakelist
jbergstroem [Sun, 18 Dec 2011 22:48:27 +0000 (23:48 +0100)]
build: remove unused cmakelist

12 years agoassert: test `RegExp`'s properties when checking for equality
Maciej Małecki [Mon, 19 Dec 2011 22:28:42 +0000 (23:28 +0100)]
assert: test `RegExp`'s properties when checking for equality

Previous code ignored the fact that `/a/ != /a/g`.

Test case included.

12 years agoassert: .deepEqual() support for RegExp objects
Pedro Teixeira [Wed, 2 Feb 2011 11:09:02 +0000 (11:09 +0000)]
assert: .deepEqual() support for RegExp objects

12 years agogyp: include opensslconf.h on x64
Ben Noordhuis [Mon, 19 Dec 2011 22:24:29 +0000 (23:24 +0100)]
gyp: include opensslconf.h on x64

Good news, it means we don't have to compile with OPENSSL_NO_ASM=1 after all.

12 years agogyp: compile openssl with OPENSSL_NO_ASM=1
Ben Noordhuis [Mon, 19 Dec 2011 21:55:11 +0000 (22:55 +0100)]
gyp: compile openssl with OPENSSL_NO_ASM=1

Fixes linker error "undefined reference to `OPENSSL_ia32_cpuid'". This is
sub-optimal and needs to be revisited, the plain C implementations are often
much slower.

12 years agoGYP: don't build V8 twice
Ryan Dahl [Mon, 19 Dec 2011 21:41:04 +0000 (13:41 -0800)]
GYP: don't build V8 twice

12 years agodebugger: document pause and setBreakpoint(line)
Fedor Indutny [Mon, 19 Dec 2011 21:09:54 +0000 (03:09 +0600)]
debugger: document pause and setBreakpoint(line)

Fixes #2381

12 years agoRemove debug console.log and optimize object copy
Andreas Madsen [Mon, 19 Dec 2011 21:08:52 +0000 (22:08 +0100)]
Remove debug console.log and optimize object copy

Fixes #2380

12 years agoUpgrade V8 to 3.8.1
Ryan Dahl [Mon, 19 Dec 2011 21:06:19 +0000 (13:06 -0800)]
Upgrade V8 to 3.8.1

12 years agoAdd env argument to cluster.fork
Andreas Madsen [Mon, 19 Dec 2011 19:48:03 +0000 (20:48 +0100)]
Add env argument to cluster.fork

Fixes 2378

12 years agobreak on exception
Fedor Indutny [Sat, 17 Dec 2011 06:02:51 +0000 (12:02 +0600)]
break on exception

Fixes #2304

12 years agouse inlineRefs, as it's already impl
Fedor Indutny [Wed, 14 Dec 2011 12:33:58 +0000 (18:33 +0600)]
use inlineRefs, as it's already impl

12 years agopass noRefs as arguments
Fedor Indutny [Wed, 14 Dec 2011 07:53:30 +0000 (13:53 +0600)]
pass noRefs as arguments

12 years agopause command
Fedor Indutny [Sat, 10 Dec 2011 16:52:07 +0000 (22:52 +0600)]
pause command

12 years agoallow setBreakpoint(line)
Fedor Indutny [Sat, 10 Dec 2011 16:34:50 +0000 (22:34 +0600)]
allow setBreakpoint(line)

12 years agopreserve cursor pos
Fedor Indutny [Fri, 9 Dec 2011 09:24:15 +0000 (15:24 +0600)]
preserve cursor pos

* configurable via .prompt()'s preserveCursor argument (false by default)

12 years agorequest backtrace w/o refs, see #1745
Fedor Indutny [Fri, 9 Dec 2011 08:41:48 +0000 (14:41 +0600)]
request backtrace w/o refs, see #1745

12 years agotest: Add test case for MODULE_NOT_FOUND.
Nathan Rajlich [Sun, 18 Dec 2011 21:33:48 +0000 (13:33 -0800)]
test: Add test case for MODULE_NOT_FOUND.

12 years agodocs: Add docs for MODULE_NOT_FOUND error.
Nathan Rajlich [Sun, 18 Dec 2011 21:31:16 +0000 (13:31 -0800)]
docs: Add docs for MODULE_NOT_FOUND error.

12 years agomodule: Set the error.code to 'MODULE_NOT_FOUND' when a bad path is given to require.
Nathan Rajlich [Sun, 18 Dec 2011 21:22:10 +0000 (13:22 -0800)]
module: Set the error.code to 'MODULE_NOT_FOUND' when a bad path is given to require.

Fixes #2358.

12 years agoFix make targets so they detect changes
Ryan Dahl [Sun, 18 Dec 2011 23:10:01 +0000 (15:10 -0800)]
Fix make targets so they detect changes

Broken in 10d92b3

12 years agoutil: output Dates with Date.toString not Date.toUTCString
Avi Flax [Sun, 18 Dec 2011 16:29:37 +0000 (11:29 -0500)]
util: output Dates with Date.toString not Date.toUTCString

12 years agoAdd silent option to child_process.fork
Andreas Madsen [Sat, 17 Dec 2011 10:52:40 +0000 (11:52 +0100)]
Add silent option to child_process.fork

Fixes #2354.

12 years agosaner targets
Ryan Dahl [Sat, 17 Dec 2011 11:23:17 +0000 (03:23 -0800)]
saner targets

12 years ago--without-npm option
Fedor Indutny [Sat, 17 Dec 2011 08:09:14 +0000 (14:09 +0600)]
--without-npm option

Fixes #2353.

12 years agogyp: use built-in openssl by default
Ryan Dahl [Fri, 16 Dec 2011 23:00:23 +0000 (15:00 -0800)]
gyp: use built-in openssl by default

12 years agoUpgrade GYP to r1107
Ryan Dahl [Fri, 16 Dec 2011 22:06:29 +0000 (14:06 -0800)]
Upgrade GYP to r1107

12 years agoMerge remote branch 'origin/v0.6'
Ryan Dahl [Fri, 16 Dec 2011 21:57:36 +0000 (13:57 -0800)]
Merge remote branch 'origin/v0.6'

Conflicts:
wscript

12 years agoRemove UVTEST from makefile
Ryan Dahl [Fri, 16 Dec 2011 21:46:42 +0000 (13:46 -0800)]
Remove UVTEST from makefile

12 years agoupgrade libuv to cb70db1
Ryan Dahl [Fri, 16 Dec 2011 21:35:08 +0000 (13:35 -0800)]
upgrade libuv to cb70db1

12 years agojslint
Andreas Madsen [Fri, 9 Dec 2011 12:00:40 +0000 (13:00 +0100)]
jslint

Fixes #2306

12 years agosimple DTrace ustack helper
Dave Pacheco [Fri, 16 Dec 2011 00:51:33 +0000 (16:51 -0800)]
simple DTrace ustack helper

12 years agodocument mode argument for fs.symlink
Igor Zinkovsky [Fri, 16 Dec 2011 19:01:06 +0000 (11:01 -0800)]
document mode argument for fs.symlink

12 years agouv: upgrade to d808cf9
Ben Noordhuis [Fri, 16 Dec 2011 14:56:41 +0000 (15:56 +0100)]
uv: upgrade to d808cf9

12 years agodoc: correct http.Server.listen()
koichik [Fri, 16 Dec 2011 09:20:27 +0000 (18:20 +0900)]
doc: correct http.Server.listen()

Fixes #2325.

12 years agocrypto: rewrite HexDecode without snprintf
Roman Shtylman [Thu, 1 Dec 2011 05:41:06 +0000 (00:41 -0500)]
crypto: rewrite HexDecode without snprintf

No need to use snprintf to create a hex string. It creates
more overhead than is needed. This new version is much faster.

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

12 years agoRemove platform files, and use uv platform api
Igor Zinkovsky [Thu, 15 Dec 2011 20:36:05 +0000 (12:36 -0800)]
Remove platform files, and use uv platform api

12 years agocrypto: don't ignore DH init errors
Ben Noordhuis [Thu, 15 Dec 2011 16:39:11 +0000 (17:39 +0100)]
crypto: don't ignore DH init errors

12 years agofix windows build
Igor Zinkovsky [Fri, 16 Dec 2011 01:18:28 +0000 (17:18 -0800)]
fix windows build

12 years agoupgrade libuv to 8e50b6043da7b3221f51b3158033255c9a210d08
Igor Zinkovsky [Thu, 15 Dec 2011 23:56:42 +0000 (15:56 -0800)]
upgrade libuv to 8e50b6043da7b3221f51b3158033255c9a210d08

12 years agoDon't print args from gyp_node
Ryan Dahl [Thu, 15 Dec 2011 21:19:36 +0000 (13:19 -0800)]
Don't print args from gyp_node

12 years agouse rsync instead of scp to upload website
Ryan Dahl [Thu, 15 Dec 2011 20:50:48 +0000 (12:50 -0800)]
use rsync instead of scp to upload website

12 years agonow working on 0.6.7
isaacs [Thu, 15 Dec 2011 19:08:28 +0000 (11:08 -0800)]
now working on 0.6.7

12 years ago2011.12.14, Version 0.6.6 (stable) v0.6.6
isaacs [Thu, 15 Dec 2011 00:59:37 +0000 (16:59 -0800)]
2011.12.14, Version 0.6.6 (stable)

* npm update to 1.1.0-beta-4 (Isaac Z. Schlueter)

* cli: fix output of --help (Ben Noordhuis)

* new website

* pause/resume semantics for stdin (Isaac Z. Schlueter)

* Travis CI integration (Maciej Małecki)

* child_process: Fix bug regarding closed stdin (Ben Noordhuis)

* Enable upgrades in MSI. (Igor Zinkovsky)

* net: Fixes memory leak (Ben Noordhuis)

* fs: handle fractional or NaN ReadStream buffer size (Ben Noordhuis)

* crypto: fix memory leaks in PBKDF2 error path (Ben Noordhuis)

12 years agonpm 1.1.0-beta-4
isaacs [Thu, 15 Dec 2011 16:32:07 +0000 (08:32 -0800)]
npm 1.1.0-beta-4

12 years agoFix doc generation for new website
Ryan Dahl [Thu, 15 Dec 2011 02:18:47 +0000 (18:18 -0800)]
Fix doc generation for new website

12 years agoAdd process.abort
Robert Mustacchi [Thu, 15 Dec 2011 01:02:15 +0000 (17:02 -0800)]
Add process.abort

12 years agoUpgrade V8 to 3.6.6.14
Ryan Dahl [Thu, 15 Dec 2011 00:33:07 +0000 (16:33 -0800)]
Upgrade V8 to 3.6.6.14

12 years agonpm 1.1.0-beta-3
isaacs [Thu, 15 Dec 2011 00:27:01 +0000 (16:27 -0800)]
npm 1.1.0-beta-3

12 years agoAdd docs.nodejitsu.com to community page
Ryan Dahl [Wed, 14 Dec 2011 23:19:03 +0000 (15:19 -0800)]
Add docs.nodejitsu.com to community page

12 years agoUpgrade V8 to 3.8.0
Ryan Dahl [Wed, 14 Dec 2011 23:02:32 +0000 (15:02 -0800)]
Upgrade V8 to 3.8.0

12 years agoImplement make install
Fedor Indutny [Wed, 14 Dec 2011 13:00:10 +0000 (19:00 +0600)]
Implement make install

Fixes #2331, #2197, #2283

12 years agonpm 1.1.0-beta-2
isaacs [Wed, 14 Dec 2011 02:53:02 +0000 (18:53 -0800)]
npm 1.1.0-beta-2

12 years agoProperly support old IE DOM methods.
isaacs [Tue, 13 Dec 2011 19:11:14 +0000 (11:11 -0800)]
Properly support old IE DOM methods.

12 years agoAdd changelog link to website
Ryan Dahl [Wed, 14 Dec 2011 19:11:32 +0000 (11:11 -0800)]
Add changelog link to website

12 years agoutil: add internal function _deprecationWarning()
Ben Noordhuis [Wed, 14 Dec 2011 12:28:51 +0000 (13:28 +0100)]
util: add internal function _deprecationWarning()

12 years agotest: binding twice to the same port should raise an error
Ben Noordhuis [Wed, 14 Dec 2011 02:39:20 +0000 (03:39 +0100)]
test: binding twice to the same port should raise an error

12 years ago.gitignore core and vgcore files
Ben Noordhuis [Wed, 14 Dec 2011 02:38:41 +0000 (03:38 +0100)]
.gitignore core and vgcore files

12 years agocrypto: deduplicate encoding parsing logic
Ben Noordhuis [Wed, 14 Dec 2011 01:56:23 +0000 (02:56 +0100)]
crypto: deduplicate encoding parsing logic

12 years agobuild: update 'make install' warning message
Ben Noordhuis [Wed, 14 Dec 2011 01:49:34 +0000 (02:49 +0100)]
build: update 'make install' warning message

12 years agocrypto: deduplicate decipher logic
Ben Noordhuis [Wed, 14 Dec 2011 01:32:07 +0000 (02:32 +0100)]
crypto: deduplicate decipher logic

12 years agocrypto: fix memory leak when decrypting empty strings
Ben Noordhuis [Tue, 13 Dec 2011 20:22:15 +0000 (21:22 +0100)]
crypto: fix memory leak when decrypting empty strings

Also fixes a dangling pointer delete[] in the error path.

12 years agocrypto: fix memory leaks in PBKDF2 error path
Ben Noordhuis [Tue, 13 Dec 2011 17:08:18 +0000 (18:08 +0100)]
crypto: fix memory leaks in PBKDF2 error path

12 years agofs: handle fractional or NaN ReadStream buffer size
Ben Noordhuis [Tue, 13 Dec 2011 15:30:53 +0000 (16:30 +0100)]
fs: handle fractional or NaN ReadStream buffer size

Fixes #2320.

12 years agofs: fix typo in error message
Ben Noordhuis [Tue, 13 Dec 2011 15:02:14 +0000 (16:02 +0100)]
fs: fix typo in error message

12 years agomake jobs the last nav
Ryan Dahl [Mon, 12 Dec 2011 22:40:00 +0000 (14:40 -0800)]
make jobs the last nav

fixes display bug

12 years agobetter <br>s
Ryan Dahl [Mon, 12 Dec 2011 22:34:37 +0000 (14:34 -0800)]
better <br>s

12 years agoReorder nav
Ryan Dahl [Mon, 12 Dec 2011 22:20:27 +0000 (14:20 -0800)]
Reorder nav

12 years agoWebsite js/css tweaks
isaacs [Mon, 12 Dec 2011 22:19:14 +0000 (14:19 -0800)]
Website js/css tweaks

Remove jquery
Use HTML5 doctype
Simpler clearfix implementation
Close download dialog with <Esc> key

12 years agonet: check status code in afterWrite
Ben Noordhuis [Mon, 12 Dec 2011 21:45:39 +0000 (13:45 -0800)]
net: check status code in afterWrite

Fixes memory leak and spin on writing to dead fds. This was tested in
production.

12 years agowebsite fixes
Ryan Dahl [Mon, 12 Dec 2011 17:19:30 +0000 (09:19 -0800)]
website fixes

12 years agonew website
Ryan Dahl [Mon, 12 Dec 2011 06:25:42 +0000 (22:25 -0800)]
new website

12 years agofix windows build
Igor Zinkovsky [Sat, 10 Dec 2011 00:46:21 +0000 (16:46 -0800)]
fix windows build

12 years agoFix MSI generation on VC Express
Igor Zinkovsky [Sat, 10 Dec 2011 00:42:15 +0000 (16:42 -0800)]
Fix MSI generation on VC Express

12 years agoChange artwork in msi
Ryan Dahl [Sat, 10 Dec 2011 01:14:07 +0000 (17:14 -0800)]
Change artwork in msi

12 years agoMove lock back to node_crypto.cc
Ryan Dahl [Thu, 8 Dec 2011 23:58:29 +0000 (15:58 -0800)]
Move lock back to node_crypto.cc

12 years agoRemove wscript
Ryan Dahl [Thu, 8 Dec 2011 23:10:26 +0000 (15:10 -0800)]
Remove wscript

12 years agoMove a few more global vars into struct
Ryan Dahl [Thu, 8 Dec 2011 23:09:47 +0000 (15:09 -0800)]
Move a few more global vars into struct

12 years agoEnable upgrades in MSI.
Igor Zinkovsky [Thu, 8 Dec 2011 23:00:48 +0000 (15:00 -0800)]
Enable upgrades in MSI.
Fixes #2228.

12 years agodocs: document util.inspect's colors param
Tim Oxley [Thu, 8 Dec 2011 01:15:40 +0000 (11:15 +1000)]
docs: document util.inspect's colors param

12 years agomove global vars from platfrom, node_signal_watcher to struct
Ryan Dahl [Thu, 8 Dec 2011 02:03:18 +0000 (18:03 -0800)]
move global vars from platfrom, node_signal_watcher to struct

12 years agoMove node_buffer.cc globals to struct
Ryan Dahl [Thu, 8 Dec 2011 00:01:46 +0000 (16:01 -0800)]
Move node_buffer.cc globals to struct

12 years agomove global vars for node_file.cc, node_zlib.cc, and node_crypto.cc
Ryan Dahl [Wed, 7 Dec 2011 23:44:33 +0000 (15:44 -0800)]
move global vars for node_file.cc, node_zlib.cc, and node_crypto.cc

12 years agofs: fix fs.watch() segmentation fault
Ben Noordhuis [Wed, 7 Dec 2011 22:19:57 +0000 (23:19 +0100)]
fs: fix fs.watch() segmentation fault

The binding layer failed to initialize the event string if both UV_RENAME and
UV_CHANGE were set.

Fixes #2287.

12 years agoMove node_http_parser.cc global vars into node_vars.h
Ryan Dahl [Wed, 7 Dec 2011 21:31:55 +0000 (13:31 -0800)]
Move node_http_parser.cc global vars into node_vars.h

12 years agotls: enable rejectUnauthorized option to client
koichik [Wed, 7 Dec 2011 13:47:06 +0000 (22:47 +0900)]
tls: enable rejectUnauthorized option to client

Fiexes #2247.

12 years agobuild: check for libkvm and libexecinfo on all the BSDs
Ben Noordhuis [Wed, 7 Dec 2011 13:33:17 +0000 (14:33 +0100)]
build: check for libkvm and libexecinfo on all the BSDs

12 years agoBegin moving static vars into struct for isolates.
Ryan Dahl [Wed, 7 Dec 2011 01:06:36 +0000 (17:06 -0800)]
Begin moving static vars into struct for isolates.

Only node.cc, stream_wrap.cc, and tcp_wrap.cc have been done. The rest still
need work.

12 years agoMerge remote branch 'origin/v0.6'
Ryan Dahl [Wed, 7 Dec 2011 01:04:51 +0000 (17:04 -0800)]
Merge remote branch 'origin/v0.6'

12 years agoDeshadow, denamespace variables in node.cc
Ryan Dahl [Wed, 7 Dec 2011 01:00:33 +0000 (17:00 -0800)]
Deshadow, denamespace variables in node.cc

Prep for isolates.

12 years agotest: add missing copyright headers
Ben Noordhuis [Tue, 6 Dec 2011 20:59:25 +0000 (21:59 +0100)]
test: add missing copyright headers

12 years agotest: new test, verify that we don't close and reuse fd 0
Ben Noordhuis [Tue, 6 Dec 2011 20:53:52 +0000 (21:53 +0100)]
test: new test, verify that we don't close and reuse fd 0

12 years agoRemove unused variable.
Ben Noordhuis [Tue, 6 Dec 2011 20:47:30 +0000 (21:47 +0100)]
Remove unused variable.

The file descriptor arg to child_process._forkChild() is not used any more.
Remove it, avoids future confusion.