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

Method set

www/js/_hyperscript.esm.js:1942–1958  ·  view source on GitHub ↗
(target, prop, value)

Source from the content-addressed store, hash-verified

1940 }
1941 }
1942 set(target, prop, value) {
1943 var parts = [];
1944 if (typeof value === "string") {
1945 parts.push(encodeURIComponent(value));
1946 parts.push("samesite=lax");
1947 } else {
1948 parts.push(encodeURIComponent(value.value));
1949 if (value.expires) parts.push("expires=" + value.expires);
1950 if (value.maxAge) parts.push("max-age=" + value.maxAge);
1951 if (value.partitioned) parts.push("partitioned=" + value.partitioned);
1952 if (value.path) parts.push("path=" + value.path);
1953 if (value.samesite) parts.push("samesite=" + value.samesite);
1954 if (value.secure) parts.push("secure");
1955 }
1956 document.cookie = String(prop) + "=" + parts.join(";");
1957 return true;
1958 }
1959 proxy() {
1960 return new Proxy({}, this);
1961 }

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
trackQueryMethod · 0.45
_subscribeEffectMethod · 0.45
_createPersistentIdsFunction · 0.45
_populateIdMapWithTreeFunction · 0.45

Calls 3

resolveMethod · 0.45
replaceInDomMethod · 0.45
setSymbolMethod · 0.45

Tested by

no test coverage detected