Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
21 lines
616 B
Plaintext
21 lines
616 B
Plaintext
"use strict";
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
value: true
|
|
});
|
|
exports.default = _construct;
|
|
var _isNativeReflectConstruct = require("./isNativeReflectConstruct.js");
|
|
var _setPrototypeOf = require("./setPrototypeOf.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) (0, _setPrototypeOf.default)(instance, Class.prototype);
|
|
return instance;
|
|
}
|
|
|
|
//# sourceMappingURL=construct.js.map
|