   if e.getErrorInfo?
     return cb('stack', e.getErrorInfo())
    return cb('stack', parseStack(e, e.stack))
-
-
-funcName = (name) ->
-  if (ind = name.lastIndexOf('/')) >= 0
-    name = name[ind+1..]
-  if (ind = name.lastIndexOf('.')) >= 0
-    name = name[ind+1..]
-  return name
 
 
 parseStack = (e, stack) ->

    m = line.match(funcFileLineColumnRe)
    if m
      backtrace.push({
        function: funcName(m[1])
        file: m[2]
        line: parseInt(m[3])
        column: parseInt(m[4])

    m = line.match(funcAliasFileLineColumnRe)
    if m
      backtrace.push({
        function: m[1]
        file: m[3]
        line: parseInt(m[4])
        column: parseInt(m[5])
