Index: src/runtime/runtime-scopes.cc |
diff --git a/src/runtime/runtime-scopes.cc b/src/runtime/runtime-scopes.cc |
index 6dae7dd609d9b4801b163ca28daf916875bc0fc9..2e349f00d3b64dbc4fd6d3e91943b49f253d2b73 100644 |
--- a/src/runtime/runtime-scopes.cc |
+++ b/src/runtime/runtime-scopes.cc |
@@ -137,10 +137,10 @@ Object* DeclareGlobals(Isolate* isolate, Handle<FixedArray> declarations, |
// Traverse the name/value pairs and set the properties. |
int length = declarations->length(); |
- FOR_WITH_HANDLE_SCOPE(isolate, int, i = 0, i, i < length, i += 3, { |
+ FOR_WITH_HANDLE_SCOPE(isolate, int, i = 0, i, i < length, i += 4, { |
Handle<String> name(String::cast(declarations->get(i)), isolate); |
FeedbackVectorSlot slot(Smi::cast(declarations->get(i + 1))->value()); |
- Handle<Object> initial_value(declarations->get(i + 2), isolate); |
+ Handle<Object> initial_value(declarations->get(i + 3), isolate); |
bool is_var = initial_value->IsUndefined(isolate); |
bool is_function = initial_value->IsSharedFunctionInfo(); |