1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
| "use strict";
|
| Object.defineProperty(exports, "__esModule", {
| value: true
| });
| exports.default = _construct;
| var _setPrototypeOf = require("setPrototypeOf");
| var _isNativeReflectConstruct = require("./isNativeReflectConstruct.js");
| function _construct(Parent, args, Class) {
| if ((0, _isNativeReflectConstruct.default)()) {
| return Reflect.construct.apply(null, arguments);
| }
| var a = [null];
| a.push.apply(a, args);
| var instance = new (Parent.bind.apply(Parent, a))();
| if (Class) _setPrototypeOf(instance, Class.prototype);
| return instance;
| }
|
| //# sourceMappingURL=construct.js.map
|
|