Chromium Code Reviews| Index: src/isolate.cc | 
| =================================================================== | 
| --- src/isolate.cc (revision 9770) | 
| +++ src/isolate.cc (working copy) | 
| @@ -1072,6 +1072,16 @@ | 
| message_obj = MessageHandler::MakeMessageObject("uncaught_exception", | 
| location, HandleVector<Object>(&exception_handle, 1), stack_trace, | 
| stack_trace_object); | 
| + } else if (location != NULL && !location->script().is_null()) { | 
| + // We are bootstrapping and caught and error where the location is set | 
| 
 
Mads Ager (chromium)
2011/10/25 13:41:00
and error -> an error
 
 | 
| + // and we have a script for the location. | 
| + // In this case we could have an extension (or an internal error | 
| + // somewhere) and we print out the line number at which the error occured | 
| + // to the console for easier debugging. | 
| + int line_number = GetScriptLineNumberSafe(location->script(), | 
| + location->start_pos()); | 
| + OS::PrintError("Extension or internal compilation error at line %d.\n", | 
| + line_number); | 
| } | 
| } |