pub unsafe extern "C" fn JSValueIsEqual(
ctx: JSContextRef,
a: JSValueRef,
b: JSValueRef,
exception: *mut JSValueRef,
) -> bool
Expand description
Tests whether two JavaScript values are equal, as compared by the JS ==
operator.
ctx
: The execution context to use.a
: The first value to test.b
: The second value to test.exception
: A pointer to aJSValueRef
in which to store an exception, if any. PassNULL
if you do not care to store an exception.
Returns true
if the two values are equal, false
if
they are not equal or an exception is thrown.