Opal-Estate-Pro/node_modules/core-js/modules/_an-instance.js
2019-09-13 09:44:33 +07:00

6 lines
237 B
JavaScript

module.exports = function (it, Constructor, name, forbiddenField) {
if (!(it instanceof Constructor) || (forbiddenField !== undefined && forbiddenField in it)) {
throw TypeError(name + ': incorrect invocation!');
} return it;
};