UNPKG

@babel/runtime-corejs3

Version:

babel's modular runtime helpers with core-js@3 polyfilling

13 lines • 750 B
var _Reflect$construct = require("core-js-pure/features/reflect/construct.js"); var _pushInstanceProperty = require("core-js-pure/features/instance/push.js"); var _bindInstanceProperty = require("core-js-pure/features/instance/bind.js"); var isNativeReflectConstruct = require("./isNativeReflectConstruct.js"); var setPrototypeOf = require("./setPrototypeOf.js"); function _construct(e, o, p) { if (isNativeReflectConstruct()) return _Reflect$construct.apply(null, arguments); var n = [null]; _pushInstanceProperty(n).apply(n, o); var l = new (_bindInstanceProperty(e).apply(e, n))(); return p && setPrototypeOf(l, p.prototype), l; } module.exports = _construct, module.exports.__esModule = true, module.exports["default"] = module.exports;