GetPrototypeOf() 개인적인 메소드

private GetPrototypeOf ( ObjectInstance obj ) : object
obj ObjectInstance
리턴 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));
 }