wallet-core/node_modules/core-js/modules/$.strict-new.js

4 lines
152 B
JavaScript
Raw Normal View History

2017-05-03 15:35:00 +02:00
module.exports = function(it, Constructor, name){
if(!(it instanceof Constructor))throw TypeError(name + ": use the 'new' operator!");
return it;
};