Allow IE8 to be weird when pretty printing

This commit is contained in:
Gregg Van Hove
2017-07-18 21:07:38 -07:00
parent 22e9d6df20
commit f71218a44b

View File

@@ -262,7 +262,11 @@ describe("jasmineUnderTest.pp", function () {
toString: "foo"
};
expect(jasmineUnderTest.pp(obj)).toEqual("Object({ toString: 'foo' })");
if (jasmine.getEnv().ieVersion < 9) {
expect(jasmineUnderTest.pp(obj)).toEqual("Object({ toString: 'foo' })");
} else {
expect(jasmineUnderTest.pp(obj)).toEqual("Object({ })");
}
});
it("should stringify objects from anonymous constructors with custom toString", function () {