|
|
@ -38,7 +38,11 @@ if (typeof Object.getPrototypeOf !== "function") { |
|
|
|
} |
|
|
|
} |
|
|
|
: function (object) { |
|
|
|
: function (object) { |
|
|
|
// May break if the constructor has been tampered with
|
|
|
|
// May break if the constructor has been tampered with
|
|
|
|
return object.constructor.prototype; |
|
|
|
try { |
|
|
|
|
|
|
|
return object.constructor.prototype; |
|
|
|
|
|
|
|
} catch (e) { |
|
|
|
|
|
|
|
return {}; |
|
|
|
|
|
|
|
} |
|
|
|
}; |
|
|
|
}; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|