Index: src/isolate.cc |
diff --git a/src/isolate.cc b/src/isolate.cc |
index 30c60b691e8bade00baf2643b329707ef1936796..dea6be4d3f917d4975585491c0c5cac0b82535ea 100644 |
--- a/src/isolate.cc |
+++ b/src/isolate.cc |
@@ -1130,7 +1130,7 @@ void Isolate::DoThrow(Object* exception, MessageLocation* location) { |
// 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()); |
+ location->start_pos()) + 1; |
Michael Starzinger
2012/07/10 10:57:48
For consistency I would prefer to have the "+1" in
|
if (exception->IsString()) { |
OS::PrintError( |
"Extension or internal compilation error: %s in %s at line %d.\n", |