in packages/sdk/src/AccessiblePromise.ts [51:62]
get reason(): unknown {
switch (this.#status) {
case 'fulfilled':
return undefined;
case 'rejected':
throw this.#value;
case 'pending':
throw Object.assign(new Error('Promise is pending.'), { then: this.then.bind(this) });
default:
throw new Error('Unreachable');
}
}