Index: src/runtime.cc |
diff --git a/src/runtime.cc b/src/runtime.cc |
index 0c1c61928ec650f1ad9af7b339673e68cee123db..941d9f37ccad422404de890b78ed7c28affed09a 100644 |
--- a/src/runtime.cc |
+++ b/src/runtime.cc |
@@ -5744,6 +5744,7 @@ static int LocalPrototypeChainLength(JSObject* obj) { |
// Return the names of the local named properties. |
// args[0]: object |
+// args[1]: int Will be casted to a PropertyAttributes. |
RUNTIME_FUNCTION(MaybeObject*, Runtime_GetLocalPropertyNames) { |
HandleScope scope(isolate); |
ASSERT(args.length() == 2); |
@@ -5751,8 +5752,8 @@ 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); |
+ PropertyAttributes filter = static_cast<PropertyAttributes>(filter_value); |
// Skip the global proxy as it has no properties and always delegates to the |
// real global object. |