Index: src/runtime.cc |
diff --git a/src/runtime.cc b/src/runtime.cc |
index 1caaff05f8e0fc61018a6bd245f8c41ceef75d7b..a5f6f267a285ad42ef1407fb5cc1cc54faed16e8 100644 |
--- a/src/runtime.cc |
+++ b/src/runtime.cc |
@@ -11277,8 +11277,10 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_GetFrameDetails) { |
VariableMode mode; |
InitializationFlag init_flag; |
locals->set(i * 2, *name); |
- locals->set(i * 2 + 1, context->get( |
- scope_info->ContextSlotIndex(*name, &mode, &init_flag))); |
+ int context_slot_index = |
+ scope_info->ContextSlotIndex(*name, &mode, &init_flag); |
+ Object* value = context->get(context_slot_index); |
+ locals->set(i * 2 + 1, value); |
} |
} |