mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-01-31 15:27:50 +00:00
Use new operator when throwing an error for consistency.
This commit is contained in:
@@ -11208,7 +11208,7 @@
|
||||
*/
|
||||
function isNative(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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user