Index: tools/lexer-shell.cc |
diff --git a/tools/lexer-shell.cc b/tools/lexer-shell.cc |
index cbd3524cb338cf84b19022dc919b5da4eb56c883..f8ddc0292bf44c4149fbe7cef2718dcee08c5f7b 100644 |
--- a/tools/lexer-shell.cc |
+++ b/tools/lexer-shell.cc |
@@ -180,10 +180,11 @@ v8::base::TimeDelta ProcessFile( |
int main(int argc, char* argv[]) { |
+ v8::V8::SetFlagsFromCommandLine(&argc, argv, true); |
v8::V8::InitializeICU(); |
v8::Platform* platform = v8::platform::CreateDefaultPlatform(); |
v8::V8::InitializePlatform(platform); |
- v8::V8::SetFlagsFromCommandLine(&argc, argv, true); |
+ v8::V8::Initialize(); |
Encoding encoding = LATIN1; |
bool print_tokens = false; |
std::vector<std::string> fnames; |