Comparing version 0.0.2 to 0.0.3
@@ -6,3 +6,4 @@ var argumentsRegExp = /\(([\s\S]*?)\)/; | ||
var fnArguments = argumentsRegExp.exec(fn)[1].trim(); | ||
if (0 === fnArguments.length) return []; | ||
return fnArguments.split(replaceRegExp); | ||
}; |
@@ -7,3 +7,3 @@ { | ||
"keywords": ["reflection", "introspection", "arguments", "args"], | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"engines": { | ||
@@ -10,0 +10,0 @@ "node": ">= v0.4.7" |
@@ -25,4 +25,8 @@ var | ||
}), ['foo', 'bar', 'callback']); | ||
}, | ||
'with no arguments': function () { | ||
assert.deepEqual(introspect(function () {}), []); | ||
assert.deepEqual(introspect(function ( ) { }), []); | ||
} | ||
} | ||
}).export(module); |
6224
61