Skip to content

Commit

Permalink
- Removed "invalid function" exception that doesn't seem to be possi…
Browse files Browse the repository at this point in the history
…ble, for

    100% code coverage
  • Loading branch information
atesgoral committed Apr 4, 2009
1 parent b0c8652 commit 8014a34
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 2 additions & 0 deletions jsunity/CHANGES.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
- Removed "invalid function" exception that doesn't seem to be possible, for
100% code coverage
- Bound the test suite object on setUp and tearDown calls

0.6
Expand Down
4 changes: 0 additions & 4 deletions jsunity/jsunity.js
Original file line number Diff line number Diff line change
Expand Up @@ -181,10 +181,6 @@ jsUnity = (function () {
/^[\s\r\n]*function[\s\r\n]*([^\(\s\r\n]*?)[\s\r\n]*\([^\)\s\r\n]*\)[\s\r\n]*\{((?:[^}]*\}?)+)\}[\s\r\n]*$/
.exec(fn);

if (!tokens) {
throw "Invalid function.";
}

return {
name: tokens[1].length ? tokens[1] : undefined,
body: tokens[2]
Expand Down

0 comments on commit 8014a34

Please sign in to comment.