| Index: src/accessors.cc
|
| diff --git a/src/accessors.cc b/src/accessors.cc
|
| index ca6796ef69f4a16eb32ebac45657db2e2f3677ed..da44151b3edbdd6d4b517e14936aacc83bd0b6fc 100644
|
| --- a/src/accessors.cc
|
| +++ b/src/accessors.cc
|
| @@ -738,7 +738,7 @@ void Accessors::FunctionLengthGetter(
|
| Handle<JSFunction>::cast(Utils::OpenHandle(*info.Holder()));
|
| Handle<Object> result;
|
| if (!JSFunction::GetLength(isolate, function).ToHandle(&result)) {
|
| - result = handle(Smi::kZero, isolate);
|
| + result = handle(Smi::FromInt(0), isolate);
|
| isolate->OptionalRescheduleException(false);
|
| }
|
|
|
| @@ -1072,7 +1072,7 @@ void Accessors::BoundFunctionLengthGetter(
|
| Handle<JSFunction> target(JSFunction::cast(function->bound_target_function()),
|
| isolate);
|
| if (!JSFunction::GetLength(isolate, target).ToHandle(&target_length)) {
|
| - target_length = handle(Smi::kZero, isolate);
|
| + target_length = handle(Smi::FromInt(0), isolate);
|
| isolate->OptionalRescheduleException(false);
|
| return;
|
| }
|
|
|