| Index: src/scopes.cc
|
| diff --git a/src/scopes.cc b/src/scopes.cc
|
| index 8b623f90ce908ac548bfd8ea46bdcf088121bbcf..b3c163ce503a70a980b72882aca86b3f24566a18 100644
|
| --- a/src/scopes.cc
|
| +++ b/src/scopes.cc
|
| @@ -795,7 +795,8 @@ void Scope::GetNestedScopeChain(Isolate* isolate,
|
|
|
|
|
| void Scope::ReportMessage(int start_position, int end_position,
|
| - const char* message, const AstRawString* arg) {
|
| + MessageTemplate::Template message,
|
| + const AstRawString* arg) {
|
| // Propagate the error to the topmost scope targeted by this scope analysis
|
| // phase.
|
| Scope* top = this;
|
| @@ -1219,7 +1220,8 @@ bool Scope::CheckStrongModeDeclaration(VariableProxy* proxy, Variable* var) {
|
| eval_for_use == eval_for_declaration) {
|
| DCHECK(proxy->end_position() != RelocInfo::kNoPosition);
|
| ReportMessage(proxy->position(), proxy->end_position(),
|
| - "strong_use_before_declaration", proxy->raw_name());
|
| + MessageTemplate::kStrongUseBeforeDeclaration,
|
| + proxy->raw_name());
|
| return false;
|
| }
|
| return true;
|
|
|