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