diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2011-09-07 19:22:41 -0700 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2011-09-07 21:23:29 -0700 |
commit | 0bca54444a5bb869ddebaadc65cd0bf381bb1e81 (patch) | |
tree | 9c4ec90a663e0e17e9922d69bc58479bcd1538bd /deps/v8/samples | |
parent | 526c54c9790cd8edff259686785d7b844fd29005 (diff) | |
download | android-node-v8-0bca54444a5bb869ddebaadc65cd0bf381bb1e81.tar.gz android-node-v8-0bca54444a5bb869ddebaadc65cd0bf381bb1e81.tar.bz2 android-node-v8-0bca54444a5bb869ddebaadc65cd0bf381bb1e81.zip |
Upgrade V8 to 3.6.1
Diffstat (limited to 'deps/v8/samples')
-rw-r--r-- | deps/v8/samples/shell.cc | 6 |
1 files changed, 2 insertions, 4 deletions
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<v8::Context> context) { static const int kBufferSize = 256; // Enter the execution environment before evaluating any code. v8::Context::Scope context_scope(context); + v8::Local<v8::String> 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"); } |