| Index: src/scopes.cc
|
| diff --git a/src/scopes.cc b/src/scopes.cc
|
| index eb0deb4964bb8cbc8ad5d1a151e381053c42bff1..ddde48a77c50eaccb92ef21376dfc510f1a5aeb0 100644
|
| --- a/src/scopes.cc
|
| +++ b/src/scopes.cc
|
| @@ -397,7 +397,9 @@ Variable* Scope::DeclareLocal(Handle<String> name, Variable::Mode mode) {
|
| // This function handles VAR and CONST modes. DYNAMIC variables are
|
| // introduces during variable allocation, INTERNAL variables are allocated
|
| // explicitly, and TEMPORARY variables are allocated via NewTemporary().
|
| - ASSERT(mode == Variable::VAR || mode == Variable::CONST);
|
| + ASSERT(mode == Variable::VAR ||
|
| + mode == Variable::CONST ||
|
| + mode == Variable::LET);
|
| ++num_var_or_const_;
|
| return variables_.Declare(this, name, mode, true, Variable::NORMAL);
|
| }
|
|
|