Skip to main content

cross_origin_set

Function cross_origin_set 

Source
pub unsafe fn cross_origin_set<D>(
    cx: &mut CurrentRealm<'_>,
    proxy: Handle<'_, *mut JSObject>,
    id: Handle<'_, PropertyKey>,
    v: Handle<Value>,
    receiver: Handle<'_, Value>,
    result: *mut ObjectOpResult,
) -> bool
where D: DomTypes,
Expand description

Implementation of CrossOriginSet.

cx and proxy are expected to be different-Realm here. proxy is a proxy for a maybe-cross-origin object.

ยงSafety

result must point to a valid, non-null ObjectObResult.