Use new operator when throwing an error for consistency.

This commit is contained in:
John-David Dalton
2016-05-16 15:56:03 -07:00
parent c14728d31a
commit dc5544223f

View File

@@ -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);
} }