8000 log in fill method · sdemjanenko/sentry-javascript@ec4f418 · GitHub
[go: up one dir, main page]

Skip to content

Commit ec4f418

Browse files
committed
log in fill method
1 parent ce2de89 commit ec4f418

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/utils/src/object.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ import { truncate } from './string';
1919
* @returns void
2020
*/
2121
export function fill(source: { [key: string]: any }, name: string, replacementFactory: (...args: any[]) => any): void {
22+
console.log(`in fill(${source}, ${name}, <factory>)`);
2223
if (!(name in source)) {
24+
console.log('name is not in source!');
2325
return;
2426
}
2527

@@ -43,6 +45,7 @@ export function fill(source: { [key: string]: any }, name: string, replacementFa
4345
}
4446
}
4547

48+
console.log(`replacing ${name} in ${source}`);
4649
source[name] = wrapped;
4750
}
4851

0 commit comments

Comments
 (0)
0