Skip to content

Commit 0b53177

Browse files
authored
Merge pull request #114 from trevorhreed/patch-1
Update Dumper.coffee to ignore functions, until we find a better idea.
2 parents d3e1d7b + a9309b4 commit 0b53177

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Dumper.coffee

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ class Dumper
2222
#
2323
dump: (input, inline = 0, indent = 0, exceptionOnInvalidType = false, objectEncoder = null) ->
2424
output = ''
25+
26+
if typeof(input) is 'function'
27+
return output
28+
2529
prefix = (if indent then Utils.strRepeat(' ', indent) else '')
2630

2731
if inline <= 0 or typeof(input) isnt 'object' or input instanceof Date or Utils.isEmpty(input)

0 commit comments

Comments
 (0)