| Index: src/ia32/full-codegen-ia32.cc
|
| diff --git a/src/ia32/full-codegen-ia32.cc b/src/ia32/full-codegen-ia32.cc
|
| index 994c9ff61e45c020c15cb775f79957b168bcc7ca..ceeea4c0a446b97d51c24c015fe6eaa1e276cb79 100644
|
| --- a/src/ia32/full-codegen-ia32.cc
|
| +++ b/src/ia32/full-codegen-ia32.cc
|
| @@ -737,8 +737,10 @@ void FullCodeGenerator::EmitDeclaration(Variable* variable,
|
| __ push(esi);
|
| __ push(Immediate(variable->name()));
|
| // Declaration nodes are always introduced in one of two modes.
|
| - ASSERT(mode == Variable::VAR || mode == Variable::CONST);
|
| - PropertyAttributes attr = (mode == Variable::VAR) ? NONE : READ_ONLY;
|
| + ASSERT(mode == Variable::VAR ||
|
| + mode == Variable::CONST ||
|
| + mode == Variable::LET);
|
| + PropertyAttributes attr = (mode == Variable::CONST) ? READ_ONLY : NONE;
|
| __ push(Immediate(Smi::FromInt(attr)));
|
| // Push initial value, if any.
|
| // Note: For variables we must not push an initial value (such as
|
|
|