Changeset 19684
- Timestamp:
- 09/21/08 23:02:11 (5 years ago)
- Files:
-
- 1 modified
-
lang/cplusplus/llv8call/trunk/src/lib.cc (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lang/cplusplus/llv8call/trunk/src/lib.cc
r19680 r19684 49 49 if (script.IsEmpty()) { 50 50 // Print errors that happened during compilation. 51 v8::String:: AsciiValue error(try_catch.Exception());51 v8::String::Utf8Value error(try_catch.Exception()); 52 52 printf("%s\n", *error); 53 53 return false; … … 55 55 v8::Handle<v8::Value> result = script->Run(); 56 56 if (result.IsEmpty()) { 57 // Print errors that happened during execution.58 v8::String::AsciiValue error(try_catch.Exception());59 printf("%s\n", *error);60 return false;57 // Print errors that happened during execution. 58 v8::String::Utf8Value error(try_catch.Exception()); 59 printf("%s\n", *error); 60 return false; 61 61 } else { 62 if (print_result && !result->IsUndefined()) {63 // If all went well and the result wasn't undefined then print64 // the returned value.65 v8::String::AsciiValue str(result);66 printf("%s\n", *str);67 }68 return true;62 if (print_result && !result->IsUndefined()) { 63 // If all went well and the result wasn't undefined then print 64 // the returned value. 65 v8::String::AsciiValue str(result); 66 printf("%s\n", *str); 67 } 68 return true; 69 69 } 70 70 }
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)