From e48149ecfabc471a881c17d6dc357b7d8d0a48f4 Mon Sep 17 00:00:00 2001 From: Ferdinand Prantl Date: Thu, 30 Dec 2021 08:56:24 +0100 Subject: [PATCH] fix: Do not use the method hasOwnProperty directly --- es6.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/es6.js b/es6.js index 060d7a9..3143e99 100644 --- a/es6.js +++ b/es6.js @@ -56,12 +56,12 @@ define([ ] ]) }; + var hasOwnProperty = Object.prototype.hasOwnProperty; for (var key in pluginOptions) { - if (pluginOptions.hasOwnProperty(key) && excludedOptions.indexOf(key) < 0) { + if (hasOwnProperty.call(pluginOptions, key) && excludedOptions.indexOf(key) < 0) { defaultOptions[key] = pluginOptions[key]; } } - //>>excludeEnd('excludeBabel') return { //>>excludeStart('excludeBabel', pragmas.excludeBabel)