       return if res._headerSent
       return next() unless result
 
-      if isType result, Object
+      if result.constructor is Object
         return res.send result
 
       if result instanceof Error

      return if ++index is length
      startTime = now()
      result = pipes[index].call context, req, res
      if result and isType result.then, Function
      then result.then done
      else done result


setProto = require "setProto"
Promise = require "Promise"
express = require "express"
path = require "path"
now = require "performance-now"
log = require "log"
