From dc5544223fc30e5d228b898bb4cb783e33bc3999 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Mon, 16 May 2016 15:56:03 -0700 Subject: [PATCH] Use `new` operator when throwing an error for consistency. --- lodash.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lodash.js b/lodash.js index 1511149b3..0d4d06851 100644 --- a/lodash.js +++ b/lodash.js @@ -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); }