code: function createPhantomHandler(ph) {
          if (DEBUG && typeof ph !== "object") inspectArgs("createPhantomHandler: ", ph);
  
          phInstance = ph;
          return ph.createPage();
      }
docs: NOTE: The <phantomjs-node> module no longer supports a port configuration object. Reset the handler in case we grab an in-use port. function onUncaughtException(err) { if (err.errno === "EADDRINUSE") { createPhantomInstance(args); } else { console.log(err); process.exit(1); } } 
  Generate a new PhantomJS instance.