From abeed3d055153bfe7163c98f577b3a5a0c051598 Mon Sep 17 00:00:00 2001 From: "svenpanne@chromium.org" Date: Tue, 12 Feb 2013 08:59:53 +0000 Subject: [PATCH] Don't use local variable after its scoped has been left. TBR=yangguo@chromium.org Review URL: https://codereview.chromium.org/12224118 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@13642 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/d8.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/d8.cc b/src/d8.cc index 6d63ef1758..5fd99174d2 100644 --- a/src/d8.cc +++ b/src/d8.cc @@ -1497,7 +1497,6 @@ void Shell::RunShell(Isolate* isolate) { Context::Scope context_scope(evaluation_context_); HandleScope outer_scope; Handle name = String::New("(d8)"); - DumbLineEditor dumb_line_editor(isolate); LineEditor* console = LineEditor::Get(); printf("V8 version %s [console: %s]\n", V8::GetVersion(), console->name()); console->Open(); @@ -1902,6 +1901,7 @@ int Shell::Main(int argc, char* argv[]) { if (!SetOptions(argc, argv)) return 1; int result = 0; Isolate* isolate = Isolate::GetCurrent(); + DumbLineEditor dumb_line_editor(isolate); { Initialize(isolate); Symbols symbols(isolate);