From 0bfa8ff69cf7189a778d1b1ec21e1ea29e7b87ca Mon Sep 17 00:00:00 2001 From: Bastien Caudan Date: Tue, 18 May 2021 11:53:35 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20[logs]=20Fix=20IE11=20console.lo?= =?UTF-8?q?g=20issue?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/core/src/tools/display.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/core/src/tools/display.ts b/packages/core/src/tools/display.ts index bf1aed109a..88deb8521f 100644 --- a/packages/core/src/tools/display.ts +++ b/packages/core/src/tools/display.ts @@ -1,4 +1,4 @@ -/* eslint-disable no-console */ +/* eslint-disable no-console, local-rules/disallow-side-effects */ /** * Keep references on console methods to avoid triggering patched behaviors * @@ -7,7 +7,7 @@ * but we should be safe from infinite loop nonetheless. */ export const display: Pick = { - log: console.log, - warn: console.warn, - error: console.error, + log: console.log.bind(console), + warn: console.warn.bind(console), + error: console.error.bind(console), }