function browserQueueMicrotaskImpl(global) {
    const unclampedSetTimeout = getUnclampedSetTimeout(global);
    const { queueMicrotask } = global;
    let currentCallCount = 0;
    return function clearStack(fn) {
      currentCallCount++;

      if (currentCallCount < maxInlineCallCount) {
        queueMicrotask(fn);
      } else {
        currentCallCount = 0;
        unclampedSetTimeout(fn);
      }
    };
  }
Set this spy to do a clone of arguments passed to each invocation.
@name Spy#calls#saveArgumentsByValue
@since 2.5.0
@param {Function} [argsCloner] A function to use to clone the arguments. Defaults to a shallow cloning function.
@function