0
0
mirror of https://github.com/nodejs/node.git synced 2024-11-29 15:06:33 +01:00
nodejs/lib
Brandon Benvie f9014438c7 util: use getOwnPropertyDescripter
Change formatProperty in util.js to use Object.getOwnPropertyDescriptor
instead of __lookup[GS]etter__.

Use the cached value from the descriptor to reduce number of property
lookups from 3 to 1.

Fallback to standard lookup if the descriptor is empty. This doesn't
ever happen with normal JS objects (this function is called only when
the key exists) but apparently does with Node's custom ENV interface.

Fixes: #2109.
2012-01-22 17:29:40 +09:00
..
_debugger.js debugger: Request backtrace w/o refs, see #1745 2011-12-19 13:30:43 -08:00
_linklist.js
assert.js
buffer_ieee754.js
buffer.js buffer: don't pollute global namespace in buffer.readInt* 2011-12-22 23:26:43 +01:00
child_process.js child_process: add errno property to exceptions 2012-01-17 18:37:02 +01:00
cluster.js cluster: don't always kill the master on uncaughtException 2012-01-18 00:45:02 +01:00
console.js
constants.js
crypto.js
dgram.js dgram: reintroduce setMulticastTTL() 2012-01-21 03:26:09 +01:00
dns.js
events.js events: fix checking max listeners with 1 2012-01-09 04:02:01 +01:00
freelist.js
fs.js document mode argument for fs.symlink 2011-12-16 11:16:33 -08:00
http.js http: keep-alive should default with HTTP/1.1 server 2012-01-22 14:55:41 +09:00
https.js
module.js
net.js net: make .write() throw on bad input 2012-01-14 02:13:24 +01:00
os.js util: add internal function _deprecationWarning() 2011-12-14 13:36:21 +01:00
path.js Make path.extname do the right thing when the last path component is . or .. 2012-01-18 15:21:58 +01:00
punycode.js punycode: Update to v0.2.1 2011-11-30 15:28:48 +01:00
querystring.js
readline.js
repl.js Fix #2034 repl message for .clear when useGlobal=true 2011-12-31 03:20:41 +01:00
stream.js
string_decoder.js
sys.js util: add internal function _deprecationWarning() 2011-12-14 13:36:21 +01:00
timers.js timers: fix performance regression 2011-12-22 14:42:25 +01:00
tls.js tls: fix double 'error' events on HTTPS Requests 2012-01-17 17:09:27 +01:00
tty.js Add missing TTY key translations for F1-F5 on Windows 2012-01-18 16:00:55 +01:00
url.js
util.js util: use getOwnPropertyDescripter 2012-01-22 17:29:40 +09:00
vm.js
zlib.js Fix #2365 zlib crashing on invalid input 2012-01-20 13:12:32 -08:00