Skip to content
This repository was archived by the owner on Jun 5, 2020. It is now read-only.

Commit

Permalink
Fix block function type warnings in assert.js
Browse files Browse the repository at this point in the history
Closure compiler produced the following warnings:

assert.js:117: WARNING - Bad type annotation. missing opening (
 * @param {function} block
                   ^

assert.js:126: WARNING - Bad type annotation. missing opening (
 * @param {function} block
                   ^

Fix by adding argument types to the block functions.

Signed-off-by: Kevin Locke <[email protected]>
  • Loading branch information
kevinoid committed Apr 12, 2013
1 parent 693934f commit 50575e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions assert.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ assert.notStrictEqual = function(actual, expected, message) {};
/**
* @name assert.throws
* @function
* @param {function} block
* @param {function()} block
* @param {Function|RegExp|function(*)} error
* @param {string=} message
* @throws {assert.AssertionError}
Expand All @@ -123,7 +123,7 @@ assert.notStrictEqual = function(actual, expected, message) {};
// assert.throws = function(block, error, message) {};

/**
* @param {function} block
* @param {function()} block
* @param {Function|RegExp|function(*)} error
* @param {string=} message
* @throws {assert.AssertionError}
Expand Down

0 comments on commit 50575e9

Please sign in to comment.