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 Aug 1, 2023
1 parent bd72160 commit a4d5e88
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 a4d5e88

Please sign in to comment.