Index: src/builtins.cc |
diff --git a/src/builtins.cc b/src/builtins.cc |
index fd4723f62ce4c91d3c5f35664330beec00da0367..7be7233c2109599585c266ddb20d78f4e18bc687 100644 |
--- a/src/builtins.cc |
+++ b/src/builtins.cc |
@@ -554,7 +554,7 @@ BUILTIN(ArrayShift) { |
first = isolate->factory()->undefined_value(); |
} |
- if (!heap->CanMoveObjectStart(*elms_obj)) { |
+ if (heap->CanMoveObjectStart(*elms_obj)) { |
array->set_elements(LeftTrimFixedArray(heap, *elms_obj, 1)); |
} else { |
// Shift the elements. |