aboutsummaryrefslogtreecommitdiff
path: root/node_modules/core-js/modules/_an-instance.js
blob: c0a5f9200c15378e4e21b8ab5fb27206bf26b216 (plain)
1
2
3
4
5
module.exports = function (it, Constructor, name, forbiddenField) {
  if (!(it instanceof Constructor) || (forbiddenField !== undefined && forbiddenField in it)) {
    throw TypeError(name + ': incorrect invocation!');
  } return it;
};