diff options
Diffstat (limited to 'node_modules/@babel/template/lib')
| -rw-r--r-- | node_modules/@babel/template/lib/options.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/node_modules/@babel/template/lib/options.js b/node_modules/@babel/template/lib/options.js index 7ec7fb5a..928c6ecd 100644 --- a/node_modules/@babel/template/lib/options.js +++ b/node_modules/@babel/template/lib/options.js @@ -7,7 +7,7 @@ exports.merge = merge; exports.normalizeReplacements = normalizeReplacements; exports.validate = validate; const _excluded = ["placeholderWhitelist", "placeholderPattern", "preserveComments", "syntacticPlaceholders"]; -function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; } +function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; } function merge(a, b) { const { placeholderWhitelist = a.placeholderWhitelist, |
