Skip to main content

get_own_enumerable_property_keys

Function get_own_enumerable_property_keys 

Source
unsafe extern "C" fn get_own_enumerable_property_keys(
    cx: *mut JSContext,
    proxy: HandleObject,
    property_keys: MutableHandleIdVector,
) -> bool
Expand description

A version of https://html.spec.whatwg.org/multipage#windowproxy-ownpropertykeys that hands back only the enumerable properties. This is necessary because the default implementation of this method returns all enumerable properties which isn’t correct in the cross-origin case.