Skip to content

Commit e83f0da

Browse files
committed
fix log this context
1 parent 9aa5c58 commit e83f0da

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/lib/log.ts

+6-6
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,16 @@ export class Log {
2525
setLevel(level: number) {
2626
this.level = level;
2727
if (level >= Log.ASSERT) this.assert = console.assert.bind(console);
28-
else this.assert = function () {};
28+
else this.assert = () => {};
2929
if (level >= Log.ERROR) this.error = console.error.bind(console);
30-
else this.error = function () {};
30+
else this.error = () => {};
3131
if (level >= Log.WARN) this.warn = console.warn.bind(console);
32-
else this.warn = function () {};
32+
else this.warn = () => {};
3333
if (level >= Log.INFO) this.info = console.info.bind(console);
34-
else this.info = function () {};
34+
else this.info = () => {};
3535
if (level >= Log.DEBUG) this.debug = console.debug.bind(console);
36-
else this.debug = function () {};
36+
else this.debug = () => {};
3737
if (level >= Log.TRACE) this.trace = console.log.bind(console);
38-
else this.trace = function () {};
38+
else this.trace = () => {};
3939
}
4040
}

0 commit comments

Comments
 (0)