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