Index: src/elements.cc |
diff --git a/src/elements.cc b/src/elements.cc |
index 83733cb835d3883fd3617e25f0655cc6ebad2e65..fb73d6c24c836d5d3098ec545f1a78056d578578 100644 |
--- a/src/elements.cc |
+++ b/src/elements.cc |
@@ -1970,7 +1970,7 @@ class FastElementsAccessor : public ElementsAccessorBase<Subclass, KindTraits> { |
if (new_length == 0) { |
receiver->set_elements(heap->empty_fixed_array()); |
- receiver->set_length(Smi::kZero); |
+ receiver->set_length(Smi::FromInt(0)); |
return isolate->factory()->NewJSArrayWithElements( |
backing_store, KindTraits::Kind, delete_count); |
} |