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

Function getPathDefinition

packages/next/src/compiled/@vercel/og/index.edge.js:5319–5333  ·  view source on GitHub ↗
(glyph, path)

Source from the content-addressed store, hash-verified

5317}
5318var check = { fail, argument, assert: argument };
5319function getPathDefinition(glyph, path) {
5320 var _path = path || new Path();
5321 return {
5322 configurable: true,
5323 get: function() {
5324 if (typeof _path === "function") {
5325 _path = _path();
5326 }
5327 return _path;
5328 },
5329 set: function(p) {
5330 _path = p;
5331 }
5332 };
5333}
5334function Glyph(options) {
5335 this.bindConstructorValues(options);
5336}

Callers 1

index.edge.jsFile · 0.70

Calls 1

_pathFunction · 0.85

Tested by

no test coverage detected