Index: src/runtime.cc |
diff --git a/src/runtime.cc b/src/runtime.cc |
index e763d435cc985e80a21f0fe43b4e11439c534e6b..bcdc3c3e0ea6f90cad916b23a6850c2b43521d67 100644 |
--- a/src/runtime.cc |
+++ b/src/runtime.cc |
@@ -5743,6 +5743,7 @@ static int LocalPrototypeChainLength(JSObject* obj) { |
// Return the names of the local named properties. |
// args[0]: object |
+// args[1]: int |
RUNTIME_FUNCTION(MaybeObject*, Runtime_GetLocalPropertyNames) { |
HandleScope scope(isolate); |
ASSERT(args.length() == 2); |
@@ -5750,8 +5751,9 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_GetLocalPropertyNames) { |
return isolate->heap()->undefined_value(); |
} |
CONVERT_ARG_HANDLE_CHECKED(JSObject, obj, 0); |
- CONVERT_BOOLEAN_ARG_CHECKED(include_symbols, 1); |
- PropertyAttributes filter = include_symbols ? NONE : SYMBOLIC; |
+ CONVERT_SMI_ARG_CHECKED(filter_value, 1); |
+ ASSERT(filter_value >= NONE && filter_value < ABSENT); |
+ PropertyAttributes filter = static_cast<PropertyAttributes>(filter_value); |
// Skip the global proxy as it has no properties and always delegates to the |
// real global object. |