| Index: src/mips64/full-codegen-mips64.cc
|
| diff --git a/src/mips64/full-codegen-mips64.cc b/src/mips64/full-codegen-mips64.cc
|
| index 0ac6467a35be64dfa07bd95ae276a47e819094c0..9d4ed095397ab11c211acedd5f4af8152b9bf6a7 100644
|
| --- a/src/mips64/full-codegen-mips64.cc
|
| +++ b/src/mips64/full-codegen-mips64.cc
|
| @@ -2638,7 +2638,6 @@ void FullCodeGenerator::EmitVariableAssignment(Variable* var, Token::Value op) {
|
| // Perform the assignment.
|
| __ bind(&assign);
|
| EmitStoreToStackLocalOrContextSlot(var, location);
|
| -
|
| } else if (!var->is_const_mode() || op == Token::INIT_CONST) {
|
| if (var->IsLookupSlot()) {
|
| // Assignment to var.
|
| @@ -2663,8 +2662,9 @@ void FullCodeGenerator::EmitVariableAssignment(Variable* var, Token::Value op) {
|
| }
|
| EmitStoreToStackLocalOrContextSlot(var, location);
|
| }
|
| + } else if (IsSignallingAssignmentToConst(var, op, strict_mode())) {
|
| + __ CallRuntime(Runtime::kThrowConstAssignError, 0);
|
| }
|
| - // Non-initializing assignments to consts are ignored.
|
| }
|
|
|
|
|
|
|