aboutsummaryrefslogtreecommitdiff
path: root/lib/tree.js
diff options
context:
space:
mode:
authorcyanos3 <[email protected]>2013-11-05 20:10:31 -0700
committercyanos3 <[email protected]>2013-11-05 20:10:31 -0700
commitc8f71cd072b74c66693cae927bdaf9a97ee15c1f (patch)
treef7879114561edad1b2ca4f957c2063eece57f8f4 /lib/tree.js
parente7aaa93c306fe9c7f0b662ff68f0a36426605283 (diff)
downloadfaker-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.js10
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"
};
}