node/lib
Nathan Woltman bca53dce76 path: refactor for performance and consistency
Improve performance by:
+ Not leaking the `arguments` object!
+ Getting the last character of a string by index, instead of
  with `.substr()` or `.slice()`

Improve code consistency by:
+ Using `[]` instead of `.charAt()` where possible
+ Using a function declaration instead of a var declaration
+ Using `.slice()` with clearer arguments
+ Checking if `dir` is truthy in `win32.format`
  (added tests for this)

Improve both by:
+ Making the reusable `trimArray()` function
+ Standardizing getting certain path statistics with
  the new `win32StatPath()` function

PR-URL: https://github.com/nodejs/io.js/pull/1778
Reviewed-By: Сковорода Никита Андреевич <chalkerx@gmail.com>
Reviewed-By: Roman Reiss <me@silverwind.io>
2015-07-04 13:24:59 +02:00
..
internal util: prepend '(node) ' to deprecation messages 2015-07-03 16:32:29 +02:00
_debug_agent.js lib: use const to define constants 2015-01-21 16:21:31 -05:00
_debugger.js lib,test: fix whitespace issues 2015-06-15 16:37:37 +02:00
_http_agent.js http: logically respect maxSockets 2015-04-17 12:20:44 -04:00
_http_client.js lib: don't use global Buffer 2015-06-11 20:24:44 +02:00
_http_common.js http: simplify code and remove unused properties 2015-05-25 01:07:22 -04:00
_http_incoming.js http: revert deprecation of client property 2015-05-31 20:37:44 +02:00
_http_outgoing.js util: prepend '(node) ' to deprecation messages 2015-07-03 16:32:29 +02:00
_http_server.js lib,test: fix whitespace issues 2015-06-15 16:37:37 +02:00
_linklist.js Remove excessive copyright/license boilerplate 2015-01-12 15:30:28 -08:00
_stream_duplex.js node: allow multiple arguments passed to nextTick 2015-04-15 17:02:21 -06:00
_stream_passthrough.js lib: use const to define constants 2015-01-21 16:21:31 -05:00
_stream_readable.js lib,test: fix whitespace issues 2015-06-15 16:37:37 +02:00
_stream_transform.js stream: simpler stream constructon 2015-02-04 20:19:39 -08:00
_stream_wrap.js _stream_wrap: prevent use after free in TLS 2015-06-30 20:09:22 -07:00
_stream_writable.js util: prepend '(node) ' to deprecation messages 2015-07-03 16:32:29 +02:00
_tls_common.js tls: destroy singleUse context immediately 2015-04-30 11:02:30 +02:00
_tls_legacy.js lib: don't use global Buffer 2015-06-11 20:24:44 +02:00
_tls_wrap.js _stream_wrap: prevent use after free in TLS 2015-06-30 20:09:22 -07:00
assert.js lib: don't use global Buffer 2015-06-11 20:24:44 +02:00
buffer.js util: prepend '(node) ' to deprecation messages 2015-07-03 16:32:29 +02:00
child_process.js util: prepend '(node) ' to deprecation messages 2015-07-03 16:32:29 +02:00
cluster.js cluster: wait on servers closing before disconnect 2015-06-09 10:41:38 -07:00
console.js lib: fix eslint styles 2015-05-09 12:10:02 +09:00
constants.js Remove excessive copyright/license boilerplate 2015-01-12 15:30:28 -08:00
crypto.js util: prepend '(node) ' to deprecation messages 2015-07-03 16:32:29 +02:00
dgram.js lib: don't use global Buffer 2015-06-11 20:24:44 +02:00
dns.js lib: simplify nextTick() usage 2015-05-25 10:14:18 -04:00
domain.js lib: use const to define constants 2015-01-21 16:21:31 -05:00
events.js events: provide better error message for unhandled error 2015-05-12 08:33:20 -05:00
freelist.js iojs: introduce internal modules 2015-03-25 22:12:18 +03:00
fs.js lib,test: fix whitespace issues 2015-06-15 16:37:37 +02:00
http.js util: prepend '(node) ' to deprecation messages 2015-07-03 16:32:29 +02:00
https.js Revert "url: significantly improve the performance of the url module" 2015-05-03 20:29:41 -07:00
module.js util: prepend '(node) ' to deprecation messages 2015-07-03 16:32:29 +02:00
net.js util: prepend '(node) ' to deprecation messages 2015-07-03 16:32:29 +02:00
os.js util: prepend '(node) ' to deprecation messages 2015-07-03 16:32:29 +02:00
path.js path: refactor for performance and consistency 2015-07-04 13:24:59 +02:00
process.js src: remove excessive license boilerplate 2015-01-27 16:35:05 +11:00
punycode.js lib: add missing new for errors lib/*.js 2015-03-24 12:42:15 -07:00
querystring.js lib: don't use global Buffer 2015-06-11 20:24:44 +02:00
readline.js util: prepend '(node) ' to deprecation messages 2015-07-03 16:32:29 +02:00
repl.js repl: remove obsolete TODO 2015-07-01 22:45:06 -07:00
smalloc.js util: prepend '(node) ' to deprecation messages 2015-07-03 16:32:29 +02:00
stream.js lib,test: fix whitespace issues 2015-06-15 16:37:37 +02:00
string_decoder.js lib: don't use global Buffer 2015-06-11 20:24:44 +02:00
sys.js util: introduce printDeprecationMessage function 2015-06-04 10:59:43 +03:00
timers.js lib: simplify nextTick() usage 2015-05-25 10:14:18 -04:00
tls.js lib: don't use global Buffer 2015-06-11 20:24:44 +02:00
tty.js util: prepend '(node) ' to deprecation messages 2015-07-03 16:32:29 +02:00
url.js url: fix typo in comment 2015-06-30 13:47:57 -07:00
util.js util: prepend '(node) ' to deprecation messages 2015-07-03 16:32:29 +02:00
v8.js lib: deprecate the smalloc module 2015-04-29 19:33:43 +02:00
vm.js lib: reduce util.is*() usage 2015-01-31 23:47:29 -05:00
zlib.js zlib: prevent uncaught exception in zlibBuffer 2015-06-15 15:43:08 -06:00