| Index: src/objects.cc
|
| diff --git a/src/objects.cc b/src/objects.cc
|
| index 94b57afb85ac00d7ccbd90dc8b82eea9fbbdf311..009c5f5cece25ebe699e711bf0cb71c4c1bc27be 100644
|
| --- a/src/objects.cc
|
| +++ b/src/objects.cc
|
| @@ -6402,11 +6402,9 @@ MaybeHandle<Object> JSReceiver::DefineProperties(Isolate* isolate,
|
| // 2. Let props be ToObject(Properties).
|
| // 3. ReturnIfAbrupt(props).
|
| Handle<JSReceiver> props;
|
| - if (!Object::ToObject(isolate, properties).ToHandle(&props)) {
|
| - THROW_NEW_ERROR(isolate,
|
| - NewTypeError(MessageTemplate::kUndefinedOrNullToObject),
|
| - Object);
|
| - }
|
| + ASSIGN_RETURN_ON_EXCEPTION(isolate, props,
|
| + Object::ToObject(isolate, properties), Object);
|
| +
|
| // 4. Let keys be props.[[OwnPropertyKeys]]().
|
| // 5. ReturnIfAbrupt(keys).
|
| Handle<FixedArray> keys;
|
|
|