Skip to content

Commit f122d9b

Browse files
committed
fix: replace bind with arrow function
1 parent dbd15d9 commit f122d9b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/node-http-handler/src/timing.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
* For test spies.
44
*/
55
export const timing = {
6-
setTimeout: setTimeout.bind(this),
7-
clearTimeout: clearTimeout.bind(this),
6+
setTimeout: (cb, timeout) => setTimeout(cb, timeout),
7+
clearTimeout: (id) => clearTimeout(id),
88
};

0 commit comments

Comments
 (0)