Index: src/builtins/builtins-function.cc |
diff --git a/src/builtins/builtins-function.cc b/src/builtins/builtins-function.cc |
index d6a3464eba538ab63a387759207ea326d2117656..0a631bff5cdb5242cb210cf5068936a53786e6b9 100644 |
--- a/src/builtins/builtins-function.cc |
+++ b/src/builtins/builtins-function.cc |
@@ -198,7 +198,7 @@ Object* DoFunctionBind(Isolate* isolate, BuiltinArguments args) { |
if (!target->IsJSFunction() || |
length_lookup.state() != LookupIterator::ACCESSOR || |
!length_lookup.GetAccessors()->IsAccessorInfo()) { |
- Handle<Object> length(Smi::kZero, isolate); |
+ Handle<Object> length(Smi::FromInt(0), isolate); |
Maybe<PropertyAttributes> attributes = |
JSReceiver::GetPropertyAttributes(&length_lookup); |
if (!attributes.IsJust()) return isolate->heap()->exception(); |