We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ca4816f + 7c729d7 commit b0d4277Copy full SHA for b0d4277
lib/logger/logger.js
@@ -5,7 +5,12 @@ var SUPPORTED_METHODS = [
5
];
6
7
function Logger() {
8
- this.setMethods(console);
+ var defaultMethods = {};
9
+ SUPPORTED_METHODS.forEach(function (method) {
10
+ // Deal with Chrome issue: https://bugs.chromium.org/p/chromium/issues/detail?id=179628
11
+ defaultMethods[method] = console[method].bind(console);
12
+ });
13
+ this.setMethods(defaultMethods);
14
}
15
module.exports = Logger;
16
0 commit comments