Node.js JavaScript runtime 🐢🚀
 
 
 
 
 
 
Go to file
Ben Noordhuis 17fbdc18b8 lib: name EventEmitter prototype methods
Before this commit the EventEmitter methods were anonymous functions.
V8 tries to infer names for anonymous functions based on the execution
context but it frequently gets it wrong and when that happens, the
stack trace is usually confusing and unhelpful.  This commit names all
methods so V8 can fall back to the method.name property.

The above gotcha applies to all anonymous functions but is exacerbated
for EventEmitter methods because those are invoked with a plenitude of
different receivers.

Signed-off-by: Trevor Norris <trev.norris@gmail.com>
2014-05-07 12:11:57 -07:00
benchmark benchmark: Fix execArgv handling 2013-08-31 17:58:17 -07:00
deps npm: upgrade to 1.4.10 2014-05-05 18:20:40 -07:00
doc docs: add cautionary note to emitter.removeAllListeners 2014-04-29 14:15:10 +04:00
lib lib: name EventEmitter prototype methods 2014-05-07 12:11:57 -07:00
src constants: export O_NONBLOCK 2014-05-02 22:54:08 +04:00
test lib: name EventEmitter prototype methods 2014-05-07 12:11:57 -07:00
tools installer: copy `node.d` only with node_use_dtrace 2014-02-21 01:03:03 +04:00
.gitattributes Explicitly disable cr/lf conversion for test fixtures 2011-08-10 19:59:37 +02:00
.gitignore tools: script release steps after jenkins build 2013-08-21 16:59:15 -07:00
.mailmap Update .mailmap and AUTHORS 2013-03-19 20:07:38 +01:00
.travis.yml test: add `.travis.yml` for testing on Travis CI 2011-12-05 16:50:55 -08:00
AUTHORS 2014.05.01, Version 0.10.27 (Stable) 2014-05-01 14:04:20 -07:00
BSDmakefile Tell BSD users to run `gmake` instead. 2011-07-11 14:17:23 +02:00
CONTRIBUTING.md doc: clarify subsystems in CONTRIBUTING.md 2013-05-14 12:31:38 +02:00
ChangeLog 2014.05.01, Version 0.10.28 (Stable) 2014-05-01 17:47:47 -07:00
LICENSE doc: Update LICENSE for npm's Artistic 2.0 2013-08-05 13:56:05 -07:00
Makefile build: make sure changelog.html is generated 2014-04-08 09:06:28 -07:00
README.md doc: link to pre-built binaries, add install note 2013-10-01 08:37:32 +02:00
common.gypi build: fix g++ 4.8 build, disable -Werror 2014-03-23 16:11:08 -07:00
configure configure: allow --with-dtrace on freebsd 2014-02-21 00:46:26 +04:00
node.gyp build: fix g++ 4.8 build, disable -Werror 2014-03-23 16:11:08 -07:00
vcbuild.bat build: windows signing should include timestamps 2014-03-27 11:54:13 -07:00

README.md

Evented I/O for V8 javascript. Build Status

To build:

Prerequisites (Unix only):

* GCC 4.2 or newer
* Python 2.6 or 2.7
* GNU Make 3.81 or newer
* libexecinfo (FreeBSD and OpenBSD only)

Unix/Macintosh:

./configure
make
make install

If your python binary is in a non-standard location or has a non-standard name, run the following instead:

export PYTHON=/path/to/python
$PYTHON ./configure
make
make install

Windows:

vcbuild.bat

You can download pre-built binaries for various operating systems from http://nodejs.org/download/. The Windows and OS X installers will prompt you for the location to install to. The tarballs are self-contained; you can extract them to a local directory with:

tar xzf /path/to/node-<version>-<platform>-<arch>.tar.gz

Or system-wide with:

cd /usr/local && tar --strip-components 1 -xzf \
                     /path/to/node-<version>-<platform>-<arch>.tar.gz

To run the tests:

Unix/Macintosh:

make test

Windows:

vcbuild.bat test

To build the documentation:

make doc

To read the documentation:

man doc/node.1

Resources for Newcomers