File tree 1 file changed +3
-3
lines changed
packages/opentelemetry-web/src
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -42,8 +42,8 @@ export class StackContextManager implements ContextManager {
42
42
context = Context . ROOT_CONTEXT
43
43
) : T {
44
44
const manager = this ;
45
- const contextWrapper = function ( ...args : unknown [ ] ) {
46
- return manager . with ( context , ( ) => target . apply ( context , args ) ) ;
45
+ const contextWrapper = function ( this : any , ...args : any [ ] ) {
46
+ return manager . with ( context , ( ) => target . apply ( this , args ) ) ;
47
47
} ;
48
48
Object . defineProperty ( contextWrapper , 'length' , {
49
49
enumerable : false ,
@@ -112,7 +112,7 @@ export class StackContextManager implements ContextManager {
112
112
this . _currentContext = context || Context . ROOT_CONTEXT ;
113
113
114
114
try {
115
- return fn . apply ( context ) ;
115
+ return fn ( ) ;
116
116
} catch ( err ) {
117
117
throw err ;
118
118
} finally {
You can’t perform that action at this time.
0 commit comments