Skip to content

Commit 318214b

Browse files
mari-stochristopherthielen
authored andcommitted
fix(ie9): make console.bind work in ie9 (#85)
1 parent 74e8337 commit 318214b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/common/trace.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,11 @@ function normalizedCat(input: Category|string): string {
6565
}
6666

6767
/** @hidden */
68-
const consoletable = isFunction(console.table) ? console.table.bind(console) : console.log.bind(console);
68+
const consoleLog = Function.prototype.bind.call(console.log, console);
69+
70+
/** @hidden */
71+
const consoletable = isFunction(console.table) ? console.table.bind(console) : consoleLog.bind(console);
72+
6973

7074
/**
7175
* Trace categories Enum

0 commit comments

Comments
 (0)