function syncTrampoline(generatorFn, ...args) {
  const iterator = generatorFn(...args);
  let result = generatorNext(iterator);
  while (!result.done) {
    try {
      result = generatorNext(iterator, result.value);
    } catch (err) {
      result = generatorThrow(iterator, err);
    }
  }
  return result.value;
}
Trampoline on {@link TrampolineGeneratorFn generatorFn} synchronously.

@template {readonly any[]} TArgs Parameters for `generatorFn`
@template {(...args: TArgs) => Generator} TFn
@param {TFn} generatorFn Generator-returning function accepting any arguments
@param {TArgs} args Arguments to pass to `generatorFn`
@returns {SyncTrampolineResult<TFn>}