From 8ca08ff999ccd15a7333d0f05b5473ee7fe2ca6b Mon Sep 17 00:00:00 2001 From: Sheel Choksi Date: Sat, 18 Jan 2014 13:12:07 -0800 Subject: [PATCH] Run Object.create(null) spec on all browsers not IE 8 IE 8 doesn't support Object.create so there shouldn't be a need to run this spec in IE 8 --- spec/core/PrettyPrintSpec.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spec/core/PrettyPrintSpec.js b/spec/core/PrettyPrintSpec.js index 0d447f32..4e31e39c 100644 --- a/spec/core/PrettyPrintSpec.js +++ b/spec/core/PrettyPrintSpec.js @@ -123,6 +123,8 @@ describe("j$.pp", function () { }); it("should handle objects with null prototype", function() { + if (jasmine.getEnv().ieVersion < 9) { return; } + var obj = Object.create(null); obj.foo = 'bar';