MCPcopy
hub / github.com/di-sukharev/opencommit / delete

Method delete

out/cli.cjs:5064–5096  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

5062 return utils.tryWrapperForImpl(esValue[implSymbol].append(...args));
5063 }
5064 delete(name) {
5065 const esValue = this !== null && this !== void 0 ? this : globalObject;
5066 if (!exports2.is(esValue)) {
5067 throw new globalObject.TypeError(
5068 "'delete' called on an object that is not a valid instance of URLSearchParams."
5069 );
5070 }
5071 if (arguments.length < 1) {
5072 throw new globalObject.TypeError(
5073 `Failed to execute 'delete' on 'URLSearchParams': 1 argument required, but only ${arguments.length} present.`
5074 );
5075 }
5076 const args = [];
5077 {
5078 let curArg = arguments[0];
5079 curArg = conversions["USVString"](curArg, {
5080 context: "Failed to execute 'delete' on 'URLSearchParams': parameter 1",
5081 globals: globalObject
5082 });
5083 args.push(curArg);
5084 }
5085 {
5086 let curArg = arguments[1];
5087 if (curArg !== void 0) {
5088 curArg = conversions["USVString"](curArg, {
5089 context: "Failed to execute 'delete' on 'URLSearchParams': parameter 2",
5090 globals: globalObject
5091 });
5092 }
5093 args.push(curArg);
5094 }
5095 return utils.tryWrapperForImpl(esValue[implSymbol].delete(...args));
5096 }
5097 get(name) {
5098 const esValue = this !== null && this !== void 0 ? this : globalObject;
5099 if (!exports2.is(esValue)) {

Callers

nothing calls this directly

Calls 2

pushMethod · 0.45
deleteMethod · 0.45

Tested by

no test coverage detected