MCPcopy Index your code
hub / github.com/bigskysoftware/_hyperscript / set

Method set

tools/common/_hyperscript.iife.js:1931–1947  ·  view source on GitHub ↗
(target, prop, value)

Source from the content-addressed store, hash-verified

1929 }
1930 }
1931 set(target, prop, value) {
1932 var parts = [];
1933 if (typeof value === "string") {
1934 parts.push(encodeURIComponent(value));
1935 parts.push("samesite=lax");
1936 } else {
1937 parts.push(encodeURIComponent(value.value));
1938 if (value.expires) parts.push("expires=" + value.expires);
1939 if (value.maxAge) parts.push("max-age=" + value.maxAge);
1940 if (value.partitioned) parts.push("partitioned=" + value.partitioned);
1941 if (value.path) parts.push("path=" + value.path);
1942 if (value.samesite) parts.push("samesite=" + value.samesite);
1943 if (value.secure) parts.push("secure");
1944 }
1945 document.cookie = String(prop) + "=" + parts.join(";");
1946 return true;
1947 }
1948 proxy() {
1949 return new Proxy({}, this);
1950 }

Callers 15

formatErrorsMethod · 0.45
getEventQueueForMethod · 0.45
registerHyperTraceMethod · 0.45
_getObjectStateMethod · 0.45
trackGlobalSymbolMethod · 0.45
trackElementSymbolMethod · 0.45
trackPropertyMethod · 0.45
trackAttributeMethod · 0.45
_subscribeEffectMethod · 0.45
_createPersistentIdsFunction · 0.45
_populateIdMapWithTreeFunction · 0.45
resolveMethod · 0.45

Calls 3

resolveMethod · 0.45
replaceInDomMethod · 0.45
setSymbolMethod · 0.45

Tested by

no test coverage detected