code: function warn(msg) {
    if (global && global.process && global.process.emitWarning) {
      global.process.emitWarning(msg, 'DeprecationWarning')
    } else {
      // eslint-disable-next-line no-console
      console.warn(`DeprecationWarning: ${msg}`)
    }
  }
docs: /* global global, console