| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "src/d8.h" | 5 #include "src/d8.h" |
| 6 #include "src/d8-debug.h" | 6 #include "src/d8-debug.h" |
| 7 | 7 |
| 8 namespace v8 { | 8 namespace v8 { |
| 9 | 9 |
| 10 void PrintPrompt(bool is_running) { | 10 void PrintPrompt(bool is_running) { |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 if (try_catch.HasCaught()) { | 117 if (try_catch.HasCaught()) { |
| 118 Shell::ReportException(isolate, &try_catch); | 118 Shell::ReportException(isolate, &try_catch); |
| 119 continue; | 119 continue; |
| 120 } | 120 } |
| 121 String::Utf8Value text_str( | 121 String::Utf8Value text_str( |
| 122 response_details->Get(String::NewFromUtf8(isolate, "text"))); | 122 response_details->Get(String::NewFromUtf8(isolate, "text"))); |
| 123 if (text_str.length() > 0) { | 123 if (text_str.length() > 0) { |
| 124 printf("%s\n", *text_str); | 124 printf("%s\n", *text_str); |
| 125 } | 125 } |
| 126 running = response_details->Get(String::NewFromUtf8(isolate, "running")) | 126 running = response_details->Get(String::NewFromUtf8(isolate, "running")) |
| 127 ->ToBoolean() | 127 ->ToBoolean(isolate) |
| 128 ->Value(); | 128 ->Value(); |
| 129 } | 129 } |
| 130 } | 130 } |
| 131 | 131 |
| 132 } // namespace v8 | 132 } // namespace v8 |
| OLD | NEW |