We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ddc1265 commit 6a7f74fCopy full SHA for 6a7f74f
packages/core/helpers/context-utils.ts
@@ -89,15 +89,11 @@ export class ContextUtils {
89
instance?: object,
90
callback?: Function,
91
): (args: unknown[]) => ExecutionContextHost {
92
- const contextFactory = (args: unknown[]) => {
93
- const ctx = new ExecutionContextHost(
94
- args,
95
- instance && (instance.constructor as Type<unknown>),
96
- callback,
97
- );
+ const type = instance && (instance.constructor as Type<unknown>);
+ return (args: unknown[]) => {
+ const ctx = new ExecutionContextHost(args, type, callback);
98
ctx.setType(contextType);
99
return ctx;
100
};
101
- return contextFactory;
102
}
103
0 commit comments