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

@@ -110,16 +110,7 @@ describe('ObjectContaining', function() {
var matchersUtil = new jasmineUnderTest.MatchersUtil();
var prototypeObject = { foo: 'fooVal' };
var obj;
if (Object.create) {
obj = Object.create(prototypeObject);
} else {
function Foo() {}
Foo.prototype = prototypeObject;
Foo.prototype.constructor = Foo;
obj = new Foo();
}
var obj = Object.create(prototypeObject);
expect(containing.asymmetricMatch(obj, matchersUtil)).toBe(true);
});