Skip to content
Permalink
Browse files

chore: replace arguments per spread array to fix lint issue (#182)

  • Loading branch information...
vmarchaud authored and mayurkale22 committed Aug 9, 2019
1 parent fc74a7f commit f37e3a7af045dd5afb804990514b09e3c967c057
Showing with 2 additions and 2 deletions.
  1. +2 −2 packages/opentelemetry-scope-async-hooks/src/AsyncHooksScopeManager.ts
@@ -77,8 +77,8 @@ export class AsyncHooksScopeManager implements ScopeManager {

private _bindFunction<T extends Function>(target: T, scope?: unknown): T {
const manager = this;
const contextWrapper = function(this: {}) {
return manager.with(scope, () => target.apply(this, arguments));
const contextWrapper = function(this: {}, ...args: unknown[]) {
return manager.with(scope, () => target.apply(this, args));
};
Object.defineProperty(contextWrapper, 'length', {
enumerable: false,

0 comments on commit f37e3a7

Please sign in to comment.
You can’t perform that action at this time.