(target, prop, value)
| 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 | } |
no test coverage detected