GetPrototypeOf() private method

private GetPrototypeOf ( ObjectInstance obj ) : object
obj ObjectInstance
return object
示例#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.");
 }
示例#2
0
 public static object GetPrototypeOf(ObjectInstance target)
 {
     return(ObjectConstructor.GetPrototypeOf(target));
 }