Skip to content

Commit ba22a80

Browse files
committed
Add comment
1 parent aa13dce commit ba22a80

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/log.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
// Default `opts.log`
44
const defaultLog = function(message, level) {
5+
// Note that `console` should be referenced inside this function, not outside,
6+
// as user might monkey patch it.
57
// eslint-disable-next-line no-restricted-globals, no-console
68
console[level](message)
79
}

0 commit comments

Comments
 (0)