| Index: src/preparser.cc
|
| diff --git a/src/preparser.cc b/src/preparser.cc
|
| index 96623b9526a8c0dbf768a37393fe50c26e4df084..fb399736ee6dc3fa8b6b304c08ee0d38350fb4bc 100644
|
| --- a/src/preparser.cc
|
| +++ b/src/preparser.cc
|
| @@ -35,31 +35,22 @@ namespace internal {
|
|
|
| void PreParserTraits::ReportMessageAt(Scanner::Location location,
|
| const char* message,
|
| - Vector<const char*> args,
|
| + const char* arg,
|
| bool is_reference_error) {
|
| ReportMessageAt(location.beg_pos,
|
| location.end_pos,
|
| message,
|
| - args.length() > 0 ? args[0] : NULL,
|
| + arg,
|
| is_reference_error);
|
| }
|
|
|
|
|
| -void PreParserTraits::ReportMessageAt(Scanner::Location location,
|
| - const char* type,
|
| - const char* name_opt,
|
| - bool is_reference_error) {
|
| - pre_parser_->log_->LogMessage(location.beg_pos, location.end_pos, type,
|
| - name_opt, is_reference_error);
|
| -}
|
| -
|
| -
|
| void PreParserTraits::ReportMessageAt(int start_pos,
|
| int end_pos,
|
| - const char* type,
|
| - const char* name_opt,
|
| + const char* message,
|
| + const char* arg,
|
| bool is_reference_error) {
|
| - pre_parser_->log_->LogMessage(start_pos, end_pos, type, name_opt,
|
| + pre_parser_->log_->LogMessage(start_pos, end_pos, message, arg,
|
| is_reference_error);
|
| }
|
|
|
|
|