Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(289)

Unified Diff: preparser/preparser-process.cc

Issue 7037024: Added preparser strict-mode tests. (Closed)
Patch Set: Address review comment. Created 9 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/preparse-data.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: preparser/preparser-process.cc
diff --git a/preparser/preparser-process.cc b/preparser/preparser-process.cc
index 2dc98c057db19a089458f299ae305654e7e562d2..9c8d7b44821fdf1dd61883e43dba7e841b6ed293 100644
--- a/preparser/preparser-process.cc
+++ b/preparser/preparser-process.cc
@@ -252,7 +252,8 @@ void CheckException(v8::PreParserData* data,
}
} else if (reader.throws()) {
const char* message = reader.message();
- fail(data, "Throws unexpectedly with message: %s\n", message);
+ fail(data, "Throws unexpectedly with message: %s at location %d-%d\n",
+ message, reader.beg_pos(), reader.end_pos());
}
}
« no previous file with comments | « no previous file | src/preparse-data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698