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