Parse the command line before initializing V8.
authorBen Noordhuis <info@bnoordhuis.nl>
Thu, 23 Jun 2011 20:44:10 +0000 (22:44 +0200)
committerRyan Dahl <ry@tinyclouds.org>
Tue, 5 Jul 2011 20:25:27 +0000 (13:25 -0700)
commitb74d119b3487b62d81908c76151f252edd46e6cc
treed9770872cd9b0054f36775cc6c2415a62b8aaf15
parent72e18d7f19470b1786186998e3ff75245583fbc1
Parse the command line before initializing V8.

Doing it the other way around means that V8 won't pick
up command line switches like `--prof`.

Props to Joshua Kehn for reporting the issue and Jeff Fifield
for pointing out the cause.

Fixes #900.
Fixes #1217.
src/node.cc