Make v8 shell more quiet.

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/oliverb-javascript-v8@13820 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Oliver Buchtala 2012-09-08 01:14:14 +00:00
commit 2092793868

View file

@ -181,9 +181,9 @@ bool V8Shell::ExecuteScript(const std::string& source, const std::string& name)
if (!result->IsUndefined()) {
// If all went well and the result wasn't undefined then print
// the returned value.
v8::String::Utf8Value str(result);
const char* cstr = V8Shell::ToCString(str);
printf("%s\n", cstr);
//v8::String::Utf8Value str(result);
//const char* cstr = V8Shell::ToCString(str);
//printf("%s\n", cstr);
}
return true;
}