function argsToArray() {
  this._logger?.warn('argsToArray is deprecated and will be removed in the next major')
  const len = arguments.length
  const arr = new Array(len)
  for (let i = 0; i < len; ++i) {
    arr[i] = arguments[i]
  }
  return arr
}
Like {@link Shim#toArray}, but converts `arguments` to an array.

This is the preferred function, when used with `.apply`, for converting the
`arguments` object into an actual `Array` as it will not cause deopts.

@memberof Shim.prototype
@returns {Array} An array containing the elements of `arguments`.
@see Shim#toArray
@see https://github.com/petkaantonov/bluebird/wiki/Optimization-killers

@deprecated 2025-06-10 -- see https://github.com/newrelic/node-newrelic/issues/3089