initial commit. phase 1 complete

This commit is contained in:
2026-05-05 20:45:19 +02:00
parent d9c68313a0
commit 89e058ffac
20631 changed files with 3224610 additions and 43 deletions
+22
View File
@@ -0,0 +1,22 @@
"use strict";
var _is_native_reflect_construct = require("./_is_native_reflect_construct.cjs");
var _set_prototype_of = require("./_set_prototype_of.cjs");
exports._ = exports._construct = _construct;
function _construct(Parent, args, Class) {
if (_is_native_reflect_construct._()) exports._ = exports._construct = _construct = Reflect.construct;
else {
exports._ = exports._construct = _construct = function construct(Parent, args, Class) {
var a = [null];
a.push.apply(a, args);
var Constructor = Function.bind.apply(Parent, a);
var instance = new Constructor();
if (Class) _set_prototype_of._(instance, Class.prototype);
return instance;
};
}
return _construct.apply(null, arguments);
}