Index: src/fast-codegen.cc |
=================================================================== |
--- src/fast-codegen.cc (revision 3528) |
+++ src/fast-codegen.cc (working copy) |
@@ -676,7 +676,7 @@ |
EmitNamedPropertyLoad(prop, Expression::kValue); |
break; |
case KEYED_PROPERTY: |
- EmitKeyedPropertyLoad(Expression::kValue); |
+ EmitKeyedPropertyLoad(prop, Expression::kValue); |
break; |
} |
} |
@@ -694,7 +694,8 @@ |
// Store the value. |
switch (assign_type) { |
case VARIABLE: |
- EmitVariableAssignment(expr); |
+ EmitVariableAssignment(expr->target()->AsVariableProxy()->var(), |
+ expr->context()); |
break; |
case NAMED_PROPERTY: |
EmitNamedPropertyAssignment(expr); |