startup: use `.hasOwnProperty` instead of `in`
authorMaciej Małecki <maciej.malecki@notimplemented.org>
Sat, 18 Feb 2012 15:32:06 +0000 (16:32 +0100)
committerBen Noordhuis <info@bnoordhuis.nl>
Mon, 20 Feb 2012 15:04:44 +0000 (16:04 +0100)
commitc3a9733ac14aa0ebf06cc4d9e3ababe8c9be6220
treeb503e4f63720c0d32e0d34e95f7b97482fb36508
parentb72277183f9cb79274d6f8915e02b895c56b2288
startup: use `.hasOwnProperty` instead of `in`

Benchmarks show that `.hasOwnProperty` is faster than `in` in V8. It
makes startup ~0.5 ms faster on my computer.
src/node.js