GetPrototypeOf() private method

private GetPrototypeOf ( ObjectInstance obj ) : object
obj ObjectInstance
return object
Esempio n. 1
0
 public static object GetPrototypeOf(object target)
 {
     if (target is ObjectInstance targetObjectInstance)
     {
         return(ObjectConstructor.GetPrototypeOf(targetObjectInstance));
     }
     throw new JavaScriptException(ErrorType.TypeError, "Reflect.getPrototypeOf called on non-object.");
 }
Esempio n. 2
0
 public static object GetPrototypeOf(ObjectInstance target)
 {
     return(ObjectConstructor.GetPrototypeOf(target));
 }