From 61b1c57917a1c0af6cc2cd02140264cca1cd052b Mon Sep 17 00:00:00 2001 From: evelyn masso Date: Tue, 15 Jun 2021 19:33:55 -0700 Subject: [PATCH] make report monkey patchable see https://github.com/processing/p5.js/issues/5243 --- src/core/friendly_errors/fes_core.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/friendly_errors/fes_core.js b/src/core/friendly_errors/fes_core.js index 1703e3bbfe..4684085dea 100644 --- a/src/core/friendly_errors/fes_core.js +++ b/src/core/friendly_errors/fes_core.js @@ -200,7 +200,7 @@ if (typeof IS_MINIFIED !== 'undefined') { /** * Prints out a fancy, colorful message to the console log * - * @method report + * @method _report * @private * @param {String} message the words to be said * @param {String} [func] the name of the function to link @@ -208,7 +208,7 @@ if (typeof IS_MINIFIED !== 'undefined') { * * @return console logs */ - const report = (message, func, color) => { + p5._report = (message, func, color) => { // if p5._fesLogger is set ( i.e we are running tests ), use that // instead of console.log const log =