isEqual method

bool isEqual(
  1. JSValue other
)

Tests whether two JavaScript values are equal, as compared by the JS == operator.

Implementation

bool isEqual(JSValue other) {
  final JSException exception = JSException.create(context);
  final bool ret = JSValueIsEqual(
    context.ref,
    _ref,
    other._ref,
    exception.ref,
  );
  if (exception.shouldThrow) throw exception.error;
  return ret;
}