| Index: src/d8.cc
|
| diff --git a/src/d8.cc b/src/d8.cc
|
| index 00b23fb9b3f736e62b37b2a0f12ddd2c8829dee4..89812a129b42dc54baa563a32c74b1990a9edce9 100644
|
| --- a/src/d8.cc
|
| +++ b/src/d8.cc
|
| @@ -215,7 +215,9 @@ bool Shell::ExecuteString(Isolate* isolate,
|
| } else {
|
| ASSERT(!try_catch.HasCaught());
|
| if (print_result) {
|
| +#if !defined(V8_SHARED)
|
| if (options.test_shell) {
|
| +#endif
|
| if (!result->IsUndefined()) {
|
| // If all went well and the result wasn't undefined then print
|
| // the returned value.
|
| @@ -223,6 +225,7 @@ bool Shell::ExecuteString(Isolate* isolate,
|
| fwrite(*str, sizeof(**str), str.length(), stdout);
|
| printf("\n");
|
| }
|
| +#if !defined(V8_SHARED)
|
| } else {
|
| Context::Scope context_scope(utility_context_);
|
| Handle<Object> global = utility_context_->Global();
|
| @@ -234,6 +237,7 @@ bool Shell::ExecuteString(Isolate* isolate,
|
| printf("\n");
|
| }
|
| }
|
| +#endif
|
| return true;
|
| }
|
| }
|
|
|