Revision: 9209 Author: [email protected] Date: Fri Sep 9 04:10:36 2011 Log: Better error messages for d8's load() (execute from file). BUG=v8:796
Review URL: http://codereview.chromium.org/7754018 http://code.google.com/p/v8/source/detail?r=9209 Modified: /branches/bleeding_edge/src/d8.cc ======================================= --- /branches/bleeding_edge/src/d8.cc Thu Sep 8 16:43:36 2011 +++ /branches/bleeding_edge/src/d8.cc Fri Sep 9 04:10:36 2011 @@ -271,7 +271,7 @@ if (source.IsEmpty()) { return ThrowException(String::New("Error loading file")); } - if (!ExecuteString(source, String::New(*file), false, false)) { + if (!ExecuteString(source, String::New(*file), false, true)) { return ThrowException(String::New("Error executing file")); } } @@ -439,6 +439,7 @@ printf("%s\n", stack_trace_string); } } + printf("\n"); } -- v8-dev mailing list [email protected] http://groups.google.com/group/v8-dev
