mirror of
https://github.com/borbann-platform/end-of-semester-report.git
synced 2025-12-18 14:24:04 +01:00
22 lines
635 B
JavaScript
22 lines
635 B
JavaScript
"use strict";
|
|
(function() {
|
|
if (typeof globalThis === "object") {
|
|
return;
|
|
}
|
|
Object.defineProperty(Object.prototype, "__magic__", {
|
|
get: function() {
|
|
return this;
|
|
},
|
|
configurable: true
|
|
// This makes it possible to `delete` the getter later.
|
|
});
|
|
__magic__.globalThis = __magic__;
|
|
delete Object.prototype.__magic__;
|
|
})();
|
|
const clone = typeof globalThis.structuredClone === "function" ? globalThis.structuredClone : (obj) => JSON.parse(JSON.stringify(obj));
|
|
function structuredClone(obj) {
|
|
return clone(obj);
|
|
}
|
|
exports.structuredClone = structuredClone;
|
|
//# sourceMappingURL=index-BuqJUpao.cjs.map
|