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,
} 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;
}
}
......
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