source: frontend/node_modules/core-js-pure/internals/a-constructor.js

Last change on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 12 days ago

Fix frontend appearance

  • Property mode set to 100644
File size: 369 bytes
Line 
1'use strict';
2var isConstructor = require('../internals/is-constructor');
3var tryToString = require('../internals/try-to-string');
4
5var $TypeError = TypeError;
6
7// `Assert: IsConstructor(argument) is true`
8module.exports = function (argument) {
9 if (isConstructor(argument)) return argument;
10 throw new $TypeError(tryToString(argument) + ' is not a constructor');
11};
Note: See TracBrowser for help on using the repository browser.