From d57aedfe5dc7d6152bae11ab6eeb1b211e7a2ec5 Mon Sep 17 00:00:00 2001 From: "Juliy V. Chirkov" Date: Tue, 1 Aug 2023 05:23:21 +0300 Subject: [PATCH] Turning ``this`` from ``null`` to ``console`` Turning ``this`` from ``null`` to ``console`` accorging to https://github.com/whatwg/console/issues/3 to avoid issues under antique engines Thanks again to @zloirock for mentioning this --- polyfills/console/exception/polyfill.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/polyfills/console/exception/polyfill.js b/polyfills/console/exception/polyfill.js index c0117465d..12bfeda3f 100644 --- a/polyfills/console/exception/polyfill.js +++ b/polyfills/console/exception/polyfill.js @@ -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); } };