From 3dc30632755713179f345f4af024bd904c6162d0 Mon Sep 17 00:00:00 2001 From: Michaƫl Zasso Date: Fri, 22 Dec 2017 16:53:42 +0100 Subject: tools: move eslint from tools to tools/node_modules This is required because we need to add the babel-eslint dependency and it has to be able to resolve "eslint". babel-eslint is required to support future ES features such as async iterators and import.meta. Refs: https://github.com/nodejs/node/pull/17755 PR-URL: https://github.com/nodejs/node/pull/17820 Reviewed-By: Matteo Collina Reviewed-By: Benjamin Gruenbaum --- .../eslint/node_modules/lodash/_getMatchData.js | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 tools/node_modules/eslint/node_modules/lodash/_getMatchData.js (limited to 'tools/node_modules/eslint/node_modules/lodash/_getMatchData.js') diff --git a/tools/node_modules/eslint/node_modules/lodash/_getMatchData.js b/tools/node_modules/eslint/node_modules/lodash/_getMatchData.js new file mode 100644 index 0000000000..2cc70f917f --- /dev/null +++ b/tools/node_modules/eslint/node_modules/lodash/_getMatchData.js @@ -0,0 +1,24 @@ +var isStrictComparable = require('./_isStrictComparable'), + keys = require('./keys'); + +/** + * Gets the property names, values, and compare flags of `object`. + * + * @private + * @param {Object} object The object to query. + * @returns {Array} Returns the match data of `object`. + */ +function getMatchData(object) { + var result = keys(object), + length = result.length; + + while (length--) { + var key = result[length], + value = object[key]; + + result[length] = [key, value, isStrictComparable(value)]; + } + return result; +} + +module.exports = getMatchData; -- cgit v1.2.3