Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(847)

Unified Diff: src/objects.h

Issue 1460563002: [es6] Partially implement Reflect.ownKeys. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/builtins.cc ('k') | src/objects.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/objects.h
diff --git a/src/objects.h b/src/objects.h
index 99a8f59046793e78b22b85c70fb7d91f6faaf02c..b2c73630074ae8f0c83dccca4adb814d94fbc1b7 100644
--- a/src/objects.h
+++ b/src/objects.h
@@ -1779,6 +1779,7 @@ enum AccessorComponent {
enum KeyFilter { SKIP_SYMBOLS, INCLUDE_SYMBOLS };
+enum Enumerability { RESPECT_ENUMERABILITY, IGNORE_ENUMERABILITY };
enum GetKeysConversion { KEEP_NUMBERS, CONVERT_TO_STRING };
@@ -1926,7 +1927,8 @@ class JSReceiver: public HeapObject {
MUST_USE_RESULT static MaybeHandle<FixedArray> GetKeys(
Handle<JSReceiver> object, KeyCollectionType type,
KeyFilter filter = SKIP_SYMBOLS,
- GetKeysConversion getConversion = KEEP_NUMBERS);
+ GetKeysConversion getConversion = KEEP_NUMBERS,
+ Enumerability enum_policy = RESPECT_ENUMERABILITY);
private:
DISALLOW_IMPLICIT_CONSTRUCTORS(JSReceiver);
« no previous file with comments | « src/builtins.cc ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698