diff options
| author | cyanos3 <[email protected]> | 2013-11-05 20:10:31 -0700 |
|---|---|---|
| committer | cyanos3 <[email protected]> | 2013-11-05 20:10:31 -0700 |
| commit | c8f71cd072b74c66693cae927bdaf9a97ee15c1f (patch) | |
| tree | f7879114561edad1b2ca4f957c2063eece57f8f4 /lib/tree.js | |
| parent | e7aaa93c306fe9c7f0b662ff68f0a36426605283 (diff) | |
| download | faker-c8f71cd072b74c66693cae927bdaf9a97ee15c1f.tar.xz faker-c8f71cd072b74c66693cae927bdaf9a97ee15c1f.zip | |
My take on separating male and female names. Tests passing, Coverage restored.
Diffstat (limited to 'lib/tree.js')
| -rw-r--r-- | lib/tree.js | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/lib/tree.js b/lib/tree.js index 839b698c..e2fd44b6 100644 --- a/lib/tree.js +++ b/lib/tree.js @@ -18,10 +18,7 @@ var tree = { if (!obj) { throw { name: "ObjectError", - message: "there needs to be an object passed in", - toString: function () { - return this.name + ": " + this.message - } + message: "there needs to be an object passed in" }; } @@ -29,10 +26,7 @@ var tree = { if (width <= 0) { throw { name: "TreeParamError", - message: "width must be greater than zero", - toString: function () { - return this.name + ": " + this.message - } + message: "width must be greater than zero" }; } |
