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

Method parse

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

Source from the content-addressed store, hash-verified

5820 esValue[implSymbol]["hash"] = V6;
5821 }
5822 static parse(url2) {
5823 if (arguments.length < 1) {
5824 throw new globalObject.TypeError(
5825 `Failed to execute 'parse' on 'URL': 1 argument required, but only ${arguments.length} present.`
5826 );
5827 }
5828 const args = [];
5829 {
5830 let curArg = arguments[0];
5831 curArg = conversions["USVString"](curArg, {
5832 context: "Failed to execute 'parse' on 'URL': parameter 1",
5833 globals: globalObject
5834 });
5835 args.push(curArg);
5836 }
5837 {
5838 let curArg = arguments[1];
5839 if (curArg !== void 0) {
5840 curArg = conversions["USVString"](curArg, {
5841 context: "Failed to execute 'parse' on 'URL': parameter 2",
5842 globals: globalObject
5843 });
5844 }
5845 args.push(curArg);
5846 }
5847 return utils.tryWrapperForImpl(Impl.implementation.parse(globalObject, ...args));
5848 }
5849 static canParse(url2) {
5850 if (arguments.length < 1) {
5851 throw new globalObject.TypeError(

Callers

nothing calls this directly

Calls 2

pushMethod · 0.45
parseMethod · 0.45

Tested by

no test coverage detected