diff --git a/lib/jasmine-core/jasmine.js b/lib/jasmine-core/jasmine.js index d19b53f0..1fe5a8d6 100644 --- a/lib/jasmine-core/jasmine.js +++ b/lib/jasmine-core/jasmine.js @@ -3219,7 +3219,7 @@ getJasmineRequireObj().toThrow = function(j$) { }; getJasmineRequireObj().toThrowError = function(j$) { - function toThrowError (util) { + function toThrowError () { return { compare: function(actual) { var threw = false, diff --git a/spec/core/matchers/toThrowErrorSpec.js b/spec/core/matchers/toThrowErrorSpec.js index 43b3b8ed..ebf3e21e 100644 --- a/spec/core/matchers/toThrowErrorSpec.js +++ b/spec/core/matchers/toThrowErrorSpec.js @@ -146,7 +146,7 @@ describe("toThrowError", function() { var util = { equals: jasmine.createSpy('delegated-equal').and.returnValue(true) }, - matcher = j$.matchers.toThrowError(util), + matcher = j$.matchers.toThrowError(), fn = function() { throw new Error(); }, @@ -162,7 +162,7 @@ describe("toThrowError", function() { var util = { equals: jasmine.createSpy('delegated-equal').and.returnValue(true) }, - matcher = j$.matchers.toThrowError(util), + matcher = j$.matchers.toThrowError(), CustomError = function CustomError(arg) { arg.x }, fn = function() { throw new CustomError({ x: 1 }); @@ -181,7 +181,7 @@ describe("toThrowError", function() { var util = { equals: jasmine.createSpy('delegated-equal').and.returnValue(false) }, - matcher = j$.matchers.toThrowError(util), + matcher = j$.matchers.toThrowError(), fn = function() { throw new Error(); }, @@ -197,7 +197,7 @@ describe("toThrowError", function() { var util = { equals: jasmine.createSpy('delegated-equal').and.returnValue(true) }, - matcher = j$.matchers.toThrowError(util), + matcher = j$.matchers.toThrowError(), fn = function() { throw new TypeError("foo"); }, @@ -213,7 +213,7 @@ describe("toThrowError", function() { var util = { equals: jasmine.createSpy('delegated-equal').and.returnValue(true) }, - matcher = j$.matchers.toThrowError(util), + matcher = j$.matchers.toThrowError(), CustomError = function CustomError(arg) { this.message = arg.message }, fn = function() { throw new CustomError({message: "foo"}); @@ -232,7 +232,7 @@ describe("toThrowError", function() { var util = { equals: jasmine.createSpy('delegated-equal').and.returnValue(false) }, - matcher = j$.matchers.toThrowError(util), + matcher = j$.matchers.toThrowError(), fn = function() { throw new TypeError("foo"); }, @@ -248,7 +248,7 @@ describe("toThrowError", function() { var util = { equals: jasmine.createSpy('delegated-equal').and.returnValue(true) }, - matcher = j$.matchers.toThrowError(util), + matcher = j$.matchers.toThrowError(), fn = function() { throw new TypeError("foo"); }, @@ -264,7 +264,7 @@ describe("toThrowError", function() { var util = { equals: jasmine.createSpy('delegated-equal').and.returnValue(false) }, - matcher = j$.matchers.toThrowError(util), + matcher = j$.matchers.toThrowError(), fn = function() { throw new TypeError("foo"); }, diff --git a/src/core/matchers/toThrowError.js b/src/core/matchers/toThrowError.js index 41ab793d..7118dc3e 100644 --- a/src/core/matchers/toThrowError.js +++ b/src/core/matchers/toThrowError.js @@ -1,5 +1,5 @@ getJasmineRequireObj().toThrowError = function(j$) { - function toThrowError (util) { + function toThrowError () { return { compare: function(actual) { var threw = false,