1 Object.getType = function Object$getType(instance) {
5 var e = Function._validateParams(arguments, [
6 {name: "instance"}
7 ]);
8 if (e) throw e;
9 var ctor = instance.constructor;
10 if (!ctor || (typeof(ctor) !== "function") || !ctor.__typeName || (ctor.__typeName === 'Object')) {
11 return Object;
12 }
13 return ctor;
14 }