Esempio n. 1
0
 public override EcmaValueHandle ToHandle(string value)
 {
     if (longDict[value] is EcmaValueHandle handle)
     {
         return(handle);
     }
     lock (longDict) {
         if (longDict[value] is EcmaValueHandle handle2)
         {
             return(handle2);
         }
         EcmaValueHandle handle3 = new EcmaValueHandle(strArr.Count);
         longDict[value] = handle3;
         strArr.Add(value);
         return(handle3);
     }
 }
Esempio n. 2
0
 public string GetToStringTag(EcmaValueHandle handle)
 {
     return(binder.ToStringTag);
 }
Esempio n. 3
0
 public override long FromHandle(EcmaValueHandle handle)
 {
     return(handle.Value);
 }
Esempio n. 4
0
 public string ToString(EcmaValueHandle handle)
 {
     throw new InvalidOperationException();
 }
Esempio n. 5
0
 public EcmaValue ToPrimitive(EcmaValueHandle handle, EcmaPreferredPrimitiveType preferredType)
 {
     throw new InvalidOperationException();
 }
Esempio n. 6
0
 public EcmaValueType GetValueType(EcmaValueHandle handle)
 {
     return(SharedValue);
 }
Esempio n. 7
0
 public bool ToBoolean(EcmaValueHandle handle)
 {
     throw new InvalidOperationException();
 }
Esempio n. 8
0
 public bool HasProperty(EcmaValueHandle handle, EcmaPropertyKey name)
 {
     throw new InvalidOperationException();
 }
Esempio n. 9
0
 public bool ToBoolean(EcmaValueHandle handle)
 {
     return(binder.ToBoolean(value));
 }
Esempio n. 10
0
 public IEnumerable <EcmaPropertyKey> GetEnumerableOwnProperties(EcmaValueHandle handle)
 {
     return(binder.GetEnumerableOwnProperties(value));
 }
Esempio n. 11
0
 public bool HasOwnProperty(EcmaValueHandle handle, EcmaPropertyKey name)
 {
     return(binder.HasOwnProperty(value, name));
 }
Esempio n. 12
0
 public EcmaValue Call(EcmaValueHandle handle, EcmaValue thisValue, params EcmaValue[] arguments)
 {
     throw new EcmaTypeErrorException(InternalString.Error.NotFunction);
 }
Esempio n. 13
0
 public bool TrySet(EcmaValueHandle handle, EcmaPropertyKey name, EcmaValue value)
 {
     return(binder.TrySet(this.value, name, value));
 }
Esempio n. 14
0
 public EcmaNumberType GetNumberType(EcmaValueHandle handle)
 {
     return(binder.NumberType);
 }
Esempio n. 15
0
 public EcmaValueType GetValueType(EcmaValueHandle handle)
 {
     return(binder.ValueType);
 }
Esempio n. 16
0
 public IEnumerable <EcmaPropertyKey> GetEnumerableOwnProperties(EcmaValueHandle handle)
 {
     throw new InvalidOperationException();
 }
Esempio n. 17
0
 public int GetHashCode(EcmaValueHandle handle)
 {
     throw new InvalidOperationException();
 }
Esempio n. 18
0
 public int ToInt32(EcmaValueHandle handle)
 {
     return(binder.ToInt32(value));
 }
Esempio n. 19
0
 public bool IsExtensible(EcmaValueHandle handle)
 {
     throw new InvalidOperationException();
 }
Esempio n. 20
0
 public long ToInt64(EcmaValueHandle handle)
 {
     return(binder.ToInt64(value));
 }
Esempio n. 21
0
 public double ToDouble(EcmaValueHandle handle)
 {
     throw new InvalidOperationException();
 }
Esempio n. 22
0
 public bool TrySet(EcmaValueHandle handle, EcmaPropertyKey name, EcmaValue value)
 {
     throw new InvalidOperationException();
 }
Esempio n. 23
0
 public EcmaValue ToNumber(EcmaValueHandle handle)
 {
     throw new InvalidOperationException();
 }
Esempio n. 24
0
 public EcmaNumberType GetNumberType(EcmaValueHandle handle)
 {
     return(EcmaNumberType.Int64);
 }
Esempio n. 25
0
 public RuntimeObject ToRuntimeObject(EcmaValueHandle handle)
 {
     throw new InvalidOperationException();
 }
Esempio n. 26
0
 public long ToInt64(EcmaValueHandle handle)
 {
     return(handle.Value);
 }
Esempio n. 27
0
 public override Symbol FromHandle(EcmaValueHandle handle)
 {
     return(Symbol.GetSymbol((WellKnownSymbol)handle.Value));
 }
Esempio n. 28
0
 public EcmaValue Call(EcmaValueHandle handle, EcmaValue thisValue, EcmaValue[] arguments)
 {
     throw new InvalidOperationException();
 }
Esempio n. 29
0
 public override T FromHandle(EcmaValueHandle handle)
 {
     return(getObject(handle.Value));
 }
Esempio n. 30
0
 public object FromHandle(EcmaValueHandle handle)
 {
     throw new InvalidOperationException();
 }