From e6eab4c9b695ca5d12a38a676f97d063d24e09a3 Mon Sep 17 00:00:00 2001 From: Oleksandr Chekhovskyi Date: Wed, 10 Jan 2018 14:26:56 +0100 Subject: [PATCH] Rename a variable to avoid using JS strict mode reserved words. This makes it possible to use "uglify-es" for code minification (Meteor's default), without having to fall back to Babel.minify(). --- lib/iron_core.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/iron_core.js b/lib/iron_core.js index 78f1c08..d929186 100644 --- a/lib/iron_core.js +++ b/lib/iron_core.js @@ -254,13 +254,13 @@ Function.prototype.deprecate = function (info) { * Returns a function that can be used to log debug messages for a given * package. */ -Iron.utils.debug = function (package) { - Iron.utils.assert(typeof package === 'string', "debug requires a package name"); +Iron.utils.debug = function (packageName) { + Iron.utils.assert(typeof packageName === 'string', "debug requires a package name"); return function debug (/* args */) { if (console && console.log && Iron.debug === true) { var msg = _.toArray(arguments).join(' '); - console.log("%c<" + package + "> %c" + msg, "color: #999;", "color: #000;"); + console.log("%c<" + packageName + "> %c" + msg, "color: #999;", "color: #000;"); } }; };