MCPcopy
hub / github.com/vercel/next.js / ot

Function ot

packages/next/src/compiled/@vercel/og/index.edge.js:13400–13430  ·  view source on GitHub ↗
(c2, d2)

Source from the content-addressed store, hash-verified

13398 return d2 === null ? (this.ea && G("null is not a valid " + this.name), 0) : (d2.M || G('Cannot pass "' + et2(d2) + '" as a ' + this.name), d2.M.O || G("Cannot pass deleted object as a pointer of type " + this.name), ee(d2.M.O, d2.M.P.N, this.N));
13399 }
13400 function ot(c2, d2) {
13401 if (d2 === null) {
13402 if (this.ea && G("null is not a valid " + this.name), this.da) {
13403 var g2 = this.fa();
13404 return c2 !== null && c2.push(this.W, g2), g2;
13405 }
13406 return 0;
13407 }
13408 if (d2.M || G('Cannot pass "' + et2(d2) + '" as a ' + this.name), d2.M.O || G("Cannot pass deleted object as a pointer of type " + this.name), !this.ca && d2.M.P.ca && G("Cannot convert argument of type " + (d2.M.U ? d2.M.U.name : d2.M.P.name) + " to parameter type " + this.name), g2 = ee(d2.M.O, d2.M.P.N, this.N), this.da)
13409 switch (d2.M.T === void 0 && G("Passing raw pointer to smart pointer is illegal"), this.Ba) {
13410 case 0:
13411 d2.M.U === this ? g2 = d2.M.T : G("Cannot convert argument of type " + (d2.M.U ? d2.M.U.name : d2.M.P.name) + " to parameter type " + this.name);
13412 break;
13413 case 1:
13414 g2 = d2.M.T;
13415 break;
13416 case 2:
13417 if (d2.M.U === this)
13418 g2 = d2.M.T;
13419 else {
13420 var v2 = d2.clone();
13421 g2 = this.xa(g2, De(function() {
13422 v2.delete();
13423 })), c2 !== null && c2.push(this.W, g2);
13424 }
13425 break;
13426 default:
13427 G("Unsupporting sharing policy");
13428 }
13429 return g2;
13430 }
13431 function Q(c2, d2) {
13432 return d2 === null ? (this.ea && G("null is not a valid " + this.name), 0) : (d2.M || G('Cannot pass "' + et2(d2) + '" as a ' + this.name), d2.M.O || G("Cannot pass deleted object as a pointer of type " + this.name), d2.M.P.ca && G("Cannot convert argument of type " + d2.M.P.name + " to parameter type " + this.name), ee(d2.M.O, d2.M.P.N, this.N));
13433 }

Callers 10

StFunction · 0.85
_rebuildModuleMethod · 0.85
sealMethod · 0.85
contMethod · 0.85
createChildCompilerMethod · 0.85
applyMethod · 0.85
needBuildMethod · 0.85
constructorMethod · 0.85

Calls 7

GFunction · 0.70
et2Function · 0.70
eeFunction · 0.70
DeFunction · 0.70
pushMethod · 0.65
cloneMethod · 0.45
deleteMethod · 0.45

Tested by

no test coverage detected