Changeset 272364 in webkit for trunk/Source/JavaScriptCore/runtime/JSGlobalObjectFunctions.cpp
- Timestamp:
- Feb 4, 2021, 2:42:19 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/runtime/JSGlobalObjectFunctions.cpp
r272187 r272364 816 816 } 817 817 818 JSC_DEFINE_HOST_FUNCTION(globalFuncPropertyIsEnumerable, (JSGlobalObject* globalObject, CallFrame* callFrame))819 {820 VM& vm = globalObject->vm();821 auto scope = DECLARE_THROW_SCOPE(vm);822 823 RELEASE_ASSERT(callFrame->argumentCount() == 2);824 JSObject* object = jsCast<JSObject*>(callFrame->uncheckedArgument(0));825 auto propertyName = callFrame->uncheckedArgument(1).toPropertyKey(globalObject);826 RETURN_IF_EXCEPTION(scope, encodedJSValue());827 828 scope.release();829 PropertyDescriptor descriptor;830 bool enumerable = object->getOwnPropertyDescriptor(globalObject, propertyName, descriptor) && descriptor.enumerable();831 return JSValue::encode(jsBoolean(enumerable));832 }833 834 818 static bool canPerformFastPropertyEnumerationForCopyDataProperties(Structure* structure) 835 819 {
Note:
See TracChangeset
for help on using the changeset viewer.