get function name change
This commit is contained in:
7
node_modules/es-abstract/2019/IsConstructor.js
generated
vendored
Normal file
7
node_modules/es-abstract/2019/IsConstructor.js
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
'use strict';
|
||||
|
||||
// https://www.ecma-international.org/ecma-262/6.0/#sec-isconstructor
|
||||
|
||||
module.exports = function IsConstructor(argument) {
|
||||
return typeof argument === 'function' && !!argument.prototype; // unfortunately there's no way to truly check this without try/catch `new argument`
|
||||
};
|
||||
Reference in New Issue
Block a user