Index: src/objects.h |
diff --git a/src/objects.h b/src/objects.h |
index 7d7d233e6c2e0b0938dae7fbe1af041ed6ceaee4..7b31b7a7fdc4aae0b35dcefe683e7abda42b0757 100644 |
--- a/src/objects.h |
+++ b/src/objects.h |
@@ -1798,10 +1798,14 @@ enum AccessorComponent { |
ACCESSOR_SETTER |
}; |
- |
-enum GetKeysConversion { KEEP_NUMBERS, CONVERT_TO_STRING }; |
- |
-enum KeyCollectionType { OWN_ONLY, INCLUDE_PROTOS }; |
+enum class GetKeysConversion { kKeepNumbers, kConvertToString }; |
+ |
+enum class KeyCollectionMode { kOwnOnly, kIncludePrototypes }; |
+STATIC_ASSERT(KeyCollectionMode::kOwnOnly == |
+ static_cast<KeyCollectionMode>(v8::KeyCollectionMode::kOwnOnly)); |
+STATIC_ASSERT( |
+ KeyCollectionMode::kIncludePrototypes == |
+ static_cast<KeyCollectionMode>(v8::KeyCollectionMode::kIncludePrototypes)); |
// JSReceiver includes types on which properties can be defined, i.e., |
// JSObject and JSProxy. |