MCPcopy Create free account
hub / github.com/getsentry/sentry-javascript / f

Function f

packages/core/test/lib/utils/syncpromise.test.ts:74–83  ·  view source on GitHub ↗
(s: SyncPromise<string>, prepend: string)

Source from the content-addressed store, hash-verified

72 });
73
74 const f = (s: SyncPromise<string>, prepend: string) =>
75 new SyncPromise<string>(resolve => {
76 void s
77 .then(val => {
78 resolve(prepend + val);
79 })
80 .then(null, () => {
81 // no-empty
82 });
83 });
84
85 return (
86 c

Callers 2

fallbackFunction · 0.85

Calls 2

resolveFunction · 0.50
thenMethod · 0.45

Tested by

no test coverage detected