Improve isIE check to allow us to check for a minimum version

This commit is contained in:
Colin O'Byrne and JR Boyens
2013-07-22 14:22:14 -07:00
parent 2165d71dc5
commit f2306729cd
3 changed files with 11 additions and 9 deletions

View File

@@ -40,8 +40,8 @@ describe("ExceptionFormatter", function() {
});
describe("#stack", function() {
it("formats stack traces from Webkit, Firefox or node.js", function() {
if (isIE()) { return; }
it("formats stack traces from Webkit, Firefox, node.js or IE10+", function() {
if (jasmine.getGlobal().ieVersion < 10) { return; }
var error;
try { throw new Error("an error") } catch(e) { error = e; }