isPromise property

bool get isPromise

Implementation

bool get isPromise {
  final then = getPropertyStr('then');
  try {
    return isObject && then.isObject;
  } finally {
    // then.free(); // cause qjs free then crash, and ref_count == 2
  }
}