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

Method constructor

out/cli.cjs:5585–5611  ·  view source on GitHub ↗
(url2)

Source from the content-addressed store, hash-verified

5583 const ctorRegistry = utils.initCtorRegistry(globalObject);
5584 class URL3 {
5585 constructor(url2) {
5586 if (arguments.length < 1) {
5587 throw new globalObject.TypeError(
5588 `Failed to construct 'URL': 1 argument required, but only ${arguments.length} present.`
5589 );
5590 }
5591 const args = [];
5592 {
5593 let curArg = arguments[0];
5594 curArg = conversions["USVString"](curArg, {
5595 context: "Failed to construct 'URL': parameter 1",
5596 globals: globalObject
5597 });
5598 args.push(curArg);
5599 }
5600 {
5601 let curArg = arguments[1];
5602 if (curArg !== void 0) {
5603 curArg = conversions["USVString"](curArg, {
5604 context: "Failed to construct 'URL': parameter 2",
5605 globals: globalObject
5606 });
5607 }
5608 args.push(curArg);
5609 }
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)) {

Callers

nothing calls this directly

Calls 2

pushMethod · 0.45
createMethod · 0.45

Tested by

no test coverage detected