From 2c06e36b9b800d994a6273536c66758013b1fe1b Mon Sep 17 00:00:00 2001 From: "Dan Hansen and Davis W. Frank" Date: Tue, 26 Feb 2013 12:21:02 -0800 Subject: [PATCH] Fix for default state of exceptionCatching from HTML ui --- lib/jasmine-core/boot/boot.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/jasmine-core/boot/boot.js b/lib/jasmine-core/boot/boot.js index 6ae4dcdb..30b6194f 100644 --- a/lib/jasmine-core/boot/boot.js +++ b/lib/jasmine-core/boot/boot.js @@ -57,7 +57,9 @@ getWindowLocation: function() { return window.location; } }); - env.catchExceptions(queryString.getParam("catch")); + // TODO: move all of catching to raise so we don't break our brains + var catchingExceptions = queryString.getParam("catch"); + env.catchExceptions(typeof catchingExceptions === "undefined" ? true : catchingExceptions); var htmlReporter = new jasmine.HtmlReporter({ env: env,