MCPcopy Create free account
hub / github.com/subquery/subql / u

Function u

packages/node-core/test/sandbox/sourcemap-test-webpack.js:95–119  ·  view source on GitHub ↗
(e, t, r, n, o, a)

Source from the content-addressed store, hash-verified

93 };
94 }
95 function u(e, t, r, n, o, a) {
96 function i(e) {
97 if (void 0 !== e && "function" != typeof e) throw new TypeError("Function expected");
98 return e;
99 }
100 for (var c, s = n.kind, u = "getter" === s ? "get" : "setter" === s ? "set" : "value", f = !t && e ? n.static ? e : e.prototype : null, l = t || (f ? Object.getOwnPropertyDescriptor(f, n.name) : {}), p = !1, y = r.length - 1; y >= 0; y--) {
101 var _ = {};
102 for (var d in n) _[d] = "access" === d ? {} : n[d];
103 for (var d in n.access) _.access[d] = n.access[d];
104 _.addInitializer = function(e) {
105 if (p) throw new TypeError("Cannot add initializers after decoration has completed");
106 a.push(i(e || null));
107 };
108 var v = (0, r[y])("accessor" === s ? {
109 get: l.get,
110 set: l.set
111 } : l[u], _);
112 if ("accessor" === s) {
113 if (void 0 === v) continue;
114 if (null === v || "object" != typeof v) throw new TypeError("Object expected");
115 (c = i(v.get)) && (l.get = c), (c = i(v.set)) && (l.set = c), (c = i(v.init)) && o.unshift(c);
116 } else (c = i(v)) && ("field" === s ? o.unshift(c) : l[u] = c);
117 }
118 f && Object.defineProperty(f, n.name, l), p = !0;
119 }
120 function f(e, t, r) {
121 for (var n = arguments.length > 2, o = 0; o < t.length; o++) r = n ? t[o].call(e, r) : t[o].call(e);
122 return n ? r : void 0;

Callers

nothing calls this directly

Calls 2

iFunction · 0.85
cFunction · 0.70

Tested by

no test coverage detected