Removed more code that supported browsers we no longer run on

This commit is contained in:
Steve Gravrock
2021-07-27 17:53:09 -07:00
parent e9bddc7a06
commit 09d2ce9bc9
4 changed files with 10 additions and 45 deletions

View File

@@ -3,18 +3,6 @@ getJasmineRequireObj().ObjectContaining = function(j$) {
this.sample = sample;
}
function getPrototype(obj) {
if (Object.getPrototypeOf) {
return Object.getPrototypeOf(obj);
}
if (obj.constructor.prototype == obj) {
return null;
}
return obj.constructor.prototype;
}
function hasProperty(obj, property) {
if (!obj || typeof obj !== 'object') {
return false;
@@ -24,7 +12,7 @@ getJasmineRequireObj().ObjectContaining = function(j$) {
return true;
}
return hasProperty(getPrototype(obj), property);
return hasProperty(Object.getPrototypeOf(obj), property);
}
ObjectContaining.prototype.asymmetricMatch = function(other, matchersUtil) {