Function script::dom::bindings::import::module::jsapi::JS::LooselyEqual

source ·
pub unsafe extern "C" fn LooselyEqual(
    cx: *mut JSContext,
    v1: Handle<Value>,
    v2: Handle<Value>,
    equal: *mut bool,
) -> bool
Expand description

Store |v1 == v2| to |*equal| – loose equality, which may perform user-modifiable conversions on |v1| or |v2|.

This operation can fail if a user-modifiable conversion fails or if an internal error occurs. (e.g. OOM while linearizing a string value).