| Index: src/ast.h
|
| diff --git a/src/ast.h b/src/ast.h
|
| index fccf1aa1cc2f4b235afb3a0836390805bbe65818..4031b7d810037bf6141488e5b06bd2b09c054747 100644
|
| --- a/src/ast.h
|
| +++ b/src/ast.h
|
| @@ -375,9 +375,11 @@ class Declaration: public AstNode {
|
| : proxy_(proxy),
|
| mode_(mode),
|
| fun_(fun) {
|
| - ASSERT(mode == Variable::VAR || mode == Variable::CONST);
|
| + ASSERT(mode == Variable::VAR ||
|
| + mode == Variable::CONST ||
|
| + mode == Variable::LET);
|
| // At the moment there are no "const functions"'s in JavaScript...
|
| - ASSERT(fun == NULL || mode == Variable::VAR);
|
| + ASSERT(fun == NULL || mode == Variable::VAR || mode == Variable::LET);
|
| }
|
|
|
| DECLARE_NODE_TYPE(Declaration)
|
|
|