Commit 191b85f5 authored by dcarney@chromium.org's avatar dcarney@chromium.org

d8 shell fix for r14530

R=mstarzinger@chromium.org
BUG=

Review URL: https://codereview.chromium.org/14907004

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@14539 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 02889caf
...@@ -1758,9 +1758,9 @@ Handle<String> Shell::ReadFile(Isolate* isolate, const char* name) { ...@@ -1758,9 +1758,9 @@ Handle<String> Shell::ReadFile(Isolate* isolate, const char* name) {
void Shell::RunShell(Isolate* isolate) { void Shell::RunShell(Isolate* isolate) {
Locker locker(isolate); Locker locker(isolate);
HandleScope outer_scope(isolate);
Context::Scope context_scope(isolate, evaluation_context_); Context::Scope context_scope(isolate, evaluation_context_);
PerIsolateData::RealmScope realm_scope(PerIsolateData::Get(isolate)); PerIsolateData::RealmScope realm_scope(PerIsolateData::Get(isolate));
HandleScope outer_scope(isolate);
Handle<String> name = String::New("(d8)"); Handle<String> name = String::New("(d8)");
LineEditor* console = LineEditor::Get(); LineEditor* console = LineEditor::Get();
printf("V8 version %s [console: %s]\n", V8::GetVersion(), console->name()); printf("V8 version %s [console: %s]\n", V8::GetVersion(), console->name());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment