| Index: src/builtins.cc
|
| diff --git a/src/builtins.cc b/src/builtins.cc
|
| index 6b6c4acd09dfb1b5217bcab016c99724321a3c6f..ea148db0c5593a771ecdc4967cb5e94650f3b567 100644
|
| --- a/src/builtins.cc
|
| +++ b/src/builtins.cc
|
| @@ -1588,8 +1588,8 @@ BUILTIN(ObjectAssign) {
|
| // 4b ii. Let keys be ? from.[[OwnPropertyKeys]]().
|
| Handle<FixedArray> keys;
|
| ASSIGN_RETURN_FAILURE_ON_EXCEPTION(
|
| - isolate, keys, JSReceiver::GetKeys(from, JSReceiver::OWN_ONLY,
|
| - ALL_PROPERTIES, KEEP_NUMBERS));
|
| + isolate, keys,
|
| + JSReceiver::GetKeys(from, OWN_ONLY, ALL_PROPERTIES, KEEP_NUMBERS));
|
| // 4c. Repeat for each element nextKey of keys in List order,
|
| for (int j = 0; j < keys->length(); ++j) {
|
| Handle<Object> next_key(keys->get(j), isolate);
|
| @@ -1676,8 +1676,8 @@ Object* GetOwnPropertyKeys(Isolate* isolate,
|
| Object::ToObject(isolate, object));
|
| Handle<FixedArray> keys;
|
| ASSIGN_RETURN_FAILURE_ON_EXCEPTION(
|
| - isolate, keys, JSReceiver::GetKeys(receiver, JSReceiver::OWN_ONLY, filter,
|
| - CONVERT_TO_STRING));
|
| + isolate, keys,
|
| + JSReceiver::GetKeys(receiver, OWN_ONLY, filter, CONVERT_TO_STRING));
|
| return *isolate->factory()->NewJSArrayWithElements(keys);
|
| }
|
|
|
| @@ -1744,9 +1744,8 @@ BUILTIN(ObjectKeys) {
|
| Object::ToObject(isolate, object));
|
| Handle<FixedArray> keys;
|
| ASSIGN_RETURN_FAILURE_ON_EXCEPTION(
|
| - isolate, keys,
|
| - JSReceiver::GetKeys(receiver, JSReceiver::OWN_ONLY, ENUMERABLE_STRINGS,
|
| - CONVERT_TO_STRING));
|
| + isolate, keys, JSReceiver::GetKeys(receiver, OWN_ONLY, ENUMERABLE_STRINGS,
|
| + CONVERT_TO_STRING));
|
| return *isolate->factory()->NewJSArrayWithElements(keys);
|
| }
|
|
|
| @@ -1759,9 +1758,8 @@ BUILTIN(ObjectValues) {
|
| Object::ToObject(isolate, object));
|
| Handle<FixedArray> keys;
|
| ASSIGN_RETURN_FAILURE_ON_EXCEPTION(
|
| - isolate, keys,
|
| - JSReceiver::GetKeys(receiver, JSReceiver::OWN_ONLY, ENUMERABLE_STRINGS,
|
| - CONVERT_TO_STRING));
|
| + isolate, keys, JSReceiver::GetKeys(receiver, OWN_ONLY, ENUMERABLE_STRINGS,
|
| + CONVERT_TO_STRING));
|
|
|
| for (int i = 0; i < keys->length(); ++i) {
|
| auto key = Handle<Name>::cast(FixedArray::get(*keys, i, isolate));
|
| @@ -1785,9 +1783,8 @@ BUILTIN(ObjectEntries) {
|
| Object::ToObject(isolate, object));
|
| Handle<FixedArray> keys;
|
| ASSIGN_RETURN_FAILURE_ON_EXCEPTION(
|
| - isolate, keys,
|
| - JSReceiver::GetKeys(receiver, JSReceiver::OWN_ONLY, ENUMERABLE_STRINGS,
|
| - CONVERT_TO_STRING));
|
| + isolate, keys, JSReceiver::GetKeys(receiver, OWN_ONLY, ENUMERABLE_STRINGS,
|
| + CONVERT_TO_STRING));
|
|
|
| for (int i = 0; i < keys->length(); ++i) {
|
| auto key = Handle<Name>::cast(FixedArray::get(*keys, i, isolate));
|
| @@ -2090,9 +2087,9 @@ BUILTIN(ReflectOwnKeys) {
|
|
|
| Handle<FixedArray> keys;
|
| ASSIGN_RETURN_FAILURE_ON_EXCEPTION(
|
| - isolate, keys, JSReceiver::GetKeys(Handle<JSReceiver>::cast(target),
|
| - JSReceiver::OWN_ONLY, ALL_PROPERTIES,
|
| - CONVERT_TO_STRING));
|
| + isolate, keys,
|
| + JSReceiver::GetKeys(Handle<JSReceiver>::cast(target), OWN_ONLY,
|
| + ALL_PROPERTIES, CONVERT_TO_STRING));
|
| return *isolate->factory()->NewJSArrayWithElements(keys);
|
| }
|
|
|
|
|