Index: src/arm64/full-codegen-arm64.cc |
diff --git a/src/arm64/full-codegen-arm64.cc b/src/arm64/full-codegen-arm64.cc |
index 710956ffd304b4f67297294a8448187246c8d805..0d3d34b6950e111392d2dc7276195f5f84518acb 100644 |
--- a/src/arm64/full-codegen-arm64.cc |
+++ b/src/arm64/full-codegen-arm64.cc |
@@ -2373,8 +2373,9 @@ void FullCodeGenerator::EmitVariableAssignment(Variable* var, |
} |
EmitStoreToStackLocalOrContextSlot(var, location); |
} |
+ } else if (IsSignallingAssignmentToConst(var, op, strict_mode())) { |
+ __ CallRuntime(Runtime::kThrowConstAssignError, 0); |
} |
- // Non-initializing assignments to consts are ignored. |
} |