docs: function renameFunction(func, newName) {
      // eslint-disable-next-line no-unused-vars
      const prop = Object.getOwnPropertyDescriptor(func, 'name');
      if (prop) {
          const { value, ...others } = prop;
          Object.defineProperty(func, 'name', { value: newName, ...others });
      }
  }