Пример #1
0
        private static BigInteger ToBigInteger(EcmaValue x)
        {
            object obj = x.GetUnderlyingObject();

            return(obj is BigInteger bigInt ? bigInt : (long)obj);
        }
Пример #2
0
 public static bool IsPromise(EcmaValue value)
 {
     return(value.GetUnderlyingObject() is Promise);
 }