From 0bca54444a5bb869ddebaadc65cd0bf381bb1e81 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Wed, 7 Sep 2011 19:22:41 -0700 Subject: Upgrade V8 to 3.6.1 --- deps/v8/samples/shell.cc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'deps/v8/samples') diff --git a/deps/v8/samples/shell.cc b/deps/v8/samples/shell.cc index 8ed9d032aa..b40eca2f7c 100644 --- a/deps/v8/samples/shell.cc +++ b/deps/v8/samples/shell.cc @@ -250,16 +250,14 @@ void RunShell(v8::Handle context) { static const int kBufferSize = 256; // Enter the execution environment before evaluating any code. v8::Context::Scope context_scope(context); + v8::Local name(v8::String::New("(shell)")); while (true) { char buffer[kBufferSize]; printf("> "); char* str = fgets(buffer, kBufferSize, stdin); if (str == NULL) break; v8::HandleScope handle_scope; - ExecuteString(v8::String::New(str), - v8::String::New("(shell)"), - true, - true); + ExecuteString(v8::String::New(str), name, true, true); } printf("\n"); } -- cgit v1.2.3