source:
node_modules/core-js-pure/internals/an-instance.js
Last change on this file was d24f17c, checked in by , 15 months ago | |
---|---|
|
|
File size: 254 bytes |
Line | |
---|---|
1 | 'use strict'; |
2 | var isPrototypeOf = require('../internals/object-is-prototype-of'); |
3 | |
4 | var $TypeError = TypeError; |
5 | |
6 | module.exports = function (it, Prototype) { |
7 | if (isPrototypeOf(Prototype, it)) return it; |
8 | throw new $TypeError('Incorrect invocation'); |
9 | }; |
Note:
See TracBrowser
for help on using the repository browser.