Skip to content
This repository was archived by the owner on Apr 22, 2020. It is now read-only.

Commit 2256d59

Browse files
fix issue 109: console logging breaks with exception in minimized version
1 parent 553b83b commit 2256d59

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/prettify.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1228,7 +1228,7 @@ window['_pr_isIE6'] = function () {
12281228
if (!langHandlerRegistry.hasOwnProperty(ext)) {
12291229
langHandlerRegistry[ext] = handler;
12301230
} else if ('console' in window) {
1231-
console.warn('cannot override language handler %s', ext);
1231+
console['warn']('cannot override language handler %s', ext);
12321232
}
12331233
}
12341234
}
@@ -1360,8 +1360,8 @@ window['_pr_isIE6'] = function () {
13601360
recombineTagsAndDecorations(job);
13611361
} catch (e) {
13621362
if ('console' in window) {
1363-
console.log(e);
1364-
console.trace();
1363+
console['log'](e);
1364+
console['trace']();
13651365
}
13661366
}
13671367
}

0 commit comments

Comments
 (0)