unsafe extern "C" fn get_permission<D: DomTypes>( cx: *mut JSContext, argc: c_uint, vp: *mut JSVal, ) -> bool