Index: src/preparser.h |
diff --git a/src/preparser.h b/src/preparser.h |
index 4a35cd59f52dfa71426abc71f58937ce3d783f86..7df271f6baad4152aa359f3377e6d5609b97bbe6 100644 |
--- a/src/preparser.h |
+++ b/src/preparser.h |
@@ -3106,7 +3106,9 @@ void ParserBase<Traits>::ClassLiteralChecker::CheckProperty( |
} |
} else if (IsConstructor()) { |
if (is_generator || type == kAccessorProperty) { |
- this->parser()->ReportMessage("constructor_special_method"); |
+ const char* msg = |
+ is_generator ? "constructor_is_generator" : "constructor_is_accessor"; |
+ this->parser()->ReportMessage(msg); |
*ok = false; |
return; |
} |