MCPcopy Index your code
hub / github.com/di-sukharev/opencommit / toJSON

Method toJSON

out/cli.cjs:5612–5618  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5610 return exports2.setup(Object.create(new.target.prototype), globalObject, args);
5611 }
5612 toJSON() {
5613 const esValue = this !== null && this !== void 0 ? this : globalObject;
5614 if (!exports2.is(esValue)) {
5615 throw new globalObject.TypeError("'toJSON' called on an object that is not a valid instance of URL.");
5616 }
5617 return esValue[implSymbol].toJSON();
5618 }
5619 get href() {
5620 const esValue = this !== null && this !== void 0 ? this : globalObject;
5621 if (!exports2.is(esValue)) {

Callers

nothing calls this directly

Calls 1

toJSONMethod · 0.45

Tested by

no test coverage detected