private static BigInteger ToBigInteger(EcmaValue x) { object obj = x.GetUnderlyingObject(); return(obj is BigInteger bigInt ? bigInt : (long)obj); }
public static bool IsPromise(EcmaValue value) { return(value.GetUnderlyingObject() is Promise); }