* Unscope a name the binding echoed back, falling back to the local * name the caller passed. The binding returns the scoped name it * stored; if it ever returns something without our prefix, prefer * the caller's local name over leaking a foreign-looking value.
(sessionId: string, returned: string, fallback: string)
| 229 | * the caller's local name over leaking a foreign-looking value. |
| 230 | */ |
| 231 | function unscopeOr(sessionId: string, returned: string, fallback: string): string { |
| 232 | return unscopedName(sessionId, returned) ?? fallback; |
| 233 | } |
no test coverage detected