| Index: src/runtime/runtime-object.cc
|
| diff --git a/src/runtime/runtime-object.cc b/src/runtime/runtime-object.cc
|
| index 26a55ac75b36489e84028946e265318abce52fbb..6bb9bd5d9216d1d61036f0dc7baad0c6f810a7b1 100644
|
| --- a/src/runtime/runtime-object.cc
|
| +++ b/src/runtime/runtime-object.cc
|
| @@ -750,13 +750,13 @@ RUNTIME_FUNCTION(Runtime_IsPropertyEnumerable) {
|
| HandleScope scope(isolate);
|
| DCHECK(args.length() == 2);
|
|
|
| - CONVERT_ARG_HANDLE_CHECKED(JSObject, object, 0);
|
| + CONVERT_ARG_HANDLE_CHECKED(JSReceiver, object, 0);
|
| CONVERT_ARG_HANDLE_CHECKED(Name, key, 1);
|
|
|
| Maybe<PropertyAttributes> maybe =
|
| JSReceiver::GetOwnPropertyAttributes(object, key);
|
| if (!maybe.IsJust()) return isolate->heap()->exception();
|
| - if (maybe.FromJust() == ABSENT) maybe = Just(DONT_ENUM);
|
| + if (maybe.FromJust() == ABSENT) return isolate->heap()->false_value();
|
| return isolate->heap()->ToBoolean((maybe.FromJust() & DONT_ENUM) == 0);
|
| }
|
|
|
|
|