mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-08 18:17:48 +00:00
Use new operator when throwing an error for consistency.
This commit is contained in:
@@ -11208,7 +11208,7 @@
|
|||||||
*/
|
*/
|
||||||
function isNative(value) {
|
function isNative(value) {
|
||||||
if (isMaskable(value)) {
|
if (isMaskable(value)) {
|
||||||
throw Error('This method is not supported with core-js. Try https://github.com/es-shims.');
|
throw new Error('This method is not supported with core-js. Try https://github.com/es-shims.');
|
||||||
}
|
}
|
||||||
return baseIsNative(value);
|
return baseIsNative(value);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user