first
This commit is contained in:
9
node_modules/core-js/internals/an-instance.js
generated
vendored
Normal file
9
node_modules/core-js/internals/an-instance.js
generated
vendored
Normal file
@ -0,0 +1,9 @@
|
||||
'use strict';
|
||||
var isPrototypeOf = require('../internals/object-is-prototype-of');
|
||||
|
||||
var $TypeError = TypeError;
|
||||
|
||||
module.exports = function (it, Prototype) {
|
||||
if (isPrototypeOf(Prototype, it)) return it;
|
||||
throw $TypeError('Incorrect invocation');
|
||||
};
|
Reference in New Issue
Block a user