Esempio n. 1
0
 public static BoxedValue ToPrimitive(Undefined u, DefaultValueHint hint)
 {
     return Undefined.Boxed;
 }
Esempio n. 2
0
 public static string ToString(Undefined u)
 {
     return "undefined";
 }
Esempio n. 3
0
 public static ScriptObject ToObject(Environment env, Undefined undef)
 {
     return env.RaiseTypeError<ScriptObject>("Can't convert Undefined to Object");
 }
Esempio n. 4
0
 public static bool ToBoolean(Undefined u)
 {
     return false;
 }
Esempio n. 5
0
 public static double ToNumber(Undefined u)
 {
     return double.NaN;
 }
Esempio n. 6
0
 public static BoxedValue ToBoxedValue(Undefined u)
 {
     return Undefined.Boxed;
 }
Esempio n. 7
0
 static Undefined()
 {
     instance = new Undefined();
     boxed = BoxedValue.Box(instance, TypeTags.Undefined);
 }