GetPrototypeOf() private méthode

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