Exemple #1
0
 public EcmaPropertyDescriptor(EcmaValue data, EcmaPropertyAttributes attributes)
 {
     this.attributes = attributes | EcmaPropertyAttributes.HasWritable | EcmaPropertyAttributes.HasEnumerable | EcmaPropertyAttributes.HasConfigurable;
     if ((attributes & EcmaPropertyAttributes.LazyInitialize) != 0)
     {
         getter = data;
     }
     else
     {
         this.Value = data;
     }
 }
Exemple #2
0
 private static EcmaPropertyDescriptor CreateSharedObjectDescriptor(SharedObjectHandle handle, EcmaPropertyAttributes attributes)
 {
     return(new EcmaPropertyDescriptor(handle.ToValue(), attributes));
 }
Exemple #3
0
 public IntrinsicMemberAttribute(WellKnownSymbol symbol, EcmaPropertyAttributes attributes)
     : this(attributes) {
     this.Symbol = symbol;
 }
Exemple #4
0
 public IntrinsicMemberAttribute(string name, EcmaPropertyAttributes attributes)
     : this(attributes) {
     this.Name = name ?? String.Empty;
 }
Exemple #5
0
 public IntrinsicMemberAttribute(EcmaPropertyAttributes attributes)
 {
     this.FunctionLength = -1;
     this.Attributes     = attributes;
 }
Exemple #6
0
 public DataPropertyConstraint(EcmaPropertyKey name, EcmaValue?value, EcmaPropertyAttributes attributes)
 {
     this.name       = name;
     this.attributes = attributes;
     this.expected   = value;
 }
Exemple #7
0
 public static IConstraint OwnProperty(EcmaPropertyKey name, EcmaPropertyAttributes attributes)
 {
     return(new DataPropertyConstraint(name, null, attributes));
 }
Exemple #8
0
 public EcmaPropertyDescriptor(EcmaValue getter, EcmaValue setter, EcmaPropertyAttributes attributes)
 {
     this.attributes = attributes | EcmaPropertyAttributes.HasEnumerable | EcmaPropertyAttributes.HasConfigurable;
     this.Get        = getter;
     this.Set        = setter;
 }
Exemple #9
0
 public EcmaPropertyDescriptor(EcmaPropertyAttributes attributes)
 {
     this.attributes = attributes | EcmaPropertyAttributes.HasWritable | EcmaPropertyAttributes.HasEnumerable | EcmaPropertyAttributes.HasConfigurable;
 }