mirror of
https://github.com/atom/atom.git
synced 2026-01-24 14:28:14 -05:00
💄
This commit is contained in:
@@ -67,8 +67,7 @@ module.exports =
|
||||
|
||||
stringify: (object) ->
|
||||
throw new Error("Cannot stringify undefined object") if object is undefined
|
||||
if _.isFunction(object)
|
||||
throw new Error("Cannot stringify function: #{object}")
|
||||
throw new Error("Cannot stringify function: #{object}") if _.isFunction(object)
|
||||
|
||||
return @stringifyString(object) if _.isString(object)
|
||||
return @stringifyBoolean(object) if _.isBoolean(object)
|
||||
|
||||
Reference in New Issue
Block a user