Exemplo n.º 1
0
 public static string GetPropertyName(EcmaValue value)
 {
     if (value.IsRefrence())
     {
         return(value.ToRefrence().Name);
     }
     throw new EcmaRuntimeException("Cant get propertyname of non refrence");
 }
Exemplo n.º 2
0
        public static EcmaHeadObject GetBase(EcmaValue value)
        {
            if (value.IsRefrence())
            {
                return(value.ToRefrence().Base);
            }

            throw new EcmaRuntimeException("Cant get base of non refrence");
        }