static serializeArguments(args) {
    return args.map(arg => arg === undefined ? 'undefined' : JSON.stringify(arg)).join(',');
  }
Serializes an array of arguments for use in an `eval` string across the protocol.
@param {unknown[]} args
@return {string}