diff --git a/lib/jasmine-core/jasmine.js b/lib/jasmine-core/jasmine.js index 9e6c4243..55805398 100644 --- a/lib/jasmine-core/jasmine.js +++ b/lib/jasmine-core/jasmine.js @@ -903,8 +903,10 @@ getJasmineRequireObj().Env = function(j$) { // TODO: fix this naming, and here's where the value comes in this.catchExceptions = function(value) { - this.deprecated('The catchExceptions option is deprecated and will be replaced with stopOnSpecFailure in Jasmine 3.0'); catchExceptions = !!value; + if (!catchExceptions) { + this.deprecated('The catchExceptions option is deprecated and will be replaced with stopOnSpecFailure in Jasmine 3.0'); + } return catchExceptions; }; diff --git a/lib/jasmine-core/version.rb b/lib/jasmine-core/version.rb index f120958d..42f7a6d6 100644 --- a/lib/jasmine-core/version.rb +++ b/lib/jasmine-core/version.rb @@ -4,6 +4,6 @@ # module Jasmine module Core - VERSION = "2.99.0" + VERSION = "2.99.1" end end diff --git a/package.json b/package.json index 1050dc8f..180f87fd 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "jasmine-core", "license": "MIT", - "version": "2.99.0", + "version": "2.99.1", "repository": { "type": "git", "url": "https://github.com/jasmine/jasmine.git" diff --git a/src/core/Env.js b/src/core/Env.js index c62b7843..50bb73f7 100644 --- a/src/core/Env.js +++ b/src/core/Env.js @@ -198,8 +198,10 @@ getJasmineRequireObj().Env = function(j$) { // TODO: fix this naming, and here's where the value comes in this.catchExceptions = function(value) { - this.deprecated('The catchExceptions option is deprecated and will be replaced with stopOnSpecFailure in Jasmine 3.0'); catchExceptions = !!value; + if (!catchExceptions) { + this.deprecated('The catchExceptions option is deprecated and will be replaced with stopOnSpecFailure in Jasmine 3.0'); + } return catchExceptions; };