code: function respond (page, response) {
      system.stdout.write(JSON.stringify(response))
  
      // Work-around to avoid "Unsafe JavaScript attempt to access frame" warning in PhantomJS 1.9.8.
      // See: https://github.com/ariya/phantomjs/issues/12697
      // since we rely on stdout for the dedicated-process strategy this work-around
      // ensures the phantom process don't log anything we don't want
      page.close()
  
      setTimeout(function () {
        /* eslint-disable-next-line no-undef */
        phantom.exit(0)
      }, 0)
    }
docs: eslint-disable-next-line no-inner-declarations