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; } }
private static EcmaPropertyDescriptor CreateSharedObjectDescriptor(SharedObjectHandle handle, EcmaPropertyAttributes attributes) { return(new EcmaPropertyDescriptor(handle.ToValue(), attributes)); }
public IntrinsicMemberAttribute(WellKnownSymbol symbol, EcmaPropertyAttributes attributes) : this(attributes) { this.Symbol = symbol; }
public IntrinsicMemberAttribute(string name, EcmaPropertyAttributes attributes) : this(attributes) { this.Name = name ?? String.Empty; }
public IntrinsicMemberAttribute(EcmaPropertyAttributes attributes) { this.FunctionLength = -1; this.Attributes = attributes; }
public DataPropertyConstraint(EcmaPropertyKey name, EcmaValue?value, EcmaPropertyAttributes attributes) { this.name = name; this.attributes = attributes; this.expected = value; }
public static IConstraint OwnProperty(EcmaPropertyKey name, EcmaPropertyAttributes attributes) { return(new DataPropertyConstraint(name, null, attributes)); }
public EcmaPropertyDescriptor(EcmaValue getter, EcmaValue setter, EcmaPropertyAttributes attributes) { this.attributes = attributes | EcmaPropertyAttributes.HasEnumerable | EcmaPropertyAttributes.HasConfigurable; this.Get = getter; this.Set = setter; }
public EcmaPropertyDescriptor(EcmaPropertyAttributes attributes) { this.attributes = attributes | EcmaPropertyAttributes.HasWritable | EcmaPropertyAttributes.HasEnumerable | EcmaPropertyAttributes.HasConfigurable; }