summaryrefslogtreecommitdiff
path: root/tools/eslint/node_modules/lodash/isNative.js
diff options
context:
space:
mode:
Diffstat (limited to 'tools/eslint/node_modules/lodash/isNative.js')
-rw-r--r--tools/eslint/node_modules/lodash/isNative.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/eslint/node_modules/lodash/isNative.js b/tools/eslint/node_modules/lodash/isNative.js
index 4bd57d8d12..310b39d2bc 100644
--- a/tools/eslint/node_modules/lodash/isNative.js
+++ b/tools/eslint/node_modules/lodash/isNative.js
@@ -1,6 +1,9 @@
var baseIsNative = require('./_baseIsNative'),
isMaskable = require('./_isMaskable');
+/** Error message constants. */
+var CORE_ERROR_TEXT = 'Unsupported core-js use. Try https://github.com/es-shims.';
+
/**
* Checks if `value` is a pristine native function.
*
@@ -29,7 +32,7 @@ var baseIsNative = require('./_baseIsNative'),
*/
function isNative(value) {
if (isMaskable(value)) {
- throw new Error('This method is not supported with core-js. Try https://github.com/es-shims.');
+ throw new Error(CORE_ERROR_TEXT);
}
return baseIsNative(value);
}