mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
a5d90c435cb7af5fafe5b370e412e1b965d24114
lib/path.js routines normalizeArray() and resolve() have for loops that count down from end of an array. The loop indexes are initialized using "array.length" rather than "array.length-1". The initial array element accessed is always beyond the end of array and the value is 'undefined'. Strangely, code exists that acts to ignore undefined values so that the typos are unnoticeable. Existing tests emit no errors either before or after changing to "length-1". Tests _do_ start failing at "length-2". (Actually it is node that starts to fail at "length-2" - that's a valid enough test...)
Evented I/O for V8 javascript.
To build:
./configure
make
make install
To run the tests:
make test
To build the documentation:
make doc
To read the documentation:
man doc/node.1
Resources for Newcomers
Description
Languages
JavaScript
62.4%
C++
23.1%
Python
10.1%
C
2.7%
HTML
0.6%
Other
0.9%