Skip to content

Commit

Permalink
Turning this from null to console
Browse files Browse the repository at this point in the history
Turning ``this`` from ``null`` to ``console`` accorging to whatwg/console#3 to avoid issues under antique engines

Thanks again to @zloirock for mentioning this
  • Loading branch information
juliyvchirkov authored and JakeChampion committed Aug 17, 2023
1 parent 5e2ee54 commit d57aedf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion polyfills/console/exception/polyfill.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
console.exception = function exception() {
if ("error" in console) {
Function.prototype.apply.call(console.error, null, arguments);
Function.prototype.apply.call(console.error, console, arguments);
}
};

0 comments on commit d57aedf

Please sign in to comment.