Commit e36da6d2 authored by rossberg@chromium.org's avatar rossberg@chromium.org

Unbreak shared lib build.

R=verwaest@chromium.org
BUG=

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

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@13974 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 010f36f9
...@@ -215,7 +215,9 @@ bool Shell::ExecuteString(Isolate* isolate, ...@@ -215,7 +215,9 @@ bool Shell::ExecuteString(Isolate* isolate,
} else { } else {
ASSERT(!try_catch.HasCaught()); ASSERT(!try_catch.HasCaught());
if (print_result) { if (print_result) {
#if !defined(V8_SHARED)
if (options.test_shell) { if (options.test_shell) {
#endif
if (!result->IsUndefined()) { if (!result->IsUndefined()) {
// If all went well and the result wasn't undefined then print // If all went well and the result wasn't undefined then print
// the returned value. // the returned value.
...@@ -223,6 +225,7 @@ bool Shell::ExecuteString(Isolate* isolate, ...@@ -223,6 +225,7 @@ bool Shell::ExecuteString(Isolate* isolate,
fwrite(*str, sizeof(**str), str.length(), stdout); fwrite(*str, sizeof(**str), str.length(), stdout);
printf("\n"); printf("\n");
} }
#if !defined(V8_SHARED)
} else { } else {
Context::Scope context_scope(utility_context_); Context::Scope context_scope(utility_context_);
Handle<Object> global = utility_context_->Global(); Handle<Object> global = utility_context_->Global();
...@@ -234,6 +237,7 @@ bool Shell::ExecuteString(Isolate* isolate, ...@@ -234,6 +237,7 @@ bool Shell::ExecuteString(Isolate* isolate,
printf("\n"); printf("\n");
} }
} }
#endif
return true; return true;
} }
} }
......
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