Skip to content

Commit 1b6ebbc

Browse files
committed
Fix setupOnerror issues
1 parent 910935c commit 1b6ebbc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

addon/src/setup-onerror.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,8 @@ export function _prepareOnerror(context: BaseContext) {
7676
throw new Error('_prepareOnerror should only be called once per-context');
7777
}
7878

79-
cachedOnerror.set(context, getOnerror);
79+
// SAFETY: getOnerror doesn't have correct types
80+
cachedOnerror.set(context, getOnerror() as any);
8081
}
8182

8283
/**

0 commit comments

Comments
 (0)